/* ================================
   PROFESSIONAL PORTFOLIO STYLES
   Terminal-meets-Luxury Dark Theme
   ================================ */

:root {
    /* Base surfaces */
    --bg-void:       #050508;
    --bg-base:       #08080e;
    --bg-elevated:   #0d0d18;
    --bg-card:       #0f0f1c;
    --bg-card-hover: #141428;
    --bg-glass:      rgba(255, 255, 255, 0.03);

    /* Accent system */
    --accent-lime:   #a3e635;
    --accent-cyan:   #22d3ee;
    --accent-ember:  #fb923c;
    --accent-violet: #818cf8;

    /* Text */
    --text-primary:  #f1f5f9;
    --text-secondary:#94a3b8;
    --text-muted:    #475569;
    --text-ghost:    #1e293b;

    /* Borders */
    --border-base:   rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-accent: rgba(163, 230, 53, 0.25);

    /* Gradients */
    --gradient-hero:    linear-gradient(160deg, #050508 0%, #08080e 40%, #0a0a18 100%);
    --gradient-accent:  linear-gradient(135deg, #a3e635 0%, #22d3ee 100%);
    --gradient-warm:    linear-gradient(135deg, #fb923c 0%, #818cf8 100%);
    --gradient-card:    linear-gradient(135deg, rgba(163,230,53,0.06) 0%, rgba(34,211,238,0.03) 100%);
    --gradient-text:    linear-gradient(135deg, #a3e635, #22d3ee);

    /* Shadows & glows */
    --shadow-sm:    0 1px 4px rgba(0,0,0,0.6);
    --shadow-md:    0 4px 24px rgba(0,0,0,0.7);
    --shadow-lg:    0 20px 80px rgba(0,0,0,0.9);
    --glow-lime:    0 0 40px rgba(163, 230, 53, 0.2), 0 0 80px rgba(163, 230, 53, 0.08);
    --glow-cyan:    0 0 40px rgba(34, 211, 238, 0.2), 0 0 80px rgba(34, 211, 238, 0.08);
    --glow-card:    0 8px 40px rgba(163, 230, 53, 0.08);

    /* Fonts — updated */
    --font-display: 'Playfair Display', serif;
    --font-body:    'Manrope', sans-serif;
    --font-mono:    'Fira Code', monospace;

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.15s;
    --duration-base: 0.3s;
    --duration-slow: 0.6s;
}

/* ================================
   GLOBAL BASE STYLES
   ================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded { opacity: 1; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-lime), var(--accent-cyan));
    border-radius: 10px;
}

/* Text selection */
::selection {
    background: rgba(163, 230, 53, 0.2);
    color: var(--text-primary);
}

/* Section base pattern */
section {
    padding: 120px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ================================
   SECTION HEADERS (Universal two-column)
   ================================ */

.section-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 64px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.section-header-left {
    display: flex;
    flex-direction: column;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-ghost);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.0;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: right;
}

.title-underline {
    display: none;
}

/* ================================
   NAVIGATION BAR
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--duration-base) var(--ease-in-out);
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.95);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--duration-fast) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-text);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav-link.active { color: var(--text-primary); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-in-out);
}

/* ================================
   HERO SECTION — Centered (Tailwind mockup)
   ================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 80px 24px 60px;
    overflow: hidden;
    z-index: 1;
}

/* Mesh grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
}

/* Ambient orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: orbPulse 8s ease-in-out infinite;
}

.hero-orb--a,
.hero-orb--lime {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(163,230,53,0.1) 0%, transparent 70%);
    top: 25%;
    left: -25%;
    filter: blur(120px);
    mix-blend-mode: screen;
}

.hero-orb--b,
.hero-orb--cyan {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(34,211,238,0.1) 0%, transparent 70%);
    bottom: 25%;
    right: -25%;
    filter: blur(120px);
    mix-blend-mode: screen;
    animation-delay: 4s;
}

@keyframes orbPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Availability badge */
.hero-availability {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 9999px;
    border: 1px solid rgba(163,230,53,0.2);
    background: rgba(163,230,53,0.05);
    margin-bottom: 40px;
    box-shadow: 0 0 15px rgba(163,230,53,0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s var(--ease-out-expo) 0.1s forwards;
}

.hero-availability span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-lime);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-availability-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-lime);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-lime);
    animation: pulse 2s ease infinite;
    flex-shrink: 0;
}

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

/* Hero Name */
.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s var(--ease-out-expo) 0.25s forwards;
}

