/* ===================================
   A'tech Builder — ASCEND STYLE
   Pure Black · White · Grain · Editorial Serif · 3D
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Sophisticated Deep Slate Base */
    --bg-primary: #0f1118;
    --bg-secondary: #161923;
    --bg-tertiary: #1c212e;
    --bg-card: rgba(22, 25, 35, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Text — Softened for readability */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accent — elegant sky glow */
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.05);
    --accent-cyan: rgba(56, 189, 248, 0.08);

    --white: #ffffff;
    --dark: #000000;
    --silver: rgba(255, 255, 255, 0.6);
    --emerald: #10b981;
    --red: #ef4444;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.15);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 60px rgba(56, 189, 248, 0.03), 0 10px 40px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout */
    --section-padding: 150px 0;
    --container-max: 1200px;
    --container-padding: 0 40px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-heavy: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: all 0.4s var(--ease-out); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
::selection { background: rgba(56, 189, 248, 0.2); color: #fff; }

/* --- Grain Overlay --- */
body::before {
    content: ''; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* --- 3D Vignette Glow --- */
body::after {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
}

/* --- Layout --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: var(--container-padding); }
.section { padding: var(--section-padding); position: relative; z-index: 1; }

/* Alternating white shade sections */
.section:nth-child(even) { background: rgba(255, 255, 255, 0.012); }
.section:nth-child(4n+3) { background: rgba(255, 255, 255, 0.006); }
.section--shade {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%) !important;
    position: relative;
    overflow: hidden;
}
.section--shade::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 70%);
}

/* Section headers — LEFT ALIGNED, Editorial */
.section-header {
    text-align: left;
    margin-bottom: 80px;
    max-width: 700px;
}

.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    font-size: 0.65rem; font-weight: 500; color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase; letter-spacing: 5px;
    margin-bottom: 28px;
    font-family: var(--font-sans);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section-title em {
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-weight: 300;
    max-width: 500px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Background FX --- */
.bg-glow {
    position: absolute; width: 600px; height: 600px; border-radius: 50%;
    filter: blur(140px); opacity: 0.1; pointer-events: none; z-index: 0;
    transition: transform 1.5s var(--ease-heavy);
    animation: glowDrift 14s ease-in-out infinite alternate;
}
.bg-glow--blue { background: #4d8eff; }
.bg-glow--purple { background: rgba(255, 255, 255, 0.4); }
.bg-glow--pink { background: #ffffff; }
@keyframes glowDrift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(40px, -30px) scale(1.2); } }

/* Grid */
.grid-bg {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 140px 140px;
}
.grid-bg::after {
    content: ''; position: fixed; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 15%, transparent 85%, var(--bg-primary) 100%);
}

/* Cursor */
.cursor-glow {
    position: fixed; width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.025) 0%, transparent 70%);
    pointer-events: none; z-index: 1; transform: translate(-50%, -50%);
    will-change: left, top;
}

/* Floating background shapes — ambient motion */
.hero::before {
    content: ''; position: absolute; top: 15%; right: 8%;
    width: 350px; height: 350px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    animation: orbitSpin 40s linear infinite;
    pointer-events: none; z-index: 0;
}

/* Light streaks — "White Shades" that move */
.light-streak {
    position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.035) 50%, transparent 52%);
    pointer-events: none; z-index: 0; transform: rotate(-15deg);
    animation: streakMove 18s linear infinite;
}
@keyframes streakMove {
    0% { transform: translate(-30%, -30%) rotate(-15deg); }
    100% { transform: translate(30%, 30%) rotate(-15deg); }
}
.hero .bg-glow--blue {
    animation: glowDrift 8s ease-in-out infinite alternate, glowPulse 6s ease-in-out infinite;
}
.hero .bg-glow--purple {
    animation: glowDrift 10s ease-in-out infinite alternate-reverse, glowPulse 8s ease-in-out infinite;
    animation-delay: -3s;
}
@keyframes glowPulse { 0%, 100% { opacity: 0.05; } 50% { opacity: 0.1; } }

