/* ========================================
   GTS Maldives — Apple-inspired Premium Theme
   ======================================== */

/* --- CSS Variables --- */
:root {
    --navy: #0a0e1a;
    --navy-light: #11172a;
    --navy-mid: #1a2236;
    --accent: #b5313a;
    --accent-light: #d44550;
    --accent-dark: #8e2730;
    --accent-bg: rgba(181, 49, 58, 0.06);
    --white: #ffffff;
    --off-white: #fafaf9;
    --cream: #f6f5f1;
    --gray-100: #f5f5f4;
    --gray-200: #e7e5e4;
    --gray-300: #d6d3d1;
    --gray-400: #a8a29e;
    --gray-500: #78716c;
    --gray-600: #57534e;
    --gray-700: #44403c;
    --gray-800: #292524;
    --gray-900: #1c1917;
    --font-heading: 'EB Garamond', 'Garamond', Georgia, serif;
    --font-body: 'Jost', 'Futura', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.5s var(--ease-out);
    --transition-fast: 0.3s var(--ease-out);
    /* Realistic multi-layer shadows (Apple-style) */
    --shadow-xs:
        0 1px 1px rgba(15, 23, 42, 0.04),
        0 0 0 1px rgba(15, 23, 42, 0.02);
    --shadow-sm:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 0 0 1px rgba(15, 23, 42, 0.03);
    --shadow-md:
        0 2px 4px rgba(15, 23, 42, 0.05),
        0 8px 24px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    --shadow-lg:
        0 4px 8px rgba(15, 23, 42, 0.06),
        0 16px 48px rgba(15, 23, 42, 0.10),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    --shadow-xl:
        0 8px 16px rgba(15, 23, 42, 0.08),
        0 24px 64px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(15, 23, 42, 0.05);
    --shadow-glass:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-glass-dark:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 12px 32px rgba(0, 0, 0, 0.28);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
    touch-action: manipulation;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-narrow {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 600;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 500;
    line-height: 1.1;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: var(--gray-600);
    line-height: 1.75;
}

.lead {
    font-size: 1.25rem;
    color: var(--gray-700);
    line-height: 1.7;
    font-weight: 400;
}

/* --- Buttons (Liquid Glass) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 100%);
    color: var(--white);
    border-color: rgba(181, 49, 58, 0.6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 1px 2px rgba(142, 39, 48, 0.5),
        0 6px 16px rgba(181, 49, 58, 0.32),
        0 12px 32px rgba(181, 49, 58, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #d44550 0%, var(--accent-dark) 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(142, 39, 48, 0.5),
        0 10px 24px rgba(181, 49, 58, 0.4),
        0 20px 48px rgba(181, 49, 58, 0.22);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.10);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(60px) saturate(220%);
    -webkit-backdrop-filter: blur(60px) saturate(220%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.10),
        0 4px 12px rgba(0, 0, 0, 0.22),
        0 8px 24px rgba(0, 0, 0, 0.16);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(212, 69, 80, 0.6);
    color: #ffd9dc;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(142, 39, 48, 0.4),
        0 10px 24px rgba(181, 49, 58, 0.4),
        0 20px 48px rgba(181, 49, 58, 0.25);
}

.btn-outline:active {
    transform: translateY(0);
}

.btn-dark {
    background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
    color: var(--white);
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-dark:hover {
    background: linear-gradient(180deg, #1c2a44 0%, var(--navy-light) 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 2px 4px rgba(142, 39, 48, 0.4),
        0 10px 24px rgba(181, 49, 58, 0.32),
        0 20px 48px rgba(181, 49, 58, 0.18);
}

.btn-full {
    width: 100%;
}

/* --- Navigation: Liquid Glass Dynamic Island --- */
.navbar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    transition: all 0.6s var(--ease-out);
    will-change: top, transform, padding;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 28px 20px 28px 32px;
    background: rgba(10, 14, 26, 0.78);
    backdrop-filter: saturate(180%) blur(28px);
    -webkit-backdrop-filter: saturate(180%) blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 100px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 12px 40px rgba(0, 0, 0, 0.28);
    transition: all 0.6s var(--ease-out);
    width: min(88vw, 880px);
    max-width: 880px;
}



.nav-logo {
    display: flex;
    align-items: center;
    transition: transform 0.4s var(--ease-out);
    flex-shrink: 0;
}

