@font-face {
    font-family: 'Million Asteroids';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/MillionAstteroids-R9njo.ttf") format("truetype");
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2"), url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.ttf") format("truetype");
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.woff2") format("woff2"), url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.ttf") format("truetype");
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2"), url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.ttf") format("truetype");
}

:root {
    --color-primary: #f57c2f;
    --color-primary-dark: #ea580c;
    --color-secondary: #3b82f6;
    --color-secondary-dark: #2563eb;
    --color-bg: #05050a;
    --color-surface: #0b0b28;
    --color-text-main: #ffffff;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.1);
    --bg: var(--color-bg);
    --brand: var(--color-text-main);
    --muted: var(--color-text-muted);
    --accent: var(--color-secondary);
    --accent-warm: var(--color-primary);
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-md: 1.125rem;
    --font-lg: 1.25rem;
    --font-xl: 1.5rem;
    --font-2xl: 2rem;
    --font-3xl: 3rem;
    --font-4xl: 4rem;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --lh-tight: 1.1;
    --lh-normal: 1.5;
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-section: 120px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --nav-height: 80px;
    --grid-color: rgba(255, 255, 255, 0.03);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: clip;
    width: 100%;
    position: relative;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, system-ui, sans-serif;
    background: var(--color-bg);
    color: var(--color-text-main);
    font-size: var(--font-base);
    line-height: var(--lh-normal);
    background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    position: relative;
}

html.lenis,
html.lenis body {
    height: auto;
}

@keyframes blurReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes wordReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes superFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 124, 47, 0);
        filter: brightness(1);
    }

    10% {
        box-shadow: 0 0 20px 15px rgba(245, 124, 47, 0.8);
        filter: brightness(1.5);
    }

    100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
        filter: brightness(1);
    }
}

.hero h1 {
    position: relative;
}

.word-span {
    display: inline-block;
    margin-right: 0.2em;
}

.hero p.description {
    opacity: 0;
    animation: blurReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.3s;
}

.hero .cta {
    opacity: 0;
    animation: blurReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1.5s;
}

.hero-badge {
    opacity: 0;
    animation: blurReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

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

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

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 124, 47, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(245, 124, 47, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 124, 47, 0);
    }
}

.reveal-on-scroll {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

header {
    background: rgba(5, 5, 10, 0);
    backdrop-filter: blur(12px);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(5, 5, 10, 0.95);
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.logo-text {
    background: linear-gradient(-140deg, white, #f5d6c3, var(--accent-warm));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.logo-dot {
    background: transparent;
    top: 4px;
    width: 24px;
    height: 24px;
    position: relative;
    animation: soft-glow 4s infinite ease-in-out;
}

@keyframes soft-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 3px var(--accent-warm));
    }

    50% {
        filter: drop-shadow(0 0 6px var(--accent-warm));
    }
}

.logo-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.nav-center {
    display: flex;
    gap: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-center a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-center a:hover,
.nav-center a.active {
    color: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-nav-cta {
    background: linear-gradient(90deg, #f57c2f, #ea580c);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 124, 47, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 124, 47, 0.5);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-nav a {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-nav.open a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.open a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav.open a:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav.open a:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav.open a:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-nav.open a:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-nav a:hover {
    color: var(--accent);
}

.mobile-nav-footer {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.6s;
}

.mobile-nav.open .mobile-nav-footer {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width:900px) {

    .nav-center,
    .nav-right {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
    position: relative;
    transform-origin: center;
}

.hero {
    padding: 180px 20px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    background: radial-gradient(circle at 50% 0%, rgba(11, 11, 40, 0.5) 0%, rgba(5, 5, 10, 1) 10%);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 150px), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 15%), transparent 100%);
}

.beam-of-light {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(245, 124, 47, 0.15) 0%, transparent 70%);
    transform: rotate(-30deg);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.hero-unicorn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
    overflow: hidden;
}

@keyframes floatOne {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(60px, 40px) rotate(8deg);
    }
}

@keyframes floatTwo {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-50px, 70px) scale(1.15);
    }
}

@keyframes floatThree {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(70px, -50px) rotate(-12deg);
    }
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    z-index: 5;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding-top: 40px;
}

.hero-text-container {
    text-align: center;
    max-width: 900px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    color: var(--color-primary);
    font-weight: var(--fw-medium);
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, var(--font-4xl));
    margin: 0 0 var(--space-lg);
    color: var(--color-text-main);
    line-height: var(--lh-tight);
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    position: relative;
}

.hero h1 span {
    background: linear-gradient(135deg, #fff 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.theme-toggle {
    display: none !important;
}

.hero p.description {
    margin: 0 auto var(--space-xl);
    color: var(--color-text-muted);
    font-size: var(--font-lg);
    line-height: 1.6;
    max-width: 600px;
    opacity: 0;
    animation: blurReveal 1s ease-out 1s forwards;
}

.cta {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    opacity: 0;
    animation: blurReveal 1s ease-out 2s forwards;
}

.btn-primary {
    background: var(--color-secondary);
    color: #fff;
    box-shadow: var(--shadow-glow);
    border-radius: var(--radius-full);
    padding: var(--space-sm) 40px;
    font-size: var(--font-md);
    font-weight: var(--fw-semibold);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--color-secondary-dark);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.hero-visuals-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    margin-top: auto;
    gap: 40px;
    perspective: 1000px;
}

@keyframes floatPhone {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes dash {
    to {
        stroke-dashoffset: 1000;
    }
}

@media (max-width:900px) {

    .hero-visuals-container {
        flex-direction: column;
        gap: 20px;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
    }

    .hero-content {
        min-height: auto;
    }
}

.button {
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 30px;
    padding: 3px;
    background: radial-gradient(circle 80px at 80% -10%, rgba(255, 255, 255, 0.1), rgba(5, 5, 10, 1));
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: superFlash 1s ease-out 3s, soft-glow-blue 4s infinite ease-in-out;
}

.button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
}

.button::after {
    content: "";
    position: absolute;
    width: 65%;
    height: 60%;
    border-radius: 120px;
    top: 0;
    right: 0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: box-shadow 0.3s;
}

.button:hover::after {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.blob1 {
    position: absolute;
    width: 100px;
    height: 100%;
    border-radius: 50%;
    bottom: -20%;
    left: -20%;
    background: radial-gradient(circle, var(--accent), var(--accent-warm));
    filter: blur(15px);
    opacity: 0.8;
    transition: all 0.5s ease;
    animation: blobMove 4s infinite alternate;
}

.blob2 {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--accent-warm), var(--accent));
    filter: blur(12px);
    opacity: 0.6;
    transition: all 0.5s ease;
    animation: blobMove 5s infinite alternate-reverse;
}

.button:hover .blob1 {
    opacity: 1;
    filter: blur(20px);
}

.bottom:hover .blob2 {
    opacity: 0.9;
    filter: blur(15px);
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10px, -10px) scale(1.1);
    }
}

.inner {
    padding: 14px 32px;
    border-radius: 26px;
    color: linear-gradient(135deg, #fff 0%, var(--muted) 100%);
    ;
    z-index: 3;
    position: relative;
    background: rgba(5, 5, 10, 0.9);
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
    transition: background 0.3s;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button:hover .inner {
    background: rgba(5, 5, 10, 0.7);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.testimonials-header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    position: relative;
    z-index: 5;
}

.testimonials-header-content {
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width:768px) {

    .header-top {
        margin-bottom: 30px;
    }
}

.infinite-gallery-wrapper {
    width: 100%;
    padding: 100px 0;
    position: relative;
    background: transparent;
    overflow: visible;
}

.scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.scroller[data-animated="true"] {
    overflow: hidden;
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
    --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
    --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
    --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
    --_animation-duration: 60s;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.5rem));
    }
}

.infinite-gallery {
    display: flex;
    position: relative;
    width: 100%;
    z-index: 2;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    overflow-x: hidden;
}

.gallery-track {
    display: flex;
    width: max-content;
    gap: 30px;
    will-change: transform;
}

.infinite-gallery-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.9) 0%, rgba(59, 130, 246, 0.4) 35%, rgba(59, 130, 246, 0.1) 65%, transparent 85%);
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
}

.about-section {
    padding: 100px 20px;
    background: transparent;
    position: relative;
    z-index: 10;
    overflow: visible !important;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    overflow: visible !important;
}

.about-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: -0.02em;
}

.about-text .highlight-italic {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: var(--muted);
    font-weight: 400;
}

.about-text .highlight-italicblue {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    font-weight: 400;
}

.about-text .highlight-italicorange {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: var(--accent-warm);
    font-weight: 400;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 450px;
}

.about-visual {
    position: relative;
}

.visual-card {
    background: #0b0b10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card-visual-header {
    margin-bottom: 30px;
}

.header-line {
    width: 40px;
    height: 4px;
    background: var(--accent-warm);
    border-radius: 2px;
}

.visual-content {
    margin-bottom: 40px;
    background: transparent;
    position: relative;
    z-index: 1;
    animation: soft-glow-blue 4s infinite ease-in-out;
}

@keyframes soft-glow-blue {

    0%,
    100% {
        filter: drop-shadow(0 0 1px rgba(245, 124, 47, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 3px rgba(245, 124, 47, 0.6));
    }
}

.visual-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.visual-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

.footer-icon {
    margin-bottom: 8px;
    color: var(--accent-warm);
}

.visual-footer h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.chat-card {
    padding: 0 !important;
    background: #0f0f16;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
}

.chat-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.chat-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
}

.chat-avatar-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chat-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(40, 175, 238, 0.5);
}

.chat-info {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.chat-status-container {
    display: flex;
    align-items: center;
}

.chat-status {
    font-size: 0.75rem;
    color: #4ade80;
}

.chat-status-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    margin-right: 8px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: hidden;
    position: relative;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    animation: msgReveal 0.5s ease forwards;
    animation-play-state: paused;
}

.animate-chat .message {
    animation-play-state: running;
}

.message.sent {
    align-self: flex-end;
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 2px;
}

.message.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-bottom-left-radius: 2px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.client-avatar-small {
    width: 24px;
    height: 24px;
    background: #555;
    border-radius: 50%;
    flex-shrink: 0;
}

.link {
    text-decoration: underline;
    font-weight: 600;
    color: #fff;
}

.mock-browser-preview {
    width: 100%;
    height: 124px;
    border: 1px solid #223;
    background: #0a0a14;
    position: relative;
}

.mock-nav-animate::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0ff3, transparent);
}

.nav-logo {
    color: #6cf;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-logo::before {
    content: '▸';
    font-size: 10px;
    color: #0ff;
    animation: blink 1.5s infinite;
}

