/* style.css */

/* =========================================================
   1) CSS VARIABLES
   ========================================================= */
:root {
    --bg: #0b0b0b;
    --card: #151515;
    --card-hover: #1e1e1e;

    --text: #f1f1f1;
    --muted: #b3b3b3;

    --accent-soft: rgba(186, 104, 255, 0.35);
    --accent-strong: rgba(186, 104, 255, 0.85);

    /* Skills palette (kept from your original) */
    --bg0: #06020c;
    --bg1: #0b0416;
    --ink: #f6efff;

    --p1: #a955f738;
    --p2: #7c3aed;
    --p3: #c084fc;
    --stroke: rgba(200, 150, 255, .18);

    --cardA: rgba(0, 0, 0, 0.973);
    --cardB: rgba(26, 10, 45, 0.742);

    --shadow: rgba(130, 70, 255, .22);
    --shadow2: rgba(0, 0, 0, .45);
}

/* =========================================================
   2) SCROLLBAR
   ========================================================= */
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0b0b0b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            rgba(187, 104, 255, 0.048),
            rgba(186, 104, 255, 0.65));
    border-radius: 10px;
    box-shadow:
        0 0 6px rgba(186, 104, 255, 0.4),
        inset 0 0 4px rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
            rgba(186, 104, 255, 0.55),
            rgba(186, 104, 255, 0.85));
    box-shadow: 0 0 10px rgba(186, 104, 255, 0.7);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(186, 104, 255, 0.6) #0b0b0b;
}

/* =========================================================
   3) RESET + BASE
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    /* Custom canvas cursor: hide default cursor on desktop */
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

html,
body {
    overflow-x: hidden;
}

/* Anchor offset for fixed navbar */
section[id],
footer[id] {
    scroll-margin-top: 96px;
}

:focus-visible {
    outline: 2px solid rgba(186, 104, 255, 0.65);
    outline-offset: 4px;
    border-radius: 10px;
}

/* Text selection color (global) */
::selection {
  background: rgba(131, 73, 177, 0.35); /* selection bg */
  color: #ffffff;                        /* selected text */
}

::-moz-selection {
  background: rgba(186, 104, 255, 0.35);
  color: #ffffff;
}

/* =========================================================
   4) DOT NOTEBOOK BACKGROUND
   ========================================================= */
body::before {
    content: "";
    position: fixed;
    inset: 0;

    background:
        radial-gradient(circle at 1px 1px,
            rgba(186, 104, 255, 0.28) 1.2px,
            transparent 0);
    background-size: 32px 32px;

    filter: drop-shadow(0 0 6px rgba(186, 104, 255, 0.25));
    opacity: 0.65;

    pointer-events: none;
    z-index: 0;

    transform: translate(var(--bg-x, 0px), var(--bg-y, 0px));
    transition: transform 0.15s ease-out;
}

/* =========================================================
   5) CANVAS LAYERS
   ========================================================= */
#neon-trail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

/* Generic canvas baseline (specific canvases override this) */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* Keep content above background layers */
body>*:not(canvas) {
    position: relative;
    z-index: 1;
}

/* =========================================================
   6) NAVIGATION (Desktop + Mobile)
   ========================================================= */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 22px 48px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    backdrop-filter: blur(14px);
    background: rgba(10, 10, 15, 0.55);

    z-index: 100;
    transition: background .2s ease, box-shadow .2s ease;
}

.nav.is-scrolled {
    background: rgba(10, 10, 15, 0.72);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo::after {
    display: none !important;
}

.logo:focus-visible {
    outline: 2px solid rgba(186, 104, 255, 0.6);
    outline-offset: 6px;
    border-radius: 12px;
}

/* SVG name */
.nav-name {
    width: 160px;
}

/* Shared SVG text style */
.nav-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 42px;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill 0.4s ease, filter 0.4s ease;
}

.nav-text.base {
    fill: transparent;
    stroke: rgba(187, 104, 255, 0.539);
}

.nav-text.glow {
    fill: transparent;
    stroke: url(#navLight);
    filter: drop-shadow(0 0 6px rgba(187, 104, 255, 0.589)) drop-shadow(0 0 14px rgba(187, 104, 255, 0.589));
}

/* Desktop nav links */
.nav-links a {
    position: relative;
    color: var(--muted);
    margin-left: 20px;
    text-decoration: none;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(186, 104, 255, 0.3),
            rgba(186, 104, 255, 0.85));
    box-shadow: 0 0 8px rgba(186, 104, 255, 0.7);
    transition: width 0.35s ease;
}

.nav-links a:hover {
    color: rgba(186, 104, 255, 0.95);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-strong);
}

.nav-links a.active::after {
    width: 100%;
}

