/* ==========================================
   ReDefiArm - Professional CSS Styles
   NASA Conrad Challenge 2025-2026 Innovation Stage
   ========================================== */

/* Root Variables */
:root {
    --color-primary: #3B82F6;
    --color-secondary: #06B6D4;
    --color-accent: #10B981;
    --color-dark: #0a0a0a;
    --color-light: #ffffff;
    --color-gray: #6B7280;
    --color-gray-light: #9CA3AF;
    --color-gray-dark: #4B5563;
    
    --gradient-blue-cyan: linear-gradient(135deg, #3B82F6 0%, #06B6D4 50%, #10B981 100%);
    --gradient-cyan-blue: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --gradient-green: linear-gradient(135deg, #10B981 0%, #059669 100%);
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 24px rgba(59, 130, 246, 0.15);
    --shadow-xl: 0 20px 40px rgba(59, 130, 246, 0.25);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-dark);
    color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================
   Preloader Styles
   ========================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: preloader-fade 0.5s ease-out forwards;
}

@keyframes preloader-fade {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: loader-spin 1s linear infinite;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   Container
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

/* ==========================================
   Navigation Styles
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue-cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

.highlight {
    color: var(--color-secondary);
}

.gradient-text {
    background: var(--gradient-blue-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
}

.nav-link {
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-light);
    border-radius: 8px;
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

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

.nav-link.active {
    color: var(--color-secondary);
}

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

.contact-btn {
    background: var(--gradient-blue-cyan);
    color: var(--color-light);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-light);
    border-radius: 2px;
    margin: 5px 0;
    transition: all var(--transition-normal);
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        padding: 8px;
    }
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .mobile-menu-overlay.open {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 40px;
}

.mobile-nav-link {
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--color-primary);
    transform: translateX(5px);
}

/* ==========================================
   Hero Section Styles
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000 0%, #0a0a0a 50%, #000 100%);
    z-index: -1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.particle-1 { top: 10%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 20%; right: 15%; animation-delay: 4s; }
.particle-3 { top: 40%; left: 20%; animation-delay: 8s; }
.particle-4 { bottom: 30%; right: 25%; animation-delay: 12s; }
.particle-5 { bottom: 20%; left: 30%; animation-delay: 16s; }

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.pulse-dot {
    position: relative;
    width: 12px;
    height: 12px;
    background: var(--color-secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-light);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.title-line-1 {
    display: block;
}

.title-line-2 {
    display: block;
    margin-left: 100px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-light);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin: 40px 0 48px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-blue-cyan);
    color: var(--color-light);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.btn-outline {
    background: transparent;
    color: var(--color-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-secondary);
}

.btn-outline svg {
    width: 20px;
    height: 20px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-link {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-light);
}

.btn-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 1s both;
}

@media (min-width: 640px) {
    .hero-stats {
        gap: 30px;
    }
}

.stat-card {
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-1 .stat-value { color: #10B981; }
.stat-2 .stat-value { color: #3B82F6; }
.stat-3 .stat-value { color: #06B6D4; }

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-icon {
    width: 24px;
    height: 24px;
    color: var(--color-gray);
    animation: bounce 2s ease-in-out infinite;
}

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

/* ==========================================
   Section Styles
   ========================================== */
.section {
    padding: 80px 0;
    position: relative;
}

@media (min-width: 768px) {
    .section {
        padding: 100px 0;
    }
}

.section-dark {
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
}

.section-gradient {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid;
    border-radius: 30px;
    margin-bottom: 20px;
}

.badge-red { border-color: #EF4444; background: rgba(239, 68, 68, 0.1); }
.badge-green { border-color: #10B981; background: rgba(16, 185, 129, 0.1); }
.badge-blue { border-color: #3B82F6; background: rgba(59, 130, 246, 0.1); }
.badge-purple { border-color: #8B5CF6; background: rgba(139, 92, 246, 0.1); }
.badge-pink { border-color: #EC4899; background: rgba(236, 72, 153, 0.1); }
.badge-cyan { border-color: #06B6D4; background: rgba(6, 182, 212, 0.1); }

.section-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.badge-red span { color: #F87171; }
.badge-green span { color: #10B981; }
.badge-blue span { color: #3B82F6; }
.badge-purple span { color: #8B5CF6; }
.badge-pink span { color: #EC4899; }
.badge-cyan span { color: #06B6D4; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-light);
    margin-bottom: 16px;
}

.section-divider {
    width: 100px;
    height: 4px;
    background: var(--gradient-blue-cyan);
    margin: 0 auto 24px;
    border-radius: 2px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-gray-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================
   Grid System
   ========================================== */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   Card Styles
   ========================================== */
.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-normal);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-secondary);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.icon-red { background: linear-gradient(135deg, #EF4444 0%, #F97316 100%); }
.icon-yellow { background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%); }
.icon-blue { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%); }
.icon-green { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.icon-purple { background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%); }
.icon-pink { background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%); }
.icon-cyan { background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%); }

.card-content {
    flex: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 12px;
}

.card-description {
    font-size: 0.9375rem;
    color: var(--color-gray);
    line-height: 1.7;
}

/* ==========================================
   Comparison Styles
   ========================================== */
.comparison-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.comparison-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.comparison-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-light);
}

.comparison-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-light);
}

.comparison-subtitle {
    font-size: 0.875rem;
    color: var(--color-secondary);
}

.comparison-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comparison-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-item.highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-color: var(--color-accent);
}

.comparison-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray);
    margin-bottom: 8px;
}

.comparison-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-light);
}

.comparison-vs {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-gray);
}

