/* ============================================================
   TAG Web Design — Premium Tech Design System
   ============================================================ */

/* ========================= */
/* Design Tokens             */
/* ========================= */
:root {
    --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

    --color-bg:               #131313;
    --color-surface:          #1c1b1b;
    --color-surface-high:     #2a2a2a;
    --color-surface-highest:  #353534;
    --color-primary:          #007AFF;
    --color-primary-dim:      #adc6ff;
    --color-gold:             #fabd00;
    --color-text:             #e5e2e1;
    --color-text-muted:       #94A3B8;
    --color-border:           rgba(255, 255, 255, 0.08);
    --color-border-strong:    rgba(255, 255, 255, 0.15);

    --glass-bg:     rgba(19, 19, 19, 0.80);
    --glass-blur:   blur(12px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);

    --section-gap: 120px;
    --radius-sm:   0.25rem;
    --radius:      0.5rem;
    --radius-md:   0.75rem;
    --radius-lg:   1rem;
    --radius-xl:   1.5rem;
}

/* ========================= */
/* Base                      */
/* ========================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-text);
    line-height: 1.2;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem);     font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem,  3.5vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem,  2vw,   1.5rem); font-weight: 600; letter-spacing: -0.01em; }
h4, h5 { font-weight: 600; }

p { color: var(--color-text-muted); line-height: 1.7; }
a { color: var(--color-primary-dim); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary); }

/* Force dark surfaces on Bootstrap utility classes */
.bg-light, .bg-white { background-color: var(--color-surface) !important; }
.text-dark     { color: var(--color-text) !important; }
.text-muted    { color: var(--color-text-muted) !important; }
.text-secondary { color: var(--color-text-muted) !important; }
.text-warning  { color: var(--color-gold) !important; }

section { padding: var(--section-gap) 0; margin-bottom: 0; }
.container { max-width: 1280px; }

/* ========================= */
/* Typography helpers        */
/* ========================= */
.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.75rem;
}

.section-title { color: var(--color-text); }

/* ========================= */
/* Preloader                 */
/* ========================= */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide-preloader { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-text { display: flex; gap: 2px; }

.preloader-text .letter {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    opacity: 0;
    animation: letterPop 0.08s ease forwards;
}

.preloader-text .letter:nth-child(1)  { animation-delay: 0.05s; }
.preloader-text .letter:nth-child(2)  { animation-delay: 0.10s; }
.preloader-text .letter:nth-child(3)  { animation-delay: 0.15s; }
.preloader-text .letter:nth-child(4)  { animation-delay: 0.20s; }
.preloader-text .letter:nth-child(5)  { animation-delay: 0.25s; }
.preloader-text .letter:nth-child(6)  { animation-delay: 0.30s; }
.preloader-text .letter:nth-child(7)  { animation-delay: 0.35s; }
.preloader-text .letter:nth-child(8)  { animation-delay: 0.40s; }
.preloader-text .letter:nth-child(9)  { animation-delay: 0.45s; }
.preloader-text .letter:nth-child(10) { animation-delay: 0.50s; }
.preloader-text .letter:nth-child(11) { animation-delay: 0.55s; }
.preloader-text .letter:nth-child(12) { animation-delay: 0.60s; }
.preloader-text .letter:nth-child(13) { animation-delay: 0.65s; }
.preloader-text .letter:nth-child(14) { animation-delay: 0.70s; }

@keyframes letterPop {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================= */
/* Navbar                    */
/* ========================= */
.navbar {
    background: rgba(13, 13, 13, 0.82) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.97) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.navbar-brand img { height: 46px; width: auto; max-width: 150px; }

.navbar .nav-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(229, 226, 225, 0.70) !important;
    padding: 7px 13px !important;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}

/* Hide icons in nav for clean look */
.navbar .nav-link i { display: none; }

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06);
}

/* CTA button */
.navbar .btn.btn-primary {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    transition: box-shadow 0.25s, transform 0.2s, background 0.2s !important;
}