/* Mobile toggle button */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
    place-items: center;
    cursor: pointer !important;
}

.nav-toggle:hover {
    border-color: rgba(186, 104, 255, .35);
}

.nav-toggle-lines {
    width: 18px;
    height: 12px;
    position: relative;
    display: block;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: rgba(245, 242, 255, .92);
    box-shadow: 0 0 14px rgba(186, 104, 255, .35);
    transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.nav-toggle-lines::before {
    top: 0;
}

.nav-toggle-lines::after {
    top: 10px;
}

/* Scrim behind mobile menu */
.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    transition-duration: 0.6s !important;
    transition-timing-function: cubic-bezier(.2, .8, .2, 1) !important;
}

body.nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile nav layout */
@media (max-width: 860px) {
    .nav {
        padding: 14px 16px;
    }

    .nav-toggle {
        display: grid;
    }

    .nav-links {
        position: fixed;
        top: 74px;
        left: 12px;
        right: 12px;
        z-index: 101;

        display: grid;
        gap: 10px;

        padding: 14px;
        border-radius: 18px;

        background: rgba(10, 10, 15, 0.72);
        border: 1px solid rgba(255, 255, 255, .10);
        backdrop-filter: blur(14px);

        transform: translateY(-12px) scale(.985);
        opacity: 0;
        pointer-events: none;

        transition: transform .2s ease, opacity .2s ease;
    }

    body.nav-open .nav-links {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        margin-left: 0;
        padding: 12px 14px;
        border-radius: 14px;
        background: rgba(255, 255, 255, .05);
    }

    /* Underlines are less useful on stacked mobile links */
    .nav-links a::after {
        display: none;
    }

    /* Animate hamburger into X */
    body.nav-open .nav-toggle-lines::before {
        top: 5px;
        transform: rotate(45deg);
    }

    body.nav-open .nav-toggle-lines::after {
        top: 5px;
        transform: rotate(-45deg);
    }
}

/* =========================================================
   7) HERO SECTION
   ========================================================= */
.hero {
    min-height: 100vh;
    padding: 120px 60px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-split {
    height: calc(100vh - 80px);
    margin-top: -40px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    overflow: hidden;
}

/* Hero left visual */
.hero-visual {
    position: relative;
    height: 100vh;
    overflow: hidden;
    border-radius: 26px;
}

/* Fallback image */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.05);
    z-index: 0;
}

/* Hidden source image for JS slicing */
#hero-source {
    display: none;
}

/* Cube wrapper inside your existing HTML block */
.docs-demo-html {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Slider */
.controls {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.range {
    width: 260px;
    height: 22px;
    z-index: 9999;
    pointer-events: auto;
    cursor: pointer !important;
}

.range::-webkit-slider-thumb {
    cursor: grab;
}

.range:active::-webkit-slider-thumb {
    cursor: grabbing;
}

/* Hero overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(11, 11, 11, 0.15),
            rgba(11, 11, 11, 0.85));
    z-index: 2;
    pointer-events: none;
}

/* Right side hero text */
.hero-text {
    padding: 0 80px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.15;
}

.subtitle {
    margin-top: 28px;
    color: var(--muted);
    max-width: 520px;
}

/* Inline SVG logo in hero */
.fatma-logo-hero {
    display: inline-block;
    vertical-align: middle;
    color: rgba(186, 104, 255, 0.95);
    height: 1em;
    padding-bottom: 5px;
}

.line-hero {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0.4;
}

/* =========================================================
   8) SECTIONS
   ========================================================= */
.section {
    padding: 92px 8vw;
    max-width: 1300px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 28px;
    letter-spacing: -0.4px;
}

.section p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 14px;
}

/* =========================================================
   9) ABOUT
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.night-card {
    position: relative;
    height: 460px;
    border-radius: 26px;
    overflow: hidden;
    background: radial-gradient(120% 120% at 50% 100%,
            #1b1e3c,
            #070812 70%);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

#nbCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    /* Make sure the card receives interactions */
}

.nb-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    opacity: 0.55;
    color: #cfc7ff;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* FIX: JS uses "is-active" */
.night-card.is-active .nb-hint {
    opacity: 0;
}

.nb-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;

    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: rgba(245, 242, 255, 0.92);

    background: rgba(12, 12, 22, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);

    pointer-events: none;
}

/* =========================================================
   10) SKILLS (kept, slightly cleaned, same visuals)
   ========================================================= */
#skills {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#skills::before {
    content: "";
    position: absolute;
    inset: -100%;
    background:
        conic-gradient(from 210deg,
            rgba(168, 85, 247, .20),
            rgba(124, 58, 237, .10),
            rgba(192, 132, 252, .18),
            rgba(168, 85, 247, .20));
    filter: blur(55px);
    opacity: .15;
    animation: spin 18s linear infinite;
    z-index: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#skills::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    opacity: .20;
    pointer-events: none;
    z-index: 1;
}