/* --- NAVBAR — Centered pill (Ascend style) --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 24px 0;
    transition: all 0.6s var(--ease-out);
}
.navbar.scrolled {
    padding: 14px 0;
    background: rgba(15, 17, 24, 0.75);
    backdrop-filter: blur(24px) saturate(1.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.nav-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-weight: 400; font-size: 1.4rem; letter-spacing: -0.01em; }
.nav-logo img { width: 32px; height: 32px; border-radius: var(--radius-sm); }
.nav-logo span { color: var(--text-primary); }

.nav-links {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 4px;
}
.nav-links a {
    font-size: 0.78rem; font-weight: 400; color: rgba(255, 255, 255, 0.45);
    position: relative; padding: 8px 16px;
    letter-spacing: 0.3px; border-radius: var(--radius-full);
    transition: all 0.4s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-links a::after { display: none; }

.nav-cta {
    background: #fff !important; color: #000 !important;
    font-weight: 500 !important; padding: 8px 20px !important;
    border-radius: var(--radius-full) !important;
}
.nav-cta:hover { opacity: 0.9 !important; transform: scale(1.02); }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 8px; }
.nav-hamburger span { width: 22px; height: 1.5px; background: #fff; border-radius: 1px; transition: all 0.3s var(--ease-out); }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* --- HERO — Full-screen, centered editorial --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; padding-top: 60px; overflow: hidden;
    text-align: center;
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.68rem; font-weight: 400; color: rgba(255, 255, 255, 0.4);
    margin-bottom: 48px;
    letter-spacing: 3px; text-transform: uppercase;
    font-family: var(--font-sans);
    animation: fadeInUp 1s var(--ease-expo) 0.2s both;
}
.hero-badge .dot {
    width: 6px; height: 6px; background: var(--emerald); border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 8vw, 7rem);
    font-weight: 300;
    line-height: 1.0;
    margin-bottom: 40px;
    animation: heroReveal 1.6s var(--ease-expo) 0.3s both;
    letter-spacing: -0.02em;
    color: #fff;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .highlight {
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    position: relative; display: inline-block;
}

/* Shimmer sweep */
.hero-title .highlight::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.04) 45%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 55%, transparent 70%);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text;
    animation: shimmerSweep 6s ease-in-out infinite;
}
@keyframes shimmerSweep { 0% { background-position: 300% 0; } 100% { background-position: -300% 0; } }

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(60px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-description {
    font-size: 1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto;
    animation: fadeInUp 1s var(--ease-expo) 0.9s both;
    line-height: 2; font-weight: 300;
}

.hero-buttons {
    display: flex; gap: 16px; margin-top: 56px; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 1s var(--ease-expo) 1.1s both;
}

/* Buttons — White pill (Ascend style) */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
    border-radius: var(--radius-full); font-family: var(--font-sans);
    font-size: 0.85rem; font-weight: 500; cursor: pointer; border: none;
    transition: all 0.5s var(--ease-out); position: relative; overflow: hidden;
    letter-spacing: 0.3px;
}
.btn-primary {
    background: #fff; color: #000;
}
.btn-primary:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.08);
}
.btn-primary:hover i { transform: translateX(3px); }
.btn-primary i { transition: transform 0.4s var(--ease-out); }

.btn-secondary {
    background: transparent; color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
    transform: scale(1.03) translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex; gap: 64px; margin-top: 100px; justify-content: center;
    animation: fadeInUp 1s var(--ease-expo) 1.3s both;
}
.hero-stat { position: relative; text-align: center; }
.hero-stat::after {
    content: ''; position: absolute; right: -32px; top: 50%; transform: translateY(-50%);
    width: 1px; height: 40px; background: rgba(255, 255, 255, 0.1);
}
.hero-stat:last-child::after { display: none; }
.hero-stat .number {
    font-family: var(--font-serif); font-size: 3rem; font-weight: 300;
    color: #fff; line-height: 1.1;
}
.hero-stat .label {
    font-size: 0.7rem; color: rgba(255, 255, 255, 0.3); margin-top: 6px;
    letter-spacing: 3px; text-transform: uppercase; font-weight: 400;
}

