:root {
    --gold: #D4AF37;
    --gold-light: #FFE88A;
    --gold-dark: #9B750E;
    --hero-background: url("assets/background.png");
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: Inter, Arial, sans-serif;
}

.gold-text {
    background: linear-gradient(135deg, #8A6A12, #FFE88A, #D4AF37, #7A5B0C);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.72) 34%, rgba(0,0,0,0.18) 68%, rgba(0,0,0,0.8) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.15) 55%, #000 100%),
        var(--hero-background);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section > .max-w-7xl {
    position: relative;
    z-index: 1;
}

.hero-section--video {
    background: #000;
}

.hero-section--video::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.72) 34%, rgba(0,0,0,0.18) 68%, rgba(0,0,0,0.8) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.15) 55%, #000 100%);
}

.hero-section--video > .max-w-7xl {
    z-index: 2;
}

.hero-background-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.nav-link {
    letter-spacing: 0.32em;
}

.gold-btn {
    background: linear-gradient(135deg, #B57905, #F6D15B, #A97407);
    color: #000;
}

.outline-btn {
    border: 1px solid rgba(212,175,55,0.75);
    color: #F6D15B;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: color 0.35s ease, border-color 0.35s ease;
}

/* gradient layer */
.outline-btn::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        #B57905,
        #F6D15B,
        #A97407
    );

    opacity: 0;
    transition: opacity 0.45s ease;

    z-index: -1;
}

/* hover effect */
.outline-btn:hover {
    color: #000;
    border-color: transparent;
}

.outline-btn:hover::before {
    opacity: 1;
}

.feature-box {
    border-left: 1px solid rgba(212,175,55,0.45);
}

.feature-box:first-child {
    border-left: none;
}

.logo-hero {
    filter: drop-shadow(0 22px 35px rgba(0,0,0,0.85));
}

.gradient-card {
    background: linear-gradient(to bottom right, #18181b, #000000, #09090b);
    border: 1px solid rgba(180, 83, 9, 0.30);
}

.gradient-card-gold {
    background: linear-gradient(to bottom right, #000000, rgba(113, 63, 18, 0.20), #09090b);
    border: 1px solid rgba(180, 83, 9, 0.30);
}

.lucide-icon {
    color: #B57905;
    stroke-width: 1.8;
}

.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.portfolio-modal.active {
    display: flex;
}

.portfolio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(8px);
}

.portfolio-modal-content {
    position: relative;
    width: min(100%, 1000px);
    background: linear-gradient(to bottom right, #18181b, #000, #09090b);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100dvh - 4rem);
    overscroll-behavior: contain;
    box-shadow: 0 30px 100px rgba(0,0,0,0.8);
}

.portfolio-modal-image {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
}

.portfolio-modal-info {
    padding: 2rem;
}

#portfolioModalDescription {
    white-space: pre-line;
    line-height: 1.75;
}

.portfolio-modal-arrow {
    position: absolute;
    top: 42%;
    z-index: 3;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: linear-gradient(
        135deg,
        #B57905,
        #F6D15B,
        #A97407
    );

    color: #000;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-modal-arrow:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 30px rgba(212,175,55,0.4);
}

.portfolio-modal-arrow svg {
    width: 28px;
    height: 28px;
}

.portfolio-modal-arrow.left {
    left: 1rem;
}

.portfolio-modal-arrow.right {
    right: 1rem;
}

@media (max-width: 768px) {
    .portfolio-modal {
        padding: 0.75rem;
        align-items: flex-start;
    }

    .portfolio-modal-content {
        margin-top: 0.5rem;
        max-height: calc(100dvh - 1.5rem);
        border-radius: 1rem;
    }

    .portfolio-modal-image {
        height: 260px;
    }

    .portfolio-modal-arrow {
        top: 125px;
        width: 44px;
        height: 44px;
    }

    .portfolio-modal-info {
        padding: 1.25rem;
    }

    #portfolioModalClose {
        position: sticky;
        top: 0.75rem;
        float: right;
        margin: 0.75rem 0.75rem -3.5rem 0;
    }
}

.testimonial-marquee {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    padding-top: 16px;
    padding-bottom: 16px;
}