.hero-name-accent {
    font-style: italic;
    font-weight: 300;
    color: var(--text-secondary);
}

/* Typing wrapper */
.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: var(--text-muted);
    margin-bottom: 64px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s var(--ease-out-expo) 0.5s forwards;
}

.hero-prefix {
    color: var(--accent-lime);
    opacity: 0.7;
}

.typed-text {
    color: var(--text-secondary);
}

.cursor-blink {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--accent-lime);
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: blink 0.75s step-end infinite;
}

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

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s var(--ease-out-expo) 0.8s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-primary {
    padding: 16px 36px;
    background: var(--accent-lime);
    color: var(--bg-void);
    border-radius: 9999px;
    box-shadow: 0 0 15px rgba(163,230,53,0.15);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(163,230,53,0.3);
}

.btn-secondary {
    padding: 16px 36px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-base);
    border-radius: 9999px;
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s both;
    cursor: pointer;
}

.scroll-indicator-line {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-lime), transparent);
    animation: lineGrow 2s ease-in-out infinite;
}

@keyframes lineGrow {
    0%, 100% { transform: scaleX(0.3); transform-origin: left; }
    50%       { transform: scaleX(1);   transform-origin: left; }
}

/* ================================
   EXPERTISE SECTION — Card Grid
   ================================ */

.expertise {
    padding: 120px 0;
    background: var(--bg-base);
    position: relative;
    z-index: 2;
}

/* Section label */
.expertise-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.expertise-label-line {
    width: 32px;
    height: 1px;
    background: var(--accent-lime);
}

.expertise-label span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-lime);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.expertise-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.expertise-subtext {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 48px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.expertise-card {
    position: relative;
    background: rgba(163,230,53,0.03);
    border: 1px solid rgba(163,230,53,0.15);
    border-radius: 12px;
    padding: 32px 28px;
    cursor: pointer;
    transition: all 0.3s var(--ease-in-out);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Top gradient line on hover */
.expertise-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, transparent, transparent);
    transition: background 0.5s ease;
}

.expertise-card:hover .expertise-card-glow {
    background: linear-gradient(90deg, transparent, var(--accent-lime), transparent);
}

.expertise-card:hover {
    border-color: rgba(163,230,53,0.4);
    box-shadow: 0 0 30px rgba(163,230,53,0.08);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(163,230,53,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--accent-lime);
    box-shadow: 0 0 15px rgba(163,230,53,0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.expertise-card:hover .card-icon {
    background: rgba(163,230,53,0.15);
    box-shadow: 0 0 25px rgba(163,230,53,0.25);
}

.expertise-card h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.expertise-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ================================
   EXPERTISE DETAIL PAGES
   ================================ */

.expertise-detail {
    padding: 120px 20px 100px;
    background: var(--bg-base);
    min-height: 100vh;
    display: none;
}

.detail-header {
    text-align: center;
    margin-bottom: 60px;
}

.detail-header .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--accent-lime);
    padding: 12px 30px;
    border-radius: 9999px;
    border: 1px solid var(--border-accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.detail-header .back-btn:hover {
    background: rgba(163,230,53,0.06);
    transform: translateX(-5px);
}

.detail-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
}

.detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(163,230,53,0.08);
    border: 1px solid rgba(163,230,53,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--accent-lime);
    margin: 0 auto 30px;
}

.detail-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.detail-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    text-align: left;
    margin-bottom: 20px;
}

/* ================================
   SKILLS SECTION
   ================================ */

.skills {
    padding: 120px 0;
    background: var(--bg-elevated);
}

/* ================================
   SKILLS TICKER — Infinite Marquee
   ================================ */

.skills-ticker-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    overflow: hidden;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 52px 0;
    margin-top: 48px;
    background: var(--bg-base);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.skills-ticker-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: skillsTicker 40s linear infinite;
}

.skills-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes skillsTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 0 28px;
    transition: color 0.3s ease;
}

.ticker-item:hover {
    color: var(--accent-lime);
}

.ticker-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.ticker-item:hover img {
    opacity: 1;
}

.ticker-item i {
    font-size: 1.6rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    color: var(--text-muted);
}

.ticker-item:hover i {
    opacity: 1;
    color: var(--accent-lime);
}