/* Particles & Canvas */
.particles-container { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.particle { position: absolute; background: rgba(255,255,255,0.4); border-radius: 50%; opacity: 0.03; animation: float linear infinite; }
#neuralCanvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* Orbitals */
.hero-orbitals { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; pointer-events: none; z-index: 0; }
.orbital-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.02); animation: orbitSpin linear infinite; }
.orbital-ring:nth-child(1) { inset: 0; animation-duration: 60s; }
.orbital-ring:nth-child(2) { inset: 100px; animation-duration: 80s; animation-direction: reverse; }
.orbital-ring:nth-child(3) { inset: 220px; animation-duration: 100s; }
.orbital-ring::before { content: ''; position: absolute; width: 3px; height: 3px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; top: -1.5px; left: 50%; }
@keyframes orbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Section Dividers */
.section-divider {
    width: 100%; height: 1px; border: none; margin: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
}

/* --- CARDS — Glassmorphic editorial --- */
.team-card, .project-card, .education-card, .skill-card, .cert-card, .competency-item, .timeline-card {
    background: rgba(22, 25, 35, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    transition: all 0.5s var(--ease-out);
    position: relative; overflow: hidden;
}

/* Inner glow on mouse */
.team-card::after, .timeline-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.01), transparent 40%);
    pointer-events: none; opacity: 0; transition: opacity 0.6s;
}
.team-card:hover::after, .timeline-card:hover::before { opacity: 1; }

/* Top accent bar */
.team-card::before, .education-card::before, .project-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0; transition: opacity 0.6s;
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team-card { border-radius: var(--radius-xl); padding: 48px; transform-style: preserve-3d; }
.team-card:hover { border-color: rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.team-card:hover::before { opacity: 1; }
.team-card-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.team-avatar { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); padding: 2px; }
.team-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: grayscale(40%); transition: filter 0.6s; }
.team-card:hover .team-avatar img { filter: grayscale(0%); }
.team-info h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; }
.team-role { font-size: 0.78rem; color: rgba(255,255,255,0.35); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-sans); }
.team-bio { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 24px; line-height: 1.9; font-weight: 300; }
.team-links { display: flex; gap: 8px; }
.team-link {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4); transition: all 0.5s var(--ease-out);
}
.team-link:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); color: #fff; transform: translateY(-3px); }