.nav-logo:hover {
    transform: scale(1.06) rotate(-2deg);
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: height 0.6s var(--ease-out);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 100px;
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 100%) !important;
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 1px 2px rgba(142, 39, 48, 0.4),
        0 4px 12px rgba(181, 49, 58, 0.32) !important;
    transition: all 0.3s var(--ease-out) !important;
}

.nav-cta:hover {
    background: linear-gradient(180deg, #d44550 0%, var(--accent-dark) 100%) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 2px 4px rgba(142, 39, 48, 0.5),
        0 8px 18px rgba(181, 49, 58, 0.45),
        0 16px 36px rgba(181, 49, 58, 0.22) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* --- Hero (Cinematic Multi-Image Carousel) --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
}

.hero-bg-stack {
    position: absolute;
    inset: -8%;
    z-index: 0;
    transform: translate(var(--px, 0px), calc(var(--py, 0px) - var(--scroll-offset, 0px)));
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.6s var(--ease-out);
    will-change: opacity;
}

.hero-bg.active {
    opacity: 1;
    animation: kenBurns 12s ease-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.15) translate(0, 0);
    }
    100% {
        transform: scale(1.28) translate(-2%, -1.5%);
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 14, 26, 0.52) 0%,
        rgba(10, 14, 26, 0.22) 25%,
        rgba(10, 14, 26, 0.38) 60%,
        rgba(10, 14, 26, 0.88) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(181, 49, 58, 0.22), transparent 70%),
        radial-gradient(ellipse 40% 30% at 20% 30%, rgba(212, 69, 80, 0.12), transparent 60%);
    pointer-events: none;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 980px;
    padding-top: 120px;
    padding-bottom: 80px;
}

/* Hero progress indicator (image carousel dots) */
.hero-progress {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(48px) saturate(200%);
    -webkit-backdrop-filter: blur(48px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.18);
}

.hero-progress-dot {
    width: 28px;
    height: 3px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: width 0.4s var(--ease-out);
}

.hero-progress-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-out);
}

.hero-progress-dot.active {
    width: 56px;
}

.hero-progress-dot.active::after {
    animation: progressFill 7s linear forwards;
}

@keyframes progressFill {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 36px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(48px) saturate(200%);
    -webkit-backdrop-filter: blur(48px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 100px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-out) 0.2s forwards;
}

.hero-tag-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-light);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero headline word-by-word reveal */
.hero h1 {
    color: var(--white);
    margin-bottom: 32px;
    font-weight: 500;
    font-size: clamp(2.6rem, 6.5vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.hero h1 .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.hero h1 .word-inner {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    animation: wordReveal 1.1s var(--ease-out) forwards;
}

.hero h1 .word:nth-child(1) .word-inner { animation-delay: 0.4s; }
.hero h1 .word:nth-child(2) .word-inner { animation-delay: 0.5s; }
.hero h1 .word:nth-child(3) .word-inner { animation-delay: 0.6s; }
.hero h1 .word:nth-child(4) .word-inner { animation-delay: 0.7s; }
.hero h1 .word:nth-child(5) .word-inner { animation-delay: 0.85s; }
.hero h1 .word:nth-child(6) .word-inner { animation-delay: 0.95s; }
.hero h1 .word:nth-child(7) .word-inner { animation-delay: 1.05s; }

.hero h1 .word + .word { margin-left: 0.25em; }

@keyframes wordReveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.22rem;
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 660px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-out) 1.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-out) 1.4s forwards;
}

.hero-scroll-indicator { display: none; }

/* --- Sections --- */
.section {
    padding: 140px 0;
}

.section-sm {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.highlight-text {
    color: var(--navy);
    font-weight: 500;
    font-style: italic;
    margin-top: 16px;
}

/* --- About --- */
.about {
    background: var(--off-white);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: 80px;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 1.5s var(--ease-out);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-600);
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.value-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 18px;
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

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

/* --- Stats --- */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 64px 48px;
    background: var(--navy);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.about-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
}

.stat {
    text-align: center;
    position: relative;
}

.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.08);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--accent-light);
}

.stat-label {
    display: block;
    margin-top: 14px;
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 48px 36px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.service-icon {
    width: 52px;
    height: 52px;
    color: var(--accent);
    margin-bottom: 24px;
    transition: transform var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.2;
}

.service-card h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
}

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