.nav-links {
    cursor: pointer;
    display: flex;
    gap: 18px;
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: #aac;
    font-size: 10.5px;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 2px;
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover {
    color: #0ff;
    background: #00aaff11;
    border-radius: 6px;
}

.nav-link.active {
    color: #0ff;
    background: #00aaff08;
    box-shadow: inset 0 0 0 1px #0ff2;
    border-radius: 6px;
}

.mock-content {
    height: calc(100% - 35px);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.content-line {
    height: 10px;
    background: linear-gradient(90deg, #112233, #1a2a44 50%, #112233);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.content-line:nth-child(1) {
    width: 90%;
}

.content-line:nth-child(2) {
    width: 70%;
}

.content-line:nth-child(3) {
    width: 80%;
}

.content-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #0ff1, transparent);
    animation: slide 3s infinite;
    animation-play-state: paused;
}

.animate-chat .content-line::after {
    animation-play-state: running;
}

.content-line:nth-child(2)::after {
    animation-delay: 0.3s;
}

.content-line:nth-child(3)::after {
    animation-delay: 0.6s;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes slide {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes fixNav {
    0% {
        background: #333;
    }

    100% {
        background: var(--accent-warm);
    }
}

.msg-1 {
    animation-delay: 0.5s;
}

.msg-2 {
    animation-delay: 3.5s;
}

.msg-3 {
    animation-delay: 6.0s;
}

.msg-4 {
    animation-delay: 8.5s;
}

.msg-4 .mock-nav-animate {
    animation-delay: 9.5s;
}

.msg-5 {
    animation-delay: 11.5s;
}

@keyframes msgReveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.visual-footer p {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
}

@media (max-width:900px) {
    .about-container {
        padding: 0px;
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-section {
        margin-top: 85px;
        padding: 0px
    }

    .about-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-subtitle {
        margin: 0px;
        font-size: 1.1rem;
        color: var(--muted);
        line-height: 1.6;
        max-width: 100%;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .custom-code-section .about-container {
        margin: 0px;
        padding: 0px;
        width: 100%;
        max-width: 100%;
    }

    .chat-interface {
        margin-top: 20px;
    }

    .custom-code-section .about-text {
        margin: 0px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (min-width:901px) {
    .about-container.reverse .about-text {
        order: 2;
    }

    .about-container.reverse .about-visual {
        order: 1;
    }
}

.infinite-gallery {
    display: flex;
    position: relative;
    width: 100%;
    z-index: 2;
}

.gallery-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

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

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

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

.review-card {
    width: 400px;
    min-width: 400px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    user-select: none;
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 124, 47, 0.1);
}

.stars {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    gap: 5px;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e0e0e0;
    font-style: italic;
    margin-bottom: 24px;
    flex-grow: 1;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.reviewer .avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent), #d86821);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.reviewer .info h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

.reviewer .info span {
    font-size: 0.85rem;
    color: var(--muted);
}

.gallery-overlay-left,
.gallery-overlay-right {
    z-index: 3;
}

main {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

section {
    padding: 60px 0;
    opacity: 1;
    transform: none;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

h2.section-title {
    font-size: 2.5rem;
    margin: 0 0 12px;
    color: #fff;
    position: relative;
    display: inline-block;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    perspective: 1000px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--card-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--brand));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover {
    transform: rotateY(5deg) translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.5rem;
    transform: translateZ(20px);
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    transform: translateZ(10px);
}

.card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
    transform: translateZ(20px);
    transition: var(--transition);
}

.card:hover i {
    transform: translateZ(20px) scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: #0f0f1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--card-radius);
    max-width: 1000px;
    width: 100%;
    padding: 40px;
    box-shadow: var(--shadow-hover);
    animation: fadeIn 0.4s ease;
    position: relative;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.active .modal-card {
    transform: scale(1);
}

.modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--brand));
}

.plan-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    cursor: pointer;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.plan-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.plan-card:hover::before {
    transform: scaleX(1);
}

.plan-card h3 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    color: #fff;
}

.plan-desc {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.plan-features li {
    margin: 12px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeIn 0.5s ease-out forwards;
}

.plan-features li:nth-child(1) {
    animation-delay: 0.1s;
}

.plan-features li:nth-child(2) {
    animation-delay: 0.2s;
}

.plan-features li:nth-child(3) {
    animation-delay: 0.3s;
}

.plan-features li:nth-child(4) {
    animation-delay: 0.4s;
}

.plan-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.plan-btn {
    background: linear-gradient(135deg, var(--accent), #d86821);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.plan-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.plan-btn:hover::before {
    width: 300px;
    height: 300px;
}

.plan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 124, 47, 0.3);
}

.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 8px 25px rgba(245, 124, 47, 0.15);
    transform: scale(1.03);
}

.featured:hover {
    transform: scale(1.03) translateY(-8px);
}

.badge {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 0px 0px 20px 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(245, 124, 47, 0.3);
    z-index: 5;
}

.carousel {
    position: relative;
    height: clamp(280px, 42vh, 480px);
    perspective: 1000px;
    overflow: visible;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(280px, 32vw, 550px);
    aspect-ratio: 16 / 9;
    height: auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1s ease, box-shadow 1s ease, filter 0.8s ease;
    opacity: 0;
    transform: translate3d(0, 0, -200px) scale(0.8);
    pointer-events: none;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-slide.active {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 20px 20px rgba(11, 11, 40, 0.15);
    border: 2px solid rgba(245, 124, 47, 0.5);
    pointer-events: auto;
}

.carousel-slide.prev {
    transform: translate(-164%, -50%) scale(1.18) rotateY(35deg);
    opacity: 0.6;
    z-index: 5;
    filter: blur(2px) grayscale(70%);
    pointer-events: auto;
    cursor: pointer;
}

.carousel-slide.next {
    transform: translate(64%, -50%) scale(1.18) rotateY(-35deg);
    opacity: 0.6;
    z-index: 5;
    filter: blur(2px) grayscale(70%);
    pointer-events: auto;
    cursor: pointer;
}

.carousel-slide.hidden {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    z-index: -1;
    visibility: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-slide h4 {
    margin: 25px 20px 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-warm);
    text-align: center;
    width: calc(100% - 40px);
}

.carousel-slide h4 a {
    text-decoration: none;
    color: var(--accent-warm);
    transition: color 0.3s;
}

.carousel-slide h4 a:hover {
    color: var(--accent);
}

.carousel-slide p {
    margin: 0 20px 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
    text-align: center;
    width: calc(100% - 40px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(11, 11, 40, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.carousel-btn:hover {
    background: rgba(245, 124, 47, 0.85);
    color: #fff;
    border-color: rgba(245, 124, 47, 0.6);
    box-shadow: 0 0 30px rgba(245, 124, 47, 0.35), 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.96);
    transition-duration: 0.1s;
}

.carousel-btn svg {
    transition: transform 0.3s ease;
}

.carousel-btn:hover svg {
    transform: scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

@media (max-width:768px) {
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }
}

.carousel-indicators {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 7px 14px;
    border-radius: 20px;
}

/* In projects-carousel, position indicators just below the active slide */
.projects-carousel .carousel-indicators {
    bottom: auto;
    top: calc(50% + 9.5vw + 5px);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent);
    width: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(245, 124, 47, 0.5);
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
}

@media (max-width:768px) {
    .carousel {
        height: 82vw;
        min-height: 340px;
        width: 100%;
        overflow: hidden;
        margin-left: 0;
        left: auto;
        transform: none;
    }

    .carousel-btn {
        display: none !important;
    }

    .carousel-slide {
        width: 88vw;
        height: 76vw;
        min-height: 310px;
        border-radius: 15px;
    }

    .carousel-slide.active {
        transform: translate3d(-50%, -50%, 0) scale(0.95);
        z-index: 20;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(245, 124, 47, 0.5);
    }

    .carousel-slide.prev {
        transform: translate3d(-110%, -50%, -150px) scale(0.5) rotateY(45deg);
        opacity: 0.3;
        filter: blur(3px) grayscale(70%);
    }

    .carousel-slide.next {
        transform: translate3d(10%, -50%, -150px) scale(0.5) rotateY(-45deg);
        opacity: 0.3;
        filter: blur(3px) grayscale(70%);
    }

    .carousel-slide h4 {
        font-size: 1.1rem;
        margin: 10px 10px 5px;
    }

    .carousel-slide p {
        font-size: 0.8rem;
        margin: 0 10px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.footer-cta-section {
    padding: 120px 0 0;
    background: transparent;
    position: relative;
    overflow: visible;
    text-align: center;
    color: #fff;
    width: 100%;
    margin-left: 0;
}

.cta-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-top: 5%;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.cta-badge i {
    color: var(--accent);
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1;
    margin-bottom: -25px;
}

.cta-title-sub {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--accent), #fff);
    background-size: 200%;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientShine 4s infinite linear;
}

.cta-description {
    font-size: 1.1rem;
    color: #8892b0;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-button-wrapper {
    position: relative;
    display: inline-block;
}

.glow-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s, background 0.2s;
    z-index: 2;
}

.glow-button:hover {
    transform: scale(1.02);
    background: rgba(40, 40, 40, 1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.glow-button:hover .btn-glow {
    left: 100%;
    transition: left 0.5s;
}

.btn-backdrop {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: var(--accent);
    filter: blur(25px);
    opacity: 0.5;
    z-index: 1;
    transition: opacity 0.3s;
}

.glow-button:hover+.btn-backdrop {
    opacity: 0.8;
}

.cta-contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8892b0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.contact-pill:hover {
    color: #fff;
}

.divider {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
}

.cta-separator {
    position: relative;
    width: 100%;
    margin: 80px 0 60px;
}

.separator-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.separator-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(40px);
    opacity: 0.5;
}

.footer-parallax-text {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 28vw;
    font-weight: 800;
    color: var(--accent);
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    letter-spacing: -5px;
    will-change: transform, opacity;
    --mask-progress: 0%;
    -webkit-mask-image: linear-gradient(to bottom, black var(--mask-progress), transparent calc(var(--mask-progress) + 20%));
    mask-image: linear-gradient(to bottom, black var(--mask-progress), transparent calc(var(--mask-progress) + 20%));
}

.modern-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #8892b0;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #fff;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #8892b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: #555;
    font-size: 0.8rem;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width:768px) {

    .cta-title,
    .cta-title-sub {
        font-size: 2rem;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cta-contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .divider {
        display: none;
    }

    .footer-parallax-text {
        bottom: 32%;
    }
}

#kontakt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(var(--accent-rgb, 245, 124, 47), 0.2);
}

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

#kontakt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--brand));
}

.contact-info {
    opacity: 0;
    transform: translateX(-50px);
}

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease-out;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--brand);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(50px);
}

.contact-form.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease-out 0.2s;
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--brand);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--brand);
    font-weight: 600;
    transition: var(--transition);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    color: var(--brand);
    position: relative;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 124, 47, 0.1);
    transform: translateY(-2px);
}

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

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-warm), #faaa78);
    z-index: 9999;
    transition: width 0.3s ease;
}

.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #d86821);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 8px 25px rgba(245, 124, 47, 0.4);
}

@media (max-width:768px) {

    .cursor {
        display: none;
    }

    body {
        cursor: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        flex-direction: column;
        background: rgba(11, 11, 40, 0.98);
        backdrop-filter: blur(10px);
        width: 280px;
        height: calc(100vh - var(--nav-height));
        padding: 20px;
        gap: 0;
        transition: right 0.4s ease;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    }

    .nav.open {
        right: 0;
    }

    .nav a {
        padding: 18px 15px;
        border-radius: 8px;
        margin-bottom: 8px;
        height: auto;
    }

    .nav a::before {
        display: none;
    }

    .nav a:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
        white-space: normal;
        animation: none;
        border-right: none;
    }

    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-status {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    display: none;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.btn-text,
.btn-loader,
.btn-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    opacity: 0;
    pointer-events: none;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse-success {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

body.dark-mode {
    --bg: #0b0b28;
    --brand: #fafafa;
    --brand2: #e6e8f5;
    --accent: #f57c2f;
    --muted: #a0a0a0;
    background: var(--bg);
    color: var(--brand);
}

body.dark-mode .card,
body.dark-mode .contact-form,
body.dark-mode .modal-card {
    background: #1a1a3a;
    color: var(--brand);
}

body.dark-mode #kontakt {
    background: linear-gradient(to bottom, #0b0b28 0%, #1a1a3a 100%);
}

body.dark-mode .form-group label {
    color: var(--brand);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #2a2a4a;
    border-color: #3a3a5a;
    color: var(--brand);
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: #8a8a8a;
    opacity: 0.7;
}

body.dark-mode .form-group input::-webkit-input-placeholder,
body.dark-mode .form-group textarea::-webkit-input-placeholder {
    color: #8a8a8a;
    opacity: 0.7;
}

body.dark-mode .form-group input::-moz-placeholder,
body.dark-mode .form-group textarea::-moz-placeholder {
    color: #8a8a8a;
    opacity: 0.7;
}

body.dark-mode .form-group input:-ms-input-placeholder,
body.dark-mode .form-group textarea:-ms-input-placeholder {
    color: #8a8a8a;
    opacity: 0.7;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 124, 47, 0.2);
}

body.dark-mode .plan-card {
    background: #1a1a3a;
    border-color: #2a2a4a;
}

body.dark-mode .plan-features li {
    color: var(--brand);
}

body.dark-mode .plan-desc {
    color: var(--muted);
}

body.dark-mode .about-text p {
    color: var(--muted);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted);
}

body.dark-mode h1 {
    color: var(--bg);
}

body.dark-mode .description {
    color: var(--bg);
}

@media (max-width:768px) {

    .plan-card {
        min-width: auto;
        width: 100%;
        scroll-snap-align: none;
        margin-bottom: 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

body.dark-mode .carousel-slide {
    background: #1a1a3a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .carousel-slide.active {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

body.dark-mode .carousel-slide h4 {
    color: var(--brand);
}

body.dark-mode .carousel-slide p {
    color: var(--muted);
}

body.dark-mode .carousel-btn {
    background: rgba(11, 11, 40, 0.65);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .carousel-btn:hover {
    background: rgba(245, 124, 47, 0.85);
    color: #fff;
}

body.dark-mode .indicator {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .indicator.active {
    background: var(--accent);
}

.mock-browser-preview {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    width: 100%;
}

.mock-nav-animate {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #333;
    overflow: hidden;
    flex-wrap: wrap;
}

.nav-logo {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow: hidden;
}

.nav-item {
    list-style: none;
    flex-shrink: 0;
}

.nav-link {
    color: #aaa;
    font-size: 0.75rem;
    margin: 0;
    white-space: nowrap;
}

.nav-link.active {
    color: white;
    font-weight: 600;
}

.mock-content {
    padding: 20px;
    background: #1e1e1e;
    min-height: 100px;
}

.content-line {
    height: 8px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 100%;
}

.content-line:nth-child(1) {
    width: 80%;
}

.content-line:nth-child(2) {
    width: 95%;
}

.content-line:nth-child(3) {
    width: 60%;
}

@media (max-width:480px) {
    .mock-nav-animate {
        gap: 10px;
        padding: 8px 10px;
    }

    .nav-logo {
        font-size: 0.8rem;
    }

    .nav-links {
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }
}

/* Portfolio Section - flex layout based */
#portfolio {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    box-sizing: border-box;
    gap: 20px;
}

#portfolio>.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0px;
    width: 100%;
    position: relative;
    z-index: 15;
}

#portfolio .about-text {
    text-align: center;
}

#portfolio .about-text h2 {
    margin-bottom: 12px;
}

#portfolio .about-subtitle {
    margin-bottom: 5px;
}

