:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #1e3a8a;
    --secondary: #94a3b8;
    --accent: #06b6d4;
    --light: #0f172a;
    --dark: #f8fafc;
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.5);
    --header-bg: rgba(15, 23, 42, 0.95);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #64748b;
    --accent: #06b6d4;
    --light: #f8fafc;
    --dark: #1e293b;
    --bg-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.header-scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.footer-logo .logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:hover:after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.nav-cta:hover:after {
    display: none;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.theme-toggle i {
    display: inline-block;
    transform-origin: 50% 50%;
}

@keyframes spin-turn {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.theme-toggle .spin {
    animation: spin-turn 0.8s cubic-bezier(0.22, 0.9, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle .spin {
        animation: none;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

.hero {
    padding: 180px 0 120px;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    animation: gradientShift 10s ease infinite;
    position: relative;
    overflow: hidden;
}   

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.light-theme .hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 C30,100 70,0 100,100 L100,0 Z" fill="%231e293b" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
}

.light-theme .hero:before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 C30,100 70,0 100,100 L100,0 Z" fill="%23dbeafe" opacity="0.3"/></svg>');
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 58, 138, 0.5);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.light-theme .hero-badge {
    background: white;
}

.hero-badge i {
    color: var(--accent);
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 800;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: rgba(30, 58, 138, 0.5);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.light-theme .btn-secondary {
    background: white;
}

.btn-secondary:hover {
    background: rgba(30, 58, 138, 0.7);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.light-theme .btn-secondary:hover {
    background: var(--light);
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(30, 58, 138, 0.5);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

.light-theme .section-badge {
    background: var(--primary-light);
}

.section-title h2 {
    font-size: 42px;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 800;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(14, 165, 233, 0.2));
    border-radius: var(--border-radius-lg);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.light-theme .about-image {
    background: linear-gradient(135deg, var(--primary-light), #e0f2fe);
}

.about-image:before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    opacity: 0.1;
}

.about-image:after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent);
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
    opacity: 0.1;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.stat {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: background-color 0.3s ease;
}

.light-theme .stat {
    background: white;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-text {
    color: var(--text-secondary);
    font-weight: 600;
}

.projects {
    background: #1e293b;
}

.light-theme .projects {
    background: var(--light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.light-theme .project-card {
    background: white;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(14, 165, 233, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.light-theme .project-image {
    background: linear-gradient(135deg, var(--primary-light), #e0f2fe);
}

.project-image i {
    z-index: 1;
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(30, 58, 138, 0.8);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.light-theme .project-badge {
    background: white;
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    gap: 12px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.light-theme .team-member {
    background: white;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(14, 165, 233, 0.2));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 40px;
    position: relative;
    overflow: hidden;
}

.light-theme .member-photo {
    background: linear-gradient(135deg, var(--primary-light), #e0f2fe);
}

.member-photo:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 50%;
}

.team-member h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.team-member .role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.team-member p {
    color: var(--text-secondary);
    font-size: 15px;
}

.join {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.join:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 C30,100 70,0 100,100 L100,0 Z" fill="%231d4ed8" opacity="0.2"/></svg>');
    background-size: cover;
}

.join-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.join-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.join-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature i {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--accent);
}

.feature h4 {
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-info {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-light {
    background: white;
    color: var(--primary);
}

.btn-light:hover {
    background: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

footer {
    background: #0f172a;
    color: white;
    padding: 80px 0 30px;
}

.light-theme footer {
    background: var(--dark);
    color: #FFF;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    max-width: 400px;
}

.light-theme .footer-info p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.light-theme .social-link {
    background: rgba(0, 0, 0, 0.1);
    color: #FFF;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-column h4 {
    margin-bottom: 24px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.light-theme .footer-column ul li a {
    color: var(--text-secondary);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.light-theme .footer-column ul li a:hover {
    color: var(--text-secondary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.light-theme .copyright {
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 15px 0;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--header-bg);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        padding: 20px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav ul li {
        margin-bottom: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 150px 0 80px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title h2 {
        font-size: 36px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .btn {
        padding: 14px 24px;
        width: 100%;
        justify-content: center;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}