/* ============================================
   Netflix V2 — Red & Black Premium Portfolio
   Fonts: Syne (headings) + Inter (body)
   ============================================ */

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

:root {
    /* Backgrounds */
    --bg-body: #000000;
    --bg-surface: #0d0d0d;
    --bg-elevated: #141414;
    --bg-muted: #1a1a1a;
    --bg-card: #141414;

    /* Text */
    --text-main: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --text-inverse: #000000;

    /* Netflix Red accent */
    --accent-primary: #e50914;
    --accent-hover: #ff0f1e;
    --accent-light: rgba(229, 9, 20, 0.12);
    --accent-ring: rgba(229, 9, 20, 0.30);

    /* Semantic */
    --green: #3D7A5E;
    --amber: #A97030;
    --slate: #4A6A9A;
    --rust: #9B5032;

    /* Gradients */
    --grad-red: linear-gradient(135deg, #e50914 0%, #ff4e50 100%);

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(229, 9, 20, 0.40);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 8px 28px rgba(229, 9, 20, 0.25);

    /* Layout */
    --container: 1160px;
    --nav-h: 64px;
    --r-xl: 24px;
    --r-lg: 16px;
    --r-md: 10px;
    --r-sm: 6px;
    --r-pill: 999px;

    /* Easing */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

body {
    background: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
}

/* ──────────────── SCROLLBAR ──────────────── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e50914;
}

/* ──────────────── LAYOUT ──────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    padding: 96px 0;
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--border);
}

/* ──────────────── NAVBAR ──────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-h);
    gap: 40px;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #e50914;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: transform 0.3s var(--ease);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Slightly more space for the new links */
    height: 100%;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    font-size: 0.82rem;
    /* Slightly smaller font to fit more items */
    color: #b0b0b0;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a.nav-cta {
    background: #e50914;
    color: #fff !important;
    padding: 8px 20px;
    margin-left: 6px;
    border-radius: 8px;
}

.nav-links a.nav-cta:hover {
    background: #ff0f1e;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.35);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #fff;
    cursor: pointer;
}

/* ──────────────── HERO ──────────────── */
.nfx-hero {
    padding: var(--nav-h) 0 60px 0;
    min-height: auto;
    position: relative;
    overflow: hidden;
    background: #000;
}

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

.nfx-hero-bg-glow {
    position: absolute;
    top: -100px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.nfx-hero .container,
.nfx-platforms {
    position: relative;
    z-index: 1;
}

.nfx-hero-bg-glow {
    z-index: 0;
}

.nfx-hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-top: 120px;
    width: 100%;
}

.nfx-hero-left {
    flex: 1.3;
}

.nfx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: #e50914;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
}

.nfx-hero-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 28px;
}

.nfx-line1 {
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
}

.nfx-red {
    color: #e50914;
}

.nfx-line2 {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
}

.nfx-line2 strong {
    color: #e50914;
}

.nfx-line3 {
    font-size: 2rem;
    font-weight: 500;
    color: #808080;
}

.nfx-hero-lead {
    font-size: 1.1rem;
    color: #999;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 36px;
}


.nfx-hero-stats {
    display: flex;
    gap: 60px;
    margin: 20px auto 0;
    padding: 32px 0;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.nfx-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nfx-stat-val {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #e50914;
    line-height: 1;
}

.nfx-stat-lbl {
    font-size: 0.72rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .nfx-hero-stats {
        gap: 24px;
        margin: 32px 0;
        justify-content: space-between;
    }

    .nfx-stat-val {
        font-size: 1.4rem;
    }
}

.nfx-hero-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ── Buttons ── */
.nfx-btn-red {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e50914;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nfx-btn-red:hover {
    background: #ff0f1e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
}

.nfx-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #ccc;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nfx-btn-ghost:hover {
    border-color: #e50914;
    color: #e50914;
}

/* ── Photo ── */
.nfx-hero-right {
    flex: 0.7;
    display: flex;
    justify-content: flex-end;
}

.nfx-photo-frame {
    position: relative;
    width: 380px;
    height: 380px;
}

.nfx-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    filter: saturate(0.85);
    transition: filter 0.5s ease;
}

