/* ==========================================================================
   Flintweb Global Resources Ltd — flintwebstudio.co.uk
   Shared design system
   ========================================================================== */

:root {
    --navy: #0a1628;
    --navy-light: #132444;
    --blue: #1e3a5f;
    --blue-accent: #2d5a87;
    --gold: #1AA6C9;
    --gold-light: #5FD4E6;
    --gold-dark: #0F7C94;
    --white: #ffffff;
    --off-white: #f8f9fc;
    --gray: #a0aec0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy);
    color: var(--white);
    overflow-x: hidden;
}

a { color: inherit; }

/* ===== Navigation ===== */
/* ===== Site header: top utility bar + main navigation ===== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
#site-header.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(26, 166, 201, 0.18);
}

/* Top utility bar */
.topbar {
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.82rem;
    max-height: 56px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.4s ease, border-color 0.4s ease;
}
.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.55rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.85rem; }
.tb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
}
.tb-item svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 1.7; flex-shrink: 0; }
a.tb-item:hover { color: #fff; }
#site-header.scrolled .topbar {
    max-height: 0;
    opacity: 0;
    padding: 0;
    border-color: transparent;
}

/* Main navigation row */
nav {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.4s ease;
}
#site-header.scrolled nav { padding: 0.8rem 5%; }

/* (scroll styling handled by #site-header.scrolled above) */

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--navy);
    box-shadow: 0 4px 15px rgba(26, 166, 201, 0.3);
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--white);
}