#portfolio .carousel-3d-info {
    align-self: center;
    margin-top: 0;
}

.projects-carousel {
    perspective: 2000px;
    overflow: visible;
    padding: 0;
    min-height: 320px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1440px) {
    #portfolio {
        gap: 30px;
        padding: 100px 20px 60px;
    }

    .projects-carousel {
        min-height: 380px;
    }
}

@media (max-width: 1024px) {
    #portfolio {
        gap: 20px;
        padding: 80px 20px 40px;
    }

    .projects-carousel {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    #portfolio {
        gap: 8px;
        padding: 35px 15px 10px;
        min-height: auto;
    }

    .projects-carousel {
        min-height: 340px;
    }
}

@media (max-width: 480px) {
    #portfolio {
        gap: 6px;
        padding: 25px 10px 8px;
    }

    .projects-carousel {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .projects-carousel {
        height: 82vw;
        min-height: 340px;
    }

    .projects-carousel .carousel-slide {
        width: 88vw;
        height: 76vw;
        min-height: 310px;
        aspect-ratio: unset;
    }

    .projects-carousel .carousel-slide.active {
        transform: translate(-50%, -50%) scale(0.95);
    }

    .projects-carousel .carousel-slide.prev {
        transform: translate(-110%, -50%) scale(0.5) rotateY(45deg);
        opacity: 0.3;
        filter: blur(3px) grayscale(70%);
    }

    .projects-carousel .carousel-slide.next {
        transform: translate(10%, -50%) scale(0.5) rotateY(-45deg);
        opacity: 0.3;
        filter: blur(3px) grayscale(70%);
    }
}

.projects-carousel .carousel-track {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.projects-carousel .carousel-btn {
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(11, 11, 40, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.projects-carousel .carousel-btn:hover {
    background: rgba(245, 124, 47, 0.85);
    color: #fff;
    box-shadow: 0 0 30px rgba(245, 124, 47, 0.35), 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(245, 124, 47, 0.6);
}

.projects-carousel .carousel-btn:active {
    transform: translateY(-50%) scale(0.96);
    transition-duration: 0.1s;
}

.projects-carousel .carousel-btn.prev {
    left: 2%;
}

.projects-carousel .carousel-btn.next {
    right: 2%;
}

.projects-carousel .carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(280px, 32vw, 550px);
    aspect-ratio: 16 / 9;
    height: auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1s ease, box-shadow 1s ease, filter 0.8s ease;
    opacity: 0;
    transform: translate3d(0, 0, -200px) scale(0.8);
    pointer-events: none;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.projects-carousel .carousel-slide.active {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(11, 11, 40, 0.25);
    border: 2px solid rgba(245, 124, 47, 0.5);
    pointer-events: auto;
}

.projects-carousel .carousel-slide.prev {
    transform: translate(-155%, -50%) scale(0.92) rotateY(25deg);
    opacity: 0.5;
    z-index: 5;
    filter: blur(2px) grayscale(60%) brightness(0.7);
    pointer-events: auto;
    cursor: pointer;
}

.projects-carousel .carousel-slide.next {
    transform: translate(55%, -50%) scale(0.92) rotateY(-25deg);
    opacity: 0.5;
    z-index: 5;
    filter: blur(2px) grayscale(60%) brightness(0.7);
    pointer-events: auto;
    cursor: pointer;
}

.projects-carousel .carousel-slide.hidden {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    z-index: -1;
    visibility: hidden;
}

/* Invisible click zones for side slides - flat divs that reliably catch clicks
   unlike 3D-transformed slides which have unreliable hit-testing at far edges */
.carousel-click-zone {
    position: absolute;
    top: 5%;
    height: 90%;
    z-index: 8; /* Above side slides (5), below active slide (10) and buttons (20) */
    cursor: pointer;
    background: transparent;
    /* No 3D transforms - this is key for reliable click detection */
}

.carousel-click-zone-prev {
    left: -5%;
    width: 38%;
}

.carousel-click-zone-next {
    right: -5%;
    width: 38%;
}

@media (max-width: 768px) {
    .carousel-click-zone {
        display: none; /* On mobile, swipe is the primary interaction */
    }
}

@keyframes swipe-nudge {
    0%, 100% { transform: translateX(0); }
    30%       { transform: translateX(-8px); }
    60%       { transform: translateX(8px); }
}

.swipe-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px auto 0;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.4;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    animation: swipe-nudge 2.2s ease-in-out 1.2s 3;
}

.swipe-hint svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.carousel-3d-info {
    text-align: center;
    margin-top: 0;
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px 20px;
}

.carousel-3d-title {
    margin: 0;
    line-height: 1.2;
}

.carousel-3d-title a {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-secondary)) !important;
    background-size: 200% 100% !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    animation: gradientFlow 3s linear infinite !important;
    text-shadow: none !important;
}

.carousel-3d-subtitle {
    margin-top: 5px;
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.text-mask {
    overflow: hidden;
    margin-bottom: 5px;
}

@keyframes gradientShine {
    0% {
        background-position: 0% 50%;
    }

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

@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

@keyframes slideDownIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

.futuristic-about {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.about-card.waiting-for-anim {
    opacity: 0;
    transform: translateY(60px);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.mini-stat.stat-visible {
    animation: popIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #60a5fa 50%, var(--accent) 100%);
    background-size: 200% 100%;
    width: 0;
    border-radius: 3px;
    position: relative;
    box-shadow: 0 0 10px var(--accent);
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
    animation: shimmer 3s infinite linear;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.about-card h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.skills-card {
    grid-column: span 4;
}

.languages-card {
    grid-column: span 4;
}

.stats-card {
    grid-column: span 4;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0;
    border-radius: 3px;
    position: relative;
    box-shadow: 0 0 10px var(--accent);
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes pulseGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.mini-stat {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    transition: background 0.3s;
    opacity: 0;
    transform: scale(0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mini-stat:hover {
    background: rgba(255, 255, 255, 0.07);
}

.mini-stat i {
    font-size: 1.2rem;
    margin-bottom: 0px;
    display: block;
    color: var(--accent-warm);
    width: 100%;
}

.mini-stat i::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px auto 8px;
    border-radius: 2px;
}

.mini-stat.stat-visible {
    animation: popIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #60a5fa 50%, var(--accent) 100%);
    background-size: 200% 100%;
    width: 0;
    border-radius: 3px;
    position: relative;
    box-shadow: 0 0 10px var(--accent);
    transition: width 3.5s cubic-bezier(0.22, 1, 0.36, 1);
    animation: shimmer 3s infinite linear;
}

@media (max-width:1024px) {

    
    .skills-card,
    .languages-card,
    .stats-card {
        grid-column: span 1;
        grid-row: auto;
    }
}

.carousel,
.scroller {
    touch-action: pan-y;
}

a,
button,
input,
.card,
.plan-card,
.visual-card {
    touch-action: manipulation;
}

canvas,
.hero-unicorn-bg,
.hero-unicorn-bg canvas,
.beam-of-light {
    pointer-events: none !important;
    touch-action: auto !important;
    z-index: 0;
}

@media (hover:none) {

    .card:hover,
    .plan-card:hover,
    .visual-card:hover,
    .glow-button:hover {
        transform: none !important;
        box-shadow: var(--shadow) !important;
    }

    .cursor {
        display: none !important;
    }
}

.hero-content {
    pointer-events: none;
}

.hero-content h1,
.hero-content p,
.hero-content .cta,
.hero-content button,
.hero-content a {
    pointer-events: auto !important;
}

@keyframes splineRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width:768px) {

    .hero h1,
    .hero-content h1 {
        font-size: 1.8rem !important;
        padding: 0 10px;
        margin-bottom: 24px;
        line-height: 1.2;
    }

    .hero p.description {
        font-size: 0.9rem !important;
        padding: 0 20px;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .hero {
        padding-top: 140px;
    }
}

@media (max-width:768px) {

    .about-text h2,
    .section-title,
    .cta-title,
    .cta-title-sub {
        font-size: 1.6rem !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .about-subtitle,
    .cta-description,
    .plan-desc,
    .review-text {
        font-size: 0.9rem !important;
        line-height: 1.6;
    }

    .about-card h4,
    .plan-card h3 {
        font-size: 1.2rem !important;
    }

    .btn-primary,
    .button,
    .glow-button {
        font-size: 0.95rem !important;
    }

    .footer-links a {
        font-size: 0.9rem !important;
    }
}

@media (max-width:768px) {
    .carousel-3d-title a {
        font-size: 1.5rem !important;
        letter-spacing: 0.5px;
    }

    .carousel-3d-subtitle {
        font-size: 0.9rem !important;
        margin-top: 5px;
    }

    .custom-code-section .about-visual {
        padding: 0 !important;
        margin-top: 30px;
        display: flex;
        justify-content: center;
    }

    .chat-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .chat-interface {
        margin: 0 auto;
    }

    .about-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .about-section {
        padding-top: 60px;
    }

    .about-text,
    .about-visual {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width:768px) {

    .custom-code-section .about-visual,
    .chat-card,
    .chat-interface {
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        overflow: hidden !important;
    }

    .custom-code-section .about-text {
        min-width: 0 !important;
        width: 100% !important;
    }

    .custom-code-section {
        overflow-x: hidden;
    }

    .chat-card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .custom-code-section .about-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    .about-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (min-width:769px) and (max-width:1200px) {
    .carousel-slide {
        width: 40vw !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }

    .carousel-slide.prev {
        transform: translate(-150%, -50%) scale(0.88) rotateY(20deg) !important;
    }

    .carousel-slide.next {
        transform: translate(50%, -50%) scale(0.88) rotateY(-20deg) !important;
    }

    .carousel-slide.active {
        transform: translate(-50%, -50%) scale(1.02) !important;
    }
}

/* === LAPTOP RESOLUTIONS (1200px - 1600px) === */
@media (min-width: 1201px) and (max-width: 1600px) {
    #portfolio {
        padding: 70px 30px 15px;
    }

    .projects-carousel .carousel-slide {
        width: clamp(350px, 30vw, 500px) !important;
    }

    .projects-carousel .carousel-slide.active {
        transform: translate(-50%, -50%) scale(1.03) !important;
    }

    .projects-carousel .carousel-slide.prev {
        transform: translate(-155%, -50%) scale(0.88) rotateY(22deg) !important;
    }

    .projects-carousel .carousel-slide.next {
        transform: translate(55%, -50%) scale(0.88) rotateY(-22deg) !important;
    }

    .projects-carousel .carousel-btn.prev {
        left: 4%;
    }

    .projects-carousel .carousel-btn.next {
        right: 4%;
    }
}

/* === LARGE DESKTOPS (1601px - 2000px) === */
@media (min-width: 1601px) and (max-width: 2000px) {
    #portfolio {
        padding: 80px 40px 20px;
    }



    .projects-carousel .carousel-slide {
        width: clamp(450px, 28vw, 600px) !important;
    }

    .projects-carousel .carousel-slide.active {
        transform: translate(-50%, -50%) scale(1.05) !important;
    }

    .projects-carousel .carousel-slide.prev {
        transform: translate(-150%, -50%) scale(0.90) rotateY(20deg) !important;
    }

    .projects-carousel .carousel-slide.next {
        transform: translate(50%, -50%) scale(0.90) rotateY(-20deg) !important;
    }

    .projects-carousel .carousel-btn {
        width: 54px;
        height: 54px;
    }

    .projects-carousel .carousel-btn svg {
        width: 22px;
        height: 22px;
    }

    .projects-carousel .carousel-btn.prev {
        left: 6%;
    }

    .projects-carousel .carousel-btn.next {
        right: 6%;
    }

    .carousel-3d-title a {
        font-size: 1.8rem !important;
    }
}

/* === ULTRA-WIDE / 4K (2001px+) === */
@media (min-width: 2001px) {
    #portfolio {
        padding: 100px 60px 30px;
    }



    .projects-carousel .carousel-slide {
        width: clamp(550px, 25vw, 750px) !important;
    }

    .projects-carousel .carousel-btn {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .projects-carousel .carousel-btn svg {
        width: 26px;
        height: 26px;
    }

    .projects-carousel .carousel-btn.prev {
        left: 8%;
    }

    .projects-carousel .carousel-btn.next {
        right: 8%;
    }

    .carousel-3d-title a {
        font-size: 2rem !important;
    }
}

/* === SHORT SCREENS (laptops with limited height) === */
@media (max-height: 800px) and (min-width: 769px) {
    #portfolio {
        padding-top: 60px;
        padding-bottom: 10px;
        gap: 2px;
    }

    #portfolio .about-text h2 {
        margin-bottom: 6px !important;
    }

    #portfolio .about-subtitle {
        margin-bottom: 2px !important;
    }

    .projects-carousel .carousel-slide {
        width: clamp(280px, 30vw, 480px) !important;
    }

    .projects-carousel .carousel-slide.active {
        transform: translate(-50%, -50%) scale(1.0) !important;
    }

    .carousel-3d-info {
        padding: 2px 15px !important;
    }

    .carousel-3d-title a {
        font-size: 1.3rem !important;
    }

    .carousel-3d-subtitle {
        font-size: 0.85rem !important;
    }
}

/* === VERY SHORT SCREENS (e.g. 768px height laptops) === */
@media (max-height: 700px) and (min-width: 769px) {
    #portfolio {
        padding-top: 50px;
        padding-bottom: 5px;
        gap: 0;
    }

    #portfolio .about-text h2 {
        margin-bottom: 4px !important;
    }

    #portfolio .about-subtitle {
        margin-bottom: 0 !important;
    }

    .projects-carousel .carousel-slide {
        width: clamp(240px, 28vw, 420px) !important;
    }

    .projects-carousel .carousel-slide.active {
        transform: translate(-50%, -50%) scale(0.95) !important;
    }

    .projects-carousel .carousel-slide.prev {
        transform: translate(-150%, -50%) scale(0.82) rotateY(20deg) !important;
    }

    .projects-carousel .carousel-slide.next {
        transform: translate(50%, -50%) scale(0.82) rotateY(-20deg) !important;
    }

    .projects-carousel .carousel-btn {
        width: 40px !important;
        height: 40px !important;
    }

    .carousel-3d-info {
        padding: 0 10px !important;
    }

    .carousel-3d-title a {
        font-size: 1.1rem !important;
    }

    .carousel-3d-subtitle {
        font-size: 0.78rem !important;
    }

    .carousel-indicators .indicator {
        width: 8px !important;
        height: 8px !important;
    }
}

.custom-code-section .about-text {
    text-align: center !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

@media (max-width:768px) {
    .projects-carousel {
        min-height: auto !important;
        height: clamp(200px, 35vh, 320px) !important;
    }
}

@media (max-width:768px) {
    .carousel {
        height: clamp(180px, 30vh, 280px) !important;
        min-height: 180px !important;
        margin-bottom: 0 !important;
    }

    .carousel-slide {
        width: clamp(240px, 65vw, 400px) !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }

    .projects-carousel .carousel-indicators {
        bottom: auto !important;
        top: calc(50% + 18vw + 10px) !important;
    }

    .carousel-3d-info {
        margin-top: 25px !important;
        padding: 5px 15px !important;
        position: relative;
        z-index: 2;
    }

    .carousel-3d-title a {
        font-size: 1.2rem !important;
        margin-bottom: 3px;
        display: block;
    }

    .carousel-3d-subtitle {
        margin-top: 0 !important;
        font-size: 0.85rem !important;
    }

    .carousel-btn {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }

    .carousel-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
}

.bio-greeting {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 600;
}

.bio-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 32px;
    color: #fff;
}

.bio-title .highlight-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-warm);
    font-weight: 400;
}