/* --- Products --- */
.products {
    background: var(--off-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.product-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.product-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    flex-shrink: 0;
}

.product-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.2;
}

.product-card p {
    color: var(--gray-500);
    font-size: 0.98rem;
    margin-bottom: 28px;
    line-height: 1.75;
}

.product-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-brands span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--cream);
    border-radius: 14px;
    font-size: 0.82rem;
    color: var(--gray-600);
    font-weight: 500;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.product-brands span img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.product-brands span svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    opacity: 0.5;
}

.product-brands span:hover svg {
    opacity: 1;
}

.product-brands span:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.products-cta {
    text-align: center;
    margin-top: 56px;
}


/* --- Resort Logos Slider (NEW) --- */
.resort-slider-section {
    padding: 100px 0;
    background: var(--off-white);
    overflow: hidden;
}

.resort-slider-section .section-tag {
    text-align: center;
    display: block;
    margin-bottom: 16px;
}

.resort-slider-section h3 {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 24px;
    font-size: 2rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.2;
}

.resort-slider-section .slider-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
    color: var(--gray-500);
    font-size: 1rem;
}

.resort-slider {
    overflow: hidden;
    padding: 56px 0;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.resort-slider-track {
    display: flex;
    align-items: center;
    gap: 36px;
    width: max-content;
    will-change: transform;
}

.resort-slide {
    flex-shrink: 0;
    height: 130px;
    width: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 16px 22px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 12px rgba(15, 23, 42, 0.06);
    transition: all var(--transition);
}

.resort-slide:hover {
    border-color: var(--accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 4px rgba(181, 49, 58, 0.08),
        0 14px 32px rgba(181, 49, 58, 0.16),
        0 22px 56px rgba(181, 49, 58, 0.1);
    transform: translateY(-8px);
}

.resort-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter var(--transition);
}

.resort-slide:hover img {
    filter: grayscale(0%);
}

/* --- Portfolio Section (Equipment Supplier Showcase) --- */
.portfolio-section {
    padding: 140px 0;
    background: var(--off-white);
    position: relative;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 880px;
    margin: 0 auto 72px;
    padding: 36px 48px;
    background: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.portfolio-stat {
    text-align: center;
    position: relative;
}

.portfolio-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background: var(--gray-200);
}

.portfolio-stat-num {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: baseline;
}

.portfolio-stat-suffix {
    font-size: 1.6rem;
    margin-left: 2px;
}

.portfolio-stat-label {
    display: block;
    margin-top: 8px;
    color: var(--gray-500);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
    padding: 24px 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 12px rgba(15, 23, 42, 0.06);
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(24px);
    min-height: 210px;
}

.portfolio-grid.revealed .portfolio-card {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-grid .portfolio-card:nth-child(1)  { transition-delay: 0.00s; }
.portfolio-grid .portfolio-card:nth-child(2)  { transition-delay: 0.04s; }
.portfolio-grid .portfolio-card:nth-child(3)  { transition-delay: 0.08s; }
.portfolio-grid .portfolio-card:nth-child(4)  { transition-delay: 0.12s; }
.portfolio-grid .portfolio-card:nth-child(5)  { transition-delay: 0.16s; }
.portfolio-grid .portfolio-card:nth-child(6)  { transition-delay: 0.20s; }
.portfolio-grid .portfolio-card:nth-child(7)  { transition-delay: 0.24s; }
.portfolio-grid .portfolio-card:nth-child(8)  { transition-delay: 0.28s; }
.portfolio-grid .portfolio-card:nth-child(9)  { transition-delay: 0.32s; }
.portfolio-grid .portfolio-card:nth-child(10) { transition-delay: 0.36s; }
.portfolio-grid .portfolio-card:nth-child(11) { transition-delay: 0.40s; }
.portfolio-grid .portfolio-card:nth-child(12) { transition-delay: 0.44s; }
.portfolio-grid .portfolio-card:nth-child(13) { transition-delay: 0.48s; }
.portfolio-grid .portfolio-card:nth-child(14) { transition-delay: 0.52s; }
.portfolio-grid .portfolio-card:nth-child(15) { transition-delay: 0.56s; }
.portfolio-grid .portfolio-card:nth-child(16) { transition-delay: 0.60s; }
.portfolio-grid .portfolio-card:nth-child(17) { transition-delay: 0.64s; }
.portfolio-grid .portfolio-card:nth-child(18) { transition-delay: 0.68s; }
.portfolio-grid .portfolio-card:nth-child(19) { transition-delay: 0.72s; }
.portfolio-grid .portfolio-card:nth-child(20) { transition-delay: 0.76s; }

.portfolio-card:hover,
.portfolio-grid.revealed .portfolio-card:hover {
    border-color: rgba(181, 49, 58, 0.3);
    transform: translateY(-6px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 4px rgba(15, 23, 42, 0.06),
        0 14px 32px rgba(15, 23, 42, 0.1),
        0 22px 56px rgba(15, 23, 42, 0.06);
}

.portfolio-card-featured {
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
    border-color: rgba(181, 49, 58, 0.18);
    cursor: pointer;
}

.portfolio-card-featured:hover,
.portfolio-grid.revealed .portfolio-card-featured:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 4px rgba(181, 49, 58, 0.1),
        0 14px 32px rgba(181, 49, 58, 0.18),
        0 22px 56px rgba(181, 49, 58, 0.1);
}

.portfolio-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: var(--font-body);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--accent);
    padding: 4px 9px;
    border-radius: 100px;
    border: 1px solid rgba(181, 49, 58, 0.6);
    box-shadow: 0 2px 8px rgba(181, 49, 58, 0.35);
    z-index: 2;
}