.testimonial-marquee::before,
.testimonial-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 160px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonial-marquee::before {
    left: 0;
    background: linear-gradient(to right,#000,transparent);
}

.testimonial-marquee::after {
    right: 0;
    background: linear-gradient(to left,#000,transparent);
}

.testimonial-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: testimonialScroll 55s linear infinite;
}

#portfolio .portfolio-static {
    padding-inline: 1.5rem;
}

#portfolio .portfolio-static::before,
#portfolio .portfolio-static::after {
    display: none;
}

#portfolio .portfolio-static .testimonial-track {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    justify-content: center;
    flex-wrap: wrap;
    animation: none;
}

@media (max-width: 768px) {
    #portfolio .portfolio-static {
        overflow-x: auto;
        overflow-y: visible;
        padding-inline: 1.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
        scroll-snap-type: x proximity;
    }

    #portfolio .portfolio-static::-webkit-scrollbar {
        display: none;
    }

    #portfolio .portfolio-static .testimonial-track {
        width: max-content;
        max-width: none;
        margin-inline: 0;
        justify-content: flex-start;
        flex-wrap: nowrap;
        touch-action: pan-x;
    }

    #portfolio .portfolio-static .testimonial-card-scroll {
        width: min(360px, calc(100vw - 3rem));
        scroll-snap-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-background-video {
        display: none;
    }

    .hero-section--video {
        background:
            linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.72) 34%, rgba(0,0,0,0.18) 68%, rgba(0,0,0,0.8) 100%),
            linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.15) 55%, #000 100%),
            var(--hero-fallback-background);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-section--video::before {
        display: none;
    }
}

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

.testimonial-card-scroll {
    width: 360px;
    min-height: 260px;
    flex: 0 0 auto;
    border-radius: 1.5rem;
    padding: 2rem;
}

.testimonial-hover {
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.testimonial-hover:hover {
    transform: translateY(-10px);
    border-color: rgba(250, 204, 21, 0.7);

    box-shadow:
        0 18px 40px rgba(0,0,0,0.45),
        0 0 18px rgba(212,175,55,0.08);
}

@keyframes testimonialScroll {

from {
transform: translateX(0);
}

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

}

.portfolio-modal-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    z-index: 1;
}

.portfolio-modal-image-fade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 700ms ease-in-out;
    z-index: 1;
}

.portfolio-modal-image-fade.active {
    opacity: 1;
}

#portfolioModalClose,
#portfolioPrev,
#portfolioNext,
.portfolio-modal-info {
    z-index: 20 !important;
}

.tintwiz-frame-wrap {
    overflow: hidden;
}

.tintwiz-iframe {
    width: calc(102% - 1rem);
    transform: scale(0.98);
    transform-origin: top left;
}

.btn-text,
.btn-copied {
    transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
    .mobile-swipe-marquee.mobile-swipe-enabled {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
        scroll-behavior: smooth;
    }

    .mobile-swipe-marquee.mobile-swipe-enabled::-webkit-scrollbar {
        display: none;
    }

    .mobile-swipe-marquee.mobile-swipe-enabled .mobile-swipe-track {
        animation: none !important;
        transform: none !important;
    }

    .mobile-swipe-marquee.mobile-swipe-dragging {
        scroll-behavior: auto;
        cursor: grabbing;
    }
}

@media (max-width: 768px) {
    .mobile-swipe-track {
        touch-action: pan-y;
        will-change: transform;
    }
}

/* Portfolio/Testimonial marquee edge fade */
#portfolio .testimonial-marquee::before {
    background: linear-gradient(to right, #09090b, transparent);
}

#portfolio .testimonial-marquee::after {
    background: linear-gradient(to left, #09090b, transparent);
}

#testimonials .testimonial-marquee::before {
    background: linear-gradient(to right, #000, transparent);
}

#testimonials .testimonial-marquee::after {
    background: linear-gradient(to left, #000, transparent);
}

/* Remove side fading on mobile */
@media (max-width: 768px) {
    .testimonial-marquee::before,
    .testimonial-marquee::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-size: 165% auto;
        background-position: center top;
    }
}
/* Desktop navigation fit fix */
.desktop-nav-link {
    letter-spacing: 0.16em;
}

@media (min-width: 1536px) {
    .desktop-nav-link {
        letter-spacing: 0.22em;
    }
}
