/* Dark/Light Mode Variables */
:root {
  /* Light Mode Colors */
  --lm-primary-color: #00BFA5;
  --lm-secondary-color: #F8F9FA;
  --lm-text-color: #343A40;
  --lm-text-secondary: #6C757D;
  --lm-bg-color: #F8F9FA;
  --lm-bg-secondary: #E9ECEF;
  --lm-accent-color: #1E88E5;
  --lm-card-bg: #FFFFFF;
  --lm-card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --lm-toggle-color: #343A40;
  --lm-bg-secondary-rgb: 233, 236, 239;

  /* Dark Mode Colors */
  --dm-primary-color: #64FFDA;
  --dm-secondary-color: #0A192F;
  --dm-text-color: #CCD6F6;
  --dm-text-secondary: #8892B0;
  --dm-bg-color: #0A192F;
  --dm-bg-secondary: #112240;
  --dm-accent-color: #1E90FF;
  --dm-card-bg: #112240;
  --dm-card-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  --dm-toggle-color: #CCD6F6;
  --dm-bg-secondary-rgb: 17, 34, 64;
   --dark-secondary: #03DAC6;
}

[data-theme="light"] {
  --primary-color: var(--lm-primary-color);
  --secondary-color: var(--lm-secondary-color);
  --text-color: var(--lm-text-color);
  --text-secondary: var(--lm-text-secondary);
  --bg-color: var(--lm-bg-color);
  --bg-secondary: var(--lm-bg-secondary);
  --accent-color: var(--lm-accent-color);
  --card-bg: var(--lm-card-bg);
  --card-shadow: var(--lm-card-shadow);
  --dark-mode-toggle-color: var(--lm-toggle-color);
  --bg-secondary-rgb: var(--lm-bg-secondary-rgb);
}

[data-theme="dark"] {
  --primary-color: var(--dm-primary-color);
  --secondary-color: var(--dm-secondary-color);
  --text-color: var(--dm-text-color);
  --text-secondary: var(--dm-text-secondary);
  --bg-color: var(--dm-bg-color);
  --bg-secondary: var(--dm-bg-secondary);
  --accent-color: var(--dm-accent-color);
  --card-bg: var(--dm-card-bg);
  --card-shadow: var(--dm-card-shadow);
  --dark-mode-toggle-color: var(--dm-toggle-color);
  --bg-secondary-rgb: var(--dm-bg-secondary-rgb);
}
[data-theme="light"] {
    --bg-secondary-rgb: var(--lm-bg-secondary-rgb);
}

[data-theme="dark"] {
    --bg-secondary-rgb: var(--dm-bg-secondary-rgb);
}


/* Dark Mode Toggle Button */
.dark-mode-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

.dark-mode-toggle.clicked {
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.dark-mode-icon {
  width: 24px;
  height: 24px;
  color: var(--dark-mode-toggle-color);
  transition: color 0.3s ease;
}

/* System prefers dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
  
  /* Default to dark mode if system preference is dark */
  :root:not([data-theme]) {
    --primary-color: var(--dm-primary-color);
    --secondary-color: var(--dm-secondary-color);
    --text-color: var(--dm-text-color);
    --text-secondary: var(--dm-text-secondary);
    --bg-color: var(--dm-bg-color);
    --bg-secondary: var(--dm-bg-secondary);
    --accent-color: var(--dm-accent-color);
    --card-bg: var(--dm-card-bg);
    --card-shadow: var(--dm-card-shadow);
    --dark-mode-toggle-color: var(--dm-toggle-color);
  }
}

/* System prefers light mode */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
  }
  
  /* Default to light mode if system preference is light */
  :root:not([data-theme]) {
    --primary-color: var(--lm-primary-color);
    --secondary-color: var(--lm-secondary-color);
    --text-color: var(--lm-text-color);
    --text-secondary: var(--lm-text-secondary);
    --bg-color: var(--lm-bg-color);
    --bg-secondary: var(--lm-bg-secondary);
    --accent-color: var(--lm-accent-color);
    --card-bg: var(--lm-card-bg);
    --card-shadow: var(--lm-card-shadow);
    --dark-mode-toggle-color: var(--lm-toggle-color);
  }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
}