.transformation-title .highlight-italicnew {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-warm) !important;
    -webkit-text-fill-color: var(--accent-warm) !important;
    background: none !important;
    font-weight: 400;
}

.bio-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.bio-stats {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.skills-circular-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    width: 100%;
}

.circle-progress {
    position: relative;
    width: 140px;
    height: 140px;
}

.circle-progress svg {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

.circle-progress circle {
    fill: none;
    stroke-width: 8;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-linecap: round;
}

.circle-progress .progress-path {
    stroke: var(--accent);
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1.5s ease-out;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.process-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    transition: all 0.4s ease;
    padding: 0 10px;
}

@media (max-width:900px) {

    .bio-title {
        font-size: 3rem;
    }

    .bio-stats {
        justify-content: center;
    }

    .process-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
    }
}

.code-transformation-section {
    position: relative;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    padding: 30px 0 100px;
}

.transformation-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    background: linear-gradient(135deg, #fff 0%, var(--muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 60px;
    position: relative;
    z-index: 20;
}

.swipe-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.swipe-hint i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.card-wrapper {
    position: relative;
    width: clamp(240px, 22vw, 340px);
    height: clamp(160px, 15.5vw, 240px);
    flex-shrink: 0;
    perspective: 1000px;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out, filter 0.15s ease-out;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.card-normal {
    background: #0b0b15;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    padding: 0;
    color: white;
    z-index: 2;
    clip-path: inset(0 0 0 var(--clip-right, 0%));
    will-change: clip-path;
    /* performance boost */
}

.client-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

.card-normal {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    padding: 0;
    color: white;
    z-index: 2;
    clip-path: inset(0 0 0 var(--clip-right, 0%));
    will-change: clip-path;
    /* performance boost */
    position: relative;
    overflow: hidden;
}

.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.card-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
    pointer-events: none;
}

.card-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    z-index: 1;
    pointer-events: none;
}

.client-card-content {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-role-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(245, 124, 47, 0.15);
    padding: 16px 32px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card-ascii {
    background: #050510;
    border-radius: 24px;
}

@keyframes scanEffect {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

#particleCanvas {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#scannerCanvas {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
}

@media (max-width:768px) {
    .code-transformation-section {
        padding: 60px 0;
    }

    .card-wrapper {
        width: 260px;
        height: 180px;
    }
}

.card-ascii {
    background: transparent !important;
    border: transparent;
    z-index: 1;
    clip-path: inset(0 calc(100% - var(--clip-left, 0%)) 0 0);
    will-change: clip-path;
    /* performance boost */
    filter: brightness(1);
}

#cardStream .card::before {
    display: none !important;
}

.ascii-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(59, 130, 246, 0.9) !important;
    font-family: "Courier New", monospace;
    font-size: 11px;
    line-height: 12px;
    white-space: pre;
    overflow: hidden;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.9), 0 0 16px rgba(59, 130, 246, 0.6);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 80%, rgba(0, 0, 0, 1) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 80%, rgba(0, 0, 0, 1) 100%);
}

@keyframes glitch {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    20% {
        opacity: 0.8;
        transform: translateX(-1px);
    }

    40% {
        opacity: 1;
        transform: translateX(1px);
    }

    60% {
        opacity: 0.9;
        transform: translateX(0);
    }

    80% {
        opacity: 1;
        transform: translateX(-0.5px);
    }

    100% {
        opacity: 0.8;
        transform: translateX(0.5px);
    }
}

@keyframes smoothScan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.graphics-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0 20px 0;
}

.graphics-gallery-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 60px auto 0;
    padding: 0 20px 60px;
}

/* ========== STICKY SCROLLING CARDS ========== */

.sticky-card {
    position: sticky;
    top: calc(64px + var(--index) * 24px);
    margin-bottom: 40px;
    will-change: transform;
    transform-origin: top center;
    z-index: calc(var(--index) + 1);
}

.sticky-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1536 / 1024;
    max-height: calc(100dvh - 180px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.4s ease;
}

.sticky-card-inner:hover {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 40px rgba(245, 124, 47, 0.1);
}

.sticky-card-inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-card-inner:hover img {
    transform: scale(1.05);
}

.sticky-card-overlay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 24px 28px;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 40%,
            rgba(0, 0, 0, 0.75) 100%);
    border-radius: 0 20px 0 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 6px;
    max-width: 320px;
}

.sticky-card-number {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
}

/* Bottom gradient overlay with title & description */
.sticky-card-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 32px 28px;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.55) 40%,
            transparent 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.sticky-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.sticky-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    margin: 10px 0 0;
    line-height: 1.55;
    max-width: 560px;
    letter-spacing: 0.3px;
}

/* Per-card title colors */
.sticky-card:nth-child(1) .sticky-card-title {
    color: #3b82f6;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.5), 0 4px 24px rgba(0, 0, 0, 0.6);
}
.sticky-card:nth-child(2) .sticky-card-title {
    color: #a855f7;
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.5), 0 4px 24px rgba(0, 0, 0, 0.6);
}
.sticky-card:nth-child(3) .sticky-card-title {
    color: #3bf5c6;
    text-shadow: 0 0 40px rgba(56, 189, 248, 0.5), 0 4px 24px rgba(0, 0, 0, 0.6);
}
.sticky-card:nth-child(4) .sticky-card-title {
    color: #f57c2f;
    text-shadow: 0 0 40px rgba(245, 124, 47, 0.5), 0 4px 24px rgba(0, 0, 0, 0.6);
}
.sticky-card:nth-child(5) .sticky-card-title {
    color: #22c55e;
    text-shadow: 0 0 40px rgba(34, 197, 94, 0.5), 0 4px 24px rgba(0, 0, 0, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .graphics-gallery-container {
        padding: 0 16px 40px;
        margin-top: 40px;
    }

    .sticky-card {
        top: calc(60px + var(--index) * 20px);
        margin-bottom: 30px;
    }

    .sticky-card-inner {
        aspect-ratio: 9 / 16;
        max-height: calc(100dvh - 160px);
        border-radius: 16px;
    }

    .sticky-card-overlay {
        padding: 14px 16px;
        max-width: 200px;
        border-radius: 0 16px 0 16px;
    }

    .sticky-card-number {
        font-size: 2rem;
    }

    .sticky-card-bottom {
        padding: 80px 20px 24px;
    }

    .sticky-card-title {
        font-size: 1.9rem;
        letter-spacing: 0.5px;
    }

    .sticky-card-desc {
        font-size: 0.85rem;
        margin-top: 6px;
    }
}

@media (min-width: 1200px) {
    .graphics-gallery-container {
        max-width: 1000px;
    }

    .sticky-card-inner {
        aspect-ratio: 1536 / 1024;
    }
}

/* Laptop screens with limited height */
@media (max-height: 800px) and (min-width: 769px) {
    .sticky-card {
        top: calc(56px + var(--index) * 20px);
        margin-bottom: 30px;
    }

    .sticky-card-inner {
        aspect-ratio: 1536 / 1024;
        max-height: calc(100dvh - 160px);
    }

    .graphics-gallery-container {
        margin-top: 40px;
        padding-bottom: 40px;
    }
}

/* Very short screens (landscape phones, small laptops) */
@media (max-height: 600px) {
    .sticky-card {
        top: calc(48px + var(--index) * 14px);
        margin-bottom: 16px;
    }

    .sticky-card-inner {
        max-height: calc(100dvh - 120px);
        border-radius: 12px;
    }

    .sticky-card-number {
        font-size: 2rem;
    }

    .sticky-card-bottom {
        padding: 32px 20px 16px;
    }

    .sticky-card-title {
        font-size: 2.8rem;
    }

    .sticky-card-desc {
        font-size: 1rem;
    }
}


.hero h1 .highlight-first-word {
    position: relative;
    padding-bottom: 2px;
    z-index: 10;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-secondary)) !important;
    background-size: 200% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: gradientFlow 3s linear infinite !important;
}

.hero h1 .highlight-first-word::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-secondary)) !important;
    background-size: 200% 100% !important;
    opacity: 1;
    border-radius: 2px;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width:768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 280px;
    }
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    backdrop-filter: blur(10px);
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.bento-card h3 {
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: #fff;
}

.bento-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.scrolly-container {
    display: flex;
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.scrolly-col-left {
    width: 50%;
    height: 100vh;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.scrolly-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.1);
}

.scrolly-img.active {
    opacity: 1;
    transform: scale(1);
}

.scrolly-step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
    position: relative;
}

@media (max-width:900px) {
    .scrolly-container {
        flex-direction: column;
    }

    .scrolly-col-left {
        position: relative;
        height: clamp(300px, 40vh, 500px);
        width: 100%;
        top: auto;
        z-index: 10;
    }

    .scrolly-step {
        min-height: auto;
        padding: 40px 20px;
        margin-bottom: 20px;
    }
}

.carousel-slide {
    animation: gradientFlow 3s linear infinite !important;
}

