:root {
            --theme-color: #2AC0FB;
            --dark-bg: #1A1A1A;
            --light-bg: #dbdada;
            --dark-text: #1A1A1A;
            --light-text: #FFFFFF;
            --transition: all 0.4s ease;
            --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            --card-shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--dark-bg);
            color: var(--light-text);
            transition: var(--transition);
            overflow-x: hidden;
        }

        body.light-mode {
            background-color: var(--light-bg);
            color: var(--dark-text);
        }

        /* Navbar */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: 1.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition);
            background-color: rgba(26, 26, 26, 0.9);
            backdrop-filter: blur(10px);
            transform: translateY(0);
        }

        .navbar.hidden {
            transform: translateY(-100%);
        }

        .light-mode .navbar {
            background-color: rgba(102, 102, 102, 0.9);
        }

            .logo-img {
                height: 40px;
                width: auto;
                transition: var(--transition);
            }

            .logo-black {
                display: none;
            }

            /* Mobile menu styling - Add to your existing CSS */
            .mobile-menu {
                display: none;
                cursor: pointer;
                font-size: 1.5rem;
                color: var(--light-text);
                background: none;
                border: none;
                padding: 10px;
            }

.light-mode .mobile-menu {
    color: var(--dark-text);
}

        .nav-links {
            display: flex;
            gap: 2rem;
        }

        .nav-link {
            color: var(--light-text);
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            position: relative;
            transition: var(--transition);
        }

        .light-mode .nav-link {
            color: var(--dark-text);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--theme-color);
            transition: var(--transition);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.5rem;
            color: var(--light-text);
            transition: var(--transition);
            padding: 10px;
            border-radius: 50%;
        }

        .light-mode .theme-toggle {
            color: var(--dark-text);
        }

        .theme-toggle:hover {
            color: var(--theme-color);
            background-color: rgba(42, 192, 251, 0.1);
        }
        .teams-menu {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
        }

        .team-nav-link {
            color: var(--light-text);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9rem;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .light-mode .team-nav-link {
            color: var(--dark-text);
        }

        .team-nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(42, 192, 251, 0.2), transparent);
            transition: left 0.6s;
        }

        .team-nav-link:hover::before {
            left: 100%;
        }

        .team-nav-link:hover {
            color: var(--theme-color);
            background-color: rgba(42, 192, 251, 0.1);
            transform: translateY(-2px);
        }

        /* Hero Section */
 .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2a2a 100%);
    
    /* Background image */
    background-image: 
        linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.7)),
        url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.light-mode .hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, #8a8a8a 100%);
    background-image: 
        linear-gradient(rgba(219, 218, 218, 0.8), rgba(219, 218, 218, 0.8)),
        url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Enhanced overlay effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(42, 192, 251, 0.2) 0%, transparent 70%);
    z-index: 1;
}

/* Additional animated overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(42, 192, 251, 0.1) 25%, 
        transparent 50%, 
        rgba(78, 205, 196, 0.1) 75%, 
        transparent 100%);
    animation: heroShimmer 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Ensure content stays above overlays */
.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

/* Add subtle backdrop blur for better text readability */
.hero-content::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: -2rem;
    right: -2rem;
    bottom: -2rem;
    backdrop-filter: blur(5px);
    border-radius: 20px;
    z-index: -1;
}



