/* ==========================================================================
   CV ONE-PAGER — styles.css
   Mobile-first, glassmorphism, premium dark design
   ========================================================================== */

/* ── Design Tokens ── */
:root {
    --color-bg:         #070b14;
    --color-surface:    #0d1221;
    --color-border:     rgba(255, 255, 255, 0.07);
    --color-primary:    #5ef0ff;
    --color-secondary:  #8a7eff;
    --color-warm:       #ffb464;
    --color-success:    #50e3c2;
    --color-muted:      rgba(255, 255, 255, 0.35);

    --font-display:     'Plus Jakarta Sans', sans-serif;
    --font-body:        'Inter', sans-serif;
    --font-mono:        'Ubuntu Mono', monospace;

    --radius-sm:  10px;
    --radius-md:  18px;
    --radius-lg:  28px;
    --radius-xl:  40px;

    --transition-fast:   0.18s ease;
    --transition-medium: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow:   0.6s cubic-bezier(0.16, 1, 0.3, 1);

    --container-max:  880px;
    --spacing-xs:     8px;
    --spacing-sm:     16px;
    --spacing-md:     24px;
    --spacing-lg:     40px;
    --spacing-xl:     72px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    background-color: var(--color-bg);
    color: #f0f4ff;
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ── Gradient text ── */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 60%, var(--color-warm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   ANIMATED MESH BACKGROUND
   ========================================================================== */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: drift 18s ease-in-out infinite alternate;
}

.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(94,240,255,0.6), transparent 70%);
    top: -200px; left: -200px;
    animation-delay: 0s;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(138,126,255,0.6), transparent 70%);
    bottom: 0; right: -150px;
    animation-delay: -6s;
}
.orb-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(255,180,100,0.5), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -12s;
}

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -60px) scale(1.08); }
    100% { transform: translate(-30px, 50px) scale(0.95); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ── All content above mesh ── */
section, header, footer, .sticky-bar {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   GLASS CARD
   ========================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-medium);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.glass-card:hover {
    border-color: rgba(94, 240, 255, 0.18);
    box-shadow: 0 0 40px rgba(94, 240, 255, 0.06);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn .material-symbols-outlined { font-size: 1.1rem; }

.btn-primary {
    background: var(--color-primary);
    color: #070b14;
}
.btn-primary:hover {
    background: #7ef5ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(94, 240, 255, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #f0f4ff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-ghost:hover {
    color: #f0f4ff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-lg {
    font-size: 1rem;
    padding: 14px 28px;
}

/* ==========================================================================
   SECTION HEADING
   ========================================================================== */
.section-heading {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.section-label {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(94,240,255,0.25), transparent);
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
}

/* Availability badge */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(80, 227, 194, 0.08);
    border: 1px solid rgba(80, 227, 194, 0.2);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-success);
    letter-spacing: 0.03em;
    animation: fadeInDown 0.6s both;
}

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0 0 rgba(80, 227, 194, 0.6);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(80, 227, 194, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(80, 227, 194, 0); }
    100% { box-shadow: 0 0 0 0 rgba(80, 227, 194, 0); }
}

/* Name */
.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 14vw, 6.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    animation: fadeInUp 0.7s 0.1s both;
}

.name-first { color: #ffffff; }
.name-last  { display: block; }

/* Typing role */
.hero-role {
    font-family: var(--font-mono);
    font-size: clamp(0.95rem, 3vw, 1.25rem);
    color: var(--color-muted);
    animation: fadeInUp 0.7s 0.2s both;
    min-height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.role-prefix { color: rgba(255,255,255,0.5); }

.typing-text {
    color: var(--color-primary);
    font-weight: 700;
}

.cursor-blink {
    color: var(--color-primary);
    font-weight: 300;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Quick facts */
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    animation: fadeInUp 0.7s 0.3s both;
}

.fact-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 6px 14px;
}

.fact-chip .material-symbols-outlined { font-size: 0.95rem; color: var(--color-primary); }

/* CTAs */
.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.7s 0.4s both;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.2);
    animation: bounce 2s infinite;
}

.scroll-hint .material-symbols-outlined { font-size: 2rem; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* Entrance animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   IMPACT NUMBERS
   ========================================================================== */
.impact-section {
    padding: var(--spacing-lg) 0;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.impact-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: border-color var(--transition-fast), box-shadow var(--transition-medium);
}

.impact-card:hover {
    border-color: rgba(94,240,255,0.2);
    box-shadow: 0 0 30px rgba(94,240,255,0.05);
}

.impact-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.impact-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-muted);
    line-height: 1.3;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-section {
    padding: var(--spacing-md) 0 var(--spacing-lg);
}

.about-card {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    align-items: flex-start;
}