.portfolio-card-logo {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    flex-shrink: 0;
    transition: border-color var(--transition);
}

.portfolio-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition);
}

.portfolio-card:hover .portfolio-card-logo {
    border-color: rgba(181, 49, 58, 0.3);
}

.portfolio-card-featured:hover .portfolio-card-logo {
    border-color: rgba(181, 49, 58, 0.5);
}

.portfolio-card:hover .portfolio-card-logo img {
    transform: scale(1.05);
}

.portfolio-card-name {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.25;
}

.portfolio-card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 4px;
}

.portfolio-card:not(.portfolio-card-featured) {
    justify-content: center;
}

.portfolio-card:not(.portfolio-card-featured) .portfolio-card-tags {
    margin-top: 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 100px;
    border: 1px solid;
}

.tag-kitchen {
    color: #b25e1a;
    background: rgba(178, 94, 26, 0.08);
    border-color: rgba(178, 94, 26, 0.22);
}

.tag-laundry {
    color: #1e4f8a;
    background: rgba(30, 79, 138, 0.08);
    border-color: rgba(30, 79, 138, 0.22);
}

.portfolio-card-link {
    margin-top: 4px;
    padding-top: 8px;
    width: 100%;
    border-top: 1px dashed rgba(181, 49, 58, 0.2);
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: gap var(--transition-fast);
}

.portfolio-card-featured:hover .portfolio-card-link {
    color: var(--accent-dark);
}

.project-resort-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 6px;
    flex-shrink: 0;
}

.project-resort-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Projects --- */
.projects-timeline {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
}

.projects-timeline::before {
    content: '';
    position: absolute;
    left: 90px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--gray-200);
}

.project-item {
    display: flex;
    gap: 40px;
    padding: 32px 0;
    position: relative;
}

.project-item::before {
    content: '';
    position: absolute;
    left: 84px;
    top: 42px;
    width: 13px;
    height: 13px;
    background: var(--white);
    border-radius: 50%;
    border: 2px solid var(--accent);
    z-index: 1;
    transition: all var(--transition);
}

.project-item:hover::before {
    background: var(--accent);
    transform: scale(1.3);
}

.project-year {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    width: 72px;
    flex-shrink: 0;
    text-align: right;
    padding-top: 6px;
    letter-spacing: 0.05em;
}

.project-content {
    padding-left: 36px;
    flex: 1;
}

.project-content h3 {
    margin-bottom: 6px;
    font-size: 1.45rem;
    font-weight: 600;
}

.project-content h3 a {
    transition: color var(--transition-fast);
}

.project-content h3 a:hover {
    color: var(--accent);
}

.project-type {
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.project-content > p:last-of-type {
    color: var(--gray-500);
    font-size: 0.98rem;
    line-height: 1.7;
}

.project-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 16px;
    transition: gap var(--transition-fast);
}

.project-read-more:hover {
    gap: 14px;
    color: var(--accent-dark);
}

.project-read-more svg {
    width: 16px;
    height: 16px;
}

