/* =========================================================
   Sai Sumanth Battula — Cinematic Portfolio
   Pure CSS3 · No frameworks
   ========================================================= */

:root {
    --bg: #050608;
    --bg-2: #0a0c10;
    --surface: #0e1116;
    --surface-2: #141822;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #f3f5f8;
    --muted: #9aa3b2;
    --dim: #6b7280;
    --accent: #00b3ff;
    --accent-2: #5fe7ff;
    --accent-glow: 0 0 30px rgba(0, 179, 255, .55), 0 0 90px rgba(0, 179, 255, .25);
    --grad-line: linear-gradient(90deg, transparent, rgba(0, 179, 255, .7), transparent);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --ease-in: cubic-bezier(.7, 0, .84, 0);
    --font-display: "Anton", "Space Grotesk", sans-serif;
    --font-sans: "Inter", system-ui, sans-serif;
    --font-mono: "Space Grotesk", monospace;
    --container: 1320px;
}


/* Light mode override */

body.light {
    --bg: #f5f6f8;
    --bg-2: #ececef;
    --surface: #ffffff;
    --surface-2: #f1f2f6;
    --line: rgba(0, 0, 0, .08);
    --line-2: rgba(0, 0, 0, .14);
    --text: #0a0c10;
    --muted: #454c58;
    --dim: #6b7280;
}

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

html {
    scroll-behavior: smooth
}

html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

body {
    cursor: none
}

@media (max-width:900px) {
    body {
        cursor: auto
    }
}

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

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: none
}

@media (max-width:900px) {
    button {
        cursor: pointer
    }
}

::selection {
    background: var(--accent);
    color: #001018
}


/* ===== Loader ===== */

.loader {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transition: opacity .6s var(--ease), visibility .6s
}

.loader.hide {
    opacity: 0;
    visibility: hidden
}

.loader__bars {
    display: flex;
    gap: 6px;
    height: 46px;
    align-items: flex-end
}

.loader__bars span {
    width: 4px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    animation: bar 1.1s var(--ease) infinite;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 179, 255, .6)
}

.loader__bars span:nth-child(2) {
    animation-delay: .1s
}

.loader__bars span:nth-child(3) {
    animation-delay: .2s
}

.loader__bars span:nth-child(4) {
    animation-delay: .3s
}

.loader__bars span:nth-child(5) {
    animation-delay: .4s
}

@keyframes bar {
    0%,
    100% {
        height: 8px
    }
    50% {
        height: 46px
    }
}

.loader__text {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 56px);
    letter-spacing: .18em;
    color: #fff;
    position: relative
}

.loader__text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: var(--accent);
    clip-path: inset(0 100% 0 0);
    animation: reveal 1.6s var(--ease) infinite
}

@keyframes reveal {
    0% {
        clip-path: inset(0 100% 0 0)
    }
    50% {
        clip-path: inset(0 0 0 0)
    }
    100% {
        clip-path: inset(0 0 0 100%)
    }
}

.loader__progress {
    width: 280px;
    max-width: 60vw;
    height: 2px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden
}

.loader__progress i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    box-shadow: var(--accent-glow);
    transition: width .15s linear
}

.loader__meta {
    display: flex;
    justify-content: space-between;
    width: 280px;
    max-width: 60vw;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .25em;
    color: var(--muted);
    text-transform: uppercase
}


/* ===== Cursor ===== */

.cursor {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 150;
    transform: translate(-50%, -50%);
    transition: width .25s var(--ease), height .25s var(--ease), background .2s, border-color .2s;
    mix-blend-mode: difference
}

.cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 151;
    transform: translate(-50%, -50%);
    box-shadow: var(--accent-glow)
}

.cursor.hover {
    width: 64px;
    height: 64px;
    background: rgba(0, 179, 255, .12);
    border-color: var(--accent-2)
}

@media (max-width:900px) {
    .cursor,
    .cursor-dot {
        display: none
    }
}


/* ===== Scroll progress ===== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 120;
    box-shadow: var(--accent-glow)
}


/* ===== Particles ===== */

.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .55
}