#skillsFx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: .9;
}

.skills-wrap {
    position: relative;
    z-index: 2;
    max-width: 1620px;
    margin: 0 auto;
}

.section-title {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    letter-spacing: .6px;
    line-height: 1.08;
}

.skills-toolbar {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 26px 0 40px;
}

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(200, 150, 255, .22);
    background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(10, 3, 18, 0.08));
    box-shadow: 0 14px 40px rgba(0, 0, 0, .24);
    backdrop-filter: blur(10px);
}

.search svg {
    width: 18px;
    height: 18px;
    opacity: .85;
}

.search input {
    width: min(320px, 65vw);
    border: none;
    outline: none;
    color: var(--ink);
    background: transparent;
    font-size: .95rem;
}

.search input::placeholder {
    color: rgba(246, 239, 255, .55);
}

.skills-toolbar .ghost {
    border: none;
    background: rgba(255, 255, 255, .05);
    color: rgba(246, 239, 255, .9);
    width: 30px;
    height: 30px;
    border-radius: 999px;
    cursor: pointer !important;
    transition: transform .15s ease, background .2s ease;
}

.skills-toolbar .ghost:hover {
    transform: scale(1.06);
    background: rgba(168, 85, 247, .18);
}

.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    border: 1px solid rgba(200, 150, 255, .20);
    background: rgba(255, 255, 255, .04);
    color: rgba(246, 239, 255, .88);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer !important;
    transition: transform .15s ease, background .2s ease, border-color .2s ease;
    user-select: none;
}

.chip:hover {
    transform: translateY(-1px);
    background: rgba(168, 85, 247, .12);
    border-color: rgba(200, 150, 255, .35);
}

.chip.is-active {
    background: linear-gradient(90deg, rgba(168, 85, 247, .20), rgba(124, 58, 237, .18));
    border-color: rgba(200, 150, 255, .45);
    box-shadow: 0 18px 45px rgba(124, 58, 237, .16);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 26px;
}

/* Skill card (3D tilt vars are set by JS) */
.skill-card {
    --rx: 0deg;
    --ry: 0deg;
    --tx: 0px;
    --ty: 0px;
    --mx: 50%;
    --my: 50%;
    --level: 80%;
    --glow: rgba(169, 85, 247, 0.215);

    position: relative;
    height: 118px;
    border-radius: 18px;

    border: 1px solid transparent;
    background:
        linear-gradient(145deg, var(--cardA), var(--cardB)) padding-box,
        radial-gradient(650px 220px at var(--mx) var(--my),
            rgba(192, 132, 252, .55),
            rgba(168, 85, 247, .28),
            transparent 70%) border-box,
        linear-gradient(90deg,
            rgba(168, 85, 247, .35),
            rgba(124, 58, 237, .22),
            rgba(192, 132, 252, .32)) border-box;

    box-shadow:
        0 26px 60px rgba(0, 0, 0, .38),
        0 10px 28px rgba(124, 58, 237, .12);

    backdrop-filter: blur(12px);

    transform-style: preserve-3d;
    transform: perspective(850px) translate3d(var(--tx), var(--ty), 0) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .22s ease, box-shadow .28s ease, filter .28s ease;
    cursor: pointer !important;
    will-change: transform;
    user-select: none;
}

.skill-card::after {
    content: "";
    position: absolute;
    inset: -35%;
    border-radius: 999px;
    background: radial-gradient(circle at var(--mx) var(--my),
            rgba(168, 85, 247, .22),
            transparent 55%);
    filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.skill-card:hover {
    filter: saturate(1.12);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, .46),
        0 22px 62px rgba(124, 58, 237, .22);
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 18px 18px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;

    border-radius: inherit;
    overflow: hidden;
}

.skill-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px 180px at var(--mx) var(--my),
            rgba(255, 255, 255, .20),
            rgba(255, 255, 255, .06),
            transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.skill-card:hover .skill-inner::before {
    opacity: 1;
}

.skill-card img {
    width: 44px;
    height: 44px;
    transform: translateZ(20px) scale(1);
    transition: transform .25s ease, filter .25s ease;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.skill-card span {
    font-size: .92rem;
    letter-spacing: .4px;
    opacity: .92;
    transform: translateZ(15px);
    transition: opacity .25s ease, transform .25s ease;
    white-space: nowrap;
}

/* Meter */
.meter {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    overflow: hidden;

    opacity: 0;
    transform: translateZ(10px) translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}

.meter i {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(192, 132, 252, .9), rgba(168, 85, 247, .85), rgba(124, 58, 237, .8));
    box-shadow: 0 0 22px rgba(168, 85, 247, .22);
    transition: width .55s cubic-bezier(.2, .9, .2, 1);
}