.about-icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(94,240,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.about-icon .material-symbols-outlined { font-size: 1.5rem; }

.about-text { flex: 1; }

.about-pitch {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.about-pitch strong { color: var(--color-primary); font-weight: 600; }

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    padding: 6px 14px;
    transition: all var(--transition-fast);
}

.contact-chip:not(.no-link):hover {
    color: var(--color-primary);
    border-color: rgba(94,240,255,0.25);
    background: rgba(94,240,255,0.06);
}

.contact-chip .material-symbols-outlined { font-size: 0.95rem; }

/* ==========================================================================
   EXPERIENCE TIMELINE
   ========================================================================== */
.experience-section {
    padding: var(--spacing-lg) 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 28px;
    width: 20px;
}

.marker-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--color-bg);
    box-shadow: 0 0 12px rgba(94,240,255,0.6);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.marker-dot--muted {
    background: rgba(255,255,255,0.2);
    box-shadow: none;
}

.marker-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(to bottom, rgba(94,240,255,0.3), rgba(94,240,255,0.05));
    margin-top: 4px;
    min-height: 30px;
}

.timeline-card {
    flex: 1;
    margin-bottom: 12px;
    padding: var(--spacing-md);
}

/* Role header */
.role-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.role-meta { flex: 1; }

.role-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
}

.company-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
}

.role-type { color: var(--color-muted); font-weight: 400; }

.role-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.role-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-muted);
    white-space: nowrap;
}

.expand-icon {
    font-size: 1.1rem;
    color: var(--color-muted);
    transition: transform var(--transition-fast);
}

.role-header[aria-expanded="true"] .expand-icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* Bullets */
.role-bullets {
    margin-top: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    max-height: 600px;
    transition: max-height var(--transition-medium), opacity var(--transition-medium), margin var(--transition-fast);
    opacity: 1;
}

.role-bullets.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.role-bullets li {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
    padding-left: 18px;
    position: relative;
}

.role-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.6;
}

.role-bullets li strong {
    color: rgba(255,255,255,0.92);
    font-weight: 600;
}

/* ==========================================================================
   SKILLS
   ========================================================================== */
.skills-section {
    padding: var(--spacing-lg) 0;
}

.skill-groups {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.skill-group { }

.skill-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-muted);
    margin-bottom: 10px;
}

.skill-group-label .material-symbols-outlined {
    font-size: 1rem;
    color: var(--color-primary);
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    transition: all var(--transition-fast);
    cursor: default;
}

.chip-primary {
    background: rgba(94,240,255,0.08);
    border: 1px solid rgba(94,240,255,0.18);
    color: var(--color-primary);
}
.chip-primary:hover {
    background: rgba(94,240,255,0.15);
    box-shadow: 0 0 12px rgba(94,240,255,0.2);
}

.chip-secondary {
    background: rgba(138,126,255,0.08);
    border: 1px solid rgba(138,126,255,0.18);
    color: var(--color-secondary);
}
.chip-secondary:hover {
    background: rgba(138,126,255,0.15);
    box-shadow: 0 0 12px rgba(138,126,255,0.2);
}

.chip-warm {
    background: rgba(255,180,100,0.08);
    border: 1px solid rgba(255,180,100,0.18);
    color: var(--color-warm);
}
.chip-warm:hover {
    background: rgba(255,180,100,0.15);
    box-shadow: 0 0 12px rgba(255,180,100,0.2);
}

.chip-muted {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55);
}
.chip-muted:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
}

/* ==========================================================================
   EDUCATION
   ========================================================================== */
.edu-section {
    padding: var(--spacing-lg) 0;
}

.edu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.edu-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
}

.edu-icon {
    font-size: 1.4rem;
    color: var(--color-secondary);
    flex-shrink: 0;
    padding-top: 2px;
}

.edu-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
    margin-bottom: 3px;
}

.edu-sub {
    font-size: 0.78rem;
    color: var(--color-muted);
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.cta-section {
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.cta-card {
    padding: var(--spacing-lg);
    text-align: center;
}

.cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(94,240,255,0.06) 0%, transparent 70%);
    border-radius: inherit;
    pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-headline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
}

.cta-sub {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.65;
    margin-bottom: var(--spacing-lg);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ==========================================================================
   STICKY BOTTOM BAR
   ========================================================================== */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    background: rgba(7, 11, 20, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 10px 16px;
    gap: 10px;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}

.sticky-bar.visible {
    transform: translateY(0);
}

.sticky-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    max-width: 100px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    transition: all var(--transition-fast);
    text-align: center;
}

.sticky-btn .material-symbols-outlined { font-size: 1.2rem; }

.sticky-btn:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.sticky-btn--primary {
    background: var(--color-primary);
    color: #070b14;
    border-color: transparent;
    font-weight: 700;
}

.sticky-btn--primary:hover {
    background: #7ef5ff;
    color: #070b14;
    box-shadow: 0 4px 16px rgba(94,240,255,0.35);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 600px) {
    .impact-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .edu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .role-header {
        align-items: center;
    }

    .role-right {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .about-card {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-name {
        font-size: clamp(4rem, 10vw, 6.5rem);
    }

    .sticky-bar {
        display: none;   /* On desktop the CTA section is visible without scrolling far */
    }

    .skill-groups {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

/* Ensure sticky bar shows on mobile always */
@media (max-width: 767px) {
    .sticky-bar.visible {
        transform: translateY(0);
    }
}