.nfx-photo-frame:hover .nfx-photo {
    filter: saturate(1.1);
}

.nfx-photo-accent {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, #e50914 0%, #8b0000 100%);
    z-index: 0;
    opacity: 0.6;
}

/* ── Platforms ── */
.nfx-platforms {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 48px 0;
    flex-wrap: wrap;
}

.nfx-platform {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px 28px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.nfx-platform:hover {
    border-color: #e50914;
    background: #1a1a1a;
    transform: translateY(-4px);
}

.nfx-platform i {
    font-size: 1.8rem;
    color: #666;
    transition: color 0.3s;
}

.nfx-platform:hover i {
    color: #e50914;
}

.nfx-platform div {
    display: flex;
    flex-direction: column;
}

.nfx-platform strong {
    color: #fff;
    font-size: 1rem;
}

.nfx-platform span {
    color: #888;
    font-size: 0.8rem;
}

/* ──────────────── SECTION TITLES ──────────────── */
.nfx-section-title {
    font-size: 2.8rem;
    text-align: center;
    color: #fff;
    margin-bottom: 8px;
}

.nfx-section-sub {
    text-align: center;
    color: #888;
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* ──────────────── ABOUT CAROUSEL ──────────────── */
.nfx-about-section {
    background: #000;
    padding: 100px 0 40px;
}

.about-carousel-viewport {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.about-dots {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10;
}

.about-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #555;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.about-dot.active {
    background: #e50914;
    border-color: #e50914;
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.about-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.about-slide-inner {
    max-width: 800px;
}

.about-slide-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(229, 9, 20, 0.12);
    color: #e50914;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.about-slide h3 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 16px;
}

.about-slide p {
    color: #999;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 650px;
}

.about-metrics {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.about-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.counter-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e50914;
    font-family: 'Syne', sans-serif;
}

.metric-label {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ──────────────── SKILLS ──────────────── */
.nfx-skills-section {
    background: #050505;
    padding: 100px 0;
}

.nfx-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nfx-skill-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}

.nfx-skill-card:hover {
    border-color: #e50914;
    background: #1a1a1a;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.12);
}

.nfx-skill-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.nfx-skill-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(229, 9, 20, 0.1);
    color: #e50914;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nfx-skill-card h3 {
    font-size: 1.15rem;
    color: #fff;
    font-weight: 700;
}

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

.nfx-skill-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nfx-skill-tags span:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.3);
    color: #e50914;
}

/* ──────────────── PROJECTS MARQUEE ──────────────── */
.nfx-projects-section {
    background: #0a0a0a;
    padding: 100px 0 0;
}

.nfx-marquee-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 32px 0;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 12px 0;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.marquee-track {
    display: flex;
    gap: 18px;
    width: max-content;
}

.scroll-left {
    animation: scrollLeft 55s linear infinite;
}

.scroll-right {
    animation: scrollRight 55s linear infinite;
}

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

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* Marquee Card — Logo+Body horizontal layout */
.marquee-card {
    width: 420px;
    flex-shrink: 0;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    transition: all 0.3s ease;
}

.marquee-card:hover {
    border-color: #e50914;
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.2);
    transform: translateY(-4px);
}

.marquee-card-logo {
    width: 100px;
    min-height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #e50914;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.marquee-card-body .marquee-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Syne', sans-serif;
}

.marquee-card-body .marquee-cat {
    font-size: 0.7rem;
    color: #e50914;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.marquee-card-body .marquee-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.marquee-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.marquee-action-btn {
    flex: 1;
    padding: 8px 0;
    border-radius: 6px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.marquee-action-btn.primary {
    background: #e50914;
    color: #fff;
}

.marquee-action-btn.primary:hover {
    background: #ff0f1e;
}

.marquee-action-btn.secondary {
    background: #222;
    color: #ccc;
}

.marquee-action-btn.secondary:hover {
    background: #333;
    color: #fff;
}

/* ──────────────── BLOG CAROUSEL ──────────────── */
.nfx-blog-section {
    background: #000;
    padding: 100px 0 0;
}

.blog-carousel-container {
    overflow: hidden;
    padding: 24px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.blog-carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollLeft 55s linear infinite;
}

.blog-carousel-track:hover {
    animation-play-state: paused;
}

.blog-carousel-card {
    width: 340px;
    flex-shrink: 0;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.28s var(--ease);
    display: flex;
    flex-direction: column;
}

.blog-carousel-card:hover {
    transform: translateY(-5px);
    border-color: #e50914;
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.15);
}