.skill-card:hover .meter {
    opacity: 1;
    transform: translateZ(10px) translateY(0);
}

.skill-card:hover .meter i {
    width: var(--level);
}

.skill-card:hover img {
    transform: translateZ(26px) scale(1.55);
    filter: drop-shadow(0 0 26px rgba(168, 85, 247, .35));
}

/* Hide label on hover */
.skill-card:hover span {
    opacity: 0;
    transform: translateZ(12px) translateY(10px);
    pointer-events: none;
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(192, 132, 252, .9), rgba(168, 85, 247, .0));
    pointer-events: none;
    opacity: .9;
    mix-blend-mode: screen;
    animation: pop .55s ease-out forwards;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, .35));
}

@keyframes pop {
    0% {
        transform: translate(0, 0) scale(.9);
        opacity: .95;
    }

    100% {
        transform: translate(var(--dx), var(--dy)) scale(0);
        opacity: 0;
    }
}

.skills-empty {
    margin-top: 28px;
    text-align: center;
    opacity: .8;
    padding: 18px;
    border: 1px dashed rgba(200, 150, 255, .25);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
}

@media (max-width: 520px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .skill-card {
        height: 112px;
    }
}

/* =========================================================
   11) PROJECTS
   ========================================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 34px;
    margin-top: 40px;
}

.project-card {
    background: var(--card);
    padding: 34px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);

    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.project-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.project-tag {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.75rem;
    letter-spacing: 0.4px;
    color: var(--accent-strong);
}

.project-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   12) FOOTER
   ========================================================= */
.site-footer {
    position: relative;
    padding: 80px 0 28px;
    margin-top: 80px;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(173, 89, 255, 0.18), rgba(0, 0, 0, 0) 55%),
        linear-gradient(180deg, rgba(7, 8, 18, 0.0), rgba(7, 8, 18, 0.85) 35%, rgba(7, 8, 18, 1));
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(173, 89, 255, 0),
            rgba(173, 89, 255, 0.75),
            rgba(140, 170, 255, 0.55),
            rgba(173, 89, 255, 0));
    opacity: 0.8;
}

.footer-shell {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: stretch;
}

.footer-title {
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    color: rgba(245, 242, 255, 0.96);
}

.footer-desc {
    margin: 0 0 18px;
    line-height: 1.6;
    color: rgba(207, 199, 255, 0.78);
    max-width: 52ch;
}

.footer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(245, 242, 255, 0.92);
    background: rgba(173, 89, 255, 0.14);
    border: 1px solid rgba(173, 89, 255, 0.30);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
    cursor: pointer !important;
}

.footer-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(173, 89, 255, 0.55);
    background: rgba(173, 89, 255, 0.18);
}

.footer-btn.ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
}

.footer-btn.ghost:hover {
    border-color: rgba(207, 199, 255, 0.35);
}

.footer-btn .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(207, 199, 255, 0.9);
    box-shadow: 0 0 14px rgba(173, 89, 255, 0.65);
}

.footer-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 20, 0.55);
}

.footer-card-glow {
    position: absolute;
    inset: -60px;
    background:
        radial-gradient(60% 60% at 30% 20%, rgba(173, 89, 255, 0.35), rgba(0, 0, 0, 0) 60%),
        radial-gradient(60% 60% at 70% 80%, rgba(140, 170, 255, 0.22), rgba(0, 0, 0, 0) 60%);
    filter: blur(18px);
    opacity: 0.9;
}

.footer-card-inner {
    position: relative;
    padding: 22px;
    backdrop-filter: blur(10px);
}

.footer-card-inner h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: rgba(245, 242, 255, 0.95);
}

.footer-card-inner p {
    margin: 0 0 14px;
    color: rgba(207, 199, 255, 0.72);
    line-height: 1.55;
}

.footer-mini {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-pill {
    font-size: 0.75rem;
    padding: 8px 10px;
    border-radius: 999px;
    color: rgba(245, 242, 255, 0.88);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(207, 199, 255, 0.62);
    font-size: 0.9rem;
}

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%) translateY(18px);
    opacity: 0;
    pointer-events: none;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(12, 12, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(245, 242, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 9999;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================================
   13) SCROLL REVEAL
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(.2, .6, .2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   14) BACK TO TOP
   ========================================================= */
.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 14px;

    display: grid;
    place-items: center;

    background: rgba(173, 89, 255, 0.16);
    border: 1px solid rgba(173, 89, 255, 0.28);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);

    cursor: pointer !important;
    z-index: 900;

    opacity: 0;
    transform: translateY(10px);
    pointer-events: auto;
    transition: opacity .18s ease, transform .18s ease, border-color .18s ease, background .18s ease;
}

