/* Global Styles */
:root {
    --primary-color: #6C63FF;
    --secondary-color: #8E7CFF;
    --accent-color: #F0EEFF;
    --text-primary: #2D2B55;
    --text-secondary: #6B6894;
    --bg-light: #ffffff;
    --gradient-primary: linear-gradient(135deg, #6C63FF, #8E7CFF);
    --gradient-light: linear-gradient(135deg, #F0EEFF, #F5F3FF);
    --shadow-sm: 0 2px 4px rgba(108, 99, 255, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(108, 99, 255, 0.1), 0 2px 4px -1px rgba(108, 99, 255, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(108, 99, 255, 0.1), 0 4px 6px -2px rgba(108, 99, 255, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(108, 99, 255, 0.1), 0 10px 10px -5px rgba(108, 99, 255, 0.04);
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header Styles */
header {
    background: var(--gradient-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.logo-wrapper {
    position: relative;
    perspective: 1000px;
}

.logo-wrapper img {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.logo-wrapper:hover img {
    transform: translateZ(20px) rotateY(10deg);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    position: relative;
}

/* Tool Card Styles */
.tool-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.tool-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.tool-card:hover::before {
    opacity: 0.05;
}

.tool-card .card {
    border: none;
    background: transparent;
    height: 100%;
    position: relative;
    z-index: 2;
}

.tool-card .card-body {
    padding: 1.5rem;
}

.tool-card .card-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.tool-card .card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Search Bar Styles */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#toolSearch {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    font-size: 1rem;
}

#toolSearch:focus {
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.1);
    border-color: var(--primary-color);
    outline: none;
}

/* Category Section Styles */
section h2 {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Ad Container Styles */
.ad-container {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .tool-card {
        margin-bottom: 1rem;
    }
    
    section h1 {
        font-size: 1.5rem;
    }
}

/* Branding Styles */
.branding-text {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-align: right;
    padding: 0.5rem 0;
}

/* Footer Styles */
footer {
    background: var(--gradient-light);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.2;
}

footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-heading {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-icon {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form .form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.newsletter-form .form-control:focus {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.newsletter-form .btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.newsletter-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.modern-theme {
    background-color: #f8f9fd;
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    background: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Header Styling */
.bg-gradient {
    background: var(--gradient-primary);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(67, 97, 238, 0.15));
}

/* Search Bar Styling */
.search-bar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-bar input {
    font-size: 1.1rem;
}

/* Category Section Styling */
.category-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Card Styling */
.card {
    border: none;
    background: white;
    transition: all 0.3s ease;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
}

/* Tool Icons */
.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: translateZ(20px);
}

/* Footer Styling */
footer {
    background: var(--gradient-light);
}

footer a {
    transition: all 0.3s ease;
    opacity: 0.8;
}

footer a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.5rem 0;
    }
    
    .modern-dropdown {
        background: white;
        box-shadow: none;
        padding: 0 0 0 1rem;
        animation: none;
    }
    
    .dropdown-item {
        padding: 0.5rem 0;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .category-section {
        padding: 3rem 0;
    }
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Navigation Styles */
.navbar {
    padding: 0.5rem 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link i {
    transition: transform 0.2s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

.modern-dropdown {
    border: none;
    background: rgba(240, 238, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 1rem;
    min-width: 220px;
    transform-origin: top;
    animation: dropdownAnimation 0.2s ease;
}

@keyframes dropdownAnimation {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item:hover {
    background: rgba(67, 97, 238, 0.05);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item i {
    transition: transform 0.2s ease;
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

.btn-light {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.5rem 0 !important;
    }
    
    .modern-dropdown {
        background: white;
        box-shadow: none;
        padding: 0 0 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-light {
    background: var(--gradient-light);
} 