.projects-additional {
    max-width: 880px;
    margin: 64px auto 0;
    padding: 36px 40px;
    background: var(--off-white);
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.projects-additional h4 {
    color: var(--navy);
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
}

.projects-additional p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.projects-cta {
    text-align: center;
    margin-top: 56px;
}

/* --- Contact --- */
.contact {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 4px;
    stroke-width: 1.5;
}

.contact-item h4 {
    margin-bottom: 8px;
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.contact-item p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Contact Form --- */
.contact-form {
    background: var(--white);
    padding: 56px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--gray-700);
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(181, 49, 58, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2378716c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 44px;
}

.form-status {
    text-align: center;
    padding: 14px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.92rem;
    display: none;
}

.form-status.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-status.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- Footer --- */
.footer {
    background: linear-gradient(180deg, var(--navy) 0%, #050810 100%);
    padding: 96px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-bg-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.footer-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    animation: footerOrbFloat 18s ease-in-out infinite;
}

.footer-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(181, 49, 58, 0.18) 0%, transparent 70%);
    top: -120px;
    left: -100px;
    animation-delay: 0s;
    animation-duration: 20s;
}

.footer-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 69, 80, 0.12) 0%, transparent 70%);
    bottom: 0;
    right: -80px;
    animation-delay: -8s;
    animation-duration: 24s;
}

.footer-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(181, 49, 58, 0.10) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -14s;
    animation-duration: 28s;
}

@keyframes footerOrbFloat {
    0% { opacity: 0; transform: translate(0, 0) scale(1); }
    10% { opacity: 1; }
    50% { transform: translate(30px, -40px) scale(1.15); opacity: 0.85; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translate(0, 0) scale(1); }
}

.footer > .container,
.footer > .footer-grid,
.footer > .footer-bottom {
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    z-index: 2;
}

.footer::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: radial-gradient(ellipse at center top, rgba(212, 69, 80, 0.45), transparent 70%);
    filter: blur(4px);
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .nav-logo img {
    height: 60px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.45);
    margin-top: 24px;
    font-size: 0.95rem;
    max-width: 340px;
    line-height: 1.75;
}

.footer-tagline {
    display: inline-block;
    margin-top: 24px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-tagline-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--accent-light);
    vertical-align: 1px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.92rem;
    margin-bottom: 14px;
    transition: all var(--transition-fast);
    position: relative;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--accent-light);
    transition: width var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-links a:hover::before {
    width: 12px;
}

.footer-contact-block {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-contact-block strong {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-bottom-links a,
.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.78rem;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--accent-light);
}

.footer-contact-block a {
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition-fast);
}

.footer-contact-block a:hover {
    color: var(--accent-light);
}

/* --- Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service cards staggered entrance */
.services-grid .service-card {
    transition-delay: calc(var(--card-i, 0) * 0.08s);
}
.services-grid .service-card:nth-child(1) { --card-i: 0; }
.services-grid .service-card:nth-child(2) { --card-i: 1; }
.services-grid .service-card:nth-child(3) { --card-i: 2; }
.services-grid .service-card:nth-child(4) { --card-i: 3; }
.services-grid .service-card:nth-child(5) { --card-i: 4; }

/* Services cards — alternating side-slide with subtle rotation on reveal.
   More dramatic than the default fade-up, only for this section. */