.to-top svg {
    width: 22px;
    height: 22px;
    fill: rgba(245, 242, 255, 0.92);
    filter: drop-shadow(0 0 10px rgba(173, 89, 255, 0.55));
}

.to-top.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.to-top:hover {
    background: rgba(173, 89, 255, 0.22);
    border-color: rgba(173, 89, 255, 0.55);
    transform: translateY(-2px);
}

.to-top:active {
    transform: translateY(0);
}

/* =========================================================
   15) RESPONSIVE LAYOUT (Hero/About/Sections)
   ========================================================= */
@media (max-width: 1100px) {
    .hero {
        padding: 110px 36px;
        gap: 40px;
    }

    .hero-text {
        padding: 0 28px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 900px) {

    .hero,
    .hero-split {
        grid-template-columns: 1fr;
        height: auto;
        margin-top: 0;
        padding: 110px 18px 60px;
    }

    .hero-visual {
        height: min(56vh, 520px);
        border-radius: 22px;
    }

    .hero-text {
        padding: 0;
    }

    .hero-text h1 {
        font-size: clamp(2.0rem, 6vw, 2.7rem);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .night-card {
        height: 420px;
    }
}

@media (max-width: 520px) {
    .night-card {
        height: 380px;
    }

    .controls {
        bottom: 14px;
    }

    .range {
        width: 220px;
    }
}

/* =========================================================
   16) MOTION + TOUCH FALLBACKS
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    #skills::before {
        animation: none;
    }

    .reveal {
        transition: none;
    }

    .skill-card,
    .skill-card * {
        transition: none !important;
    }

    .sparkle {
        display: none;
    }
}

/* On touch devices, do NOT hide the cursor (prevents weird UX) */
@media (pointer: coarse) {
    * {
        cursor: auto !important;
    }

    #neon-trail {
        display: none;
    }
}

/* =========================================================
   FOOTER – Real Mobile Layout (force single column + proper order)
   Paste at the VERY END of your CSS
   ========================================================= */

@media (max-width: 820px) {

    /* Force the top area to be single-column (no side-by-side) */
    .site-footer .footer-top {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        align-items: stretch !important;
    }

    /* Ensure order: buttons first, card second */
    .site-footer .footer-brand {
        order: 1 !important;
    }

    .site-footer .footer-card {
        order: 2 !important;
        width: 100% !important;
    }

    /* Make buttons equal size (same width/height) */
    .site-footer .footer-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .site-footer .footer-actions .footer-btn {
        width: 100% !important;
        min-height: 54px !important;
        /* equal height */
        justify-content: center !important;
        padding: 14px 14px !important;
        border-radius: 16px !important;
    }

    /* Card spacing for mobile */
    .site-footer .footer-card-inner {
        padding: 18px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Pills MUST be inside the card and sit at the bottom */
    .site-footer .footer-mini {
        margin-top: 12px !important;
        padding-top: 12px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .site-footer .mini-pill {
        width: 100% !important;
        text-align: center !important;
        white-space: normal !important;
        /* allow wrap */
        line-height: 1.2 !important;
        padding: 10px 12px !important;
    }

    /* On very small phones, use 1 column for pills to avoid squeezing */
    @media (max-width: 360px) {
        .site-footer .footer-mini {
            grid-template-columns: 1fr !important;
        }
    }

    /* Footer bottom stacks nicely */
    .site-footer .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 8px !important;
    }

    /* Give space so the to-top button doesn't sit on the card */
    .site-footer {
        padding-bottom: calc(28px + 72px + env(safe-area-inset-bottom)) !important;
    }
}

@media (pointer: coarse) {
    * {
        cursor: auto !important;
    }

    #neon-trail {
        display: none;
    }
}

/* =========================================================
   Scroll Progress Bar – move under the navbar
   ========================================================= */

/* navbar height (matches your padding + content) */
:root {
    --nav-h: 70px;
    /* gerekirse 76/80/88 diye oynarsın */
}

/* navbar height responsive olabilir */
@media (max-width: 600px) {
    :root {
        --nav-h: 70px;
    }
}

/* progress bar class/id neyse burada seç */
.scroll-progress,
#scrollProgress,
.progress-bar {
    position: fixed;
    left: 0;
    top: var(--nav-h) !important;
    /* ✅ navbar ALTINA */
    height: 3px;
    width: 0%;
    z-index: 99;
    /* nav(100) altında kalsın */
    transform: translateY(-1px);
    /* ister 0 yap, ister -1 */
}

/* =========================================================
   HERO – Mobile: tighten spacing + center + fit screen
   ========================================================= */

@media (max-width: 600px) {

    /* Hero becomes a single column and centers content */
    .hero,
    .hero.hero-split {
        min-height: 100svh;
        height: auto;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding: 96px 18px 36px !important;
        /* top padding for fixed navbar */
        align-items: center !important;
        text-align: center !important;
    }

    /* Hide / reduce the left visual on mobile if it steals space */
    .hero-visual {
        height: 36vh !important;
        /* keep a small visual */
        min-height: 220px;
        max-height: 360px;
        border-radius: 18px;
        overflow: hidden;
    }

    /* Text block centered and not too wide */
    .hero-text {
        padding: 0 !important;
        max-width: 36rem;
        margin: 0 auto;
    }

    /* Make the whole H1 fit on screen without overflow */
    .hero-text h1 {
        font-size: clamp(1.75rem, 7.4vw, 2.35rem) !important;
        line-height: 1.06 !important;
        letter-spacing: -0.02em;
        margin: 0 auto;
    }

    /* ✅ Tighten spacing between "Hi, I'm" and the SVG */
    .fatma-logo-hero {
        display: inline-block;
        vertical-align: baseline;
        height: 0.92em !important;
        width: 4.5ch !important;
        margin-left: 8px !important;
        /* small gap from "I’m" */
        transform: translateY(3px);
        /* visually aligns baseline */
        padding-bottom: 0 !important;
        /* you had padding-bottom: 5px */
    }

    /* Subtitle centered and fits */
    .subtitle {
        margin-top: 14px !important;
        font-size: clamp(0.95rem, 3.8vw, 1.05rem) !important;
        max-width: 34ch;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================================================
   Force custom cursor everywhere (kill any pointer cursors)
   Paste at the very bottom of your CSS file.
   ========================================================= */

:where(
  a, button, input, textarea, select, label,
  .nav, .nav *, 
  .skill-card, .skill-card *,
  .project-card, .project-card *,
  .footer-card, .footer-card *,
  .night-card, .night-card *,
  .footer-btn, .footer-btn *,
  .chip, .chip *,
  #toTop, #toTop *,
  .range, .range *
){
  cursor: none !important;
}

/* Footer: never show the native pointer cursor (use custom canvas cursor instead) */
.site-footer a,
.site-footer button,
.site-footer .footer-btn,
.site-footer .footer-btn * {
    cursor: none !important;
}

.footer-btn {
    cursor: pointer !important;
}

#toTop {
    cursor: none !important;
}

#skills .chip,
#skills .chip * {
  cursor: none !important;
}

#skills .skill-card,
#skills .skill-card * {
  cursor: none !important;
}