.navbar .btn.btn-primary:hover {
    background: #0569d6 !important;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.45) !important;
    transform: translateY(-1px);
}

/* Toggler */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding: 6px 10px !important;
    border-radius: var(--radius) !important;
}

.nav-icon-bars,
.nav-icon-times { color: rgba(255, 255, 255, 0.85) !important; font-size: 18px; }

/* Mobile drawer */
@media (max-width: 991.98px) {
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        background: rgba(14, 14, 14, 0.98) !important;
        border-top: 1px solid var(--color-border) !important;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5) !important;
        padding: 8px 0 18px !important;
        margin-top: 8px !important;
    }
    #navbarNav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        margin: 0 8px !important;
    }
    #navbarNav .nav-item:last-child { border-bottom: none !important; margin-top: 12px !important; }
    #navbarNav .nav-link {
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 0.95rem;
        padding: 12px 14px !important;
    }
    #navbarNav .nav-link:hover,
    #navbarNav .nav-link.active {
        color: var(--color-primary-dim) !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }
    #navbarNav .nav-item.ms-lg-3 .btn {
        width: 100%;
        padding: 13px 16px !important;
        border-radius: var(--radius-lg) !important;
        font-size: 0.95rem;
        font-weight: 600;
    }
}

/* ========================= */
/* Buttons                   */
/* ========================= */
.btn-primary {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius) !important;
    padding: 10px 22px !important;
    transition: box-shadow 0.25s, transform 0.2s, background 0.2s !important;
}

.btn-primary:hover {
    background: #0569d6 !important;
    border-color: #0569d6 !important;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.35) !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    background: transparent !important;
    font-weight: 500;
    border-radius: var(--radius) !important;
    transition: all 0.2s !important;
}

.btn-outline-primary:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3) !important;
}

/* ========================= */
/* Cards (glass)             */
/* ========================= */
.card {
    background: var(--color-surface) !important;
    border: var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--color-text) !important;
}

.card-body   { color: var(--color-text); }
.card-title  { font-family: var(--font-display); color: var(--color-text) !important; }
.card-text   { color: var(--color-text-muted); }

/* ========================= */
/* Hero                      */
/* ========================= */
.hero-section { padding-bottom: 0; }

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.0;
    color: #fff;
    margin: 20px 0 28px;
}

.typed-highlight { color: var(--color-primary); }

.hero-sub {
    font-size: 1.1rem;
    color: rgba(229, 226, 225, 0.70);
    max-width: 560px;
    line-height: 1.65;
    margin-bottom: 36px;
}

.hero-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    color: rgba(229, 226, 225, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    text-decoration: none;
}

.hero-ghost-btn:hover {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* ========================= */
/* Clients                   */
/* ========================= */
.clients-section {
    background: var(--color-surface) !important;
    border-bottom: 1px solid var(--color-border);
}

.clients-logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px 48px;
}

/* ========================= */
/* Clients Marquee           */
/* ========================= */

.clients-marquee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: border-color 0.25s, background 0.25s;
    width: 110px;
}

.clients-marquee-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}

.clients-marquee-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.10);
    flex-shrink: 0;
    background: var(--color-bg);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.clients-marquee-item:hover .clients-marquee-avatar {
    border-color: rgba(0, 122, 255, 0.45);
    box-shadow: 0 0 16px rgba(0, 122, 255, 0.20);
}

.clients-marquee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.clients-marquee-item:hover .clients-marquee-avatar img {
    transform: scale(1.08);
}

.clients-marquee-name {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.3;
    transition: color 0.2s;
    white-space: normal;
    word-break: break-word;
    max-width: 90px;
}

.clients-marquee-item:hover .clients-marquee-name {
    color: var(--color-text);
}

/* ── Clients strip ── */
.clients-track {
    overflow: hidden;
    width: 100%;
}
.clients-belt {
    display: flex;
    align-items: center;
    width: max-content;
    animation: clients-scroll 25s linear infinite;
}
.clients-track:hover .clients-belt {
    animation-play-state: paused;
}
@keyframes clients-scroll {
    to { transform: translateX(var(--scroll-end, -50%)); }
}

