@layer reset, base, layout, components, pages, utilities;

@layer reset {

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

    img,
    picture,
    video,
    canvas,
    svg {
        display: block;
        max-width: 100%;
    }

    button,
    input,
    select,
    textarea {
        font: inherit;
    }

    /* Remove list styles on ul, ol elements with a list role, which suggests a list with no semantics */
    ul[role='list'],
    ol[role='list'] {
        list-style: none;
    }

    /* Set core root defaults */
    html:focus-within {
        scroll-behavior: smooth;
    }

    body {
        min-height: 100vh;
        text-rendering: optimizeSpeed;
        line-height: 1.5;
    }

    /* A elements that don't have a class get default styles */
    a:not([class]) {
        text-decoration-skip-ink: auto;
    }

    /* Make images easier to work with */
    img,
    picture {
        max-width: 100%;
        display: block;
    }

    /* Inherit fonts for form control */
    input,
    button,
    textarea,
    select {
        font: inherit;
    }

    /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
    @media (prefers-reduced-motion: reduce) {
        html:focus-within {
            scroll-behavior: auto;
        }

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

@layer base {
    :root {
        /* Colors - OKLCH */
        /* Primary Blue */
        --primary-light: oklch(62.8% 0.17 257.6);
        /* #2563EB equivalentish */
        --primary-dark: oklch(42.3% 0.17 265.4);

        /* Secondary Emerald */
        --secondary: oklch(69.8% 0.15 152.6);

        /* Accent Amber */
        --accent: oklch(79.3% 0.16 75.6);

        /* Neutral Slate */
        --bg-body: oklch(98.5% 0.005 240);
        /* F8FAFC */
        --bg-surface: oklch(100% 0 0);

        --text-main: oklch(35% 0.03 240);
        --text-heading: oklch(20% 0.03 240);
        --text-muted: oklch(55% 0.03 240);

        --border-color: oklch(92% 0.01 240);

        /* Gradients */
        --gradient-primary: linear-gradient(135deg, var(--primary-light) 0%, oklch(68% 0.14 250) 100%);
        --gradient-dark: linear-gradient(135deg, var(--text-heading) 0%, oklch(30% 0.04 240) 100%);

        /* SurgeryCode Custom Colors */
        --col-primary: #2760f7;
        --col-primary-lighter: #ebf0ff;
        --col-primary-light: #87a7fd;
        --col-primary-dark: #193e9f;
        --col-primary-darker: #0c1c45;
        --col-secondary: #6d36ee;
        --col-secondary-lighter: #f5f0fe;
        --col-secondary-light: #b091f8;
        --col-secondary-dark: #4013aa;
        --col-secondary-darker: #1e0a4c;
        --col-accept: #ec703b;
        --col-accept-lighter: #fef8f5;
        --col-accept-light: #f7b497;
        --col-accept-dark: #ac4315;
        --col-accept-darker: #50210c;
        --col-neutral-black: #000;
        --col-neutral-white: #fff;
        --col-neutral-grey: #dcdcdc;
        --col-neutral-grey-light: #efefef;
        --col-neutral-grey-dark: #9c9c9c;
        --col-ebook: #27f77a;
        --col-ebook-light: #ebfef3;
        --col-digital-product: #27a4f7;
        --col-digital-product-light: #ebf7fe;
        --col-videocall: #f7e227;
        --col-videocall-light: #fefceb;
        --col-webinar: #c027f7;
        --col-webinar-light: #f9ebfe;
        --col-mastermind: #f7275e;
        --col-mastermind-light: #feebf0;
        --col-voucher: #273cf7;
        --col-voucher-light: #ebedfe;
        --col-course: #27f7e2;
        --col-course-light: #ebfefc;
        --col-active-product: var(--col-primary);

        /* Typography */
        --font-display: 'Outfit', sans-serif;
        --font-body: 'Space Grotesk', sans-serif;

        /* UI */
        --radius-sm: 0.5rem;
        --radius-md: 1rem;
        --radius-lg: 1.5rem;
        --radius-full: 9999px;

        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
        --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    }

    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) {
            --bg-body: oklch(15% 0.02 240);
            --bg-surface: oklch(20% 0.03 240);

            --text-main: oklch(85% 0.01 240);
            --text-heading: oklch(98% 0.005 240);
            --text-muted: oklch(65% 0.02 240);

            --border-color: oklch(30% 0.03 240);

            --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
        }
    }

    [data-theme="dark"] {
        --bg-body: oklch(15% 0.02 240);
        --bg-surface: oklch(20% 0.03 240);

        --text-main: oklch(85% 0.01 240);
        --text-heading: oklch(98% 0.005 240);
        --text-muted: oklch(65% 0.02 240);

        --border-color: oklch(30% 0.03 240);

        --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
    }

    body {
        font-family: var(--font-body);
        color: var(--text-main);
        background-color: var(--bg-body);
        overflow-x: hidden;
    }

    h1,
    h2,
    h3,
    /* h4 {
        font-family: var(--font-display);
        color: var(--text-heading);
        line-height: 1.1;
    } */

    a {
        text-decoration: none;
        color: inherit;
        transition: color 0.2s ease, opacity 0.2s ease;
    }

    button {
        cursor: pointer;
        border: none;
        background: none;
    }
}