.loading-logo svg {
    width: 100%;
    height: 100%;
    animation: rotate 3s linear infinite;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background-color: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    animation: progress 2s ease-in-out forwards;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 20px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

.dark-mode-icon {
    width: 24px;
    height: 24px;
    color: var(--dark-mode-toggle-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(var(--bg-secondary-rgb), 0.9);
    --webkit-backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a {
            font-weight: 500;
            transition: var(--transition);
            position: relative;
            padding: 0.5rem 0;
        }

        .nav-links a:hover {
            color: var(--teal);
        }

        .dark-mode .nav-links a:hover {
            color: var(--dark-secondary);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--teal);
            transition: var(--transition);
        }

        .dark-mode .nav-links a::after {
            background-color: var(--dark-secondary);
        }

        .nav-links a:hover::after {
            width: 100%;
        }


.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: var(--bg-secondary);
    z-index: 99;
    transition: right 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 28px;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-links a {
    color: var(--text-secondary);
    font-size: 18px;
    transition: color 0.3s ease;
}

.mobile-menu-links a:hover, .mobile-menu-links a.active {
    color: var(--primary-color);
}

/* Team Hero Section */
/* Enhanced Team Hero Section */
.team-hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-color) 100%);
    overflow: hidden;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(100,255,218,0.05)" stroke-width="0.5"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

.team-hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--white);
}

.title-line {
    display: block;
}

.title-line.accent {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.title-line.accent::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.hero-visual {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.team-collage {
    position: relative;
    width: 100%;
    height: 100%;
}

.collage-item {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.6);
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collage-item:hover img {
    transform: scale(1.05);
}

.main-photo {
    width: 300px;
    height: 400px;
    top: 0;
    right: 0;
    z-index: 3;
}

.secondary-photo {
    width: 250px;
    height: 300px;
    top: 50px;
    right: 250px;
    z-index: 2;
    filter: brightness(0.9);
}


.team-pattern {
    position: absolute;
    bottom: -165px;
    left: 87px;
    width: 340px;
    height: 300px;
    opacity: 0.2;
    z-index: 0;
    animation: rotate 30s linear infinite;
}


@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 54px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .team-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        width: 100%;
        min-height: 300px;
        margin-top: 50px;
    }
    
    .main-photo {
        right: 50%;
        transform: translateX(50%);
    }
    
    .secondary-photo {
        right: calc(50% - 150px);
    }
    
    .tertiary-photo {
        right: calc(50% - 50px);
    }
}

@media (max-width: 768px) {
    .team-hero {
        padding: 150px 0 80px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        width: 50%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 36px;
    }
    
    .title-line.accent::after {
        height: 5px;
        bottom: 5px;
    }
    
    .stat-number {
        font-size: 32px;
    }
}
/* Team Section */
.team-section {
    padding: 100px 0;
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.team-category {
    margin-bottom: 60px;
}

.team-category-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.team-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.member-photo {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-bio {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.member-role {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.member-skills span {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Team Values Section */
.team-values {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.value-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Join Team CTA */
.join-team {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-color) 100%);
    text-align: center;
}

.join-team-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.join-team-content p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 30px;
}

.projbtn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.projbtn:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    display: inline-block;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-links a.active {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .team-hero-content h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .team-hero {
        padding: 150px 0 80px;
    }
    
    .team-hero-content h1 {
        font-size: 32px;
    }
    
    .team-hero-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .team-hero {
        padding: 120px 0 60px;
    }
    
    .team-hero-content h1 {
        font-size: 28px;
    }
    
    .join-team-content h2 {
        font-size: 28px;
    }
    
    .join-team-content p {
        font-size: 16px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}