/* ===== Nav ===== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 40px;
    transition: all .35s var(--ease)
}

.nav.scrolled {
    background: rgba(8, 10, 14, .55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
    padding: 14px 40px
}

body.light .nav.scrolled {
    background: rgba(255, 255, 255, .7)
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    letter-spacing: .18em;
    font-size: 18px
}

.nav__logo i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: var(--accent-glow);
    animation: pulse 2s ease-in-out infinite
}

@keyframes pulse {
    0%,
    100% {
        opacity: .5;
        transform: scale(.85)
    }
    50% {
        opacity: 1;
        transform: scale(1.1)
    }
}

.nav__links {
    display: flex;
    gap: 6px
}

.nav__links a {
    position: relative;
    padding: 8px 14px;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .3s
}

.nav__links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s var(--ease)
}

.nav__links a:hover,
.nav__links a.active {
    color: var(--text)
}

.nav__links a:hover::after,
.nav__links a.active::after {
    transform: scaleX(1);
    transform-origin: left
}

.nav__right {
    display: flex;
    gap: 8px;
    align-items: center
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    font-size: 16px;
    transition: all .3s
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--accent-glow)
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 50%
}

.burger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--text);
    transition: .3s
}

.burger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg)
}

.burger.open span:nth-child(2) {
    opacity: 0
}

.burger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg)
}

@media (max-width:900px) {
    .nav {
        padding: 16px 20px
    }
    .nav.scrolled {
        padding: 12px 20px
    }
    .burger {
        display: flex
    }
    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(85vw, 360px);
        background: rgba(8, 10, 14, .95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 18px;
        transform: translateX(100%);
        transition: transform .5s var(--ease);
        border-left: 1px solid var(--line)
    }
    .nav__links.open {
        transform: translateX(0)
    }
    .nav__links a {
        font-size: 18px;
        padding: 10px 20px
    }
}


/* ===== Hero ===== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 40px 80px;
    overflow: hidden
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(.85) contrast(1.05)
}

.hero__video[poster]:not([src])::-webkit-media-controls {
    display: none
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 30%, rgba(0, 179, 255, .18), transparent 60%), radial-gradient(ellipse at 80% 80%, rgba(0, 40, 80, .4), transparent 50%), linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .7) 60%, var(--bg) 100%);
    z-index: 1
}

.hero__grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: .18;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.6'/></svg>")
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .25em;
    color: var(--muted);
    margin-bottom: 32px;
    background: rgba(0, 0, 0, .3);
    backdrop-filter: blur(8px)
}

.hero__eyebrow i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: var(--accent-glow);
    animation: pulse 2s ease-in-out infinite
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(48px, 9vw, 148px);
    line-height: .95;
    letter-spacing: -.02em;
    margin-bottom: 32px;
    text-transform: uppercase
}

.hero__title .line {
    display: block;
    overflow: hidden
}

.hero__title .word {
    display: inline-block;
    transform: translateY(110%);
    animation: rise .9s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * .08s + .3s)
}

.hero__title .line:nth-child(1) .word:nth-child(1) {
    --i: 1
}

.hero__title .line:nth-child(1) .word:nth-child(2) {
    --i: 2
}

.hero__title .line:nth-child(2) .word:nth-child(1) {
    --i: 3
}

.hero__title .line:nth-child(2) .word:nth-child(2) {
    --i: 4
}

.hero__title .line:nth-child(2) .word:nth-child(3) {
    --i: 5
}

.hero__title .italic {
    font-style: italic;
    font-family: "Space Grotesk", serif;
    font-weight: 300;
    color: var(--accent-2);
    text-shadow: var(--accent-glow)
}

@keyframes rise {
    to {
        transform: translateY(0)
    }
}

.hero__sub {
    max-width: 620px;
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp .8s var(--ease) .9s forwards
}

.hero__sub b {
    color: var(--text);
    font-weight: 600
}

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

.hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp .8s var(--ease) 1.1s forwards
}

.hero__marquee {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 18px 0;
    opacity: 0;
    animation: fadeUp 1s var(--ease) 1.3s forwards
}

.marquee__track {
    display: flex;
    gap: 40px;
    align-items: center;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    font-family: var(--font-display);
    letter-spacing: .18em;
    font-size: 18px;
    color: var(--muted)
}

.marquee__track i {
    color: var(--accent);
    font-style: normal
}

@keyframes scroll {
    to {
        transform: translateX(-50%)
    }
}

.hero__scroll {
    position: absolute;
    left: 40px;
    bottom: 30px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .3em;
    color: var(--muted)
}

.hero__scroll i {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrolldown 2s ease-in-out infinite
}

@keyframes scrolldown {
    0% {
        transform: scaleY(0);
        transform-origin: top
    }
    50% {
        transform: scaleY(1);
        transform-origin: top
    }
    51% {
        transform-origin: bottom
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom
    }
}

.hero__corners {
    position: absolute;
    inset: 30px;
    z-index: 3;
    pointer-events: none
}

.hero__corners i {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid var(--accent)
}

.hero__corners i:nth-child(1) {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0
}

.hero__corners i:nth-child(2) {
    top: 0;
    right: 0;
    border-left: 0;
    border-bottom: 0
}

.hero__corners i:nth-child(3) {
    bottom: 0;
    left: 0;
    border-right: 0;
    border-top: 0
}

.hero__corners i:nth-child(4) {
    bottom: 0;
    right: 0;
    border-left: 0;
    border-top: 0
}


/* ===== Buttons ===== */