.comparison-percent {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.comparison-desc {
    font-size: 0.9375rem;
    color: var(--color-gray);
    line-height: 1.7;
}

/* ==========================================
   Features Styles
   ========================================== */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 8px;
}

.feature-description {
    font-size: 0.875rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ==========================================
   Tech Card Styles
   ========================================== */
.tech-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.tech-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tech-icon svg {
    width: 28px;
    height: 28px;
}

.tech-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 16px;
}

.tech-description {
    font-size: 0.875rem;
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-blue { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.tag-cyan { background: rgba(6, 182, 212, 0.1); color: #06B6D4; }
.tag-green { background: rgba(16, 185, 129, 0.1); color: #10B981; }

.tech-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.step:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.step-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.step span {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.tech-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.tech-comparison-item {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray);
}

.tech-comparison-arrow {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.tech-comparison-result {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* ==========================================
   Team Section Styles
   ========================================== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Team Photo Section */
.team-photo-section {
    margin-bottom: 48px;
}

.team-photo-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 32px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--gradient-blue-cyan);
    box-shadow: var(--shadow-xl);
}

.team-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    transition: all var(--transition-normal);
}

.team-photo-wrapper:hover .team-photo {
    transform: scale(1.02);
}

.team-photo-info {
    text-align: center;
    margin-top: 20px;
}

.team-photo-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 8px;
}

.team-photo-location {
    font-size: 1rem;
    color: var(--color-secondary);
}

/* Mentor Card */
.mentor-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    padding: 32px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (min-width: 768px) {
    .mentor-card {
        flex-direction: row;
    }
}

.mentor-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-blue-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.avatar-initials {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-light);
}

.initials-blue { color: #3B82F6; }
.initials-green { color: #10B981; }
.initials-purple { color: #8B5CF6; }
.initials-orange { color: #F59E0B; }
.initials-red { color: #EF4444; }
.initials-cyan { color: #06B6D4; }

.mentor-content {
    flex: 1;
}

.mentor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 4px;
}

.mentor-role {
    font-size: 0.875rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 16px;
}

.mentor-description {
    font-size: 0.9375rem;
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.mentor-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mentor-contributions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.contribution-tag {
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Team Member Cards */
.team-member-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    gap: 20px;
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.member-content {
    flex: 1;
}

.member-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 4px;
}

.member-role {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 12px;
}

.member-description {
    font-size: 0.875rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* Story Card */
.story-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 2px solid rgba(6, 182, 212, 0.2);
    border-radius: 24px;
    padding: 40px;
    margin-top: 48px;
}

.story-header {
    margin-bottom: 24px;
}

.story-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-light);
}

.story-subtitle {
    font-size: 0.875rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-top: 4px;
}

.story-description {
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.8;
}

/* ==========================================
   Gallery Section Styles
   ========================================== */
.gallery-instruction {
    text-align: center;
    margin: 32px auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
}

.gallery-instruction strong {
    color: var(--color-light);
}

.path-code {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    border-radius: 4px;
    margin-left: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d2d 100%);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--color-secondary);
    z-index: 10;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

.gallery-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.gallery-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d2d 100%);
}

.placeholder-text {
    font-size: 0.75rem;
    color: var(--color-gray);
    margin-top: 8px;
}

/* ==========================================
   Impact Section Styles
   ========================================== */
.impact-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.impact-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.impact-icon svg {
    width: 28px;
    height: 28px;
}

.impact-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-light);
}