/* Skills cards: force-hide native cursor (including card edges/corners) */
#skillsGrid,
#skillsGrid * {
  cursor: none !important;
}

/* Extra safety: if any file sets pointer with !important on the card */
#skillsGrid .skill-card,
#skillsGrid .skill-card * {
  cursor: none !important;
}

/* Skills search: bigger, more visible caret */
#skillSearch{
  font-size: 1.05rem;            /* caret size follows font-size */
  line-height: 1.2;
  caret-color: rgba(255,255,255,0.95);
  padding-block: 5px;           /* gives caret more vertical presence */
}

/* If your input inherits tiny font-size from somewhere, force it */
#skills .skills-toolbar .search input{
  font-size: 1.05rem !important;
}

#skillSearch{
  text-shadow: 0 0 8px rgba(186,104,255,0.25);
}


/* =========================================================
   UX Animations Pack (non-breaking additions)
   Paste at the very bottom of your CSS file.
   ========================================================= */

/* --- Nav progress bar (placed INSIDE navbar, at the bottom) --- */
.nav{
  overflow: hidden; /* keeps the progress bar clipped */
}

.nav-progress{
  position: absolute;
  left: 0;
  bottom: 0;            /* ✅ under the navbar */
  height: 2px;
  width: var(--p, 0%);
  background: linear-gradient(90deg,
    rgba(186,104,255,.15),
    rgba(186,104,255,.95),
    rgba(140,170,255,.55));
  box-shadow: 0 0 18px rgba(186,104,255,.55);
  border-radius: 999px;
  pointer-events: none;
  transform-origin: 0 50%;
  max-width: 100%;
}

/* --- Nav subtle “scroll state” (cleaner feel) --- */
.nav.is-scrolled{
  background: rgba(10,10,15,.72);
  backdrop-filter: blur(16px);
}

/* --- Generic reveal (stagger-friendly) --- */
.fx-reveal{
  opacity: 0;
  transform: translateY(18px) scale(.985);
  filter: blur(10px);
  transition:
    opacity 700ms cubic-bezier(.2,.8,.2,1),
    transform 900ms cubic-bezier(.2,.8,.2,1),
    filter 900ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}