/* Mobile responsive for hero background */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Fixed attachment can cause issues on mobile */
    }
    
    .light-mode .hero {
        background-attachment: scroll;
    }
}

        .hero-title {
            font-size: 4rem;
            font-weight: 800;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--theme-color), #4ecdc4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-subtitle {
            font-size: 1.5rem;
            font-weight: 300;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 2rem;
        }

        .light-mode .hero-subtitle {
            color: rgba(26, 26, 26, 0.8);
        }

        .scroll-indicator {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s infinite;
        }

        .scroll-indicator i {
            font-size: 2rem;
            color: var(--theme-color);
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateX(-50%) translateY(0);
            }
            40% {
                transform: translateX(-50%) translateY(-10px);
            }
            60% {
                transform: translateX(-50%) translateY(-5px);
            }
        }

        /* Team Section */
        .team-section {
            padding: 6rem 0;
            position: relative;
        }
            .section-header {
                text-align: center;
                margin-bottom: 4rem;
                padding: 2rem 0;
            }

            .section-title {
                font-size: 3rem;
                font-weight: 700;
                color: var(--theme-color);
                text-align: center;
                letter-spacing: 1px;
                margin: 0;
            }

        .section-title {
            font-size: 3rem;
            font-weight: 700;
            color: var(--theme-color);
            text-align: center;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .members-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            padding: 0 2rem;
            max-width: 1200px;
            margin: 0 auto;
            margin: 10;
        }

                .member-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 2rem;
            text-align: center; /* Back to center alignment */
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: var(--card-shadow);
            margin: 2rem 0;
            width: 100%;
            min-width: 350px; /* Set minimum width for wider cards */
        }
            .members-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Wider minimum width */
                gap: 2rem;
                padding: 0 2rem;
                max-width: 1400px; /* Increased for wider cards */
                margin: 0 auto;
            }

        .light-mode .member-card {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(0, 0, 0, 0.1);
            box-shadow: var(--card-shadow-light);
        }

        .member-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(42, 192, 251, 0.1), transparent);
            opacity: 0;
            transition: var(--transition);
        }

        .member-card:hover::before {
            opacity: 1;
        }

        .member-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 40px rgba(42, 192, 251, 0.2);
        }

            .member-image {
                width: 200px;
                height: 200px;
                border-radius: 50%;
                margin: 0 auto 1.5rem; /* Back to center with bottom margin */
                position: relative;
                overflow: hidden;
                transition: var(--transition);
            }

        .member-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(10%);
            transition: var(--transition);
        }

        .member-card:hover .member-image img {
            filter: grayscale(0%);
            transform: scale(1.1);
        }

        .member-image::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border: 3px solid var(--theme-color);
            border-radius: 50%;
            opacity: 0;
            transform: scale(0.8);
            transition: var(--transition);
        }

        .member-card:hover .member-image::after {
            opacity: 1;
            transform: scale(1);
        }

            .member-name {
                font-size: 1.5rem;
                font-weight: 600;
                color: var(--theme-color);
                margin-bottom: 0.5rem;
            }

            .member-role {
                font-size: 1rem;
                font-weight: 400;
                color: var(--light-text);
                opacity: 0.8;
            }

        .light-mode .member-role {
            color: var(--dark-text);
        }

        /* Loading Animation */
        .loading {
            opacity: 0;
            transform: translateY(50px);
        }

        .loaded {
            opacity: 1;
            transform: translateY(0);
            transition: all 0.8s ease;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .navbar {
                padding: 1rem;
            }

            .nav-links {
                display: none;
            }

            .hero-title {
                font-size: 2.5rem;
            }

            .hero-subtitle {
                font-size: 1.2rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .members-grid {
                grid-template-columns: 1fr;
                padding: 0 1rem;
            }

            .teams-menu {
                gap: 1rem;
            }

            .team-nav-link {
                font-size: 0.8rem;
                padding: 0.4rem 0.8rem;
            }
        }

        /* Floating Particles */
        .particle {
            position: absolute;
            background-color: var(--theme-color);
            border-radius: 50%;
            pointer-events: none;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0px) rotate(0deg);
                opacity: 0.3;
            }
            50% {
                transform: translateY(-100px) rotate(180deg);
                opacity: 0.8;
            }
        }

        /* Fix anchor tag styling for team members */
.team-section a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-section a:link,
.team-section a:visited,
.team-section a:hover,
.team-section a:active {
    color: inherit;
    text-decoration: none;
}

/* Ensure member cards maintain their styling when wrapped in anchor */
.team-section a .member-card {
    color: inherit;
}

.team-section a .member-name {
    color: var(--theme-color);
}

.team-section a .member-role {
    color: var(--light-text);
    opacity: 0.8;
}

.light-mode .team-section a .member-role {
    color: var(--dark-text);
}

/* Remove any default focus outline and add custom one */
.team-section a:focus {
    outline: none;
}

.team-section a:focus .member-card {
    box-shadow: 0 0 0 3px rgba(42, 192, 251, 0.5);
}

@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .members-grid {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .member-card {
        flex-direction: column; /* Stack vertically on mobile */
        text-align: center;
        padding: 2rem;
    }
    
    .member-info {
        text-align: center;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
}