.impact-description {
    font-size: 0.875rem;
    color: var(--color-gray);
    line-height: 1.7;
    flex: 1;
}

.impact-stat {
    margin-top: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.impact-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.impact-desc {
    font-size: 0.875rem;
    color: var(--color-gray);
}

/* Timeline */
.timeline-section {
    margin-top: 48px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-light);
    text-align: center;
    margin-bottom: 32px;
}

.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-blue-cyan);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
    padding-left: 40px;
}

.timeline-year {
    position: absolute;
    left: -52px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-dark);
    border: 3px solid var(--color-secondary);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.timeline-phase {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.875rem;
    color: var(--color-gray);
}

/* ==========================================
   Contact Section Styles
   ========================================== */
.contact-form-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.contact-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 8px;
}

.contact-form-subtitle {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-bottom: 24px;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--color-light);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-normal);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.form-textarea {
    resize: none;
    min-height: 120px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray);
}

/* Contact Info */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.contact-info-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 20px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-cyan { background: rgba(6, 182, 212, 0.1); }
.icon-blue { background: rgba(59, 130, 246, 0.1); }

.contact-info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-secondary);
}

.contact-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-light);
}

.contact-info-value a {
    color: var(--color-secondary);
    transition: all var(--transition-normal);
}

.contact-info-value a:hover {
    color: var(--color-accent);
}

/* Collaboration */
.collaboration-section {
    margin-top: 24px;
}

.collab-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.collab-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.collab-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-green { background: rgba(16, 185, 129, 0.1); }
.icon-purple { background: rgba(139, 92, 246, 0.1); }
.icon-yellow { background: rgba(245, 158, 11, 0.1); }

.collab-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-light);
}

.collab-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 4px;
}

.collab-desc {
    font-size: 0.875rem;
    color: var(--color-gray);
}

/* Funding */
.funding-card {
    margin-top: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.funding-header {
    margin-bottom: 20px;
}

.funding-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-light);
}

.funding-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.funding-stat {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.funding-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.funding-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
}

.funding-desc {
    font-size: 0.875rem;
    color: var(--color-gray);
    line-height: 1.6;
}

.funding-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.funding-source {
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   Footer Styles
   ========================================== */
.footer {
    background: var(--color-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 48px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-links,
.footer-contact {
    text-align: center;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--color-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: block;
}

.footer-link:hover {
    color: var(--color-light);
}

.footer-link-desc {
    font-size: 0.75rem;
    color: var(--color-gray);
    margin-top: 4px;
}

.footer-email {
    font-size: 0.875rem;
    color: var(--color-gray);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: block;
}

.footer-email:hover {
    color: var(--color-light);
}

.footer-location {
    font-size: 0.75rem;
    color: var(--color-gray);
    margin-top: 4px;
}

.footer-bottom {
    margin-top: 32px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ==========================================
   Lightbox Styles
   ========================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    padding: 20px;
}

.lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    color: var(--color-light);
}

.lightbox-image {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   Back to Top Button
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--gradient-blue-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: var(--color-light);
}

/* ==========================================
   Animation Classes
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* ==========================================
   Responsive Styles
   ========================================== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px 16px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .hero-cta {
        margin: 24px 0 32px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card {
        padding: 24px;
    }
    
    .comparison-card {
        padding: 24px;
    }
    
    .comparison-content {
        gap: 16px;
    }
    
    .tech-card {
        padding: 24px;
    }
    
    .mentor-card {
        padding: 24px;
    }
    
    .team-member-card {
        padding: 24px;
        flex-direction: column;
    }
    
    .member-avatar {
        width: 50px;
        height: 50px;
        margin: 0 auto 16px;
    }
    
    .timeline-item {
        padding-left: 32px;
        padding-bottom: 32px;
    }
    
    .timeline-year {
        left: -42px;
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .contact-form-card,
    .contact-info-card,
    .funding-card {
        padding: 24px;
    }
    
    .collab-card {
        padding: 12px;
    }
    
    .footer-grid {
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}

/* ==========================================
   Custom Scrollbar
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-blue-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    .navbar,
    .mobile-menu-overlay,
    .back-to-top,
    .scroll-indicator,
    .hero-particles {
        display: none !important;
    }
    
    .hero {
        padding: 40px 0;
        min-height: auto;
    }
}