/* Skills */
.skills-tabs { display: flex; justify-content: flex-start; gap: 6px; margin-bottom: 48px; flex-wrap: wrap; }
.skills-tab {
    padding: 8px 20px; border-radius: var(--radius-full);
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4); font-size: 0.78rem; font-weight: 400;
    cursor: pointer; transition: all 0.4s var(--ease-out); font-family: var(--font-sans);
    letter-spacing: 0.5px;
}
.skills-tab:hover { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.7); }
.skills-tab.active { background: #fff; border-color: #fff; color: #000; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.skill-card { border-radius: var(--radius-lg); padding: 22px; }
.skill-card::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); opacity: 0; transition: all 0.5s; }
.skill-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.15); box-shadow: var(--shadow-glow); }
.skill-card:hover::before { opacity: 1; left: 0; right: 0; }
.skill-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.skill-icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.skill-level { font-size: 0.6rem; font-weight: 500; padding: 3px 9px; border-radius: var(--radius-full); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.4); letter-spacing: 1px; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.06); }
.skill-name { font-weight: 400; font-size: 0.9rem; margin-bottom: 10px; font-family: var(--font-sans); }
.skill-bar-track { height: 1px; background: rgba(255,255,255,0.04); border-radius: 1px; overflow: hidden; }
.skill-bar-fill { height: 100%; background: linear-gradient(90deg, rgba(255,255,255,0.2), #fff); border-radius: 1px; width: 0; transition: width 2.5s var(--ease-out); }
.skill-bar-fill::after { content: ''; position: absolute; right: 0; top: -4px; width: 6px; height: 6px; background: rgba(255,255,255,0.15); border-radius: 50%; filter: blur(2px); opacity: 0; transition: opacity 0.5s 2s; }
.skill-card[data-visible="true"] .skill-bar-fill { width: var(--fill); }
.skill-card[data-visible="true"] .skill-bar-fill::after { opacity: 1; }

/* Timeline */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%); top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1) 10%, rgba(255,255,255,0.1) 90%, transparent); }
.timeline-item { display: flex; align-items: flex-start; margin-bottom: 48px; position: relative; }
.timeline-item:nth-child(odd) { flex-direction: row-reverse; text-align: right; }
.timeline-item:nth-child(odd) .timeline-content { margin-left: 0; margin-right: 48px; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 48px; }
.timeline-dot { position: absolute; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: #f8fafc; border: 3px solid var(--bg-primary); z-index: 1; box-shadow: 0 0 20px rgba(255,255,255,0.05); }
.timeline-content { flex: 1; max-width: calc(50% - 48px); }
.timeline-card { border-radius: var(--radius-lg); padding: 28px; }
.timeline-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.1); box-shadow: var(--shadow-glow); }
.timeline-date { font-size: 0.68rem; color: rgba(255,255,255,0.3); font-weight: 400; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 8px; font-family: var(--font-sans); }
.timeline-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; margin-bottom: 4px; }
.timeline-company { font-size: 0.8rem; color: var(--text-secondary); font-weight: 300; margin-bottom: 12px; }
.timeline-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.8; font-weight: 300; }
.timeline-person-badge { display: inline-block; font-size: 0.6rem; font-weight: 500; padding: 3px 10px; border-radius: var(--radius-full); margin-bottom: 8px; letter-spacing: 1.5px; text-transform: uppercase; }
.badge-arpit { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.05); }
.badge-ansh { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.05); }

/* Projects */
.projects-filter { display: flex; justify-content: flex-start; gap: 6px; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn { padding: 7px 18px; border-radius: var(--radius-full); background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); font-size: 0.78rem; font-weight: 400; cursor: pointer; transition: all 0.4s var(--ease-out); font-family: var(--font-sans); }
.filter-btn:hover { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.7); }
.filter-btn.active { background: #fff; border-color: #fff; color: #000; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(370px, 1fr)); gap: 20px; }
.project-card { border-radius: var(--radius-xl); transform-style: preserve-3d; }
.project-card:hover { border-color: rgba(255,255,255,0.1); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.project-card:hover::after { opacity: 1; }
.project-image { position: relative; height: 230px; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter 0.8s; filter: grayscale(60%) contrast(1.1) brightness(0.8); }
.project-card:hover .project-image img { transform: scale(1.05); filter: grayscale(0%) contrast(1.0) brightness(1.0); }
.project-image-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.9)); }
.project-badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.project-person-badge { font-size: 0.6rem; font-weight: 500; padding: 4px 10px; border-radius: var(--radius-full); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.06); letter-spacing: 0.5px; background: rgba(0,0,0,0.4); }
.project-body { padding: 24px; }
.project-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 400; margin-bottom: 8px; }
.project-desc { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; font-weight: 300; }
.project-tech { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tech-tag { font-size: 0.65rem; font-weight: 400; padding: 3px 10px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.4); font-family: var(--font-mono); letter-spacing: 0.3px; }
.project-links { display: flex; gap: 12px; }
.project-link { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 400; color: #fff; transition: all 0.4s var(--ease-out); opacity: 0.6; }
.project-link:hover { opacity: 1; transform: translateX(4px); }
.project-link:hover i { transform: translateX(3px); }
.project-link i { transition: transform 0.4s var(--ease-out); }

/* Education */
.education-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.education-card { border-radius: var(--radius-xl); padding: 36px; }
.education-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: rgba(255,255,255,0.1); }
.education-card:hover::before { opacity: 1; }
.education-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; }
.education-degree { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; margin-bottom: 4px; }
.education-institution { font-size: 0.85rem; color: var(--text-secondary); font-weight: 300; margin-bottom: 4px; }
.education-year { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }

/* Certificates */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.cert-card { border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: flex-start; gap: 14px; }
.cert-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.1); box-shadow: var(--shadow-glow); }
.cert-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.cert-info h4 { font-size: 0.85rem; font-weight: 400; margin-bottom: 3px; }
.cert-info p { font-size: 0.7rem; color: var(--text-muted); font-weight: 300; }

/* Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { padding: 48px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-xl); }
.contact-info h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; margin-bottom: 16px; }
.contact-info p { color: var(--text-secondary); margin-bottom: 36px; line-height: 1.9; font-size: 0.9rem; font-weight: 300; }
.contact-methods { display: flex; flex-direction: column; gap: 12px; }
.contact-method { display: flex; align-items: center; gap: 16px; padding: 14px; background: rgba(255,255,255,0.015); border: 1px solid rgba(255,255,255,0.04); border-radius: var(--radius-md); transition: all 0.5s var(--ease-out); }
.contact-method:hover { border-color: rgba(255,255,255,0.1); transform: translateX(6px); }
.contact-method-icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-method-text strong { display: block; font-size: 0.72rem; margin-bottom: 2px; color: rgba(255,255,255,0.3); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
.contact-method-text span { font-size: 0.84rem; color: #fff; font-weight: 300; }

.contact-form { padding: 48px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-xl); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.72rem; font-weight: 400; color: rgba(255,255,255,0.3); margin-bottom: 8px; letter-spacing: 1px; text-transform: uppercase; }
.form-control { width: 100%; padding: 14px 16px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); color: #fff; font-family: var(--font-sans); font-size: 0.88rem; transition: all 0.4s var(--ease-out); outline: none; font-weight: 300; }
.form-control:focus { border-color: rgba(255,255,255,0.2); box-shadow: 0 0 0 3px rgba(255,255,255,0.02); }
.form-control::placeholder { color: rgba(255,255,255,0.15); }
textarea.form-control { min-height: 120px; resize: vertical; }

.form-submit { width: 100%; padding: 16px; background: #fff; border: none; border-radius: var(--radius-full); color: #000; font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.5s var(--ease-out); letter-spacing: 0.3px; }
.form-submit:hover { transform: scale(1.02) translateY(-2px); box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1); }

/* Footer */
.footer { padding: 48px 0 24px; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 400; font-size: 1rem; }
.footer-logo img { width: 24px; height: 24px; border-radius: var(--radius-sm); }
.footer-text { font-size: 0.72rem; color: rgba(255,255,255,0.2); font-weight: 300; }
.footer-socials { display: flex; gap: 8px; }
.footer-social { width: 34px; height: 34px; border-radius: 50%; background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.4); transition: all 0.5s var(--ease-out); }
.footer-social:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); color: #fff; transform: translateY(-3px); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); } }
@keyframes float { 0% { transform: translateY(100vh); opacity: 0; } 10% { opacity: 0.03; } 90% { opacity: 0.03; } 100% { transform: translateY(-100vh); opacity: 0; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

/* Scroll reveals — snappier for light theme */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.9s var(--ease-expo); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: all 0.9s var(--ease-expo); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: all 0.9s var(--ease-expo); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.96); transition: all 0.9s var(--ease-expo); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.reveal-delay-1 { transition-delay: 0.15s; } .reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; } .reveal-delay-4 { transition-delay: 0.6s; }