.ticker-item::after {
    content: '✦';
    margin-left: 20px;
    color: var(--border-base);
    font-size: 0.5rem;
    opacity: 0.4;
}

/* Additional Skills */
.additional-skills-heading {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 64px;
    margin-bottom: 8px;
    text-align: center;
}

.additional-skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 12px;
    max-width: 1100px;
    margin: 48px auto 0;
}

.additional-skill-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.additional-skill-item:hover {
    border-left-color: var(--accent-lime);
    background: var(--bg-card-hover);
    transform: translateX(5px);
    box-shadow: var(--glow-card);
}

.additional-skill-item i {
    font-size: 0.9rem;
    color: var(--accent-lime);
    margin-top: 4px;
    flex-shrink: 0;
}

.additional-skill-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ================================
   EXPERIENCE & EDUCATION — Timeline Layout
   ================================ */

.experience {
    padding: 120px 0;
    background: var(--bg-base);
}

.education {
    padding: 120px 0;
    background: var(--bg-elevated);
}

/* Timeline Grid */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 860px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 24px;
    padding: 0;
    border: none;
    transition: none;
}

.timeline-item:hover {
    padding-left: 0;
}

/* Timeline Line (left column) */
.timeline-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 8px;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 3px solid var(--border-subtle);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-dot-active {
    border-color: var(--accent-lime);
    background: rgba(163, 230, 53, 0.15);
    box-shadow: 0 0 12px rgba(163, 230, 53, 0.6), 0 0 24px rgba(163, 230, 53, 0.2);
}

.education .timeline-dot {
    background: var(--bg-elevated);
}

.education .timeline-dot-end {
    background: var(--bg-elevated);
}

.timeline-dot-end {
    width: 12px;
    height: 12px;
    border-color: var(--text-muted);
    opacity: 0.4;
    background: var(--bg-base);
}

.timeline-connector {
    width: 2px;
    flex-grow: 1;
    min-height: 40px;
    background: linear-gradient(to bottom, var(--border-subtle), rgba(163, 230, 53, 0.1));
    margin-top: 4px;
}

.timeline-connector-active {
    background: linear-gradient(to bottom, var(--accent-lime), var(--accent-cyan), rgba(34, 211, 238, 0.15));
    box-shadow: 0 0 5px rgba(34, 211, 238, 0.3);
}

/* Timeline End */
.timeline-end {
    display: flex;
    justify-content: center;
    padding-left: 12px;
    width: 40px;
}

/* Timeline Card */
.timeline-card {
    padding: 28px 32px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateX(8px);
    border-color: var(--border-accent);
}

.timeline-card-featured {
    border-color: rgba(163, 230, 53, 0.2);
    background: rgba(163, 230, 53, 0.03);
}

.timeline-card-featured:hover {
    border-color: rgba(163, 230, 53, 0.5);
    box-shadow: 0 0 20px rgba(163, 230, 53, 0.08);
}

/* Card Header */
.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 4px;
}

.timeline-card-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Badge */
.timeline-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-lime);
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.timeline-badge-active {
    background: rgba(163, 230, 53, 0.08);
    border-color: rgba(163, 230, 53, 0.3);
}

/* Subtitle */
.timeline-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-bottom: 16px;
}

/* Description */
.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* List */
.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: color 0.3s ease;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-lime);
    border-radius: 50%;
    opacity: 0.5;
}

.timeline-list li:hover {
    color: var(--text-primary);
}

.timeline-list li:hover::before {
    opacity: 1;
    box-shadow: var(--glow-lime);
}

/* Tags */
.timeline-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.timeline-tags span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* ================================
   PORTFOLIO SECTION — Card Grid
   ================================ */

.portfolio {
    padding: 120px 0;
    background: var(--bg-base);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Portfolio Card — mirrors expertise-card */
.portfolio-card {
    position: relative;
    padding: 32px 28px;
    background: rgba(163,230,53,0.03);
    border: 1px solid rgba(163,230,53,0.15);
    border-radius: 12px;
    cursor: default;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: all 0.3s var(--ease-in-out);
}

/* Top accent line on hover */
.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

.portfolio-card:hover {
    border-color: rgba(163,230,53,0.4);
    box-shadow: 0 0 30px rgba(163,230,53,0.08);
    transform: translateY(-4px);
}

.portfolio-card:hover::after {
    transform: scaleX(1);
}

/* Number badge — same as expertise icon box */
.portfolio-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(163, 230, 53, 0.1);
    border-radius: 10px;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(163, 230, 53, 0.15);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.portfolio-card:hover .portfolio-card-number {
    background: rgba(163, 230, 53, 0.15);
    box-shadow: 0 0 25px rgba(163, 230, 53, 0.25);
}

.portfolio-card-number span {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-lime);
    letter-spacing: 0.05em;
}