.logo-text span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 6px 22px rgba(26, 166, 201, 0.35);
}
.nav-cta .cta-arrow { stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform 0.25s ease; }

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 166, 201, 0.55);
    filter: brightness(1.05);
}
.nav-cta:hover .cta-arrow { transform: translateX(3px); }

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 25px rgba(26, 166, 201, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(26, 166, 201, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ===== Hero Slider (home) ===== */
.hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    height: 100vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg img {
    transform: scale(1);
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(19, 36, 68, 0.85) 50%, rgba(30, 58, 95, 0.8) 100%);
    z-index: 1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(26, 166, 201, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 166, 201, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-content-inner {
    max-width: 820px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26, 166, 201, 0.1);
    border: 1px solid rgba(26, 166, 201, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.2s;
}

.hero-slide.active .hero-badge {
    opacity: 1;
    transform: translateY(0);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-slide h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.3rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease 0.4s;
}

.hero-slide.active h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide h1 .highlight {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slide p {
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 620px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease 0.6s;
}

.hero-slide.active p {
    opacity: 1;
    transform: translateY(0);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease 0.8s;
}

.hero-slide.active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

.hero-slider-controls {
    position: absolute;
    bottom: 5rem;
    left: 5%;
    right: 5%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-slider-dots {
    display: flex;
    gap: 1rem;
}

.hero-slider-dot {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-slider-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.3s ease;
}

.hero-slider-dot.active::after {
    width: 100%;
    animation: progressBar 6s linear forwards;
}

@keyframes progressBar {
    from { width: 0; }
    to { width: 100%; }
}

.hero-slider-nav {
    display: flex;
    gap: 1rem;
}

.hero-nav-btn {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(26, 166, 201, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-nav-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.hero-nav-btn:hover svg {
    stroke: var(--navy);
}

.hero-nav-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    stroke-width: 2;
    fill: none;
}

.hero-slide-counter {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.counter-current {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.counter-divider {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.counter-total {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--gray);
}

.hero-floating-element {
    position: absolute;
    z-index: 4;
    opacity: 0.6;
}

.floating-circle {
    width: 300px;
    height: 300px;
    border: 1px solid rgba(26, 166, 201, 0.2);
    border-radius: 50%;
    right: 15%;
    top: 20%;
    animation: floatRotate 20s linear infinite;
}

.floating-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(26, 166, 201, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes floatRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.floating-dots {
    right: 10%;
    bottom: 30%;
    display: grid;
    grid-template-columns: repeat(5, 8px);
    gap: 12px;
}

.floating-dots span {
    width: 8px;
    height: 8px;
    background: rgba(26, 166, 201, 0.3);
    border-radius: 50%;
}

/* ===== Inner page hero ===== */
.page-hero {
    position: relative;
    padding: 12rem 5% 6rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 166, 201, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 166, 201, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 55%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(26, 166, 201, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.25rem;
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    max-width: 900px;
}

.page-hero h1 .highlight {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 1.8;
    max-width: 720px;
}

/* ===== Section primitives ===== */
.section {
    padding: 7rem 5%;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 4.5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
}

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

/* ===== Stats ===== */
.stats {
    padding: 5rem 5%;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(30, 58, 95, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(26, 166, 201, 0.1);
    transition: all 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(26, 166, 201, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
}

/* ===== About band ===== */
.about {
    padding: 7rem 5%;
    background: var(--navy);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-content .section-label { margin-bottom: 1rem; }

.about-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
}

.about-content strong { color: var(--white); font-weight: 600; }

.about-highlights {
    display: grid;
    gap: 1rem;
}

.about-highlight {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.3) 0%, rgba(10, 22, 40, 0.5) 100%);
    border: 1px solid rgba(26, 166, 201, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.about-highlight:hover {
    border-color: rgba(26, 166, 201, 0.3);
    transform: translateX(6px);
}

.about-highlight .ah-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 166, 201, 0.2) 0%, rgba(26, 166, 201, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-highlight .ah-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 2; }

.about-highlight h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.about-highlight p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ===== Service cards (overview grid) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.3) 0%, rgba(10, 22, 40, 0.5) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(26, 166, 201, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(26, 166, 201, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(26, 166, 201, 0.2) 0%, rgba(26, 166, 201, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg { width: 34px; height: 34px; stroke: var(--gold); fill: none; stroke-width: 1.8; }

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

.center-cta { text-align: center; margin-top: 3.5rem; }

/* ===== Featured products (home) ===== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(26, 166, 201, 0.12);
    text-decoration: none;
    color: var(--white);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #0a1628 0%, #14233d 55%, #1AA6C9 170%);
}

.featured-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.6s ease;
    z-index: 0;
}

.featured-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.96) 0%, rgba(10, 22, 40, 0.6) 45%, rgba(10, 22, 40, 0.2) 100%);
    z-index: 1;
}

.featured-card:hover {
    transform: translateY(-8px);
    border-color: rgba(26, 166, 201, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.featured-card:hover img { transform: scale(1.12); }

.featured-card-body {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.tag {
    display: inline-block;
    background: rgba(26, 166, 201, 0.2);
    color: var(--gold);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.featured-card-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.featured-card-body p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Portfolio ===== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.filter-tab {
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(26, 166, 201, 0.15);
    color: var(--gray);
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover { color: var(--white); border-color: rgba(26, 166, 201, 0.4); }

.filter-tab.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy);
    border-color: var(--gold);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.product-card {
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.3) 0%, rgba(10, 22, 40, 0.55) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(26, 166, 201, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(26, 166, 201, 0.35);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.product-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #14233d 55%, #1AA6C9 160%);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-thumb img { transform: scale(1.08); }

.product-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.55), transparent 60%);
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.status-live {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}
.status-live::before { background: #4ade80; animation: blink 1.8s ease-in-out infinite; }

.status-dev {
    background: rgba(26, 166, 201, 0.18);
    color: var(--gold-light);
    border: 1px solid rgba(26, 166, 201, 0.4);
}
.status-dev::before { background: var(--gold-light); }

.product-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.product-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.product-body > p {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
}

.tech-tag {
    font-size: 0.72rem;
    color: var(--gray);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.28rem 0.7rem;
    border-radius: 6px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.product-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.product-link:hover { gap: 0.85rem; }

.product-link.muted { color: var(--gray); cursor: default; }
.product-link.muted:hover { gap: 0.5rem; }

/* ===== Detailed services list ===== */
.service-detail {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 5rem;
}

.service-detail:last-child { margin-bottom: 0; }

.service-detail.reverse .sd-visual { order: 2; }

.sd-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(26, 166, 201, 0.15);
}

.sd-visual img { width: 100%; height: 100%; object-fit: cover; }

.sd-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.5), rgba(30, 58, 95, 0.25));
}

.sd-content .sd-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: block;
}

.sd-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sd-content > p {
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 1.5rem;
    font-size: 1.0rem;
}

.sd-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 1.5rem;
}

.sd-list li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.5;
}

.sd-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(26, 166, 201, 0.15);
    border: 1px solid var(--gold);
}

.sd-list li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 0.62rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

/* ===== Process ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    counter-reset: step;
}

.process-step {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.3) 0%, rgba(10, 22, 40, 0.5) 100%);
    border: 1px solid rgba(26, 166, 201, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.process-step:hover { transform: translateY(-6px); border-color: rgba(26, 166, 201, 0.3); }

.process-num {
    width: 54px;
    height: 54px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.process-step h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.process-step p { color: var(--gray); font-size: 0.85rem; line-height: 1.5; }

/* ===== Tech showcase ===== */
.tech-showcase {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1050px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover { opacity: 1; transform: scale(1.1); }

.tech-icon {
    width: 64px;
    height: 64px;
    background: rgba(30, 58, 95, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(26, 166, 201, 0.12);
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold-light);
}

.tech-name { font-size: 0.85rem; color: var(--gray); }

/* ===== CTA ===== */
.cta {
    padding: 8rem 5%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(26, 166, 201, 0.1) 0%, transparent 60%);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.cta p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-meta {
    margin-top: 2.5rem;
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--gray);
    font-size: 0.95rem;
}

.cta-meta a { color: var(--gold); text-decoration: none; }
.cta-meta a:hover { text-decoration: underline; }

/* ===== Footer ===== */
footer {
    padding: 5rem 5% 2rem;
    background: var(--navy);
    border-top: 1px solid rgba(26, 166, 201, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto 4rem;
}

.footer-brand { max-width: 360px; }
.footer-brand .logo { margin-bottom: 1.5rem; }

.footer-brand p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-reg {
    font-size: 0.82rem;
    color: var(--gray);
    opacity: 0.8;
    line-height: 1.7;
}

.footer-column h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.75rem; }

.footer-column a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-column a:hover { color: var(--gold); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p { color: var(--gray); font-size: 0.9rem; }
.footer-bottom span { color: var(--gold); }

/* ===== Mobile menu ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav.active { opacity: 1; visibility: visible; }

.mobile-nav::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(26, 166, 201, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.mobile-nav.active .mobile-nav-links li { opacity: 1; transform: translateY(0); }
.mobile-nav.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav-links a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover { color: var(--gold); }

.mobile-nav-cta {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease 0.5s;
}

.mobile-nav.active .mobile-nav-cta { opacity: 1; transform: translateY(0); }

.mobile-nav-cta a {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 25px rgba(26, 166, 201, 0.3);
    transition: all 0.3s ease;
}

.mobile-nav-cta a:hover { transform: scale(1.05); }

.mobile-nav-footer {
    position: absolute;
    bottom: 3rem;
    display: flex;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease 0.6s;
}

.mobile-nav.active .mobile-nav-footer { opacity: 1; }

.mobile-nav-footer a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.mobile-nav-footer a:hover { color: var(--gold); }

body.menu-open { overflow: hidden; }

/* ===== Reveal: content is always visible (no scroll/JS dependency) ===== */
.reveal { opacity: 1; transform: none; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .hero-slide h1 { font-size: 3.5rem; }
    .hero-slide-counter { display: none; }
    .page-hero h1 { font-size: 3.2rem; }
    .process-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .tb-hide-sm { display: none; }
    .menu-toggle { display: flex; }
    .nav-links, nav .nav-cta { display: none; }
    .hero-slide h1 { font-size: 3rem; }
    .hero-content-inner { text-align: center; margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    .hero-slider-controls { flex-direction: column; gap: 1.5rem; align-items: center; }
    .floating-circle, .floating-dots { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .service-detail, .service-detail.reverse { grid-template-columns: 1fr; gap: 2rem; }
    .service-detail.reverse .sd-visual { order: 0; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .hero-slide h1 { font-size: 2.5rem; }
    .hero-slide p { font-size: 1rem; }
    .page-hero { padding: 10rem 5% 4.5rem; }
    .page-hero h1 { font-size: 2.6rem; }
    .hero-slider-dots { gap: 0.5rem; }
    .hero-slider-dot { width: 40px; }
    .section-title { font-size: 2.5rem; }
    .section { padding: 5rem 5%; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 2.5rem; }
    .cta h2 { font-size: 2.5rem; }
    .sd-list { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .hero-slide h1 { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .hero-nav-btn { width: 48px; height: 48px; }
}