@layer layout {
    .container {
        width: 100%;
        max-width: 80rem;
        /* 1280px */
        margin-inline: auto;
        padding-inline: 1.5rem;
    }

    .section-py {
        padding-block: 5rem;
    }

    .grid {
        display: grid;
    }

    .flex {
        display: flex;
    }

    .hidden {
        display: none !important;
    }

    /* Sticky Header Layout */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: color-mix(in srgb, var(--bg-surface), transparent 20%);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid color-mix(in srgb, var(--border-color), transparent 50%);
        transition: all 0.3s ease;
        padding-block: 1rem;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .site-header.scrolled {
        background: var(--bg-surface);
        box-shadow: var(--shadow-sm);
        padding-block: 0.75rem;
    }
}

@layer components {

    /* Buttons */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.875rem 2rem;
        border-radius: var(--radius-full);
        font-weight: 600;
        font-family: var(--font-display);
        letter-spacing: 0.03em;
        transition: transform 0.2s, box-shadow 0.2s;
        font-size: 1rem;
    }

    .btn-primary {
        background: var(--gradient-primary);
        color: white;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    }

    .btn-primary:hover,
    .btn-primary:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    }

    .btn-outline {
        border: 2px solid var(--border-color);
        color: var(--text-heading);
    }

    .btn-outline:hover,
    .btn-outline:focus-visible {
        border-color: var(--text-heading);
        background: var(--bg-surface);
        color: var(--primary-light);
    }

    .btn-sm {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 1rem 3rem;
        font-size: 1.125rem;
    }

    /* Badges */
    .badge {
        display: inline-block;
        padding: 0.375rem 1rem;
        background: color-mix(in srgb, var(--primary-light), transparent 90%);
        color: var(--primary-light);
        border-radius: var(--radius-full);
        font-weight: 600;
        font-size: 0.875rem;
    }

    .badge.corner {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(4px);
        color: #0F172A;
        /* Always dark text for contrast on images */
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
        box-shadow: var(--shadow-sm);
    }

    .badge.corner-right {
        left: auto;
        right: 0.75rem;
    }

    .badge-success {
        background: color-mix(in srgb, var(--secondary), transparent 90%);
        color: var(--secondary);
    }

    .badge-gradient {
        background: var(--gradient-primary);
        color: white;
    }

    /* Navigation */
    .nav-links {
        display: none;
        gap: 2rem;
    }

    .nav-links a {
        font-weight: 500;
        font-size: 0.95rem;
        position: relative;
    }

    .nav-links a:hover {
        color: var(--primary-light);
    }

    /* Mobile Menu */
    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--text-heading);
    }

    @media (min-width: 1024px) {
        .nav-links {
            display: flex;
        }

        .mobile-toggle {
            display: none;
        }
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        padding: 1.25rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        text-align: center;
        animation: slideDown 0.3s ease-out;
    }

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

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

    /* Theme Toggle */
    .theme-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        cursor: pointer;
        padding: 0.25rem;
        border-radius: 50%;
        transition: background 0.2s;
    }

    .theme-toggle:hover {
        background: color-mix(in srgb, var(--text-heading), transparent 90%);
    }

    .icon-sun,
    .icon-moon {
        display: none;
    }

    /* Logic:
       If light theme (default or explicit): show Moon (to switch to dark)
       If dark theme: show Sun (to switch to light)
    */

    /* Default (Light) */
    .icon-moon {
        display: block;
    }

    /* Dark Theme (Media Query or Attribute) */
    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) .icon-moon {
            display: none;
        }

        :root:not([data-theme="light"]) .icon-sun {
            display: block;
        }
    }

    [data-theme="dark"] .icon-moon {
        display: none !important;
    }

    [data-theme="dark"] .icon-sun {
        display: block !important;
    }

    /* Explicit Light Theme Override */
    [data-theme="light"] .icon-moon {
        display: block !important;
    }

    [data-theme="light"] .icon-sun {
        display: none !important;
    }


    .header-actions {
        display: flex;
        gap: 1.25rem;
        align-items: center;
    }

    .header-icon {
        font-size: 1.25rem;
        cursor: pointer;
        color: var(--text-heading);
    }

    .cart-count {
        position: absolute;
        top: -0.5rem;
        right: -0.5rem;
        background: var(--primary-light);
        color: white;
        font-size: 0.7rem;
        width: 1.125rem;
        height: 1.125rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

    /* Hero Section */
    .hero-section {
        padding-top: 8.75rem;
        /* ~140px */
        padding-bottom: 5rem;
        position: relative;
        overflow: hidden;
        background: linear-gradient(90deg, var(--bg-body) 0%, var(--bg-surface) 50%, var(--bg-body) 100%);
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3.75rem;
        align-items: center;
    }

    @media (min-width: 1024px) {
        .hero-grid {
            grid-template-columns: 1.1fr 0.9fr;
        }
    }

    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
        margin-block: 1.25rem;
        background: var(--gradient-dark);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        color: var(--text-muted);
        margin-bottom: 2rem;
        max-width: 60ch;
    }

    /* Code Window */
    .code-window {
        background: #1E293B;
        /* Always dark for code */
        padding: 1.5rem;
        border-radius: var(--radius-lg);
        font-family: 'Courier New', monospace;
        color: #E2E8F0;
        font-size: 0.9rem;
        box-shadow: var(--shadow-soft);
        transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
        transition: transform 0.5s ease;
    }

    .code-window:hover {
        transform: perspective(1000px) rotateY(0) rotateX(0);
    }

    .dot-row {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .dot {
        width: 0.75rem;
        height: 0.75rem;
        border-radius: 50%;
        opacity: 0.8;
    }

    .dot.red {
        background: #EF4444;
    }

    .dot.yellow {
        background: #F59E0B;
    }

    .dot.green {
        background: #10B981;
    }

    .code-line {
        display: block;
        margin-bottom: 0.375rem;
    }

    .cl-1 {
        color: #C084FC;
        margin-left: 1.25rem;
    }

    .cl-2 {
        color: #60A5FA;
        margin-left: 2.5rem;
    }

    .syntax-pink {
        color: #F472B6;
    }

    .syntax-green {
        color: #34D399;
    }

    .syntax-blue {
        color: #60A5FA;
    }

    .syntax-yellow {
        color: #FBBF24;
    }

    .cursor {
        display: inline-block;
        width: 0.5rem;
        height: 1.125rem;
        background: #60A5FA;
        animation: blink 1s infinite;
        vertical-align: middle;
    }

    @keyframes blink {
        50% {
            opacity: 0;
        }
    }

    /* Categories */
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
        gap: 1.25rem;
        margin-top: 2.5rem;
    }

    .category-card {
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 1.5rem 1rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .category-card:hover {
        border-color: var(--primary-light);
        transform: translateY(-3px);
        box-shadow: var(--shadow-sm);
    }

    .cat-icon {
        font-size: 2rem;
    }

    /* Product Cards - CONTAINER QUERY POWERED */
    .products-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 3rem;
        container-type: inline-size;
    }

    .product-card,
    .snippet-card {
        background: var(--bg-surface);
        border-radius: var(--radius-lg);
        padding: 1.5rem;
        border: 1px solid var(--border-color);
        transition: transform 0.3s, box-shadow 0.3s;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .product-card:hover,
    .snippet-card:hover {
        transform: translateY(-0.5rem);
        box-shadow: var(--shadow-soft);
        border-color: color-mix(in srgb, var(--primary-light), transparent 50%);
    }

    .p-image {
        height: 11.25rem;
        /* 180px */
        background: color-mix(in srgb, var(--bg-body), black 5%);
        border-radius: var(--radius-sm);
        margin-bottom: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
        position: relative;
    }

    .p-title {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .p-desc {
        color: var(--text-muted);
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        flex-grow: 1;
    }

    .upsell-box {
        background: color-mix(in srgb, var(--primary-light), transparent 95%);
        border: 1px dashed var(--primary-light);
        border-radius: var(--radius-sm);
        padding: 0.75rem;
        margin-bottom: 1.25rem;
        font-size: 0.9rem;
    }

    .upsell-check {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        cursor: pointer;
    }

    .price-row {
        margin-top: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .price {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--text-heading);
    }

    /* Benefits Grid */
    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
        gap: 2rem;
        margin-top: 3rem;
    }

    .benefit-card {
        padding: 2rem;
        background: var(--bg-surface);
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        text-align: center;
    }

    .benefit-icon {
        font-size: 2.5rem;
        background: color-mix(in srgb, var(--primary-light), transparent 90%);
        width: 3.75rem;
        /* 60px */
        height: 3.75rem;
        line-height: 3.75rem;
        border-radius: 50%;
        margin: 0 auto 1.25rem;
    }

    /* Filters */
    .category-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        margin-block: 2rem;
    }

    .filter-btn {
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        padding: 0.5rem 1.5rem;
        border-radius: var(--radius-full);
        font-size: 0.95rem;
        color: var(--text-main);
        transition: all 0.2s;
    }

    .filter-btn:hover,
    .filter-btn.active {
        background: var(--text-heading);
        color: var(--bg-surface);
        border-color: var(--text-heading);
    }

    /* Glass Panel Features */
    .glass-panel {
        background: white;
        border: 1px solid var(--border-color);
        backdrop-filter: none;
        border-radius: 1.25rem;
        padding: 2.5rem;
        box-shadow: var(--shadow-sm);
    }

    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) .glass-panel {
            background: rgba(30, 41, 59, 0.5);
            border-color: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
        }
    }

    [data-theme="dark"] .glass-panel {
        background: rgba(30, 41, 59, 0.5);
        border-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }



    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
        gap: 2rem;
        margin-top: 3rem;
    }

    /* Premium Services Inner */
    .premium-services-container {
        width: 100%;
        max-width: 70rem;
        margin-inline: auto;
    }

    .service-content h2 {
        font-size: 2rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .service-content p {
        color: var(--text-muted);
        margin-bottom: 2rem;
        max-width: 50ch;
        line-height: 1.6;
    }

    .service-list {
        display: grid;
        gap: 1rem;
    }

    .service-list li {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        font-weight: 500;
        color: var(--text-heading);
    }

    .check-icon {
        color: var(--secondary);
        font-weight: 800;
    }

    /* Service Pricing */
    .service-pricing {
        background: var(--bg-surface);
        padding: 2rem;
        border-radius: var(--radius-lg);
        text-align: center;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
    }

    .price-tag {
        display: flex;
        align-items: baseline;
        justify-content: center;
        color: var(--text-heading);
        margin-bottom: 1.5rem;
    }

    .price-tag .currency {
        font-size: 1.5rem;
        font-weight: 600;
        margin-right: 0.25rem;
    }

    .price-tag .amount {
        font-size: 3.5rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -0.02em;
    }

    .price-tag .unit {
        color: var(--text-muted);
        font-size: 1.125rem;
        margin-left: 0.5rem;
        font-weight: 500;
    }

    .service-note {
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-top: 1rem;
    }


    /* Testimonials / Social Proof */
    .social-proof-section {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }

    .testimonial-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 2.5rem;
    }

    .testimonial-card {
        background: var(--bg-surface);
        padding: 2rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
    }

    .stars {
        color: #F59E0B;
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }

    .quote {
        font-style: italic;
        color: var(--text-muted);
        margin-bottom: 1.5rem;
    }

    .author {
        font-weight: 700;
        color: var(--text-heading);
    }

    .author-role {
        font-size: 0.875rem;
        color: var(--text-muted);
    }

    /* Final CTA */
    .final-cta {
        background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
        color: white;
        text-align: center;
        border-radius: var(--radius-lg);
        margin: 2rem auto;
        padding: 4rem 2rem;
    }

    .btn-white {
        background: white;
        color: var(--primary-dark);
        border: none;
    }

    .btn-white:hover {
        background: #f8fafc;
        transform: translateY(-2px);
    }

    .cta-guarantee {
        font-size: 0.875rem;
        opacity: 0.9;
        margin-top: 1rem;
    }

    /* Trust Section */
    .trust-section {
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-color);
        padding-block: 2rem;
    }

    .trust-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        text-align: center;
    }

    .trust-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.9rem;
        color: var(--text-muted);
        font-weight: 500;
    }

    .trust-icon {
        font-size: 1.25rem;
    }

    /* Premium Request Form */
    #premium-request {
        padding-block: 5rem;
        position: relative;
    }

    .premium-request-container {
        max-width: 600px;
        margin: 0 auto;
        position: relative;
    }

    /* Payment Icons in Footer */
    .footer__payment {
        margin-top: 2rem;
        display: flex;
        justify-content: flex-end;
    }

    .list-payment {
        display: flex;
        gap: 1rem;
        padding: 0;
        margin: 0;
        list-style: none;
        align-items: center;
    }

    .icon--full-color {
        width: 38px;
        height: 24px;
        display: block;
    }

    /* Premium Services */
    .premium-services-section {
        position: relative;
        padding: 5rem 1.5rem;
        overflow: hidden;
    }

    .glass-card {
        background: white;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 2.5rem;
        box-shadow: var(--shadow-lg);
        position: relative;
        z-index: 2;
    }

    /* Layout for premium service card specific */
    .premium-service-card {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    @media (min-width: 768px) {
        .premium-service-card {
            grid-template-columns: 1.5fr 1fr;
            align-items: center;
        }
    }

    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) .glass-card {
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
    }

    [data-theme="dark"] .glass-card {
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }



    .ambient-glow {
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.4;
        z-index: 1;
        pointer-events: none;
    }

    .glow-1 {
        background: #60A5FA;
        top: -50px;
        left: -50px;
    }

    .glow-2 {
        background: #A78BFA;
        bottom: -50px;
        right: -50px;
    }

    /* Footer */
    .site-footer {
        background: var(--bg-surface);
        border-top: 1px solid var(--border-color);
        padding: 5rem 0 2rem;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2.5rem;
    }

    .footer-col h4 {
        font-size: 1.125rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        color: var(--text-heading);
    }

    .footer-col ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-col ul li {
        margin-bottom: 0;
    }

    .footer-col a {
        color: var(--text-muted);
        text-decoration: none;
        transition: color 0.2s, transform 0.2s;
        display: inline-block;
    }

    .footer-col a:hover {
        color: var(--primary-light);
        transform: translateX(4px);
    }

    .footer-text {
        color: var(--text-muted);
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }

    .newsletter-form input {
        width: 100%;
        padding: 1rem 1.25rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        background: var(--bg-body);
        color: var(--text-main);
        transition: all 0.3s ease;
    }

    .newsletter-form input:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        outline: none;
    }

    .newsletter-form button {
        width: 100%;
    }

    .form-header {
        margin-bottom: 2.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .form-header h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .form-header p {
        color: var(--text-muted);
        max-width: 50ch;
    }

    /* Form Elements */
    /* Form Elements */
    .premium-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }

    @media (min-width: 768px) {
        .premium-form {
            grid-template-columns: 1fr 1fr;
        }
    }

    .input-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        position: relative;
    }

    .input-group label {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-heading);
        margin-left: 0.25rem;
    }

    .full-width {
        grid-column: 1 / -1;
    }

    .input-group input,
    .input-group textarea,
    .input-group select {
        width: 100%;
        padding: 0.875rem 1rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        background: var(--bg-surface);
        color: var(--text-main);
        transition: border-color 0.2s, box-shadow 0.2s;
        appearance: none;
        /* Remove default arrow */
    }

    .input-group input:focus,
    .input-group textarea:focus,
    .input-group select:focus {
        border-color: var(--primary-light);
        outline: none;
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-light), transparent 85%);
    }

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

    .select-arrow {
        position: absolute;
        right: 1rem;
        bottom: 1rem;
        pointer-events: none;
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .premium-form button[type="submit"] {
        grid-column: 1 / -1;
        margin-top: 1rem;
        justify-self: center;
        width: 100%;
    }

    @media (min-width: 768px) {
        .premium-form button[type="submit"] {
            width: auto;
            min-width: 250px;
        }
    }
}