/* Title — matches expertise card title */
.portfolio-card-title {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.3;
}

/* Description — matches expertise card desc */
.portfolio-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

/* Tags row */
.portfolio-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.portfolio-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.07);
    border: 1px solid rgba(34, 211, 238, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.portfolio-tag:hover {
    background: rgba(34, 211, 238, 0.14);
    color: var(--text-primary);
}

/* ================================
   CONTACT SECTION — Split Layout
   ================================ */

.contact {
    padding: 120px 0;
    background: var(--bg-elevated);
}

.contact-split {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    align-items: start;
}

.contact-left-heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-left-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.contact-info-list {
    list-style: none;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

.contact-info-list li .label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.contact-info-list li .value {
    color: var(--text-primary);
    font-weight: 500;
}

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

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--border-accent);
    color: var(--accent-lime);
    transform: translateY(-3px);
    box-shadow: var(--glow-card);
}

/* Contact form card */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 48px 44px;
}

.form-field {
    position: relative;
    margin-bottom: 32px;
}

.form-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-base);
    border-radius: 0;
    padding: 10px 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus {
    border-bottom-color: var(--accent-lime);
    box-shadow: 0 2px 0 -1px rgba(163,230,53,0.3);
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form-card .btn-primary {
    margin-top: 8px;
}

/* ================================
   FOOTER
   ================================ */

.site-footer {
    background: var(--bg-void);
    position: relative;
    overflow: hidden;
}

.footer-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-lime), var(--accent-cyan), transparent);
    opacity: 0.6;
}

.footer-watermark {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 14rem);
    font-style: italic;
    font-weight: 400;
    text-align: center;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.08;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
    margin-bottom: -2.5rem;
    padding-top: 48px;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding: 32px 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ================================
   SCROLL REVEAL ANIMATIONS
   ================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Legacy classes for compatibility */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.revealed {
    opacity: 1 !important;
    transform: none !important;
}

/* ================================
   ANIMATIONS
   ================================ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ================================
   CUSTOM CURSOR
   ================================ */

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent-lime);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(163,230,53,0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}

.cursor-ring.hovering {
    width: 60px;
    height: 60px;
    border-color: var(--accent-lime);
    background: rgba(163,230,53,0.06);
}

.cursor-dot.hovering {
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
}

@media (hover: none) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 968px) {
    .nav-container {
        padding: 0 24px;
        height: 56px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 56px;
        flex-direction: column;
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(24px);
        width: 100%;
        text-align: center;
        padding: 30px 0;
        border-bottom: 1px solid var(--border-subtle);
        transition: left 0.3s ease;
        gap: 0;
    }

    .nav-menu li {
        padding: 12px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-desc {
        text-align: left;
    }

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

    .timeline-item {
        grid-template-columns: 32px 1fr;
        gap: 16px;
    }

    .timeline-card {
        padding: 20px;
    }

    .timeline-card-header {
        flex-direction: column;
        gap: 8px;
    }

    .timeline-card-header h3 {
        font-size: 1.2rem;
    }

    .contact-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .additional-skills-list {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 24px;
    }

    section {
        padding: 80px 0;
    }

    .footer-bottom {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .skills-ticker-wrapper {
        padding: 24px 0;
        margin-top: 32px;
    }

    .ticker-item {
        font-size: 0.8rem;
        padding: 0 16px;
        gap: 6px;
    }

    .ticker-item img {
        width: 20px;
        height: 20px;
    }

    .ticker-item i {
        font-size: 1rem;
    }

    .ticker-item::after {
        margin-left: 12px;
        font-size: 0.35rem;
    }

    .hero-name {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .hero-title {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

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

    .portfolio-grid {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .portfolio-card {
        min-height: auto;
        padding: 28px 24px;
    }

    .hero-orb {
        display: none;
    }

    .detail-content {
        padding: 30px 24px;
    }

    .contact-form-card {
        padding: 32px 24px;
    }
}