.fx-reveal.is-in{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* --- Hero text “soft glow breathe” (very subtle) --- */
@keyframes breatheGlow{
  0%,100% { text-shadow: 0 0 0 rgba(186,104,255,0); }
  50%     { text-shadow: 0 0 24px rgba(186,104,255,.22); }
}

.hero-text h1{
  animation: breatheGlow 4.8s ease-in-out infinite;
}

/* --- Buttons: inner magnetic layer (doesn't fight existing transforms) --- */
.mag-inner{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translate3d(var(--mx,0px), var(--my,0px), 0);
  transition: transform 140ms ease;
  will-change: transform;
}

/* --- Click ripple (works on footer buttons + any .ripple target) --- */
.ripple{
  position: relative;
  overflow: hidden;
}

.ripple::after{
  content:"";
  position:absolute;
  inset:auto;
  width: 10px;
  height: 10px;
  left: var(--rx, 50%);
  top:  var(--ry, 50%);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.28), rgba(186,104,255,.22), transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.ripple.is-rippling::after{
  animation: ripplePop 520ms ease-out forwards;
}

@keyframes ripplePop{
  0%   { opacity: .8; transform: translate(-50%, -50%) scale(0); }
  60%  { opacity: .45; transform: translate(-50%, -50%) scale(18); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(28); }
}

/* --- Footer card: subtle float (premium feel) --- */
@keyframes floatCard{
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(-6px); }
}

/* =========================================================
   Footer Card: Aurora Drift + Sheen Sweep (no floating)
   Paste at the very bottom of your CSS file.
   ========================================================= */

/* Soft breathing border + glow (card stays still) */
@keyframes footerBreath {
  0%, 100% {
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 18px 50px rgba(0,0,0,.42);
    filter: saturate(1.0);
  }
  50% {
    border-color: rgba(173, 89, 255, 0.22);
    box-shadow: 0 22px 64px rgba(0,0,0,.52);
    filter: saturate(1.08);
  }
}

.footer-card{
  position: relative;
  transform: translateZ(0);
  will-change: box-shadow, filter;
  animation: footerBreath 6.2s ease-in-out infinite;
}

/* Aurora layer drift (your existing .footer-card-glow becomes alive) */
@keyframes auroraDrift {
  0%   { transform: translate(-10px, 12px) rotate(0deg) scale(1.05); }
  50%  { transform: translate(14px, -8px) rotate(8deg)  scale(1.08); }
  100% { transform: translate(-10px, 12px) rotate(0deg) scale(1.05); }
}

.footer-card-glow{
  animation: auroraDrift 7.8s ease-in-out infinite;
  will-change: transform;
}

/* Sheen sweep (subtle light pass) */
@keyframes sheenSweep {
  0%   { transform: translateX(-140%) rotate(18deg); opacity: 0; }
  15%  { opacity: .18; }
  55%  { opacity: .06; }
  100% { transform: translateX(140%) rotate(18deg); opacity: 0; }
}

.footer-card::after{
  content:"";
  position:absolute;
  inset:-40%;
  pointer-events:none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.10) 45%,
    rgba(186,104,255,.14) 50%,
    rgba(255,255,255,.08) 55%,
    transparent 100%
  );
  filter: blur(6px);
  opacity: 0;
  animation: sheenSweep 8.5s ease-in-out infinite;
}

/* Optional: make it react on hover/focus (stronger, but still classy) */
.footer-card:hover::after,
.footer-card:focus-within::after{
  opacity: 1;
}

.footer-card:hover{
  animation-duration: 4.8s;
}

.footer-card:hover .footer-card-glow{
  animation-duration: 5.6s;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce){
  .footer-card,
  .footer-card-glow,
  .footer-card::after{
    animation: none !important;
  }
}

/* =========================================================
   Projects: sheen sweep on hover (premium)
   ========================================================= */
.project-card{
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

@keyframes cardSheen{
  0%   { transform: translateX(-140%) rotate(14deg); opacity: 0; }
  18%  { opacity: .16; }
  60%  { opacity: .06; }
  100% { transform: translateX(140%) rotate(14deg); opacity: 0; }
}

.project-card::after{
  content:"";
  position:absolute;
  inset:-45%;
  pointer-events:none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.10) 46%,
    rgba(186,104,255,.16) 50%,
    rgba(255,255,255,.08) 54%,
    transparent 100%
  );
  filter: blur(8px);
  opacity: 0;
}

.project-card:hover::after{
  animation: cardSheen 1.2s ease-out;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce){
  .project-card:hover::after{ animation: none !important; }
}