/* Competencies */
.competencies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.competency-item { border-radius: var(--radius-md); padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.competency-item:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.1); box-shadow: var(--shadow-glow); }
.competency-icon { font-size: 1.05rem; }
.competency-text { font-size: 0.82rem; font-weight: 300; }

/* Order Button — white pill */
.btn-order { background: #fff; color: #000; }
.btn-order:hover { transform: scale(1.03) translateY(-2px); box-shadow: 0 12px 40px rgba(255, 255, 255, 0.1); }
.btn-order i, .btn-order span { position: relative; z-index: 1; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.85); backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.5s var(--ease-out); padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-container { position: relative; width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto; background: var(--bg-secondary); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-xl); padding: 48px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8); transform: translateY(40px) scale(0.95); transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal-overlay.active .modal-container { transform: translateY(0) scale(1); }
.modal-container::-webkit-scrollbar { width: 3px; }
.modal-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }
.modal-glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; filter: blur(140px); opacity: 0.015; pointer-events: none; }
.modal-glow--1 { background: #6eb4ff; top: -100px; right: -80px; }
.modal-glow--2 { background: #fff; bottom: -100px; left: -80px; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.4s var(--ease-out); z-index: 2; }
.modal-close:hover { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.12); color: var(--red); transform: rotate(90deg); }
.modal-header { text-align: left; margin-bottom: 36px; }
.modal-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-full); font-size: 0.65rem; font-weight: 500; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; letter-spacing: 4px; margin-bottom: 16px; }
.modal-title { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 400; color: #fff; margin-bottom: 8px; }
.modal-subtitle { font-size: 0.88rem; color: var(--text-secondary); font-weight: 300; }

/* Steps */
.form-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 36px; }
.form-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); background: transparent; color: rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 500; transition: all 0.4s; }
.form-step.active .step-num { background: #fff; border-color: #fff; color: #000; }
.step-label { font-size: 0.65rem; font-weight: 300; color: rgba(255, 255, 255, 0.3); }
.form-step.active .step-label { color: #fff; }
.form-step-line { width: 80px; height: 1px; background: rgba(255, 255, 255, 0.1); margin: 0 12px; margin-bottom: 22px; position: relative; overflow: hidden; }
.form-step-line::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 0; background: #fff; transition: width 0.6s var(--ease-out); }
.form-step-line.active::after { width: 100%; }

.order-step { animation: fadeInUp 0.5s var(--ease-out); }
.order-step.hidden { display: none; }
.order-label { display: block; font-size: 0.88rem; font-weight: 400; color: #fff; margin-bottom: 8px; }
.order-hint { font-size: 0.76rem; color: rgba(255, 255, 255, 0.3); margin-bottom: 20px; font-weight: 300; }
.optional-tag { font-weight: 300; color: rgba(255, 255, 255, 0.2); font-size: 0.72rem; }

.service-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 32px; }
.service-chip { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-md); color: rgba(255, 255, 255, 0.45); cursor: pointer; transition: all 0.4s var(--ease-out); font-family: var(--font-sans); font-size: 0.82rem; font-weight: 300; position: relative; overflow: hidden; }
.service-chip:hover { border-color: rgba(255, 255, 255, 0.15); }
.service-chip.selected { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); color: #fff; }
.service-chip.selected::after { content: '✓'; position: absolute; top: 8px; right: 10px; font-size: 0.65rem; color: #fff; font-weight: 500; }
.chip-icon { font-size: 1.15rem; position: relative; z-index: 1; flex-shrink: 0; }
.chip-text { position: relative; z-index: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-form select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; cursor: pointer; }

.order-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.04); }
.order-next-btn, .order-back-btn, .order-submit-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-full); font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500; cursor: pointer; border: none; transition: all 0.4s var(--ease-out); letter-spacing: 0.3px; }
.order-next-btn { background: #fff; color: #000; }
.order-next-btn:hover { transform: scale(1.03); }
.order-back-btn { background: transparent; color: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); }
.order-back-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.order-submit-btn { background: #fff; color: #000; font-weight: 600; padding: 14px 32px; }
.order-submit-btn:hover { transform: scale(1.03); box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1); }

