/* All your existing CSS styles remain the same */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    background: #FFFFFF;
    color: #1E293B;
}

body.dark-mode {
    background: #0F172A;
    color: #F1F5F9;
}

/* Premium Gradient Mesh Background */
.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.gradient-mesh.active {
    opacity: 1;
}

body.light-mode .gradient-mesh {
    background: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.08) 0px, transparent 50%);
}

body.dark-mode .gradient-mesh {
    background: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.15) 0px, transparent 50%);
}

/* Glass Morphism Card - Refined for better elegance */
.glass-card {
    backdrop-filter: blur(25px) saturate(150%); /* Slightly higher blur, lower saturation */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition curve */
}

body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.9); /* Slightly less transparency */
    border: 1px solid rgba(170, 170, 200, 0.3); /* Softer border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Lighter shadow */
}

body.dark-mode .glass-card {
    background: rgba(30, 41, 59, 0.4); /* More transparent dark glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Internal dark mode glow for 'intelligent' effect */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5), 
        inset 0 0 10px rgba(139, 92, 246, 0.1); 
}

.glass-card:hover {
    transform: translateY(-6px); /* More noticeable lift */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.light-mode .glass-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* Slightly darker shadow on hover */
}

body.dark-mode .glass-card:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7),
        inset 0 0 15px rgba(139, 92, 246, 0.2); /* Stronger dark mode hover glow */
}

/* Premium Navbar - Enhanced blur */
.nav-glass {
    backdrop-filter: blur(30px) saturate(180%); /* Higher blur for better distinction */
    transition: all 0.4s ease;
}

body.dark-mode .nav-glass {
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(13, 20, 33, 0.9); /* Matching deeper background with more opacity */
}

body.light-mode .nav-glass {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}


/* Animated Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Premium Button */
.btn-premium {
    position: relative;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Unique Feature Cards */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

/* Premium Footer with Dynamic Background */
.footer-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #312E81 100%);
    color: #F1F5F9;
}

.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6366F1, #8B5CF6, #EC4899, transparent);
}
footer svg, footer #links{
    background: #0F172A;
    color: #F1F5F9;
}

/* Animated Blob */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: blobMove 20s ease-in-out infinite;
}

@keyframes blobMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.9); }
}

body.light-mode .blob {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

body.dark-mode .blob {
    background: linear-gradient(135deg, #6366F1, #EC4899);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Input */
.input-premium {
    transition: all 0.3s ease;
}

body.light-mode .input-premium {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(99, 102, 241, 0.2);
    color: #1E293B;
}

body.dark-mode .input-premium {
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(99, 102, 241, 0.3);
    color: #F1F5F9;
}

.input-premium:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Stats Counter Animation */
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.stat-number {
    animation: countUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.light-mode .theme-toggle {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

body.dark-mode .theme-toggle {
    background: linear-gradient(135deg, #1E293B, #334155);
}

.theme-toggle-circle {
    position: absolute;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.light-mode .theme-toggle-circle {
    left: 4px;
}

body.dark-mode .theme-toggle-circle {
    left: 32px;
}

/* Unique Section Divider */
.section-divider {
    position: relative;
    height: 2px;
    margin: 4rem 0;
    background: linear-gradient(90deg, transparent, #6366F1, #8B5CF6, #EC4899, transparent);
    opacity: 0.3;
}

/* Loading Animation */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: loadingBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0);
    } 40% {
        transform: scale(1);
    }
}

/* Responsive Design Improvements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .glass-card {
        padding: 1.5rem !important;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    .flex {
        flex-direction: column;
    }
    
    .nav-glass .flex {
        flex-direction: row;
    }
    
    .blob {
        display: none;
    }
    
    /* Mobile Navigation Title Fix */
    .mobile-nav-title {
        font-size: 1.1rem !important;
    }
    
    .mobile-nav-subtitle {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    .glass-card {
        padding: 1rem !important;
    }
    
    .btn-premium {
        padding: 0.75rem 1.5rem !important;
    }
}

/* Service Card Styles */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.impact-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

body.light-mode .impact-badge {
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
}

body.dark-mode .impact-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #8B5CF6;
}

/* Neuromarketing Explanation Section */
.neuromarketing-explanation {
    position: relative;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 300px;
    max-height: 60vh;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: #6366F1;
    transform: scale(1.3);
}

/* Unique Development Badge - Refined for elegance and subtlety */
.dev-badge {
    position: relative;
    overflow: hidden;
    /* Added glass effect for consistency with the rest of the UI */
    backdrop-filter: blur(15px);
    background: rgba(99, 102, 241, 0.1); 
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Custom, slower pulse ring */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: #6366F1; /* Changed from border to background for a glow effect */
    opacity: 0.2;
    animation: subtlePulse 3.5s ease-out infinite; /* Slower, gentler animation */
}

/* Custom Keyframe for subtlePulse */
@keyframes subtlePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.3;
    }
}

/* IMPROVED MOBILE NAVIGATION STYLES */
.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

.mobile-menu-container.active {
    pointer-events: all;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-container.active .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-dropdown {
    position: absolute;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

body.dark-mode .mobile-menu-dropdown {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-container.active .mobile-menu-dropdown {
    right: 0;
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(99, 102, 241, 0.2);
}

.mobile-menu-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.05);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-item:hover {
    color: #6366F1;
    transform: translateX(5px);
}

.mobile-nav-arrow {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.mobile-nav-item:hover .mobile-nav-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.mobile-menu-button {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    transition: all 0.3s ease;
}

.mobile-menu-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Mobile menu toggle button animation */
.mobile-menu-toggle {
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active {
    transform: rotate(90deg);
}

nav .mobileMenuIcon{
    background: #0F172A;
    color: #F1F5F9;
}
