/* ============================================================
   CreatifedStudio — Base Theme (matches Genesis React template)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --orange: #F26A06;
    --pink: #D10A8A;
    --blue: #2E08CF;
    --grad: linear-gradient(135deg, #F26A06, #D10A8A);
    --bg-black: #050505;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; } /* Lenis handles smooth scroll instead */

/* overflow-x: clip (not hidden) — stops stray horizontal overflow WITHOUT breaking
   position:sticky anywhere on the page. `hidden` establishes a scroll container that
   sticky computes against and breaks it; `clip` does not. */
body {
    margin: 0;
    background: var(--bg-black);
    color: #fff;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    overflow-x: clip;
}

a { color: inherit; }

/* ── Gradient blobs (same 3 blobs as the React template) ── */
.bg-blobs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -20;
    pointer-events: none;
}
.bg-blobs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    width: 520px;
    height: 520px;
    opacity: 0.85;
}
.bg-blobs .blob-1 { top: 320px; left: 40%; transform: translateX(-50%); background: var(--pink); }
.bg-blobs .blob-2 { top: 320px; right: 0; transform: translateX(-50%); background: var(--blue); }
.bg-blobs .blob-3 { top: 0; left: 50%; transform: translateX(-50%); background: var(--orange); }

/* ── Glass card utility (used across the whole site) ── */
.glass {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { transform: translateY(-2px); opacity: 0.92; color: #fff; }
.btn.glass { color: #fff; }
.btn.glass:hover { transform: translateY(-2px); background: rgba(255,255,255,0.09); color: #fff; }

/* ── Section reveal animations (Framer-Motion style, vanilla JS driven) ── */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.34, 1.2, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.2, 0.64, 1);
}
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="down"]  { transform: translateY(-30px); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"]  { transform: scale(0.92); }
[data-reveal].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* ── Ambient mouse-reactive background canvas (Contact / About) ── */
.ambient-bg-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0.85; }

/* Stagger delay helper classes (add data-delay="1".."6") */
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }

/* ── Lightweight hover lift for [data-tilt] cards (pure CSS, no JS = no jank) ── */
[data-tilt] { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease; }
[data-tilt]:hover { transform: translateY(-6px); }
.btn { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, background 0.2s ease; }

/* ── Kinetic scrolling headline band (big outlined marquee text) ── */
.kinetic-band { overflow: hidden; padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.07); }
.kinetic-track { display: flex; width: max-content; gap: 46px; animation: kineticScroll 26s linear infinite; }
.kinetic-band:hover .kinetic-track { animation-play-state: paused; }
.kinetic-track span { font-size: clamp(34px, 7vw, 84px); font-weight: 800; white-space: nowrap; letter-spacing: -1px; -webkit-text-stroke: 1.5px rgba(255,255,255,0.22); color: transparent; display: flex; align-items: center; gap: 46px; }
.kinetic-track span.grad-word { -webkit-text-stroke: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.95; }
.kinetic-track i { font-size: 0.45em; -webkit-text-stroke: 0; color: var(--orange); }
@keyframes kineticScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Stats counter band ── */
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.stat-item { text-align: center; padding: 30px 20px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.stat-item h3 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin: 0 0 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-item span { color: rgba(255,255,255,0.5); font-size: 12.5px; letter-spacing: 0.4px; }

/* ── Utility layout helpers ── */
.container-x { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }

/* ── Navbar ── */
.site-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.site-navbar.scrolled {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.site-navbar .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-navbar .logo-img { height: 42px; width: auto; display: block; }
.site-navbar .logo span { font-weight: 800; font-size: 18px; color: white; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.85); font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: white; }
.nav-menu-btn { display: none; background: none; border: none; color: white; cursor: pointer; }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    font-size: 18px;
    font-weight: 500;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { text-decoration: none; color: white; }
.mobile-menu-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: white; cursor: pointer; }

@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-menu-btn { display: block; }
}

/* ── Pre-Footer Animated Marquee CTA (kiro.dev style) ── */
.pre-footer-cta {
    position: relative;
    margin-top: 120px;
    padding: 100px 24px 0;
    text-align: center;
    overflow: hidden;
}

.pfc-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 300px;
    background: var(--grad);
    filter: blur(120px);
    opacity: 0.25;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    animation: pfcPulse 6s ease-in-out infinite;
}

@keyframes pfcPulse {
    0%, 100% { opacity: 0.18; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 0.32; transform: translate(-50%, -50%) scale(1.15); }
}

.pfc-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }

.pfc-eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 16px;
}

.pfc-heading {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
}

/* Infinite scrolling marquee strip */
.pfc-marquee {
    margin-top: 80px;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    background: rgba(255,255,255,0.02);
}

.pfc-marquee-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    font-size: clamp(28px, 6vw, 56px);
    font-weight: 800;
    color: rgba(255,255,255,0.08);
    -webkit-text-stroke: 1px rgba(255,255,255,0.25);
    animation: pfcMarquee 22s linear infinite;
}

.pfc-marquee-track .pfc-dot {
    color: var(--orange);
    -webkit-text-stroke: 0;
    font-size: 20px;
    margin: 0 8px;
    align-self: center;
}

@keyframes pfcMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 640px) {
    .pre-footer-cta { padding-top: 70px; }
    .pfc-marquee { margin-top: 50px; }
}