/* Desktop: static centred row, no scroll needed */
@media (min-width: 992px) {
    .clients-track { overflow: visible; }
    .clients-belt {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        animation: none;
        gap: 8px;
    }
}

/* ========================= */
/* About                     */
/* ========================= */
.about-section {
    padding: var(--section-gap) 0;
    background: var(--color-bg) !important;
}

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: var(--glass-border);
    box-shadow: 0 0 48px rgba(0, 122, 255, 0.10);
}

.about-img-wrapper .main-img {
    width: 100%;
    display: block;
    border-radius: var(--radius-xl);
    filter: brightness(0.85) saturate(0.8);
}

/* Dark gradient overlay to blend the warm photo with the dark theme */
.about-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(19, 19, 19, 0.30) 0%,
        rgba(0, 122, 255, 0.06) 50%,
        rgba(19, 19, 19, 0.55) 100%
    );
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.about-lead { font-size: 1rem; color: var(--color-text-muted); line-height: 1.75; margin-bottom: 28px; }

.stats-container {
    display: flex;
    gap: 20px;
    margin: 32px 0;
}

.stat-box {
    background: var(--color-surface);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.stat-box:hover {
    border-color: rgba(0, 122, 255, 0.35);
    box-shadow: 0 0 24px rgba(0, 122, 255, 0.10);
}

.stat-box img { width: 44px; height: 44px; object-fit: contain; opacity: 0.75; }

.stat-box h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.stat-box p { margin: 0; font-size: 0.82rem; color: var(--color-text-muted); }

/* ========================= */
/* Services                  */
/* ========================= */
.services.section { background: var(--color-bg); }

.service-item {
    background: var(--color-surface);
    border: var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 122, 255, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.service-item--cta {
    background: rgba(0, 122, 255, 0.06) !important;
    border-color: rgba(0, 122, 255, 0.20) !important;
}

.service-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 122, 255, 0.12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i { color: var(--color-primary); font-size: 1.1rem; }

.service-item h3 { color: var(--color-text); font-size: 1.05rem; margin-bottom: 8px; }
.service-item > p { color: var(--color-text-muted); font-size: 0.88rem; margin-bottom: 16px; }

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    padding: 5px 0;
    border-top: 1px solid var(--color-border);
}

.service-features li i {
    color: var(--color-primary);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ========================= */
/* Work Process              */
/* ========================= */
.work-process.section { background: var(--color-surface); }

.process-card {
    background: var(--color-bg) !important;
    border: var(--glass-border) !important;
    border-radius: var(--radius-xl) !important;
    padding: 32px 24px !important;
    transition: transform 0.25s, box-shadow 0.25s !important;
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35) !important;
}

.process-icon i { color: var(--color-primary) !important; }

.process-number {
    display: block;
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary) !important;
}

.process-card h3 { color: var(--color-text); font-size: 1.05rem; }
.process-card p  { color: var(--color-text-muted); font-size: 0.88rem; }
.hover-overlay   { display: none; }

/* ========================= */
/* Marquee                   */
/* ========================= */
.marquee-section {
    background: var(--color-bg);
    padding: 36px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    animation: marquee 22s linear infinite;
    white-space: nowrap;
}

.marquee-content .text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text-muted);
}

.marquee-content .star { color: var(--color-gold); font-size: 0.9rem; }

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

/* ========================= */
/* Projects Grid             */
/* ========================= */
.projects-section { background: var(--color-surface); padding: var(--section-gap) 0; }

.view-all-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary-dim);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    white-space: nowrap;
}

.view-all-link:hover { color: var(--color-primary); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* First card spans 2 columns */
.project-card--featured { grid-column: span 2; }

.project-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-bg);
    border: var(--glass-border);
    transition: transform 0.25s, box-shadow 0.25s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.project-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.project-card-img {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.project-card--featured .project-card-img { aspect-ratio: 16/8; }

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    filter: brightness(0.90);
}

