/* ============================
   SHARED.CSS — Global Design System
   Nandini Saini Portfolio
   ============================ */

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

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Colors — Crimson Ronin Palette */
    --bg-primary: #080808;
    --bg-secondary: #0e0e0e;
    --bg-tertiary: #141414;

    /* Crimson Red */
    --accent-red: #E50914;
    --accent-red-dark: #AB151D;
    --accent-red-glow: rgba(229, 9, 20, 0.25);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E50914 0%, #AB151D 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #E50914 0%, #ff6b6b 50%, #AB151D 100%);
    --gradient-warm: linear-gradient(135deg, #E50914 0%, #ff9a44 100%);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(229, 9, 20, 0.4);
    --glass-red: rgba(229, 9, 20, 0.08);

    /* Text */
    --text-primary: #f5f5f5;
    --text-secondary: #999999;
    --text-muted: #555555;

    /* Legacy accents (kept for pages that use them) */
    --accent-cyan: #E50914;
    --accent-purple: #AB151D;
    --accent-pink: #ff6b6b;
    --accent-blue: #E50914;

    /* Spacing */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 2rem;
    --sp-lg: 4rem;
    --sp-xl: 6rem;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    /* Transitions */
    --ease-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow-red: 0 0 40px rgba(229, 9, 20, 0.3);
    --shadow-glow-blue: 0 0 40px rgba(229, 9, 20, 0.2);
    --shadow-glow-cyan: 0 0 40px rgba(229, 9, 20, 0.15);

    /* Nav */
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Only enable custom cursor on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ===== CUSTOM CURSOR (desktop only) ===== */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: normal;
    display: none;
}

#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(229, 9, 20, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease, width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
    display: none;
}

@media (hover: hover) and (pointer: fine) {

    #cursor-dot,
    #cursor-ring {
        display: block;
    }
}

body.cursor-hover #cursor-dot {
    width: 12px;
    height: 12px;
    background: #ff6b6b;
}

body.cursor-hover #cursor-ring {
    width: 54px;
    height: 54px;
    border-color: rgba(229, 9, 20, 0.35);
}

body.cursor-text #cursor-dot {
    opacity: 0;
}

body.cursor-text #cursor-ring {
    width: 3px;
    height: 28px;
    border-radius: 2px;
    background: var(--accent-red);
    border: none;
}

/* ===== PAGE TRANSITION OVERLAY ===== */
#page-transition {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9000;
    pointer-events: none;
    opacity: 0;
    transform-origin: center;
}

/* ===== NOISE GRAIN OVERLAY ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    will-change: transform;
}

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--gradient-primary);
    z-index: 9500;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px var(--accent-red-glow);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    padding: 0 5%;
    display: flex;
    align-items: center;
    background: rgba(8, 8, 8, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: var(--glass-border);
    box-shadow: 0 1px 0 rgba(229, 9, 20, 0.1);
}

.nav-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1002;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(229, 9, 20, 0.4));
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 12px rgba(229, 9, 20, 0.7));
}

.nav-logo span {
    color: var(--accent-red);
}

.nav-logo:hover {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-red);
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-cta {
    padding: 0.55rem 1.4rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-glow-red);
    margin-left: 0.75rem;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.5), 0 4px 16px rgba(229, 9, 20, 0.3);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1002;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        width 0.3s ease,
        background 0.3s ease;
    transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--accent-red);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--accent-red);
}

/* ===== SERVICES DROPDOWN ===== */
.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 220px;
    background: rgba(10, 10, 10, 0.97);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(229, 9, 20, 0.08);
    list-style: none;
}

.nav-dropdown-wrapper:hover .nav-dropdown,
.nav-dropdown-wrapper:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown li a:hover {
    color: var(--text-primary);
    background: rgba(229, 9, 20, 0.08);
}

.nav-dropdown li a i {
    color: var(--accent-red);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Chevron rotation on hover */
.nav-dropdown-trigger i.fa-chevron-down {
    font-size: 0.65rem;
    margin-left: 2px;
    transition: transform 0.25s ease;
    vertical-align: middle;
}

.nav-dropdown-wrapper:hover .nav-dropdown-trigger i.fa-chevron-down {
    transform: rotate(180deg);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow-red);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(229, 9, 20, 0.5), 0 6px 20px rgba(229, 9, 20, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--glass-red);
    border-color: rgba(229, 9, 20, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.1);
}