.blog-card-header-section {
    background: linear-gradient(135deg, #1a0000, #0d0d0d);
    border-bottom: 1px solid rgba(229, 9, 20, 0.2);
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blog-card-icon {
    font-size: 2.2rem;
    color: #e50914;
}

.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #fff !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.12rem;
    /* Consistent height for 2 lines of text */
}

.blog-card-excerpt {
    color: #999 !important;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.56rem;
    /* Consistent height for 3 lines of text */
}

.skill-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: var(--r-pill);
    background: rgba(229, 9, 20, 0.1);
    color: #e50914;
    border: 1px solid rgba(229, 9, 20, 0.2);
    white-space: nowrap;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

/* ──────────────── CONTACT ──────────────── */
.nfx-contact-section {
    background: #0a0a0a;
    padding: 100px 0;
}

.nfx-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.nfx-contact-info h3,
.nfx-contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #fff;
}

.nfx-contact-info>p,
.nfx-contact-form>p {
    color: #888;
    margin-bottom: 28px;
}

.nfx-contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nfx-contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nfx-contact-link:hover {
    border-color: #e50914;
    background: #1a1a1a;
}

.nfx-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(229, 9, 20, 0.1);
    color: #e50914;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nfx-contact-label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

.nfx-contact-val {
    color: #fff;
    font-weight: 500;
}

.nfx-contact-form {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px;
}

.nfx-form-row {
    margin-bottom: 20px;
}

.nfx-form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 6px;
}