.btn {
    position: relative;
    padding: 16px 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    border-radius: 999px;
    overflow: hidden;
    transition: all .35s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.btn span {
    position: relative;
    z-index: 2
}

.btn--primary {
    background: var(--accent);
    color: #001018;
    font-weight: 600;
    box-shadow: 0 10px 40px -10px rgba(0, 179, 255, .6)
}

.btn--primary:hover {
    background: var(--accent-2);
    box-shadow: 0 14px 50px -8px rgba(0, 179, 255, .85);
    transform: translateY(-2px)
}

.btn--ghost {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line-2);
    color: var(--text);
    backdrop-filter: blur(8px)
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: var(--accent);
    color: var(--accent-2)
}

.btn--line {
    border: 1px solid var(--accent);
    color: var(--accent-2)
}

.btn--line:hover {
    background: var(--accent);
    color: #001018
}

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


/* ===== Section base ===== */

.section {
    position: relative;
    padding: 140px 40px;
    max-width: var(--container);
    margin: 0 auto
}

.section__head {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 80px;
    max-width: 900px
}

.section__num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--accent);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 14px
}

.section__num::before {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--accent);
    box-shadow: var(--accent-glow)
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 72px);
    line-height: 1;
    letter-spacing: -1px;
    text-transform: uppercase;
    font-weight: 400;
    white-space: nowrap;
}


/* ===== Reveal ===== */

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

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


/* ===== About ===== */

.about__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start
}

.about__media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px
}

.about__media img {
    width: 100%;
    height: auto;
    filter: grayscale(.2) contrast(1.05);
    transition: transform 1.2s var(--ease), filter .6s
}

.about__media:hover img {
    transform: scale(1.04);
    filter: grayscale(0) contrast(1.1)
}

.about__media-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line-2);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .25em;
    color: var(--accent-2)
}

.about__copy p {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 24px
}

.about__copy p b {
    color: var(--text)
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    margin-top: 48px;
    border: 1px solid var(--line);
}

.stat {
    background: var(--bg);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all .35s ease;
}

.stat:hover {
    background: rgba(0, 179, 255, .05);
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 179, 255, .15);
}

.stat b {
    font-family: var(--font-display);
    font-size: clamp(60px, 6vw, 90px);
    color: var(--text);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 15px;
}

.stat span {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width:900px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px
    }
}


/* ===== Filters ===== */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px
}

.filter {
    padding: 10px 18px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    transition: all .3s
}

.filter:hover {
    border-color: var(--accent);
    color: var(--accent-2)
}

.filter.active {
    background: var(--accent);
    color: #001018;
    border-color: var(--accent);
    font-weight: 600
}


/* ===== Project cards ===== */

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

.card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 6px;
    cursor: pointer;
    transition: transform .5s var(--ease), border-color .3s;
}

.card.size-lg {
    grid-column: span 7;
}

.card.size-md {
    grid-column: span 5;
}

.card.size-sm {
    grid-column: span 4;
}

@media (max-width:1100px) {
    .card {
        grid-column: span 12 !important;
    }
}

.card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}


/* ===== VIDEO ===== */

.project-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 1s var(--ease), filter .5s;
    filter: grayscale(.4) contrast(1.05);
}


/* Hover Effect */

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card:hover .project-video {
    transform: scale(1.07);
    filter: grayscale(0) contrast(1.1);
}


/* Dark Overlay */