.project-card:hover .project-card-img img {
    transform: scale(1.04);
    filter: brightness(1);
}

.project-card-meta {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tag {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 8px;
    display: block;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    flex: 1;
}

.project-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary-dim);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.project-card:hover .project-link { color: var(--color-primary); }

/* Projects track — mobile scroll, desktop grid */
/* Projects track — continuous carousel on all screen sizes */
.projects-track { overflow: hidden; }
.projects-belt {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: max-content;
    animation: projects-scroll 45s linear infinite;
}
.projects-belt .project-card {
    width: 300px;
    flex-shrink: 0;
}
.projects-belt .project-card--featured {
    width: 380px;
}
.projects-track:hover .projects-belt { animation-play-state: paused; }
@keyframes projects-scroll {
    to { transform: translateX(var(--projects-end, -50%)); }
}

@media (min-width: 992px) {
    .projects-belt .project-card { width: 380px; }
    .projects-belt .project-card--featured { width: 480px; }
}

/* ========================= */
/* Team                      */
/* ========================= */
.team-section { background: var(--color-bg); padding: var(--section-gap) 0; }

.team-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-img-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1/1;
    border: var(--glass-border);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    filter: brightness(0.92) saturate(0.9);
    transition: filter 0.3s;
}

.team-card:hover .team-img { filter: brightness(1) saturate(1); }

.team-info h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: 10px;
}

.team-bio {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========================= */
/* Testimonials              */
/* ========================= */
.testimonials-section { background: var(--color-surface); padding: var(--section-gap) 0; }

.testimonial-card {
    background: var(--color-bg);
    border: var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-xl);
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.40);
}

.testimonial-stars {
    color: var(--color-gold);
    font-size: 0.85rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}

.testimonial-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.testimonial-date {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Reviews track — continuous carousel on all screen sizes */
.reviews-track { overflow: hidden; }
.reviews-belt {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: max-content;
    animation: reviews-scroll 45s linear infinite;
}
.reviews-belt .testimonial-card {
    width: 300px;
    flex-shrink: 0;
}
.reviews-track:hover .reviews-belt { animation-play-state: paused; }
@keyframes reviews-scroll {
    to { transform: translateX(var(--reviews-end, -50%)); }
}

@media (min-width: 992px) {
    .reviews-belt .testimonial-card { width: 380px; }
}

/* ========================= */
/* CTA Section               */
/* ========================= */
.cta-section { background: var(--color-bg); padding: var(--section-gap) 0; }

.cta-card {
    background: var(--color-surface);
    border: var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
}

.cta-headline {
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin: 12px 0 16px;
}

.cta-sub {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 480px;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .cta-card { padding: 36px 24px; }
}

/* ========================= */
/* Forms                     */
/* ========================= */
.form-control,
.form-select {
    background: var(--color-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--color-text) !important;
    border-radius: var(--radius) !important;
    padding: 10px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control::placeholder { color: rgba(229, 226, 225, 0.30) !important; }

.form-control:focus,
.form-select:focus {
    background: var(--color-surface) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15) !important;
    color: var(--color-text) !important;
    outline: none;
}

.form-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

/* ========================= */
/* OWL Carousel              */
/* ========================= */
.owl-theme .owl-nav [class*='owl-'] {
    background: var(--color-surface) !important;
    border: var(--glass-border) !important;
    color: var(--color-text) !important;
    border-radius: var(--radius) !important;
    transition: background 0.2s, border-color 0.2s;
}

.owl-theme .owl-nav [class*='owl-']:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.owl-theme .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.18) !important;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--color-primary) !important;
}

