/* ============================================
   NEXUS - 21st Century Minimal Design
   iOS Glassmorphism & Advanced Motion
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Base Palette - Deep Space */
    --bg-main: #030305;
    --bg-glass: rgba(255, 255, 255, 0.02);
    --bg-glass-strong: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    
    /* Accents - Subtle & Sophisticated */
    --accent-primary: #fff;
    --accent-glow: rgba(255, 255, 255, 0.15);
    --accent-gradient: linear-gradient(135deg, #e0e0e0 0%, #757575 100%);
    
    /* Glass Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-highlight: rgba(255, 255, 255, 0.15);
    
    /* Animation Curves - Apple Style */
    --ease-spring: cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 70px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ============================================
   Background Effects
   ============================================ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Glass Header
   ============================================ */
.nav-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: var(--container-width);
    height: var(--header-height);
    z-index: 100;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: all 0.4s var(--ease-spring);
}

.nav-header.scrolled {
    background: rgba(10, 10, 12, 0.85);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    border-color: var(--border-highlight);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo svg {
    color: var(--text-primary);
}

.desktop-nav {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    padding: 4px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s var(--ease-expo);
}

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

.btn-primary {
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-expo) 0.2s forwards;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.05;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-expo) 0.3s forwards;
}

.text-gradient {
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-expo) 0.4s forwards;
}

.cta-group {
    display: flex;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-expo) 0.5s forwards;
}

.btn-glass {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-spring);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-glass:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

/* ============================================
   Glass Cards
   ============================================ */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 60px;
    opacity: 0; /* JS handles reveal */
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
}

.section-header.in-view {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s var(--ease-spring);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-highlight);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Team Section
   ============================================ */
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #111);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.social-icon {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--text-primary);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-wrapper {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 32px;
    padding: 80px;
    text-align: center;
    backdrop-filter: blur(20px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 24px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ============================================
   Keyframes
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .nav-header {
        top: 0;
        width: 100%;
        border-radius: 0;
        border-top: none;
        border-left: none;
        border-right: none;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .contact-wrapper {
        padding: 40px 24px;
    }
}