@keyframes gradientFlow {
    0% {
        background-position: 100% 0%;
    }

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

.hero-text-container {
    text-align: center;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@keyframes iconPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(245, 124, 47, 0.6)) drop-shadow(0 0 40px rgba(245, 124, 47, 0.3));
        transform: translateY(-50%) scale(1);
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(245, 124, 47, 0.9)) drop-shadow(0 0 60px rgba(245, 124, 47, 0.5));
        transform: translateY(-50%) scale(1.08);
    }
}

#cardStream {
    position: relative;
    -webkit-mask-image: conic-gradient(from 70deg at 130px 50%, transparent 0deg, black 15deg, black 25deg, transparent 40deg), conic-gradient(from 250deg at calc(100% - 130px) 50%, transparent 0deg, black 15deg, black 25deg, transparent 40deg);
    -webkit-mask-composite: source-in;
    mask-image: conic-gradient(from 70deg at 130px 50%, transparent 0deg, black 15deg, black 25deg, transparent 40deg), conic-gradient(from 250deg at calc(100% - 130px) 50%, transparent 0deg, black 15deg, black 25deg, transparent 40deg);
    mask-composite: intersect;
    height: clamp(300px, 30vw, 380px);
    display: flex;
    align-items: center;
}

.blue-laser {
    position: absolute;
    top: 0;
    left: calc(50% - 5px);
    width: 2px;
    height: 100%;
    background: #0088ff;
    box-shadow: 0 0 10px #0088ff, 0 0 20px #0088ff, 0 0 30px #00aaff;
    z-index: 30;
    pointer-events: none;
    opacity: 0.85;
}

@keyframes windFlow {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -200px 0;
    }
}

.card-wrapper:hover .card,
.card-wrapper:hover .card-ascii,
.card-wrapper:hover .card-normal,
.card:hover,
.card-ascii:hover,
.card-normal:hover {
    transform: none !important;
    box-shadow: inherit !important;
    filter: none !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.card-normal {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

#omnie {
    margin-top: 150px;
    position: relative;
    z-index: 2;
    margin-bottom: -60px;
}

#omnie::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--brand));
    z-index: 10;
}

@media (max-width:768px) {
    #omnie {
        margin-top: 100px;
    }
}

#portfolio {
    position: relative;
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    right: 50%;
    margin-top: 150px;
    padding-top: 150px;
    padding-bottom: 150px;
}

#portfolio .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

#portfolio .about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    #portfolio {
        margin-top: 0;
    }
}

.skills-circular-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.skills-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.circle-progress {
    position: relative;
    width: 140px;
    height: 140px;
}

.circle-progress svg {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

.circle-progress circle {
    fill: none;
    stroke-width: 8;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-linecap: round;
}

.circle-progress .progress-path {
    stroke: var(--accent);
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1.5s ease-out;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--muted);
    text-align: center;
}

.section-title-container {
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
    max-width: 800px;
}

.section-title-container h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #fff;
}

.section-title-container p {
    font-size: 1.1rem;
    color: var(--muted);
}

.section-title-container .highlight-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-warm);
    font-weight: 400;
}

.timeline-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin: 0 auto;
}

.zigzag-step {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 100%;
    opacity: 0.3;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.zigzag-step.active {
    opacity: 1;
    transform: scale(1.02);
}

.zigzag-step:nth-child(even) {
    flex-direction: row;
}

.zigzag-step:nth-child(odd) {
    flex-direction: row-reverse;
}

@media (max-width:768px) {
    .timeline-container {
        gap: 40px;
    }

    .zigzag-step,
    .zigzag-step:nth-child(even),
    .zigzag-step:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
        opacity: 1;
    }
}

.graphics-section .about-container {
    max-width: 1400px;
}

.graphics-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    width: 100%;
}

.graphics-content .about-text {
    flex: 0 0 450px;
    text-align: left;
    padding-bottom: 0;
    margin-right: -20px;
    z-index: 10;
}

.stacked-cards-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 400px;
    position: relative;
    padding-right: 50px;
    margin-right: -200px;
    padding-left: 0;
    cursor: pointer;
    overflow: visible !important;
    z-index: 20;
}

.graphics-content {
    overflow: visible !important;
}

.card-deck {
    position: relative;
    width: 120px;
    height: 120px;
    perspective: 1000px;
    margin-top: 50px;
    pointer-events: none;
    transform-style: preserve-3d;
}

.card-deck .card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center center;
    z-index: 1;
    border: none;
    box-shadow: none;
    overflow: visible;
    background: transparent;
}

.card-glass {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
    transition: all 0.4s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-deck .card img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s;
    opacity: 1;
    z-index: 2;
    transform: translateZ(20px);
}

.card-deck .card .tool-name {
    display: none;
}

.card-deck .card {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.9;
}

.card-deck .card:nth-child(1) {
    z-index: 1;
    transform: translate(0px, 0px) rotate(-25deg);
}

.card-deck .card:nth-child(2) {
    z-index: 2;
    transform: translate(40px, -45px) rotate(-15deg);
}

.card-deck .card:nth-child(3) {
    z-index: 3;
    transform: translate(90px, -85px) rotate(-5deg);
}

.card-deck .card:nth-child(4) {
    z-index: 4;
    transform: translate(150px, -105px) rotate(5deg);
    opacity: 1;
}