/* ========================= */
/* Footer                    */
/* ========================= */
.footer-section {
    background: #0b0b0b;
    border-top: 1px solid var(--color-border);
    color: rgba(255, 255, 255, 0.65);
    padding: 60px 0 40px;
    font-size: 14px;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.widget-header {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.footer-form input {
    background: var(--color-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: var(--color-text) !important;
    border-radius: 999px !important;
    padding: 10px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.footer-form input::placeholder { color: rgba(229, 226, 225, 0.30) !important; }

.footer-form input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.15) !important;
    outline: none;
}

.footer-form .submit {
    background: var(--color-primary) !important;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 999px !important;
    padding: 10px 22px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.footer-form .submit:hover {
    box-shadow: 0 4px 18px rgba(0, 122, 255, 0.40);
    transform: translateY(-1px);
}

.footer-link,
.footer-section .copyright-area a {
    color: #6faeff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover,
.footer-section .copyright-area a:hover {
    color: var(--color-primary-dim);
    text-decoration: underline;
}

.footer-section nav[aria-label="Web design locations"] a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s;
}

.footer-section nav[aria-label="Web design locations"] a:hover {
    color: var(--color-primary-dim);
}

.footer-section .copyright-area {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 22px;
    margin-top: 35px;
    text-align: center;
}

.footer-section .copyright-area p:first-child {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 6px;
}

.footer-section .copyright-area p.small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 6px;
}

.footer-section .copyright-area .mt-2 a { font-size: 13px; opacity: 0.80; }

/* ========================= */
/* Social Links              */
/* ========================= */
.social-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    color: #fff;
}

.social-link.facebook  { background: #1877f2; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.whatsapp  { background: #25d366; }

/* ========================= */
/* Modals                    */
/* ========================= */
.modal-content {
    background: var(--color-surface) !important;
    border: var(--glass-border) !important;
    border-radius: var(--radius-xl) !important;
    color: var(--color-text) !important;
}

.modal-header { border-bottom: 1px solid var(--color-border) !important; }
.modal-header .modal-title { color: var(--color-text) !important; }
.modal-body p { color: var(--color-text-muted) !important; }
.modal-body .fw-bold { color: var(--color-text) !important; }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%) !important; }

/* ========================= */
/* Back to Top               */
/* ========================= */
button.back-to-top-btn {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    right: auto !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 17px !important;
    z-index: 2147483647 !important;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.35) !important;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.25s ease !important;
}

button.back-to-top-btn.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
}

button.back-to-top-btn:hover {
    background: #0569d6 !important;
    transform: scale(1.1) translateY(-2px) !important;
    box-shadow: 0 6px 28px rgba(0, 122, 255, 0.50) !important;
}

@media (max-width: 576px) {
    button.back-to-top-btn { bottom: 20px !important; left: 16px !important; }
}

/* ========================= */
/* WhatsApp Float            */
/* ========================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    z-index: 2147483646;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.40);
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.60);
    color: #fff;
}

@media (max-width: 576px) {
    .whatsapp-float { bottom: 20px; right: 16px; width: 50px; height: 50px; font-size: 24px; }
}

/* ========================= */
/* Accessibility             */
/* ========================= */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background: var(--color-bg);
    color: white;
    text-decoration: none;
}

.skip-to-main:focus { left: 50%; transform: translateX(-50%); top: 10px; }

a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================= */
/* Newsletter Toast          */
/* ========================= */
.newsletter-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-surface);
    border: var(--glass-border);
    border-left: 3px solid #22c55e;
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    animation: slideIn 0.4s ease-out;
    min-width: 300px;
    max-width: 400px;
}

.toast-content {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--color-text);
}

.toast-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover { color: var(--color-text); }

@keyframes slideIn {
    from { transform: translateX(420px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(420px); opacity: 0; }
}

.toast-hiding { animation: slideOut 0.4s ease-in forwards; }

@media (max-width: 768px) {
    .newsletter-toast { top: 10px; right: 10px; left: 10px; min-width: auto; max-width: none; }
}

/* ========================= */
/* Responsive                */
/* ========================= */
@media (max-width: 768px) {
    section { padding: 72px 0; }
    .stats-container { flex-direction: column; gap: 12px; }
    .footer-section  { padding: 50px 0 30px; }
    .footer-tagline  { font-size: 0.95rem; }
    .social-list     { justify-content: center; }
}