.nfx-form-row input,
.nfx-form-row textarea {
    width: 100%;
    padding: 12px 16px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.nfx-form-row input:focus,
.nfx-form-row textarea:focus {
    outline: none;
    border-color: #e50914;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

.nfx-form-row textarea {
    resize: vertical;
    min-height: 120px;
}

.nfx-form-note {
    color: #555;
    font-size: 0.8rem;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ──────────────── FOOTER ──────────────── */
.site-footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(229, 9, 20, 0.15);
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: start;
    padding-bottom: 48px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.65;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #555;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #e50914;
    border-color: #e50914;
    background: rgba(229, 9, 20, 0.1);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 24px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #444;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: #666;
    transition: color 0.18s;
}

.footer-links a:hover {
    color: #e50914;
}

/* ──────────────── SCROLL REVEAL ──────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal-delay-4 {
    transition-delay: 0.32s;
}

/* ──────────────── FEATURE GRID (Project Detail Pages) ──────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all 0.25s var(--ease);
    box-shadow: var(--shadow-xs);
}

.feature-item:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    color: var(--accent-primary);
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item strong {
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-family: 'Syne', sans-serif;
}

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

/* ──────────────── SECTION HEADER (legacy support) ──────────────── */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e50914;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #e50914;
    border-radius: 2px;
}

/* ──────────────── RESPONSIVE ──────────────── */
@media (max-width: 1000px) {
    .nfx-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nfx-hero-left {
        order: 2;
    }

    .nfx-hero-right {
        order: 1;
        justify-content: center;
    }

    .nfx-hero-heading {
        align-items: center;
    }

    .nfx-hero-lead {
        margin: 0 auto 36px;
    }

    .nfx-hero-ctas {
        justify-content: center;
    }

    .nfx-photo-frame {
        width: 300px;
        height: 300px;
    }

    .about-dots {
        right: 16px;
    }

    .nfx-contact-grid {
        grid-template-columns: 1fr;
    }

    .nfx-line2 {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    .nfx-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .footer-bottom {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar.mobile-open-bg {
        background: rgba(10, 10, 10, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        width: 100vw;
        height: calc(100vh - var(--nav-h));
        background: rgba(10, 10, 10, 0.98);
        padding: 40px 20px 80px;
        gap: 16px;
        z-index: 999;
        overflow-y: auto;
        border-bottom: none;
        animation: fadeInSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-links.mobile-open li {
        width: 100%;
        text-align: center;
    }

    .nav-links.mobile-open a,
    .nav-links.mobile-open .nav-dropdown-btn {
        width: 100%;
        padding: 14px 16px;
        color: #e0e0e0;
        font-size: 1.25rem;
        font-weight: 500;
        display: block;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .nav-links.mobile-open a:hover {
        color: #fff;
        transform: scale(1.02);
    }
    
    .nav-links.mobile-open a.nav-cta {
        display: block;
        width: max-content;
        margin: 12px auto 0 auto;
        padding: 12px 32px;
        font-size: 1.1rem;
        background: #e50914;
        color: white !important;
        border-radius: 8px;
    }

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

    .nav-links.mobile-open .nav-dropdown-menu {
        position: static;
        display: block !important;
        box-shadow: none;
        border: none;
        background: transparent;
        animation: none;
        border-radius: 0;
    }

    .nav-links.mobile-open .nav-dropdown-menu a {
        padding-left: 28px;
        border-bottom: none;
    }

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

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 768px) {
    .nfx-section-title {
        font-size: 2rem;
    }

    .nfx-line1 {
        font-size: 2rem;
    }

    .nfx-line2 {
        font-size: 2.5rem;
    }

    .nfx-line3 {
        font-size: 1.4rem;
    }

    .nfx-hero-inner {
        padding-top: 80px;
    }

    .nfx-hero-lead {
        font-size: 0.95rem;
    }

    .nfx-hero-ctas {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nfx-btn-red,
    .nfx-btn-ghost {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .about-carousel-viewport {
        height: auto;
        min-height: 480px;
    }

    .about-dots {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        padding: 20px 0 0;
    }

    .about-slide-inner {
        padding: 0 8px;
    }

    .about-metrics {
        gap: 24px;
        justify-content: center;
    }

    .counter-num {
        font-size: 2rem;
    }

    .about-slide h3 {
        font-size: 1.6rem;
    }

    .about-slide p {
        font-size: 0.95rem;
    }

    .nfx-photo-frame {
        width: 250px;
        height: 250px;
    }

    .section {
        padding: 68px 0;
    }

    .nfx-about-section,
    .nfx-skills-section,
    .nfx-projects-section,
    .nfx-blog-section,
    .nfx-contact-section {
        padding: 60px 0;
    }

    .nfx-section-sub {
        font-size: 0.92rem;
        padding: 0 12px;
    }

    .marquee-card {
        width: 300px;
    }

    .marquee-card-logo {
        width: 72px;
        font-size: 1.5rem;
    }

    .blog-carousel-card {
        width: 280px;
    }

    .blog-card-header-section {
        padding: 24px 18px;
    }

    .nfx-contact-form {
        padding: 24px 20px;
    }

    /* Page header (used in blog index etc) */
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 0.92rem;
    }
}

@media (max-width: 600px) {
    .nfx-skills-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nfx-section-title {
        font-size: 1.6rem;
    }

    .nfx-line1 {
        font-size: 1.6rem;
    }

    .nfx-line2 {
        font-size: 2rem;
    }

    .nfx-line3 {
        font-size: 1.2rem;
    }

    .nfx-hero-inner {
        padding-top: 60px;
    }

    .nfx-hero-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .nfx-platforms {
        gap: 10px;
    }

    .nfx-platform {
        min-width: 100%;
        padding: 14px 18px;
    }

    .about-metrics {
        gap: 16px;
    }

    .counter-num {
        font-size: 1.6rem;
    }

    .marquee-card {
        width: 260px;
    }

    .marquee-card-logo {
        width: 60px;
        font-size: 1.3rem;
    }

    .marquee-card-body {
        padding: 14px 16px;
    }

    .blog-carousel-card {
        width: 260px;
    }

    .nfx-photo-frame {
        width: 200px;
        height: 200px;
    }

    .nfx-skill-card {
        padding: 20px;
    }

    .nfx-contact-form {
        padding: 20px 16px;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}