:root {
    --bg-color: #f8f9fa;
    /* Light background */
    --surface-color: #ffffff;
    --surface-hover: #f1f3f5;
    --primary-color: #D4AF37;
    /* Metallic Gold conserved */
    --primary-light: #F9E29C;
    --primary-dark: #b89325;

    --text-main: #1a1a1a;
    /* Dark text */
    --text-muted: #555555;
    --text-inverted: #ffffff;
    /* For buttons or dark sections */

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    /* Less transp, more solidity */
    --glass-border: rgba(0, 0, 0, 0.05);
    /* Light border */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --glow-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000;
    /* Black text for high contrast on gold */
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 14px 28px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.05);
}

.btn-outline {
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 6px;
    display: block;
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
}

.btn-outline:hover {
    background: var(--surface-hover);
    border-color: var(--text-main);
}

/* --- Header & Nav --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    /* Light blur */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.dot {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    color: var(--text-main);
    opacity: 0.8;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 20px !important;
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
    border-radius: 4px;
    /* Slight radius */
    opacity: 1 !important;
}

.btn-nav:hover {
    background: var(--primary-color);
    color: #fff !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    transition: 0.4s ease-in-out;
}

.mobile-menu.active {
    right: 0;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    /* Slightly shorter to show fold */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 80px;
    background: #ffffff;
    /* Dot Pattern Background */
    background-image: radial-gradient(#d4af37 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Removed blurry glows, using clean pattern instead */
.hero-bg-elements {
    display: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
    color: var(--text-main);
    max-width: 1000px;
    /* Limit width to prevent awkward breaks */
    margin-left: auto;
    margin-right: auto;
}

.highlight-text {
    color: var(--primary-color);
    font-style: italic;
    background: -webkit-linear-gradient(45deg, var(--primary-color), #b89325);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.typing-effect::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--primary-color);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-footer {
    position: relative;
    margin-top: 60px;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
    position: relative;
    /* No border lines, use spacing/bg diffs */
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.text-gradient {
    color: var(--primary-color);
    /* Simplified for light theme */
}

/* --- Benefits --- */
.benefits {
    background: #f4f4f4;
    /* Stronger contrast gray */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force single line on desktop */
    gap: 30px;
}

.benefit-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.3);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: rgba(212, 175, 55, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Modern circular icons */
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Portfolio --- */
/* --- Portfolio Auto-Scroll System --- */
/* Wrapper to mask overflow */
.portfolio {
    overflow: hidden;
    /* Vital to prevent page horizontal scroll */
}

.portfolio .container {
    max-width: 100%;
    /* Use full width for the slider track */
    padding: 0;
    /* overflow: hidden; Removed to prevent clipping buttons */
}

.portfolio-grid {
    display: flex !important;
    /* Force flex row */
    flex-wrap: nowrap !important;
    gap: 30px;
    width: max-content;
    /* Allow track to expand naturally */
    animation: autoScroll 40s linear infinite;
    /* Slower, smooth scroll */
    padding: 40px 20px;
    /* Space for shadows */
}

.portfolio-grid:hover {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% {
        transform: translateX(20px);
    }

    100% {
        transform: translateX(-1000px);
    }

    /* Approximate scroll distance */
}

.portfolio-item {
    min-width: 450px;
    /* Desktop width */
    flex: 0 0 450px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    background: #fff;
}

.portfolio-img-wrapper {
    height: 350px;
    /* Taller */
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    /* Light overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.overlay span {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: transform 0.4s;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.portfolio-item:hover .overlay span {
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.center-btn {
    text-align: center;
    margin-top: 100px;
    /* Drastically increased to prevent overlap */
    position: relative;
    z-index: 20;
    /* Ensure button is above everything */
    clear: both;
}

/* --- Process (ex-Pricing) --- */
.pricing {
    background: #f4f4f4;
    /* Gray background for Process section */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    /* All cards same height */
    margin-top: 50px;
    margin-bottom: 80px;
    /* Enforce large gap after table */
}

.pricing-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 50px 30px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    align-items: center;
}

.pricing-card.popular {
    transform: translateY(-15px);
    /* Lift visually without affecting flow below as much */
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 10;
    background: #fff;
    /* Removed negative margins that caused overlap */
}

.icon-box i {
    /* Adjust logic inside card */
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

/* --- Social Proof --- */
.social-proof {
    background: #fafafa;
    padding: 100px 0;
}

.small-title {
    font-size: 2rem;
    margin-bottom: 60px;
    color: var(--text-muted);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.proof-item {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.proof-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.proof-item i {
    font-size: 2rem;
    color: var(--primary-color);
    /* Gold quotes */
    margin-bottom: 25px;
    opacity: 0.5;
}

.proof-item p {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.author-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    color: var(--text-main);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.author-role {
    display: block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Final CTA --- */
.final-cta {
    position: relative;
    text-align: center;
    /* Dark overlay + Image for readability */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../assets/images/bg-cta.png') no-repeat center center;
    background-size: cover;
    /* Space theme background */
    padding: 120px 0;
    color: #fff;
    overflow: hidden;
}

.cta-bg-glow {
    display: none;
    /* Removed in favor of image */
}

.final-cta .container {
    position: relative;
    z-index: 2;
}

.final-cta .section-title,
.final-cta .cta-title {
    color: #fff;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 40px;
    line-height: 1.2;
}

.final-cta .cta-note {
    color: rgba(255, 255, 255, 0.6);
}

/* --- Real Fire Text Effect (CSS) --- */
#fire-text {
    color: #fff;
    font-size: 1.3rem;
    /* Larger for readability */
    font-weight: 800;
    -webkit-text-stroke: 1px black;
    /* thinner stroke */
    text-stroke: 1px black;
    paint-order: stroke fill;
    position: relative;
    z-index: 3;
    /* Ensure it's on top */
    text-shadow:
        0 0 2px #fff,
        0 -2px 2px #ff3,
        1px -4px 3px #fd3,
        -1px -6px 5px #f80,
        1px -10px 8px #f20;
    /* Tighter shadows for cleaner look */
    animation: fire-flicker 1s ease-in-out infinite alternate;
}

footer {
    padding: 50px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.socials a {
    color: var(--text-main);
    font-size: 1.4rem;
    margin: 0 10px;
}

.socials a:hover {
    color: var(--primary-color);
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .pricing-table {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 50px auto 40px;
        /* Adjusted margins */
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 on tablets */
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    /* Force spacing on mobile for the button */
    .center-btn {
        margin-top: 60px !important;
        display: block;
        clear: both;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
        /* No longer fixed */
        display: block;
        /* Stack content */
        text-align: center;
        padding: 20px;
        background: #fff;
        /* Solid bg */
    }

    .nav-links,
    .hamburger {
        display: none !important;
        /* Hide menu entirely on mobile */
    }

    .logo {
        font-size: 1.5rem;
        /* Slightly reduced to ensure fit */
        display: block;
        margin: 0 auto;
        white-space: nowrap;
        /* Forces single line */
        width: fit-content;
    }

    /* Start hero content immediately after */
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 40px;
        /* Reduced since nav isn't fixed */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-footer {
        position: relative;
        /* Changing from absolute to relative on mobile */
        bottom: auto;
        margin-top: 40px;
        width: 100%;
    }

    /* Portfolio Mobile Slider */
    .portfolio-grid {
        /* Inherit animation from desktop but adjust sizing */
        padding-bottom: 20px;
    }

    .portfolio-grid::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar as it is auto-animating */
    }

    .portfolio-item {
        min-width: 300px;
        /* Smaller cards for mobile */
        flex: 0 0 300px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        scroll-snap-align: none;
        /* Disable snap for continuous flow */
    }

    /* Swipe Indicator HIDDEN on mobile now since it auto-scrolls */
    .swipe-indicator {
        display: none;
    }

    /* Fixed Final CTA for Mobile */
    .cta-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 30px;
    }

    .final-cta {
        padding: 60px 0 100px 0;
        /* More bottom padding for fire text */
        position: relative;
    }

    #fire-text {
        font-size: 1.1rem;
        bottom: 20px;
        width: 90%;
        /* Prevent edge touching */
    }

    .btn-large {
        width: 100%;
        padding: 16px 15px;
        font-size: 0.9rem;
        white-space: normal;
        /* Allow text to wrap naturally */
        display: flex;
        /* Use flex to align icon and text */
        align-items: center;
        justify-content: center;
        gap: 10px;
        line-height: 1.4;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

/* Hide swipe indicator on desktop */
.swipe-indicator {
    display: none;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.5;
    }
}

/* --- Bottom CTA Note --- */
#fire-text {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    /* Clean dark shadow */
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 3;
}