/* ── Section heading (reused across Portfolio/Services/Reviews/About) ── */
.section-hero { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-hero .badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(242,106,6,0.1); border: 1px solid rgba(242,106,6,0.25);
    border-radius: 30px; padding: 5px 16px; font-size: 11px; font-weight: 600;
    color: var(--orange); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px;
}
.section-hero h1, .section-hero h2 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; color: white; margin-bottom: 14px; line-height: 1.15; }
.section-hero p { color: rgba(255,255,255,0.45); font-size: 14.5px; line-height: 1.8; }

/* ── Portfolio grid ── */
.portfolio-toolbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 16px; margin-bottom: 34px;
}
.portfolio-count { color: rgba(255,255,255,0.4); font-size: 13px; }
.portfolio-count strong { color: var(--orange); font-size: 18px; }
.search-box { position: relative; max-width: 300px; width: 100%; }
.search-box input {
    width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px; padding: 10px 18px 10px 40px; color: white; font-size: 13px; outline: none;
    box-sizing: border-box; transition: border-color 0.2s;
}
.search-box input:focus { border-color: rgba(242,106,6,0.4); }
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.3); font-size: 13px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.pf-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px;
    overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; text-decoration: none; display: block;
}
.pf-card:hover { transform: translateY(-5px); border-color: rgba(242,106,6,0.3); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.pf-img-wrap { position: relative; width: 100%; height: 200px; overflow: hidden; }
.pf-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.pf-card:hover .pf-img-wrap img { transform: scale(1.06); }
.pf-category {
    position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 4px 12px; font-size: 10.5px;
    font-weight: 600; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.4px;
}
.pf-body { padding: 16px 18px 18px; }
.pf-title { font-size: 15.5px; font-weight: 700; color: white; margin-bottom: 6px; }
.pf-desc { color: rgba(255,255,255,0.45); font-size: 12.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.pf-price { font-size: 13px; font-weight: 700; color: var(--orange); }
.pf-view { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.page-btn {
    display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
    padding: 0 10px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s ease;
}
.page-btn:hover { background: rgba(242,106,6,0.1); color: var(--orange); border-color: rgba(242,106,6,0.3); }
.page-btn.active { background: var(--grad); color: white; border-color: transparent; }

.empty-state { grid-column: 1/-1; text-align: center; padding: 70px 20px; color: rgba(255,255,255,0.25); }
.empty-state i { font-size: 44px; margin-bottom: 16px; display: block; }

/* ── Product Details ── */
.pd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.pd-main-img { width: 100%; height: 460px; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.pd-main-img img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb { width: 66px; height: 66px; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid rgba(255,255,255,0.1); }
.pd-thumb.active { border-color: var(--orange); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-title { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; color: white; margin-bottom: 8px; }
.pd-meta { color: rgba(255,255,255,0.4); font-size: 13px; margin-bottom: 22px; }
.pd-price-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(242,106,6,0.2); border-radius: 16px; padding: 20px 22px; margin-bottom: 24px; }
.pd-price-old { font-size: 16px; color: rgba(255,255,255,0.35); text-decoration: line-through; margin-right: 12px; }
.pd-price-new { font-size: 30px; font-weight: 800; }
.pd-price-note { color: rgba(255,255,255,0.45); font-size: 12.5px; margin-top: 10px; }
.pd-desc { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.85; margin-bottom: 26px; white-space: pre-line; }
.pd-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.review-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 20px; }
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar, .review-avatar-fallback { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.review-avatar-fallback { background: var(--grad); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; }
.review-name { color: white; font-weight: 700; font-size: 13.5px; }
.review-role { color: rgba(255,255,255,0.4); font-size: 11.5px; }
.review-text { color: rgba(255,255,255,0.55); font-size: 13px; line-height: 1.7; }

/* ── Forms (contact + review submission) ── */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; color: rgba(255,255,255,0.55); font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
    padding: 11px 14px; color: white; font-size: 13.5px; outline: none; box-sizing: border-box; font-family: inherit; transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: rgba(242,106,6,0.5); }
.form-submit-btn { background: var(--grad); color: white; font-weight: 700; font-size: 13.5px; padding: 12px 28px; border: none; border-radius: 12px; cursor: pointer; }
.alert-success, .alert-error { padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 18px; }
.alert-success { background: rgba(0,200,120,0.1); border: 1px solid rgba(0,200,120,0.3); color: #3ddc97; }
.alert-error { background: rgba(255,60,60,0.1); border: 1px solid rgba(255,60,60,0.3); color: #ff7a7a; }

@media (max-width: 860px) {
    .pd-grid { grid-template-columns: 1fr; }
    .pd-main-img { height: 340px; }
}

/* ── Nav profile icon (Google Sign-In) ── */
.nav-profile { position: relative; cursor: pointer; }
.nav-profile-pic { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.nav-profile-fallback { background: var(--orange); display: flex; align-items: center; justify-content: center; color: white; font-size: 15px; }
.nav-profile-dropdown {
    position: absolute; top: 46px; right: 0; min-width: 190px;
    background: rgba(15,15,15,0.95); backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 14px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all 0.2s ease; z-index: 100;
}
.nav-profile:hover .nav-profile-dropdown, .nav-profile.open .nav-profile-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-profile-name { color: white; font-size: 13px; font-weight: 700; }
.nav-profile-email { color: rgba(255,255,255,0.4); font-size: 11px; margin-bottom: 10px; word-break: break-all; }
.nav-profile-dropdown a {
    display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7);
    font-size: 12.5px; text-decoration: none; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-profile-dropdown a:hover { color: var(--orange); }