@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }

/* Preloader — Premium Shutter Reveal */
.preloader {
    position: fixed; inset: 0; z-index: 100000;
    background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: visibility 1.2s;
}
.preloader-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 24px;
    transition: opacity 0.8s var(--ease-out);
}
.preloader-logo {
    width: 50px; height: 50px; border-radius: var(--radius-sm);
    animation: preloaderPulse 2s ease-in-out infinite;
}
.preloader-bar { width: 80px; height: 1px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.preloader-fill { width: 30%; height: 100%; background: #fff; animation: preloaderScan 1.5s ease-in-out infinite; }
.preloader-text {
    font-size: 0.6rem; color: rgba(255, 255, 255, 0.35); font-weight: 400;
    letter-spacing: 6px; text-transform: uppercase;
    animation: textSpacing 3s var(--ease-expo) infinite alternate;
}
@keyframes textSpacing { from { letter-spacing: 4px; opacity: 0.1; } to { letter-spacing: 12px; opacity: 0.4; } }

.preloader-shutter {
    position: absolute; inset: 0; background: var(--bg-primary); z-index: 1;
    transform: translateY(0); transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}
.preloader.hidden { visibility: hidden; }
.preloader.hidden .preloader-content { opacity: 0; }
.preloader.hidden .preloader-shutter { transform: translateY(-100%); }

@keyframes preloaderPulse { 0%, 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes preloaderScan { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

/* --- Responsive --- */
@media (max-width: 1024px) { .team-grid { grid-template-columns: 1fr; } .contact-wrapper { grid-template-columns: 1fr; } .hero-orbitals { width: 500px; height: 500px; } }
@media (max-width: 768px) {
    .nav-links { position: fixed; inset: 0; background: rgba(15, 17, 24, 0.98); backdrop-filter: blur(24px); flex-direction: column; justify-content: center; gap: 20px; opacity: 0; visibility: hidden; transition: all 0.5s var(--ease-out); border: none; border-radius: 0; padding: 0; }
    .nav-links.open { opacity: 1; visibility: visible; }
    .nav-links a { font-size: 1.1rem; background: none !important; padding: 12px 24px; }
    .nav-hamburger { display: flex; }
    .hero-title { font-size: clamp(2.4rem, 9vw, 4rem); }
    .hero-stats { flex-direction: column; gap: 20px; }
    .hero-stat::after { display: none; }
    .hero-orbitals { display: none; }
    .timeline::before { left: 20px; } .timeline-dot { left: 20px; }
    .timeline-item, .timeline-item:nth-child(odd) { flex-direction: column; text-align: left; }
    .timeline-item:nth-child(odd) .timeline-content, .timeline-item:nth-child(even) .timeline-content { margin-left: 52px; margin-right: 0; max-width: 100%; }
    .projects-grid, .education-grid, .skills-grid, .certs-grid { grid-template-columns: 1fr; }
    .section { padding: 100px 0; }
    .section-header { margin-bottom: 56px; }
    .modal-container { padding: 32px 24px; } .modal-title { font-size: 1.5rem; }
    .service-chips, .form-row { grid-template-columns: 1fr; }
    .form-step-line { width: 40px; }
    .cursor-glow { display: none; } .bg-glow { display: none; } body::after { display: none; }
}
@media (max-width: 480px) { .hero-buttons { flex-direction: column; align-items: stretch; } .btn { width: 100%; justify-content: center; } .competencies-grid { grid-template-columns: 1fr; } .modal-container { padding: 24px 16px; } .order-nav { flex-direction: column; gap: 12px; } .order-nav > * { width: 100%; text-align: center; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; } .hero-orbitals { display: none; } body::before { display: none; } body::after { display: none; } }