/* Standard Form Components */
.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-heading);
    margin-left: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-light), transparent 85%);
}

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

@layer pages {

    /* Catalog & Product Specifics */
    .pt-header {
        padding-top: 8rem;
    }

    .pb-20 {
        padding-bottom: 2rem;
    }

    .pb-60 {
        padding-bottom: 3.75rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        color: var(--text-muted);
        margin-top: 0.5rem;
    }

    .snippet-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .icon-lg {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .demo-link {
        display: block;
        text-align: center;
        color: var(--primary-light);
        font-weight: 500;
        margin: 1rem 0;
        font-size: 0.9rem;
    }

    .upsell-box-card {
        background: color-mix(in srgb, var(--bg-body), transparent 50%);
        border: 1px dashed var(--border-color);
        padding: 0.75rem;
        border-radius: var(--radius-sm);
    }

    .upsell-price-sm {
        font-weight: 700;
        color: var(--primary-light);
        font-size: 0.9rem;
    }

    /* Breadcrumb */
    .breadcrumb {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.9rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* Product Layout */
    .product-grid-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    @media (min-width: 1024px) {
        .product-grid-layout {
            grid-template-columns: 1fr 1fr;
            align-items: start;
        }
    }

    .product-gallery {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .main-image-container {
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        aspect-ratio: 4/3;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .gallery-thumbs {
        display: flex;
        gap: 0.75rem;
    }

    .thumb {
        width: 4rem;
        height: 4rem;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        cursor: pointer;
    }

    .thumb.active {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 2px var(--primary-light);
    }

    .product-info-sticky {
        position: sticky;
        top: 6rem;
    }

    .price-block {
        display: flex;
        align-items: baseline;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .current-price {
        font-size: 2rem;
        font-weight: 800;
        color: var(--text-heading);
    }

    .tax-note {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .btn-demo {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    /* Upsell Highlight */
    .upsell-highlight {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
        border: 1px solid var(--primary-light);
        position: relative;
        overflow: hidden;
        padding: 1.25rem;
    }

    .upsell-highlight .ambient-glow {
        background: var(--primary-light);
        opacity: 0.1;
    }

    /* Purchase Actions */
    .purchase-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .w-full {
        width: 100%;
    }

    .btn-glow {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    }

    .text-center-link {
        text-align: center;
        font-size: 0.85rem;
        color: var(--text-muted);
        text-decoration: underline;
        margin-top: 0.5rem;
        display: block;
    }

    .trust-badges {
        display: flex;
        gap: 2rem;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border-color);
        font-size: 0.9rem;
        color: var(--text-heading);
    }

    /* Description */
    /* SurgeryCode Custom Badges */
    .surgerucode-badge-container {
        position: absolute;
        right: -30px;
        /* Slightly sticking out */
        top: 20px;
        z-index: 10;
        transform: rotate(5deg);
        /* Added a slight tilt for style */
    }

    /* Mobile: don't stick out too much */
    @media (max-width: 768px) {
        .surgerucode-badge-container {
            right: 0;
            top: -20px;
            transform: scale(0.8) rotate(0deg);
        }
    }

    .testimonial:where(.badge-SurgeruCode) {
        background: 0 0 no-repeat;
        /* Removed fixed dimensions to let content dictate size or be handled by parent */
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        /* Align right */
    }

    .badge:where(.badge-SurgeruCode) {
        background: var(--col-neutral-white);
        border: 1px solid;
        border-radius: 10px 5px 5px 10px;
        border-right: 7px solid;
        font-size: 0.75rem;
        font-weight: 500;
        height: 22px;
        line-height: 20px;
        /* adjusted for border */
        margin-bottom: 0.35rem;
        padding: 0 0.5rem 0 0.75rem;
        white-space: nowrap;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
        width: fit-content;
    }

    .badge-ebooks:where(.badge-SurgeruCode) {
        border-color: var(--col-ebook);
    }

    .badge-courses:where(.badge-SurgeruCode) {
        border-color: var(--col-course);
    }

    .badge-videocalls:where(.badge-SurgeruCode) {
        border-color: var(--col-videocall);
    }

    .badge-webinars:where(.badge-SurgeruCode) {
        border-color: var(--col-webinar);
    }

    .badge-masterminds:where(.badge-SurgeruCode) {
        border-color: var(--col-mastermind);
    }

    .badge-digital-products:where(.badge-SurgeruCode) {
        border-color: var(--col-digital-product);
    }

    /* Description */
    .short-desc {
        color: var(--text-muted);
        margin-top: 1.5rem;
        line-height: 1.6;
    }
}

@layer utilities {
    .text-center {
        text-align: center;
    }

    .text-muted {
        color: var(--text-muted);
    }

    .mb-30 {
        margin-bottom: 1.875rem;
    }

    .mb-40 {
        margin-bottom: 2.5rem;
    }

    .relative {
        position: relative;
    }

    .gap-4 {
        gap: 1rem;
    }

    .bg-light {
        background-color: var(--bg-body);
    }

    /* Visibility helpers */
    .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    /* Scroll to Top */
    #scrollToTop {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        width: 3rem;
        height: 3rem;
        background: var(--primary-light);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    #scrollToTop.visible {
        opacity: 1;
        visibility: visible;
    }
}
/* ========================================
   PORTFOLIO-SPECIFIC STYLES
   ======================================== */

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-main);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-light);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary-light);
    border: 3px solid var(--bg-body);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-light);
    font-family: var(--font-display);
}

.timeline-company {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.timeline-position {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.timeline-location {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: color-mix(in srgb, var(--primary-light), transparent 90%);
    color: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s;
}

.skill-tag:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

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

.skill-category {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.skill-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.skill-bar {
    height: 0.5rem;
    background: color-mix(in srgb, var(--border-color), transparent 50%);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: var(--progress, 0%);
    transition: width 1s ease-out;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1.5fr;
    }
}

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

.contact-text {
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-main);
}

.contact-method:hover {
    border-color: var(--primary-light);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

/* Contact Form */
.contact-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-light), transparent 90%);
}

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

.btn-full {
    width: 100%;
}

/* Footer */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 5rem;
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-heart {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-made {
    margin-top: 0.5rem;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-surface);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

.lang-option {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.lang-option.active {
    background: var(--primary-light);
    color: white;
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -2rem;
    }
    
    .profile-image {
        max-width: 100% !important;
    }
}

.h-captcha {
    margin-top: 25px;
}