.btn-sm {
    padding: 0.55rem 1.3rem;
    font-size: 0.83rem;
}

/* ===== SECTION BASE ===== */
.section {
    padding: var(--sp-xl) 5%;
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent-red);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(229, 9, 20, 0.3);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md), 0 0 30px rgba(229, 9, 20, 0.06);
}

/* ===== TAGS ===== */
.tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(229, 9, 20, 0.08);
    border: 1px solid rgba(229, 9, 20, 0.2);
    color: #ff6b6b;
    letter-spacing: 0.03em;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.93);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(28px);
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.13s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.21s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.29s;
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.37s;
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 0.45s;
}

.stagger-children.visible>*:nth-child(7) {
    transition-delay: 0.53s;
}

.stagger-children.visible>*:nth-child(8) {
    transition-delay: 0.61s;
}

/* ===== MAGNETIC BUTTON WRAPPER ===== */
.magnetic {
    display: inline-block;
    position: relative;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 2.5rem 5%;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.footer-logo span {
    color: var(--accent-red);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.footer-copy i {
    color: var(--accent-red);
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-4px);
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.2);
    background: rgba(229, 9, 20, 0.06);
}

/* ===== MARQUEE STRIP ===== */
.marquee-strip {
    overflow: hidden;
    white-space: nowrap;
    padding: 1.1rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.marquee-track {
    display: inline-flex;
    animation: marquee 28s linear infinite;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

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

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 2rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.marquee-item i {
    color: var(--accent-red);
    font-size: 0.6rem;
}

/* ===== HORIZONTAL DIVIDER ===== */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 0;
}

/* ===== SKILL BAR ===== */
.skill-bar-wrapper {
    margin-bottom: 1.4rem;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.skill-bar-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-bar-wrapper.animate .skill-bar-fill {
    width: var(--progress);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== RESPONSIVE — NAVBAR MOBILE ===== */
@media (max-width: 968px) {

    /* HIDDEN STATE — visibility:hidden keeps transitions working unlike display:none */
    .nav-links {
        display: flex;
        /* always flex so transitions work */
        position: fixed;
        inset: 0;
        /* top/right/bottom/left all 0 */
        min-height: 100dvh;
        /* force full-screen coverage — ul doesn't auto-expand to bottom:0 */
        background: rgba(8, 8, 8, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        /* flex-start + padding-top: items always start BELOW navbar, never above viewport */
        justify-content: flex-start;
        padding-top: calc(var(--nav-height) + 2rem);
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 0.2rem;
        z-index: 1001;
        /* Hidden: invisible + not clickable */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
    }

    /* OPEN STATE */
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Kill all pseudo-element flex children */
    .nav-links::before,
    .nav-links::after {
        display: none;
    }

    /* Compact nav links */
    .nav-link {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 0.65rem 2rem;
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
        letter-spacing: 0.01em;
        width: 100%;
        max-width: 260px;
        border-radius: 10px;
        transition: color 0.2s, background 0.2s;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #fff;
        background: rgba(229, 9, 20, 0.1);
    }

    .nav-link::after {
        display: none;
    }

    /* Resume CTA inside mobile menu */
    .nav-cta {
        display: inline-flex;
        margin-left: 0;
        margin-top: 1rem;
        font-size: 0.88rem;
        padding: 0.6rem 1.8rem;
    }

    .nav-toggle {
        display: flex;
    }

    /* Mobile dropdown — show inline */
    .nav-dropdown-wrapper {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    .nav-dropdown {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: rgba(229, 9, 20, 0.05);
        border: 1px solid rgba(229, 9, 20, 0.12);
        border-radius: 10px;
        margin-top: 0.4rem;
        box-shadow: none;
        display: none;
    }

    .nav-dropdown-wrapper.open .nav-dropdown {
        display: block;
    }

    .nav-dropdown li a {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
        justify-content: center;
        white-space: normal;
    }
}

@media (max-width: 640px) {
    :root {
        --sp-lg: 3rem;
        --sp-xl: 4rem;
        --nav-height: 64px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

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

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 400px) {
    :root {
        --sp-xl: 3rem;
    }

    .section {
        padding: var(--sp-xl) 4%;
    }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
    color: white;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}