@media (prefers-reduced-motion: no-preference) {
    [data-animate].service-card {
        transform: translateX(-70px) rotate(-2deg);
        transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    }

    [data-animate].service-card:nth-child(even) {
        transform: translateX(70px) rotate(2deg);
    }

    [data-animate].service-card.visible {
        transform: translateX(0) rotate(0);
    }

    /* Products — 3D tilt + scale entrance (cards "stand up" into view) */
    [data-animate].product-card {
        transform: perspective(900px) translateY(50px) rotateX(-10deg) scale(0.96);
        transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
    }
    [data-animate].product-card.visible {
        transform: perspective(900px) translateY(0) rotateX(0) scale(1);
    }

    /* About value cards — slide in from opposite sides */
    [data-animate].value-card {
        transform: translateX(-50px);
        transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    }
    [data-animate].value-card:nth-child(2) {
        transform: translateX(50px);
    }
    [data-animate].value-card.visible {
        transform: translateX(0);
    }

    /* Portfolio cards — spring pop-in with overshoot (bouncy settle) */
    .portfolio-grid .portfolio-card {
        transform: translateY(24px) scale(0.88);
        transition: opacity 0.8s var(--ease-out),
                    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .portfolio-grid.revealed .portfolio-card {
        transform: translateY(0) scale(1);
    }

    /* Contact — info slides from left, form slides from right */
    [data-animate].contact-info {
        transform: translateX(-60px);
        transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
    }
    [data-animate].contact-form {
        transform: translateX(60px);
        transition: opacity 1.1s var(--ease-out) 0.15s, transform 1.1s var(--ease-out) 0.15s;
    }
    [data-animate].contact-info.visible,
    [data-animate].contact-form.visible {
        transform: translateX(0);
    }
}

/* Product cards staggered entrance */
.products-grid .product-card {
    transition-delay: calc(var(--card-i, 0) * 0.1s);
}
.products-grid .product-card:nth-child(1) { --card-i: 0; }
.products-grid .product-card:nth-child(2) { --card-i: 1; }
.products-grid .product-card:nth-child(3) { --card-i: 2; }
.products-grid .product-card:nth-child(4) { --card-i: 3; }

/* Subtle floating animation for about stats */
@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.about-stats.visible .stat:nth-child(1) { animation: subtleFloat 6s ease-in-out 1s infinite; }
.about-stats.visible .stat:nth-child(2) { animation: subtleFloat 6s ease-in-out 1.5s infinite; }
.about-stats.visible .stat:nth-child(3) { animation: subtleFloat 6s ease-in-out 2s infinite; }
.about-stats.visible .stat:nth-child(4) { animation: subtleFloat 6s ease-in-out 2.5s infinite; }

/* Project items left-slide entrance */
[data-animate].project-item {
    transform: translateX(-24px);
}
[data-animate].project-item.visible {
    transform: translateX(0);
}

/* Stat numbers reveal */
.stat {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.about-stats.visible .stat {
    opacity: 1;
    transform: translateY(0);
}

.about-stats.visible .stat:nth-child(1) { transition-delay: 0s; }
.about-stats.visible .stat:nth-child(2) { transition-delay: 0.1s; }
.about-stats.visible .stat:nth-child(3) { transition-delay: 0.2s; }
.about-stats.visible .stat:nth-child(4) { transition-delay: 0.3s; }

/* Scroll-linked progress line for projects timeline — line draws from top
   to bottom in the accent colour as the section scrolls through viewport.
   Progressive enhancement: browsers without animation-timeline support see
   the static gray line. Also gated on prefers-reduced-motion. */
@keyframes draw-timeline-line {
    to { background-size: 100% 100%; }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .projects-timeline::before {
            background-color: var(--gray-200);
            background-image: linear-gradient(var(--accent), var(--accent));
            background-repeat: no-repeat;
            background-size: 100% 0%;
            animation: draw-timeline-line linear;
            animation-timeline: view();
            animation-range: entry 20% cover 80%;
        }
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .section {
        padding: 100px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 56px;
    }

    /* Mobile navbar: compact centered pill. MUST NOT have transform,
       backdrop-filter, filter, perspective, contain, OR will-change with
       any of those as values — all of these create a containing block that
       traps the position:fixed .nav-menu inside the narrow pill width. */
    .navbar {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        top: 12px;
        width: fit-content;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        will-change: auto !important;
        filter: none !important;
        perspective: none !important;
        contain: none !important;
    }

    /* Same for nav-container in case its styles cascade */
    .nav-container {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        filter: none !important;
        will-change: auto !important;
        perspective: none !important;
        contain: none !important;
    }

    .nav-container {
        width: fit-content;
        max-width: calc(100vw - 32px);
        padding: 24px 20px 24px 24px;
        gap: 32px;
        justify-content: flex-start;
    }

    .nav-logo img {
        height: 28px;
    }



    .nav-toggle {
        display: flex;
    }

    /* Mobile nav overlay */
    .nav-menu {
        position: fixed !important;
        top: 68px !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-top: 0 !important;
        margin-right: auto !important;
        margin-bottom: 0 !important;
        bottom: auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 320px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 88px) !important;
        max-height: calc(100dvh - 88px) !important;
        overflow-y: auto !important;
        display: flex !important;
        flex: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        padding: 28px 24px 32px !important;
        gap: 0 !important;
        background: rgba(10, 14, 26, 0.90) !important;
        backdrop-filter: saturate(180%) blur(48px) !important;
        -webkit-backdrop-filter: saturate(180%) blur(48px) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 28px !important;
        list-style: none !important;
        opacity: 0;
        transform: translateY(-14px) scale(0.97);
        transform-origin: top center;
        pointer-events: none;
        transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.12),
            0 4px 24px rgba(0, 0, 0, 0.28),
            0 16px 48px rgba(0, 0, 0, 0.20) !important;
        z-index: 1001 !important;
    }

    .nav-menu.active {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
        pointer-events: auto !important;
    }

    .nav-menu li {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        float: none !important;
    }

    .nav-menu a {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 1rem !important;
        color: rgba(255, 255, 255, 0.88) !important;
        padding: 18px 28px !important;
        margin: 0 !important;
        border-radius: 14px !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        text-align: center !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        position: relative !important;
        float: none !important;
    }

    .nav-menu a:hover, .nav-menu a:active {
        background: rgba(255, 255, 255, 0.07) !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
        color: var(--white) !important;
    }

    .nav-menu li:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .nav-cta {
        text-align: center !important;
        margin-top: 14px !important;
        padding: 18px 28px !important;
        font-size: 0.85rem !important;
        border-radius: 100px !important;
        box-shadow: none !important;
        white-space: nowrap !important;
    }

    /* Lock body scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }

    /* Backdrop overlay when menu open */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(10, 14, 26, 0.35);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s var(--ease-out);
        z-index: 1000;
    }

    .nav-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .hero-content {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .about-image img {
        height: 320px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 32px;
        gap: 40px;
    }

    .stat:nth-child(2)::after {
        display: none;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .product-brands span {
        padding: 8px 12px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .product-brands span img {
        width: 29px;
        height: 29px;
    }

    .product-brands span svg {
        width: 21px;
        height: 21px;
    }

    .resort-slider-track {
        gap: 22px;
    }

    .resort-slide {
        width: 170px;
        height: 95px;
        padding: 12px 16px;
    }

    .portfolio-section {
        padding: 80px 0;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .portfolio-stats {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 32px;
    }

    .portfolio-stat:not(:last-child)::after {
        right: auto;
        top: auto;
        left: 50%;
        bottom: -12px;
        transform: translateX(-50%);
        width: 48px;
        height: 1px;
    }

    .portfolio-card {
        padding: 20px 12px 16px;
        min-height: 200px;
        gap: 10px;
    }

    .portfolio-card-logo {
        width: 72px;
        height: 72px;
        padding: 8px;
    }

    .portfolio-card-name {
        font-size: 0.85rem;
    }

    .projects-timeline::before {
        left: 16px;
    }

    .project-item::before {
        left: 10px;
    }

    .project-year {
        width: 0;
        overflow: hidden;
    }

    .project-content {
        padding-left: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .portfolio-card {
        padding: 18px 10px 14px;
        min-height: 180px;
        gap: 10px;
    }

    .portfolio-card-logo {
        width: 64px;
        height: 64px;
        padding: 8px;
    }

    .portfolio-card-name {
        font-size: 0.82rem;
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    h2 {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
    }

    .product-brands {
        gap: 6px;
    }

    .product-brands span {
        padding: 6px 10px;
        font-size: 0.72rem;
        gap: 5px;
        border-radius: 10px;
    }

    .product-brands span img {
        width: 23px;
        height: 23px;
    }

    .product-brands span svg {
        width: 18px;
        height: 18px;
    }

    .footer-grid {
        gap: 28px;
    }
}

/* Very small screens (≤ 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 14px;
    }

    h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .hero-content {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .nav-menu {
        top: 62px !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* Tablet landscape / mid-range (769px – 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-grid {
        gap: 48px;
    }

    .projects-timeline {
        max-width: 100%;
    }
}

/* Wide screens (≥ 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1380px;
        padding: 0 48px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Ultra-wide (≥ 1800px) */
@media (min-width: 1800px) {
    .container {
        max-width: 1600px;
    }

    h1 {
        font-size: 5.6rem;
    }
}

/* Short screens (max-height: 650px) — landscape phones */
@media (max-height: 650px) and (max-width: 900px) {
    .hero {
        min-height: 100svh;
    }

    .hero-content {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 5vw, 3rem);
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .nav-menu {
        max-height: calc(100svh - 80px) !important;
        overflow-y: auto !important;
    }
}