/* =========================================================
   Projects animation: flip-up + blur resolve + sheen
   ========================================================= */
#projects .project-card{
  position: relative;
  overflow: hidden; /* required for sheen */
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

/* Base state (hidden) */
#projects .project-card.proj-reveal{
  opacity: 0;
  transform: translateY(26px) rotateX(16deg) scale(0.975);
  filter: blur(10px);
  transition:
    transform 900ms cubic-bezier(.2,.9,.2,1),
    opacity 520ms ease,
    filter 900ms ease;
  transition-delay: var(--pd, 0ms);
}

/* Visible state */
#projects .project-card.proj-reveal.is-in{
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
  filter: blur(0);
}

/* One-time sheen sweep when it enters */
#projects .project-card::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255,255,255,.10) 45%,
    rgba(186,104,255,.18) 52%,
    transparent 62%
  );
  transform: translateX(-35%) rotate(10deg);
  opacity: 0;
  pointer-events:none;
}

#projects .project-card.proj-reveal.is-in::before{
  opacity: 1;
  animation: projSheen 1100ms ease-out both;
  animation-delay: calc(var(--pd, 0ms) + 120ms);
}

@keyframes projSheen{
  0%   { transform: translateX(-45%) rotate(10deg); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateX(45%) rotate(10deg); opacity: 0; }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce){
  #projects .project-card.proj-reveal{
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  #projects .project-card::before{ display:none; }
}

/* Projects hover’daki mor "scanline" çizgisini kaldır (glow kalsın) */
#projects .project-card{
  position: relative;
  overflow: hidden;     /* pseudo element kenarları sızmasın */
  isolation: isolate;   /* blend/seam artefact azaltır */
}

/* Çizgi çoğu setup’ta ::after’dır */
#projects .project-card::after{
  animation: none !important;
  background: none !important;
  opacity: 0 !important;
}

/* =========================================================
   HERO (Clean base + hover-only fog spotlight)
   ========================================================= */

/* Layout */
.hero.hero-split{
  min-height: 100vh;
  padding: 120px 60px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
  overflow: hidden;
}

/* Left visual */
.hero-visual{
  position: relative;
  height: 100vh;
  overflow: hidden;
  border-radius: 0; /* istersen 22px yap */
}

/* Image: keep EXACT original look (no filter!) */
.hero-visual img,
.hero-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;       /* IMPORTANT: do not alter the photo */
  transform: none;
}

/* Existing overlay (if you want it, keep it as-is)
   You already have .hero-overlay in your CSS.
   Leave it, or tweak opacity here if needed. */
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(11, 11, 11, 0.15),
    rgba(11, 11, 11, 0.85)
  );
  z-index: 2;
  pointer-events: none;
}

/* Hover-only fog spotlight layer */
.hero-spotlight{
  position: absolute;
  inset: 0;
  z-index: 1;            /* image=0, spotlight=1, overlay=2 */
  pointer-events: none;

  /* 380x280 fog light */
  background: radial-gradient(
    380px 280px at var(--hx, 50%) var(--hy, 45%),
    rgba(186, 104, 255, 0.18),
    rgba(140, 170, 255, 0.10),
    transparent 60%
  );

  opacity: 0;            /* OFF by default */
  transition: opacity .28s ease;
}

/* Only on desktop hover */
@media (hover: hover) and (pointer: fine){
  .hero-visual:hover .hero-spotlight{
    opacity: 1;
  }
}

/* Never show on mobile/touch */
@media (hover: none){
  .hero-spotlight{ opacity: 0 !important; }
}

/* Right text */
.hero-text{
  padding: 0 80px;
  position: relative;
  z-index: 2;
}

.hero-text h1{
  font-size: 3.2rem;
  line-height: 1.15;
}

.hero-text .subtitle{
  margin-top: 28px;
  color: var(--muted);
  max-width: 520px;
}

/* Mobile hero layout */
@media (max-width: 900px){
  .hero.hero-split{
    grid-template-columns: 1fr;
    padding: 110px 18px 60px;
    gap: 18px;
  }

  .hero-visual{
    height: 46vh;
    border-radius: 22px; /* mobilde kart gibi dursun */
  }

  .hero-text{
    padding: 0;
    text-align: center;
  }

  .hero-text h1{
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .hero-text .subtitle{
    margin: 14px auto 0;
  }
}

@media (max-width: 860px){
  .nav{ overflow: visible !important; }
}

@media (max-width: 860px){
  .nav{ z-index: 1000; }
  .nav-scrim{ z-index: 900; }
  .nav-links{ z-index: 1100; }
  .nav-toggle{ z-index: 1200; }
}

@media (pointer: coarse) {
  #nbCard { touch-action: none; } /* kartın içinde drag çalışsın */
}