.card__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, transparent 30%, rgba(0, 0, 0, .7) 100%);
    pointer-events: none;
}


/* Badge */

.card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    background: var(--accent);
    color: #001018;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .2em;
    font-weight: 600;
    z-index: 5;
}


/* Software Name */

.card__meta {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line-2);
    color: var(--accent-2);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .2em;
    z-index: 5;
}


/* Body */

.card__body {
    padding: 24px;
}

.card__cat {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .25em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.card__title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.1;
    margin-bottom: 10px;
}

.card__desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.card__actions {
    display: flex;
    gap: 10px;
}

.card__actions button {
    padding: 8px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    transition: .3s;
}

.card__actions button:hover {
    border-color: var(--accent);
    color: var(--accent-2);
}

.card.hide {
    display: none;
}


/* ===== Showreel ===== */

.reel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto
}

.reel__frame {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid var(--line);
    overflow: hidden;
    border-radius: 4px
}

.reel__frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.reel__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(0, 179, 255, .15);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent);
    color: var(--accent-2);
    box-shadow: var(--accent-glow);
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: center
}

.reel__play svg {
    width: 44px;
    height: 44px;
    margin-left: 6px
}

.reel__play:hover {
    transform: scale(1.1);
    background: var(--accent);
    color: #001018
}

.reel__play.hide {
    opacity: 0;
    pointer-events: none;
    transform: scale(.6)
}

.reel__controls {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    opacity: 0;
    transition: opacity .35s
}

.reel__frame:hover .reel__controls,
.reel__controls.show {
    opacity: 1
}

.reel__controls button {
    color: var(--text);
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center
}

.reel__bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, .15);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer
}

.reel__bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    box-shadow: var(--accent-glow)
}

.reel__controls span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    min-width: 36px
}

.reel__corners {
    position: absolute;
    inset: 14px;
    pointer-events: none
}

.reel__corners i {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1px solid var(--accent)
}

.reel__corners i:nth-child(1) {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0
}

.reel__corners i:nth-child(2) {
    top: 0;
    right: 0;
    border-left: 0;
    border-bottom: 0
}

.reel__corners i:nth-child(3) {
    bottom: 0;
    left: 0;
    border-right: 0;
    border-top: 0
}

.reel__corners i:nth-child(4) {
    bottom: 0;
    right: 0;
    border-left: 0;
    border-top: 0
}


/* ===== Services ===== */

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line)
}

.svc {
    padding: 36px 30px;
    background: var(--bg);
    transition: background .35s, transform .35s;
    position: relative;
    overflow: hidden
}

.svc::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: var(--accent-glow);
    transition: width .5s var(--ease)
}

.svc:hover {
    background: var(--surface);
    transform: translateY(-4px)
}

.svc:hover::before {
    width: 100%
}

.svc__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    color: var(--accent);
    font-size: 22px;
    margin-bottom: 20px;
    transition: .3s
}

.svc:hover .svc__icon {
    border-color: var(--accent);
    background: rgba(0, 179, 255, .08);
    box-shadow: var(--accent-glow)
}

.svc h3 {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: .02em;
    margin-bottom: 10px
}

.svc p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6
}

.svc__no {
    position: absolute;
    top: 18px;
    right: 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--dim)
}


/* ===== Software ===== */

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

@media (max-width:900px) {
    .software__grid {
        grid-template-columns: 1fr
    }
}

.soft {
    padding: 36px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 6px;
    transition: .4s;
    position: relative;
    overflow: hidden
}

.soft::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(0, 179, 255, .3), transparent);
    opacity: 0;
    transition: .4s;
    pointer-events: none;
    z-index: -1
}

.soft:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 30px 60px -20px rgba(0, 179, 255, .25)
}

.soft__logo {
    width: 72px;
    height: 72px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--accent-2);
    margin-bottom: 22px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 179, 255, .15), transparent 70%)
}

.soft__logo::before {
    content: attr(data-logo)
}

.soft h3 {
    font-family: var(--font-display);
    font-size: 26px;
    margin-bottom: 10px;
    letter-spacing: .02em
}

.soft p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 22px
}

.soft__meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px
}

.soft__meta b {
    color: var(--accent-2)
}

.bar {
    height: 3px;
    background: rgba(255, 255, 255, .08);
    border-radius: 2px;
    overflow: hidden
}

.bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: var(--accent-glow);
    transition: width 1.5s var(--ease)
}

.bar.in i {
    width: var(--w)
}


/* ===== Skills ===== */

.skills__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 60px
}

@media (max-width:760px) {
    .skills__grid {
        grid-template-columns: 1fr
    }
}

.skill {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.skill__row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .12em
}

.skill__row span {
    color: var(--text);
    text-transform: uppercase
}

.skill__row b {
    color: var(--accent-2);
    font-weight: 500
}


/* ===== Workflow timeline ===== */

.timeline {
    list-style: none;
    position: relative;
    padding-left: 0;
    display: grid;
    gap: 0
}

.timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--line-2) 10%, var(--line-2) 90%, transparent)
}

.tl {
    position: relative;
    padding: 24px 24px 24px 60px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    transition: background .3s
}

.tl:last-child {
    border-bottom: 0
}

.tl::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line-2);
    transform: translateY(-50%);
    transition: .3s
}

.tl:hover {
    background: var(--surface)
}

.tl:hover::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--accent-glow)
}

.tl__num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .22em;
    color: var(--accent);
    min-width: 48px
}

.tl__body h4 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 32px);
    letter-spacing: .01em;
    margin-bottom: 4px
}

.tl__body p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5
}

.tl__phase {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .22em;
    color: var(--muted);
    text-transform: uppercase;
    text-align: right
}

@media (max-width:700px) {
    .tl {
        grid-template-columns: 1fr;
        padding-left: 48px
    }
    .tl__phase {
        text-align: left
    }
}


/* ===== Gallery ===== */

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

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

@media (max-width:560px) {
    .gallery__grid {
        grid-template-columns: 1fr
    }
}

.gallery__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--line);
    cursor: none
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
    filter: grayscale(.3)
}

.gallery__item:hover img {
    transform: scale(1.08);
    filter: grayscale(0)
}

.gallery__item::after {
    content: "VIEW";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .3em;
    color: #fff;
    padding: 8px 14px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
    border: 1px solid var(--accent);
    opacity: 0;
    transition: .3s
}

.gallery__item:hover::after {
    opacity: 1
}


/* ===== Testimonials ===== */

.slider {
    position: relative;
    overflow: hidden
}

.slider__track {
    display: flex;
    transition: transform .7s var(--ease)
}

.testi {
    flex: 0 0 100%;
    padding: 0 10px;
    display: flex;
    justify-content: center
}

.testi__card {
    max-width: 760px;
    padding: 48px;
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    text-align: center
}

.testi__stars {
    color: var(--accent-2);
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-size: 14px
}

.testi__text {
    font-family: "Space Grotesk", serif;
    font-style: italic;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.55;
    color: var(--text);
    margin-bottom: 28px
}

.testi__who {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px
}

.testi__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001018;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 18px
}

.testi__name b {
    display: block;
    font-weight: 600;
    font-size: 14px
}

.testi__name span {
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-mono);
    letter-spacing: .15em
}

.slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 36px
}

.slider__nav button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: var(--text);
    transition: .3s
}

.slider__nav button:hover {
    border-color: var(--accent);
    color: var(--accent-2);
    box-shadow: var(--accent-glow)
}

.slider__dots {
    display: flex;
    gap: 8px
}

.slider__dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-2);
    transition: .3s;
    cursor: none
}

.slider__dots i.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
    box-shadow: var(--accent-glow)
}


/* ===== Contact ===== */

.contact {
    padding: 140px 40px 100px
}

.contact__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start
}

@media (max-width:900px) {
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px
    }
}

.contact__title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.5vw, 76px);
    line-height: 1;
    text-transform: uppercase;
    margin: 16px 0 24px
}

.contact__title i {
    font-style: italic;
    color: var(--accent-2);
    font-family: "Space Grotesk", serif;
    font-weight: 300;
    text-shadow: var(--accent-glow)
}

.contact__head p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 480px
}

.contact__list {
    list-style: none;
    display: grid;
    gap: 14px
}

.contact__list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    font-size: 14px
}

.contact__list li:last-child {
    border-bottom: 1px solid var(--line)
}

.contact__list span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted)
}

.contact__list a {
    color: var(--text);
    transition: color .3s;
    position: relative
}

.contact__list a:hover {
    color: var(--accent-2)
}

.contact__form {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.contact__form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative
}