.card-deck.active .card .card-glass {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.card-deck.active .card:nth-child(1) {
    transform: translate(0px, 0px) rotate(-10deg);
    z-index: 1;
}

.card-deck.active .card:nth-child(2) {
    transform: translate(140px, -60px) rotate(-5deg);
    z-index: 2;
}

.card-deck.active .card:nth-child(3) {
    transform: translate(290px, -60px) rotate(5deg);
    z-index: 3;
}

.card-deck.active .card:nth-child(4) {
    transform: translate(430px, 0px) rotate(10deg);
    z-index: 4;
}

@media (max-width:1024px) {
    .graphics-content {
        flex-direction: column;
        gap: 40px;
    }

    .graphics-content .about-text {
        text-align: center;
        flex: auto;
        width: 100%;
        margin-right: 0;
    }

    .stacked-cards-container {
        justify-content: center;
        padding-left: 0;
        margin-right: 0;
        margin-top: 30px;
    }

    .card-deck {
        width: 100%;
        height: 250px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .card-deck .card:nth-child(1) {
        transform: translate(-60px, 20px) rotate(-10deg);
    }

    .card-deck .card:nth-child(2) {
        transform: translate(-20px, 10px) rotate(-5deg);
    }

    .card-deck .card:nth-child(3) {
        transform: translate(20px, 0px) rotate(0deg);
    }

    .card-deck .card:nth-child(4) {
        transform: translate(60px, -10px) rotate(5deg);
    }
}

/* --- Fine-tuned Responsive Adjustments --- */
@media (max-width: 1024px) {

    /* 1. Stacked Cards Fix (Image 1) - Tablet compatibility */
    .graphics-content {
        flex-direction: column !important;
        align-items: center;
    }

    .graphics-content .about-text {
        text-align: center;
        margin-right: 0 !important;
        flex: auto;
    }

    .stacked-cards-container {
        justify-content: center !important;
        margin-top: 30px !important;
        padding-right: 0 !important;
        margin-right: 0 !important;
    }

    .card-deck {
        width: 160px !important;
        height: 160px !important;
        margin: 0 auto;
    }

    .card-deck .card {
        width: 160px !important;
        height: 160px !important;
        position: absolute;
        left: 50%;
        margin-left: -80px !important;
    }

    .card-deck .card img {
        width: 120px !important;
        height: 120px !important;
    }

    .card-deck:not(.active) .card:nth-child(1) {
        transform: translate(-50px, 20px) rotate(-10deg) !important;
    }

    .card-deck:not(.active) .card:nth-child(2) {
        transform: translate(-15px, 10px) rotate(-5deg) !important;
    }

    .card-deck:not(.active) .card:nth-child(3) {
        transform: translate(15px, 0px) rotate(0deg) !important;
    }

    .card-deck:not(.active) .card:nth-child(4) {
        transform: translate(50px, -10px) rotate(5deg) !important;
    }

    .card-deck.active .card:nth-child(1) {
        transform: translate(-80px, 20px) rotate(-10deg) !important;
    }

    .card-deck.active .card:nth-child(2) {
        transform: translate(-25px, 10px) rotate(-5deg) !important;
    }

    .card-deck.active .card:nth-child(3) {
        transform: translate(30px, 0px) rotate(0deg) !important;
    }

    .card-deck.active .card:nth-child(4) {
        transform: translate(80px, -10px) rotate(5deg) !important;
    }
}

@media (max-width: 768px) {

    /* Stacked Cards — fan arc (rotate around pivot 220px below) */
    .stacked-cards-container {
        height: 200px !important;
        padding-right: 0 !important;
    }

    .card-deck {
        width: 64px !important;
        height: 64px !important;
        margin-top: 20px !important;
    }

    .card-deck .card {
        width: 64px !important;
        height: 64px !important;
        margin-left: -32px !important;
        border-radius: 14px !important;
    }

    .card-glass {
        border-radius: 14px !important;
    }

    /* icon larger than frame — overflows deliberately */
    .card-deck .card img {
        width: 82px !important;
        height: 82px !important;
    }

    /* idle fan — arc formula: D=220, angles -30°,-10°,+10°,+30°
       x = D·sin(θ),  y = D·(1−cos(θ))  → outer cards dip slightly  */
    .card-deck:not(.active) .card:nth-child(1) {
        transform: translate(-110px, 29px) rotate(-30deg) !important;
        z-index: 1 !important;
    }

    .card-deck:not(.active) .card:nth-child(2) {
        transform: translate(-38px, 3px) rotate(-10deg) !important;
        z-index: 2 !important;
    }

    .card-deck:not(.active) .card:nth-child(3) {
        transform: translate(38px, 3px) rotate(10deg) !important;
        z-index: 3 !important;
    }

    .card-deck:not(.active) .card:nth-child(4) {
        transform: translate(110px, 29px) rotate(30deg) !important;
        z-index: 4 !important;
    }

    /* active fan — D=290, angles -35°,-12°,+12°,+35° */
    .card-deck.active .card:nth-child(1) {
        transform: translate(-166px, 55px) rotate(-35deg) !important;
        z-index: 1 !important;
    }

    .card-deck.active .card:nth-child(2) {
        transform: translate(-60px, 6px) rotate(-12deg) !important;
        z-index: 2 !important;
    }

    .card-deck.active .card:nth-child(3) {
        transform: translate(60px, 6px) rotate(12deg) !important;
        z-index: 3 !important;
    }

    .card-deck.active .card:nth-child(4) {
        transform: translate(166px, 55px) rotate(35deg) !important;
        z-index: 4 !important;
    }

    /* --- Global Section Spacing Fixes --- */
    :root {
        --space-section: 30px !important;
    }

    .code-transformation-section {
        padding: 40px 0 30px !important;
    }

    .graphics-section,
    .about-section,
    .contact-section {
        padding: 30px 0 !important;
        margin-top: 10px !important;
    }

    section {
        margin-bottom: 20px !important;
    }

    /* 4. Stream Source Icons & Animation Fix (Image 2) */

    #cardStream {
        width: 100%;
        padding: 0 10px;
        -webkit-mask-image: conic-gradient(from 70deg at 35px 50%, transparent 0deg, black 15deg, black 25deg, transparent 40deg), conic-gradient(from 250deg at calc(100% - 35px) 50%, transparent 0deg, black 15deg, black 25deg, transparent 40deg) !important;
        mask-image: conic-gradient(from 70deg at 35px 50%, transparent 0deg, black 15deg, black 25deg, transparent 40deg), conic-gradient(from 250deg at calc(100% - 35px) 50%, transparent 0deg, black 15deg, black 25deg, transparent 40deg) !important;
    }

    .card-wrapper {
        width: 130px !important;
        height: 85px !important;
    }

    .client-role-badge {
        padding: 4px 8px !important;
        font-size: 0.6rem !important;
    }

    
    .client-card-content {
        padding: 8px !important;
    }

    /* 3. Projects Carousel Shape Fix - Mobile Square */
    .projects-carousel {
        height: clamp(300px, 78vw, 420px) !important;
        min-height: 300px !important;
        padding-top: 5px !important;
    }

    .projects-carousel .carousel-track {
        height: 100% !important;
    }

    .projects-carousel .carousel-slide {
        width: clamp(280px, 88vw, 400px) !important;
        height: clamp(230px, 72vw, 340px) !important;
        aspect-ratio: unset !important;
        min-height: auto !important;
        border-radius: 12px !important;
    }

    .projects-carousel .carousel-slide.active {
        transform: translate(-50%, -50%) scale(0.95) !important;
    }

    .projects-carousel .carousel-slide.prev {
        transform: translate(-115%, -50%) scale(0.45) rotateY(35deg) !important;
        opacity: 0.25 !important;
        filter: blur(3px) grayscale(70%) !important;
    }

    .projects-carousel .carousel-slide.next {
        transform: translate(15%, -50%) scale(0.45) rotateY(-35deg) !important;
        opacity: 0.25 !important;
        filter: blur(3px) grayscale(70%) !important;
    }

    .carousel-3d-info {
        margin-top: 20px !important;
        padding: 3px 10px !important;
    }

    .swipe-hint {
        display: flex !important;
    }

    /* Smaller Review Cards */
    .review-card {
        width: 280px !important;
        min-width: 280px !important;
        padding: 20px !important;
        border-radius: 16px !important;
    }

    .review-text {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }

    .stars {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
    }

    .reviewer .avatar {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }

    .reviewer .info h3 {
        font-size: 0.85rem !important;
    }

    .reviewer .info span {
        font-size: 0.7rem !important;
    }

    /* 2. Text Content Fix in Scrolly Step - Restore Stacked appropriately */
    .scrolly-container {
        flex-direction: column !important;
        padding: 0 20px !important;
    }

    .scrolly-col-left {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        position: relative !important;
        top: auto !important;
        z-index: 10 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important;
        margin-bottom: 20px !important;
    }

    .scrolly-img.active {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .scrolly-step {
        min-height: auto !important;
        padding: 0 !important;
        display: block !important;
        margin-bottom: 15px !important;
    }

    .bio-title {
        font-size: 1.8rem !important;
        line-height: 1.2;
        margin-bottom: 12px !important;
    }

    .bio-title .highlight-italic {
        font-size: 1.9rem !important;
    }

    .bio-greeting {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }

    .bio-description {
        font-size: 0.90rem !important;
        margin-bottom: 20px !important;
        line-height: 1.5 !important;
    }

    .bio-stats {
        gap: 20px !important;
        flex-direction: row !important;
        margin-bottom: 0 !important;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    .skills-grid {
        gap: 15px !important;
    }

    .circle-progress {
        width: 90px !important;
        height: 90px !important;
    }

    .circle-progress svg {
        transform: rotate(-90deg) scale(0.65) !important;
        transform-origin: center center;
    }

    .skill-name {
        font-size: 0.8rem !important;
        text-align: center;
    }
}

/* --- Global Scaling for Laptop/Smaller Desktop Screens --- */
@media (max-width: 1440px) and (min-width: 901px) {
    html {
        font-size: 13px;
    }

    .about-section,
    .graphics-section {
        padding: 60px 20px;
    }

    .infinite-gallery-wrapper {
        padding: 60px 0;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .hero-content {
        min-height: 70vh;
        padding-top: 20px;
    }

    .about-text h2 {
        font-size: 2.4rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 4vw, 2.8rem);
    }

    .hero p.description {
        font-size: 0.95rem;
        max-width: 500px;
    }

    .about-subtitle {
        font-size: 0.9rem;
    }

    .visual-card {
        padding: 25px;
        border-radius: 24px;
    }

    .chat-card {
        padding: 0 !important;
    }

    .testimonials-header-wrapper {
        padding: 0 20px 30px;
    }

    .about-container {
        gap: 35px;
        max-width: 1100px;
    }

    .visual-content {
        margin-bottom: 25px;
    }

    .visual-footer h3 {
        font-size: 1.1rem;
    }

    .visual-footer p {
        font-size: 0.85rem;
    }

    .about-text .highlight-italic,
    .about-text .highlight-italicblue,
    .about-text .highlight-italicorange {
        font-size: inherit;
    }

    .transformation-title {
        font-size: 2.4rem;
    }

    .highlight-italicnew {
        font-size: inherit;
    }

    header {
        height: 70px;
        padding: 0 30px;
    }

    header.scrolled {
        height: 60px;
    }

    .nav-center a {
        font-size: 0.8rem;
    }

    .btn-nav-cta {
        font-size: 0.8rem;
        padding: 8px 20px;
    }

    .review-card {
        width: 320px;
        min-width: 320px;
        padding: 24px;
    }

    .review-text {
        font-size: 0.9rem;
    }

    .scrolly-step {
        min-height: 85vh;
        padding: 30px 40px;
    }

    .bio-title {
        font-size: 2rem;
    }

    .bio-description {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .button {
        font-size: 0.95rem;
    }

    .inner {
        padding: 11px 26px;
    }

    .kreska {
        margin: 40px auto;
    }

    .code-transformation-section {
        padding: 60px 0 40px;
    }

    .card-wrapper {
        width: 280px;
        height: 190px;
    }
}

@media (max-width: 1200px) and (min-width: 901px) {
    html {
        font-size: 12px;
    }

    .about-section,
    .graphics-section {
        padding: 45px 18px;
    }

    .infinite-gallery-wrapper {
        padding: 45px 0;
    }

    .hero {
        padding: 100px 18px 45px;
    }

    .hero-content {
        min-height: 65vh;
        padding-top: 15px;
    }

    
    .about-text h2 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

    .hero p.description {
        font-size: 0.9rem;
        max-width: 450px;
    }

    .about-subtitle {
        font-size: 0.85rem;
    }

    .about-container {
        gap: 25px;
        max-width: 1000px;
    }

    .visual-card {
        padding: 20px;
        border-radius: 20px;
    }

    .scrolly-step {
        min-height: 80vh;
        padding: 25px 30px;
    }

    .scrolly-container {
        padding: 0 25px;
    }

    .bio-title {
        font-size: 1.8rem;
    }

    .transformation-title {
        font-size: 2rem;
    }

    .code-transformation-section {
        padding: 45px 0 30px;
    }

    .card-wrapper {
        width: 240px;
        height: 165px;
    }

    .review-card {
        width: 290px;
        min-width: 290px;
        padding: 20px;
    }

    .review-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) and (min-width: 901px) {
    html {
        font-size: 11px;
    }

    
    .about-text h2 {
        font-size: 2rem;
    }

    .about-section,
    .graphics-section {
        padding: 35px 15px;
    }

    .infinite-gallery-wrapper {
        padding: 35px 0;
    }

    .about-container {
        gap: 20px;
        max-width: 900px;
    }

    .hero {
        padding: 90px 15px 40px;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
    }

    .hero-content {
        min-height: 60vh;
    }

    .scrolly-step {
        min-height: 75vh;
        padding: 20px 25px;
    }

    .transformation-title {
        font-size: 1.8rem;
    }

    .code-transformation-section {
        padding: 35px 0 25px;
    }
}

/* --- OMNIE STACKING SECTIONS CSS --- */

.omnie-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

.omnie-sticky-section {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    color: white;
    display: grid;
    place-content: center;
    /* Account for fixed navbar height */
    padding: 90px 0 0 0 !important;
    margin: 0;
    box-sizing: border-box;
}

.omnie-sticky-section.dark {
    background-color: #020617;
    color: white;
}

.omnie-sticky-section.light {
    background-color: #d1d5db;
    color: black;
}

.omnie-bg-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background-image: linear-gradient(to right, rgba(79, 79, 79, 0.18) 1px, transparent 1px), linear-gradient(to bottom, rgba(79, 79, 79, 0.18) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.omnie-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.omnie-content .bio-greeting {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.omnie-content .bio-title {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.omnie-content .bio-description {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 550px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

/* --- Bio Photo --- */
.bio-photo-wrapper {
    margin-bottom: 1rem;
}

.bio-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(234, 88, 12, 0.6);
    box-shadow: 0 0 25px rgba(234, 88, 12, 0.2), 0 6px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bio-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(234, 88, 12, 0.35), 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* --- Bio Stats --- */
.bio-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.25rem;
    justify-content: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--color-primary);
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* --- Tighten omnie slide spacing --- */
.omnie-content .bio-greeting {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.omnie-content .bio-title {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.omnie-content .bio-description {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 550px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

/* Mobile adjustments for bio photo */
@media (max-width: 768px) {
    .bio-photo {
        width: 100px;
        height: 100px;
    }

    .bio-photo-wrapper {
        margin-bottom: 0.75rem;
    }

    .bio-stats {
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }
}

/* Laptop adjustments */
@media (max-width: 1440px) and (min-width: 901px) {
    .bio-photo {
        width: 110px;
        height: 110px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/* Laptop screens with limited viewport height */
@media (max-height: 800px) and (min-width: 769px) {
    .omnie-sticky-section {
        padding: 75px 0 0 0 !important;
    }

    .omnie-content .bio-title {
        font-size: clamp(1.6rem, 3.5vw, 2.8rem);
        margin-bottom: 0.6rem;
    }

    .omnie-content .bio-description {
        font-size: 0.95rem;
        margin: 0 auto 0.6rem;
    }

    .omnie-content .bio-greeting {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }

    .bio-photo {
        width: 90px;
        height: 90px;
    }

    .bio-photo-wrapper {
        margin-bottom: 0.5rem;
    }

    .bio-stats {
        gap: 1.5rem;
        margin-top: 0.75rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .omnie-content {
        padding: 1rem;
    }
}

/* =========================================================================
   Code Transformation Section – Order Flow Animation (3 steps, 9s loop)
   =========================================================================
   Timeline (9 seconds):
   0s–3s   → Step 1: "Zlecenie" packet flies Client → Philift
   3s–6s   → Step 2: Philift "codes" — rings spin, code-badge appears
   6s–9s   → Step 3: "Publikacja" packet flies Philift → Internet
   ========================================================================= */

.code-transformation-section {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.transformation-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 3.5rem;
    font-weight: 700;
}

.highlight-italicnew {
    color: #ea580c;
    font-style: italic;
}

/* --- Layout --- */

/* --- Nodes --- */

/* --- Node Glow (pulsates when packet arrives) --- */

@keyframes glowClient {

    0%,
    5% {
        opacity: 1;
        transform: scale(1);
    }

    10%,
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes glowInternet {

    0%,
    90% {
        opacity: 0;
        transform: scale(0.8);
    }

    95% {
        opacity: 1;
        transform: scale(1.15);
    }

    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

/* --- Code Badge (floating above Philift) --- */

@keyframes badgeAppear {

    0%,
    30% {
        opacity: 0;
        transform: translateY(8px) scale(0.8);
    }

    36% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    62% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    68%,
    100% {
        opacity: 0;
        transform: translateY(-8px) scale(0.8);
    }
}

@keyframes spinCodeIcon {

    0%,
    30% {
        transform: rotate(0deg);
    }

    33% {
        transform: rotate(0deg);
    }

    64% {
        transform: rotate(720deg);
    }

    100% {
        transform: rotate(720deg);
    }
}

/* --- Philift Spinning Rings --- */

@keyframes ringSpin {

    0%,
    30% {
        opacity: 0;
        transform: rotate(0deg);
    }

    33% {
        opacity: 1;
        transform: rotate(0deg);
    }

    64% {
        opacity: 1;
        transform: rotate(540deg);
    }

    68%,
    100% {
        opacity: 0;
        transform: rotate(540deg);
    }
}

@keyframes ringSpinReverse {

    0%,
    30% {
        opacity: 0;
        transform: rotate(0deg);
    }

    33% {
        opacity: 0.7;
        transform: rotate(0deg);
    }

    64% {
        opacity: 0.7;
        transform: rotate(-360deg);
    }

    68%,
    100% {
        opacity: 0;
        transform: rotate(-360deg);
    }
}

/* --- Connection Track --- */

/* Track glow — sweeps along the line when packet moves */

@keyframes sweepGlow1 {
    0% {
        left: -60px;
        opacity: 0;
    }

    3% {
        left: 0;
        opacity: 0.7;
    }

    30% {
        left: calc(100% - 60px);
        opacity: 0.7;
    }

    34%,
    100% {
        left: calc(100% - 60px);
        opacity: 0;
    }
}

@keyframes sweepGlow2 {

    0%,
    64% {
        left: -60px;
        opacity: 0;
    }

    68% {
        left: 0;
        opacity: 0.7;
    }

    93% {
        left: calc(100% - 60px);
        opacity: 0.7;
    }

    97%,
    100% {
        left: calc(100% - 60px);
        opacity: 0;
    }
}

/* --- Data Packets --- */

/* --- Packet Animations (9s loop) --- */

@keyframes moveOrder {
    0% {
        left: -18px;
        transform: translateY(-50%) scale(0.5);
        opacity: 0;
    }

    3% {
        left: 0%;
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }

    28% {
        left: calc(100% - 36px);
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }

    33%,
    100% {
        left: calc(100% - 36px);
        transform: translateY(-50%) scale(0.5);
        opacity: 0;
    }
}

@keyframes movePublish {

    0%,
    64% {
        left: -18px;
        transform: translateY(-50%) scale(0.5);
        opacity: 0;
    }

    68% {
        left: 0%;
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }

    93% {
        left: calc(100% - 36px);
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }

    97%,
    100% {
        left: calc(100% - 36px);
        transform: translateY(-50%) scale(0.5);
        opacity: 0;
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {

    @keyframes sweepGlowM1 {
        0% {
            top: -40px;
            opacity: 0;
        }

        3% {
            top: 0;
            opacity: 0.7;
        }

        30% {
            top: calc(100% - 40px);
            opacity: 0.7;
        }

        34%,
        100% {
            top: calc(100% - 40px);
            opacity: 0;
        }
    }

    @keyframes sweepGlowM2 {

        0%,
        64% {
            top: -40px;
            opacity: 0;
        }

        68% {
            top: 0;
            opacity: 0.7;
        }

        93% {
            top: calc(100% - 40px);
            opacity: 0.7;
        }

        97%,
        100% {
            top: calc(100% - 40px);
            opacity: 0;
        }
    }

    @keyframes moveOrderM {
        0% {
            top: -18px;
            transform: translateX(-50%) scale(0.5);
            opacity: 0;
        }

        3% {
            top: 0;
            transform: translateX(-50%) scale(1);
            opacity: 1;
        }

        28% {
            top: calc(100% - 36px);
            transform: translateX(-50%) scale(1);
            opacity: 1;
        }

        33%,
        100% {
            top: calc(100% - 36px);
            transform: translateX(-50%) scale(0.5);
            opacity: 0;
        }
    }

    @keyframes movePublishM {

        0%,
        64% {
            top: -18px;
            transform: translateX(-50%) scale(0.5);
            opacity: 0;
        }

        68% {
            top: 0;
            transform: translateX(-50%) scale(1);
            opacity: 1;
        }

        93% {
            top: calc(100% - 36px);
            transform: translateX(-50%) scale(1);
            opacity: 1;
        }

        97%,
        100% {
            top: calc(100% - 36px);
            transform: translateX(-50%) scale(0.5);
            opacity: 0;
        }
    }
}

/* Circular Skills Section */
.skills-grid.circular {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.circular-skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.circle-wrap {
    position: relative;
    width: 140px;
    height: 140px;
}

.circle-wrap svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-wrap circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.circle-bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.circle-progress {
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.html-progress {
    stroke: #3b82f6;
}

/* Blue */
.css-progress {
    stroke: #f97316;
}

/* Orange */
.js-progress {
    stroke: #3b82f6;
}

/* Blue */
.php-progress {
    stroke: #10b981;
}

/* Green */

.circle-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Subtle shade differences for omnie sticky sections */
.omnie-wrapper .omnie-sticky-section.dark:nth-child(2) {
    background-color: #060b24;
    /* Subtle blueish tint */
}

.omnie-wrapper .omnie-sticky-section.dark:nth-child(3) {
    background-color: #0a0614;
    /* Subtle purple/warm tint */
}

/* ============================================================
   iPad Portrait  (601 – 1024 px, height > width)
   ============================================================ */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {

    /* --- Typography ogólna --- */
    .about-text h2,
    .section-title,
    .process-step h3 {
        font-size: clamp(2.4rem, 6vw, 3.4rem) !important;
        text-align: center !important;
    }
    .about-subtitle,
    .about-text p,
    .process-step p {
        font-size: clamp(1.05rem, 2.5vw, 1.25rem) !important;
        line-height: 1.75 !important;
        text-align: center !important;
    }

    /* --- Hero --- */
    .hero h1 {
        font-size: clamp(3.8rem, 9.5vw, 5.5rem) !important;
        text-align: center !important;
    }
    .hero p.description {
        font-size: clamp(1.1rem, 2.8vw, 1.4rem) !important;
        text-align: center !important;
    }

    /* --- Materiały Graficzne — wyśrodkowanie sekcji --- */
    .graphics-section .about-container {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
    }
    .graphics-section .about-subtitle,
    .graphics-section .about-text p,
    .graphics-section p {
        text-align: center !important;
        font-size: clamp(1.05rem, 2.5vw, 1.25rem) !important;
        line-height: 1.75 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 90% !important;
    }

    /* --- Materiały Graficzne — wachlarz jak na telefonie, ale większy --- */
    .graphics-content {
        flex-direction: column !important;
        align-items: center !important;
    }
    .graphics-content .about-text {
        text-align: center !important;
        margin-right: 0 !important;
        flex: auto !important;
        width: 100% !important;
    }
    .stacked-cards-container {
        height: 280px !important;
        padding-right: 0 !important;
        justify-content: center !important;
        margin-right: 0 !important;
        margin-top: 20px !important;
    }
    .card-deck {
        width: 90px !important;
        height: 90px !important;
        margin-top: 30px !important;
    }
    .card-deck .card {
        width: 90px !important;
        height: 90px !important;
        margin-left: -45px !important;
        border-radius: 18px !important;
    }
    .card-glass { border-radius: 18px !important; }
    .card-deck .card img {
        width: 110px !important;
        height: 110px !important;
    }

    /* idle wachlarz — D=300, kąty -30°,-10°,+10°,+30°
       x = D·sin(θ),  y = D·(1−cos(θ)) */
    .card-deck:not(.active) .card:nth-child(1) {
        transform: translate(-150px, 40px) rotate(-30deg) !important;
        z-index: 1 !important;
    }
    .card-deck:not(.active) .card:nth-child(2) {
        transform: translate(-52px, 5px) rotate(-10deg) !important;
        z-index: 2 !important;
    }
    .card-deck:not(.active) .card:nth-child(3) {
        transform: translate(52px, 5px) rotate(10deg) !important;
        z-index: 3 !important;
    }
    .card-deck:not(.active) .card:nth-child(4) {
        transform: translate(150px, 40px) rotate(30deg) !important;
        z-index: 4 !important;
    }

    /* active wachlarz — D=380, kąty -35°,-12°,+12°,+35° */
    .card-deck.active .card:nth-child(1) {
        transform: translate(-218px, 69px) rotate(-35deg) !important;
        z-index: 1 !important;
    }
    .card-deck.active .card:nth-child(2) {
        transform: translate(-79px, 8px) rotate(-12deg) !important;
        z-index: 2 !important;
    }
    .card-deck.active .card:nth-child(3) {
        transform: translate(79px, 8px) rotate(12deg) !important;
        z-index: 3 !important;
    }
    .card-deck.active .card:nth-child(4) {
        transform: translate(218px, 69px) rotate(35deg) !important;
        z-index: 4 !important;
    }

    /* --- Karuzela realizacji — większa, bardziej kwadratowa --- */
    .projects-carousel {
        height: clamp(360px, 65vw, 540px) !important;
        min-height: 360px !important;
    }
    .projects-carousel .carousel-slide {
        width: clamp(380px, 76vw, 620px) !important;
        height: clamp(290px, 56vw, 470px) !important;
        aspect-ratio: unset !important;
        min-height: auto !important;
        border-radius: 14px !important;
    }
    .projects-carousel .carousel-slide.active {
        transform: translate(-50%, -50%) scale(0.95) !important;
    }
    .projects-carousel .carousel-slide.prev {
        transform: translate(-115%, -50%) scale(0.45) rotateY(35deg) !important;
        opacity: 0.25 !important;
        filter: blur(3px) grayscale(70%) !important;
    }
    .projects-carousel .carousel-slide.next {
        transform: translate(15%, -50%) scale(0.45) rotateY(-35deg) !important;
        opacity: 0.25 !important;
        filter: blur(3px) grayscale(70%) !important;
    }

    /* Pokaż wskazówkę swipe na tablecie w pionie */
    .swipe-hint { display: flex !important; }
}

/* ============================================================
   WSPÓLNY EYEBROW + NAGŁÓWKI SEKCJI (align)
   ============================================================ */
.section-eyebrow {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    padding: 7px 16px;
    border: 1px solid rgba(245, 124, 47, 0.25);
    border-radius: 50px;
    background: rgba(245, 124, 47, 0.07);
    margin-bottom: 22px;
}

.offer-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 56px;
    padding: 0 24px;
    position: relative;
    z-index: 20;
}

.offer-header .transformation-title {
    margin-bottom: 0;
}

/* ============================================================
   SEKCJA OFERTA — scena „firma → kod" (edytor + podgląd)
   ============================================================ */
.codegen {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 22px;
    position: relative;
    z-index: 20;
}

.codegen-editor,
.codegen-browser {
    height: 330px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.codegen-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.cg-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.cg-dot.red {
    background: #ff5f57;
}

.cg-dot.yellow {
    background: #febc2e;
}

.cg-dot.green {
    background: #28c840;
}

.codegen-filename,
.codegen-url {
    margin-left: 8px;
    font-size: 0.76rem;
    color: var(--color-text-muted);
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.codegen-filename i {
    color: var(--color-primary);
    font-size: 0.7rem;
}

.codegen-url i {
    color: #28c840;
    font-size: 0.66rem;
}

.codegen-code {
    flex: 1;
    padding: 18px 20px;
    overflow: hidden;
    font-family: ui-monospace, 'SF Mono', 'Fira Code', Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.75;
}

.codegen-code pre {
    margin: 0;
}

#cg-code {
    white-space: pre;
    color: #e6e6e6;
}

.cg-row {
    display: block;
}

.cg-tag {
    color: var(--color-primary);
}

.cg-attr {
    color: #d8b27a;
}

.cg-str {
    color: #6bd08a;
}

.cg-txt {
    color: #eaeaee;
}

.cg-punct {
    color: #8a8a92;
}

.cg-caret {
    display: inline-block;
    width: 7px;
    height: 1.05em;
    background: var(--color-primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cgBlink 1s steps(1) infinite;
}

@keyframes cgBlink {
    50% {
        opacity: 0;
    }
}

/* wskaźnik transformacji */
.codegen-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--color-primary);
    border: 1px solid rgba(245, 124, 47, 0.3);
    background: rgba(245, 124, 47, 0.08);
    box-shadow: 0 0 0 6px rgba(245, 124, 47, 0.04);
    font-size: 1rem;
    animation: cgArrow 1.8s ease-in-out infinite;
}

@keyframes cgArrow {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.7;
    }

    50% {
        transform: translateX(4px);
        opacity: 1;
    }
}

/* podgląd przeglądarki */
.codegen-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: radial-gradient(120% 80% at 50% 0%, rgba(245, 124, 47, 0.1), transparent 60%), #0a0a12;
}

.cg-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
}

.cg-logo {
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.cg-logo b {
    color: var(--color-primary);
}

.cg-navlinks {
    display: flex;
    gap: 7px;
}

.cg-navlinks i {
    width: 18px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.cg-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 11px;
    padding: 10px 24px 28px;
}

.cg-h1 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.cg-sub {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.cg-cta {
    margin-top: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    box-shadow: 0 10px 22px -10px rgba(245, 124, 47, 0.7);
    cursor: default;
}

/* stany odsłaniania podglądu (synchronizowane z pisaniem kodu) */
.cg-nav,
.cg-h1,
.cg-sub,
.cg-cta {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cg-nav {
    transform: translateY(-12px);
}

.cg-show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.offer-cta {
    text-align: center;
    margin-top: 56px;
    position: relative;
    z-index: 20;
}

@media (max-width: 900px) {
    .offer-header {
        margin-bottom: 44px;
    }
}

@media (max-width: 860px) {
    .codegen {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 540px;
    }

    .codegen-arrow {
        transform: rotate(90deg);
        animation: none;
        margin: -4px auto;
    }

    .codegen-editor,
    .codegen-browser {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .codegen {
        padding: 0 18px;
    }

    .codegen-code {
        font-size: 0.78rem;
    }

    .cg-h1 {
        font-size: 1.3rem;
    }

    .offer-cta {
        margin-top: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .cg-caret,
    .codegen-arrow {
        animation: none;
    }
}

/* ============================================================
   WYRÓŻNIONA OPINIA — karta z odsłanianiem realizacji
   (hover na desktopie / przytrzymanie na telefonie)
   ============================================================ */
.ptest-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 24px 50px;
}

.ptest {
    position: relative;
    width: 100%;
    max-width: 760px;
    aspect-ratio: 16 / 10;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.ptest:focus-visible {
    border-color: rgba(245, 124, 47, 0.5);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
}

/* ── FRONT: opinia ── */
.ptest-front {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 36px 40px 30px;
    z-index: 2;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ptest-front-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.ptest .stars {
    margin-bottom: 0;
}

.ptest-quote {
    position: relative;
    font-size: clamp(1.05rem, 1.8vw, 1.32rem);
    line-height: 1.6;
    color: #f1f1f3;
    margin: 0;
    font-weight: 400;
    font-style: normal;
}

.ptest-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.4em;
    left: -0.05em;
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    line-height: 1;
    color: rgba(245, 124, 47, 0.35);
    pointer-events: none;
}

.ptest-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ptest-reviewer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
}

.ptest-avatar {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ptest-avatar img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.ptest-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    gap: 2px;
}

.ptest-name {
    font-family: 'Million Asteroids', 'Playfair Display', serif;
    font-style: normal;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1;
}

.ptest-role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.ptest-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 15px;
    border-radius: 50px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.ptest-hint i {
    color: var(--color-primary);
}

.ptest:hover .ptest-hint {
    color: #fff;
    border-color: rgba(245, 124, 47, 0.4);
}

/* warianty podpowiedzi: domyślnie desktop, dotyk gdy brak hover */
.hint-ic-touch,
.hint-txt-touch {
    display: none;
}

@media (hover: none) {

    .hint-ic-hover,
    .hint-txt-hover {
        display: none;
    }

    .hint-ic-touch,
    .hint-txt-touch {
        display: inline;
    }
}

/* ── BACK: realizacja ── */
.ptest-back {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ptest-back img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.05);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ptest-back-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 6px;
    /* tekst trzyma się lewego-dolnego rogu, duży prawy padding by nie wchodził w łuk */
    padding: 0 38% 30px 36px;
    /* ciemność najsilniejsza w lewym-dolnym rogu */
    background: radial-gradient(130% 130% at 0% 100%, rgba(5, 5, 10, 0.97) 30%, rgba(5, 5, 10, 0.82) 54%, rgba(5, 5, 10, 0.32) 70%, transparent 80%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    /* ćwiartka koła z lewego-dolnego rogu (miękka krawędź) */
    -webkit-mask-image: radial-gradient(130% 130% at 0% 100%, #000 55%, transparent 76%);
    mask-image: radial-gradient(130% 130% at 0% 100%, #000 55%, transparent 76%);
}

.ptest-back-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 600;
}

.ptest-back-title {
    font-size: 1.18rem;
    color: #fff;
    margin: 0 0 2px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.ptest-tech {
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
    display: grid;
    gap: 5px;
}

.ptest-tech li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.82rem;
    color: #dcdce0;
    line-height: 1.35;
}

.ptest-tech li i {
    color: var(--color-primary);
    width: 15px;
    text-align: center;
    flex-shrink: 0;
}

.ptest-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 9px 18px;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    font-weight: 600;
    font-size: 0.83rem;
    text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(245, 124, 47, 0.7);
    transition: transform 0.2s ease;
}

.ptest-link:hover {
    transform: translateY(-2px);
}

/* ── STANY ODSŁONIĘCIA ── */
.ptest:hover .ptest-front,
.ptest.is-revealed .ptest-front {
    opacity: 0;
    transform: scale(1.03);
    pointer-events: none;
}

.ptest:hover .ptest-back,
.ptest.is-revealed .ptest-back {
    opacity: 1;
    visibility: visible;
}

.ptest:hover .ptest-back img,
.ptest.is-revealed .ptest-back img {
    transform: scale(1);
}

@media (max-width: 680px) {
    .ptest {
        aspect-ratio: auto;
    }

    .ptest-front {
        position: relative;
        padding: 28px 24px 26px;
    }

    .ptest-back-overlay {
        align-items: stretch;
        padding: 28px 24px 26px;
        background: linear-gradient(180deg, rgba(5, 5, 10, 0.35) 0%, rgba(5, 5, 10, 0.85) 45%, rgba(5, 5, 10, 0.97) 100%);
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
    }

    .ptest-back-title {
        font-size: 1.2rem;
    }

    .ptest-tech li {
        font-size: 0.86rem;
    }
}

/* ── FLIP CARD (urządzenia dotykowe) ── */
@media (hover: none) {
    .ptest-wrapper {
        perspective: 1500px;
    }

    .ptest {
        overflow: visible;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
        transform-style: preserve-3d;
        transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
        min-height: 540px;
    }

    .ptest.is-revealed {
        transform: rotateY(180deg);
    }

    .ptest-front {
        position: absolute;
        inset: 0;
        border-radius: 26px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
        box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transition: none;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .ptest-back {
        position: absolute;
        inset: 0;
        border-radius: 26px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: rotateY(180deg);
        opacity: 1;
        visibility: visible;
    }

    .ptest-back picture,
    .ptest-back picture img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .ptest-back picture img {
        object-fit: cover;
        object-position: top center;
        transform: none;
    }

    .ptest.is-revealed .ptest-back {
        opacity: 1;
        visibility: visible;
    }

    .ptest.is-revealed .ptest-back picture img {
        transform: none;
    }
}

/* ============================================================
   FAQ (premium)
   ============================================================ */
.faq-section {
    padding: 90px 0 100px;
}

.faq-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

.faq-header h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 16px;
}

.faq-header .highlight-italic {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: var(--color-text-muted);
    font-weight: 400;
}

.faq-header p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.faq-list {
    max-width: 780px;
    margin: 50px auto 0;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

/* lewy pasek akcentu, rośnie po otwarciu */
.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
    transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.faq-item[open] {
    border-color: rgba(245, 124, 47, 0.3);
    background: linear-gradient(160deg, rgba(245, 124, 47, 0.06), rgba(255, 255, 255, 0.012));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 44px -28px rgba(0, 0, 0, 0.8);
}

.faq-item[open]::before {
    height: 58%;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    font-size: 1.06rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.25s ease;
}

.faq-item summary:hover {
    color: var(--color-primary);
}

.faq-item[open] summary {
    color: #fff;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\002B';
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-primary);
    border: 1px solid rgba(245, 124, 47, 0.3);
    border-radius: 50%;
    background: rgba(245, 124, 47, 0.08);
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(135deg);
    background: rgba(245, 124, 47, 0.2);
}

.faq-answer {
    padding: 0 26px 24px;
}

.faq-item[open] .faq-answer {
    animation: faqReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes faqReveal {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.faq-answer p {
    margin: 0;
    line-height: 1.7;
    color: var(--color-text-muted);
    font-size: 0.98rem;
    max-width: 60ch;
}

.faq-answer a {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .faq-section {
        padding: 56px 0 64px;
    }

    .faq-item summary {
        font-size: 0.98rem;
        padding: 18px 20px;
        gap: 14px;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }
}

/* ============================================================
   PROCES — makiety projektowe (krok 2: design)
   Przeniesione z inline <style> w index.html dla utrzymania kodu
   ============================================================ */
.design-mockup { overflow: visible !important; }
.pd-mockup-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.5;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    container-type: inline-size;
}

/* Step 1: Wireframe */
.pd-step1 { background: #f8f9fa; border: 1px solid #e2e8f0; }
.pd-step1 .pd-box {
    background: #e2e8f0;
    position: relative;
    border: 1px solid #cbd5e1;
}
.pd-step1 .pd-box::before, .pd-step1 .pd-box::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
}
.pd-step1 .pd-box::before { background: linear-gradient(to bottom right, transparent 48%, #94a3b8 49%, #94a3b8 51%, transparent 52%); }
.pd-step1 .pd-box::after { background: linear-gradient(to top right, transparent 48%, #94a3b8 49%, #94a3b8 51%, transparent 52%); }

/* Base Layout Aligning to Final Image */
.pd-nav {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    height: 16%; padding: 0 7%;
}
.pd-logo { width: 12%; height: 40%; border-radius: 2px; }
.pd-menu { display: flex; gap: 6px; flex: 1; justify-content: center; }
.pd-menu-item { width: 6%; height: 2px; border-radius: 1px; }
.pd-btn { width: 14%; height: 45%; border-radius: 2px; }

.pd-hero {
    position: absolute; left: 7%; top: 30%;
    display: flex; flex-direction: column; gap: 4px;
    width: 55%;
}
.pd-title { width: 95%; height: 8px; border-radius: 2px; }
.pd-subtitle { width: 70%; height: 6px; border-radius: 2px; margin-top:2px; }
.pd-desc { width: 85%; height: 3px; border-radius: 2px; margin-top: 6px; }

.pd-stats {
    position: absolute; left: 7%; bottom: 12%;
    width: 60%; height: 18%;
    display: flex; gap: 4px;
    border-radius: 6px; padding: 2%;
}
.pd-stat-col { flex: 1; height: 100%; border-radius: 2px; }

.pd-circle {
    position: absolute; right: 7%; top: 35%;
    width: 22%; aspect-ratio: 1; border-radius: 50%;
}
.pd-step1 .pd-circle {  background: transparent; }
.pd-step1 .pd-circle::before, .pd-step1 .pd-circle::after {
    content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #94a3b8;
}
.pd-step1 .pd-circle::before { transform: rotate(45deg); }
.pd-step1 .pd-circle::after { transform: rotate(-45deg); }

/* Step 2: Colored */
.pd-step2 { background: #121212;  }
.pd-step2 .pd-box { border: none; }
.pd-step2 .pd-box::before, .pd-step2 .pd-box::after { display: none; }
.pd-step2 .pd-logo { background: transparent; }
.pd-step2 .pd-menu-item { background: rgba(255,255,255,0.7); }
.pd-step2 .pd-btn { background: #b89146; }
.pd-step2 .pd-title { background: transparent; }
.pd-step2 .pd-subtitle { background: transparent; }
.pd-step2 .pd-desc { background: transparent; }
.pd-step2 .pd-stats { background: #1a1a1a; }
.pd-step2 .pd-stat-col { background: transparent; }
.pd-step2 .pd-circle { border: 1px dashed #b89146; background: transparent; }
.pd-step2 .pd-circle::before, .pd-step2 .pd-circle::after { display: none; }

/* Text elements scaling via cqw */
.pd-text-logo { display:flex; align-items:center; justify-content:flex-start; font-size:3.5cqw; color:#b89146; font-weight:bold; }
.pd-text-btn { display:flex; align-items:center; justify-content:center; font-size:1.8cqw; color:#111; font-weight:bold; }
.pd-text-title { color:#fff; font-size:3.8cqw; font-weight:bold; line-height:1.1; display:flex; align-items:center; letter-spacing:0.5px; }
.pd-text-subtitle { color:#fff; font-size:3.4cqw; line-height:1.1; display:flex; align-items:center; margin-top:1cqw; }
.pd-text-desc { font-size:1.4cqw; color:#999; display:flex; align-items:center; margin-top:1.5cqw; }
.pd-stat-col-inner { display:flex; align-items:flex-start; justify-content:center; flex-direction:column; width:100%; height:100%; padding-left:10%; }
.pd-stat-num { font-size:3.2cqw; font-weight:bold; color:#b89146; line-height:1; }
.pd-stat-label { font-size:1.2cqw; color:#aaa; margin-top:0.5cqw; text-transform:none; }
.pd-text-circle { display:flex; align-items:center; justify-content:center; font-size:1.2cqw; color:#b89146; text-align:center; letter-spacing:0.5px; text-transform:uppercase; border:1px dashed #b89146; border-radius:50%; line-height: 1.1; padding: 1cqw; }
.pd-text-circle-inner { width:100%; text-align:center; }

/* Step 3: Background Image */
.pd-step3 {
    background-image: url('images/hero2.png');
    background-size: cover;
    background-position: center;
}
.pd-step3 .pd-circle { width: 14%; top: 42%; right: 4%; }
.pd-step3 .pd-text-circle { font-size: 0.9cqw; padding: 0.8cqw; }
.pd-step3::before {
    content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.65); z-index: 0;
}
.pd-step3 > * { z-index: 1; }
.pd-step3 .pd-box { border: none; }
.pd-step3 .pd-box::before, .pd-step3 .pd-box::after { display: none; }
.pd-step3 .pd-logo { background: transparent; }
.pd-step3 .pd-menu-item { background: rgba(255,255,255,0.8); }
.pd-step3 .pd-btn { background: #b89146; }
.pd-step3 .pd-stats { background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(4px); }
.pd-step3 .pd-stat-col { background: transparent; }
.pd-step3 .pd-circle { border: none; background: transparent; }
.pd-step3 .pd-circle::before, .pd-step3 .pd-circle::after { display: none; }
.pd-step3 .pd-text-circle { border:1px dashed #b89146; }

/* Label positioning underneath */
.design-mockup .mockup-caption {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #cbd5e1;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.design-mockup .mockup-caption.tag-final {
    color: #10b981;
    font-weight: 600;
    border-radius: 10px;
}

/* Make the grid slightly larger */
.diagram-design-scaled {
    transform: scale(1.3);
    transform-origin: left center;
}
@media (max-width: 992px) {
    .diagram-design-scaled {
        transform: scale(1.05);
        transform-origin: center;
    }
}
@media (max-width: 576px) {
    .diagram-design-scaled {
        transform: scale(1);
    }
}