.contact__form label.full {
    grid-column: 1/-1
}

.contact__form span {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .25em;
    color: var(--muted);
    text-transform: uppercase
}

.contact__form input,
.contact__form select,
.contact__form textarea {
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--line-2);
    color: var(--text);
    font: inherit;
    border-radius: 4px;
    transition: border-color .3s, box-shadow .3s;
    font-size: 14px;
    cursor: none
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 179, 255, .15)
}

.contact__form label.error input,
.contact__form label.error textarea,
.contact__form label.error select {
    border-color: #ff4d6d
}

.contact__form label i {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #ff8095;
    display: none
}

.contact__form label.error i {
    display: block
}

.contact__status {
    grid-column: 1/-1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .15em;
    color: var(--accent-2);
    min-height: 18px
}


/* ===== Footer ===== */

.footer {
    padding: 60px 40px 30px;
    border-top: 1px solid var(--line);
    max-width: var(--container);
    margin: 0 auto
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line)
}

.footer__top h3 {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: .05em
}

.footer__links {
    display: flex;
    gap: 24px
}

.footer__links a {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .3s
}

.footer__links a:hover {
    color: var(--accent-2)
}

.footer__social {
    display: flex;
    gap: 10px
}

.footer__social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--muted);
    transition: .3s
}

.footer__social a:hover {
    border-color: var(--accent);
    color: var(--accent-2);
    box-shadow: var(--accent-glow)
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .15em;
    color: var(--dim);
    text-transform: uppercase
}


/* ===== Back to top ===== */

.totop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #001018;
    font-weight: 700;
    box-shadow: var(--accent-glow);
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    z-index: 90
}

.totop.show {
    opacity: 1;
    visibility: visible
}

.totop:hover {
    transform: translateY(-4px)
}


/* ===== Lightbox ===== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    z-index: 160;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px
}

.lightbox.open {
    display: flex;
    animation: fadeIn .3s ease
}

.lightbox img {
    max-width: 95%;
    max-height: 90vh;
    border: 1px solid var(--accent);
    box-shadow: var(--accent-glow)
}

#lightboxClose {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: #fff;
    font-size: 18px
}

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


/* ===== Easter ===== */

.easter {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 170;
    text-align: center;
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: .1em;
    color: var(--accent-2)
}

.easter.show {
    display: flex;
    animation: fadeIn .4s ease
}

.easter span {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .25em;
    color: var(--muted);
    margin-top: 14px
}

.easter b {
    display: block;
    margin-top: 14px;
    font-size: 18px;
    letter-spacing: .18em;
    color: #fff
}


/* ===== Reduced motion ===== */

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}


/* ===================================================
   MOBILE RESPONSIVE FIX
=================================================== */

@media screen and (max-width:768px) {
    html,
    body {
        overflow-x: hidden;
    }
    .section {
        padding: 70px 20px;
    }
    /* Hero */
    .hero {
        min-height: 100vh;
        padding: 110px 20px 60px;
    }
    .hero__content {
        width: 100%;
    }
    .hero__title {
        font-size: clamp(2.6rem, 10vw, 4rem);
        line-height: 1;
    }
    .hero__sub {
        width: 100%;
        font-size: 16px;
    }
    .hero__cta {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .hero__cta .btn {
        width: 100%;
    }
    /* About */
    .about__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    /* Stats */
    .stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    /* Projects */
    .projects__grid,
    .cards,
    .services__grid,
    .gallery,
    .grid {
        display: grid;
        grid-template-columns: 1fr !important;
    }
    /* Contact */
    .contact__inner {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    .contact__title {
        font-size: clamp(2rem, 9vw, 3.4rem);
        line-height: 1;
    }
    .contact__list {
        width: 100%;
    }
    .contact__list li {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .contact__list span:last-child {
        word-break: break-word;
    }
    .contact__form {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }
    .contact__form .row {
        display: grid;
        grid-template-columns: 1fr !important;
    }
    .contact__form input,
    .contact__form textarea,
    .contact__form select {
        width: 100%;
    }
    /* Footer */
    .footer {
        text-align: center;
    }
    .footer__nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    /* Back to top */
    .totop {
        width: 52px;
        height: 52px;
        right: 18px;
        bottom: 18px;
    }
    /* Navigation */
    .nav {
        padding: 14px 18px;
    }
}