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

/* ============================
   DESIGN SYSTEM — APPLE STYLE
   ============================ */
:root {
    --black:      #000000;
    --gray-900:   #0a0a0a;
    --gray-800:   #1a1a1a;
    --gray-700:   #2a2a2a;
    --gray-600:   #444444;
    --gray-400:   #888888;
    --gray-200:   #cccccc;
    --gray-100:   #f5f5f7;
    --white:      #ffffff;
    --accent:     #D4AF37;
    --accent-dim: rgba(212, 175, 55, 0.15);
    --blue:       #0071e3;

    --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --radius:     18px;
}

/* ============================
   RESET
   ============================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.34s; }
.delay-4 { transition-delay: 0.46s; }

/* ============================
   CONTAINER
   ============================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   HEADER — GLASSMORPHISM DARK
   ============================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0;
    transition: background 0.4s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.logo {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--white);
}
.logo span { color: var(--accent); }

nav ul {
    display: flex;
    gap: 32px;
}
nav ul li a {
    font-size: 0.875rem;
    color: var(--gray-200);
    transition: color 0.25s;
}
nav ul li a:hover { color: var(--white); }

/* ============================
   HERO — FULL VIEWPORT
   ============================ */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--black);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.38);
    transform: scale(1.04);
    animation: heroBgScale 12s ease-out forwards;
}

/* Fallback if video fails to load */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/dubai_sunset_hero.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

@keyframes heroBgScale {
    to { transform: scale(1); }
}

/* Gradient overlay for readability */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center bottom, rgba(0,0,0,0.6) 0%, transparent 70%),
                linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding-top: 80px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 999px;
    padding: 6px 18px;
    margin-bottom: 28px;
    animation: fadeInDown 0.9s ease-out both;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 24px;
    animation: fadeInDown 0.9s ease-out 0.15s both;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent) 0%, #f0d060 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    max-width: 620px;
    margin: 0 auto 44px;
    animation: fadeInUp 0.9s ease-out 0.3s both;
}

.btn-hero {
    display: inline-block;
    background: var(--accent);
    color: var(--black);
    padding: 17px 42px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    box-shadow: 0 0 0 0 rgba(212,175,55,0.4);
    animation: fadeInUp 0.9s ease-out 0.45s both;
}
.btn-hero:hover {
    background: #c8a42e;
    transform: scale(1.04);
    box-shadow: 0 0 40px rgba(212,175,55,0.35);
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1.2s ease-out 1s both;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ============================
   SECTION HELPERS
   ============================ */
.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
}

.section-title.dark { color: var(--gray-900); }

.section-sub {
    font-size: 1.05rem;
    color: var(--gray-400);
    max-width: 540px;
    margin: 0 auto;
}

/* ============================
   STATS BAR
   ============================ */
.stats-section {
    padding: 80px 0;
    background: var(--gray-900);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.06);
}

.stat-item {
    background: var(--gray-900);
    padding: 48px 32px;
    text-align: center;
}

.stat-number {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent), #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

/* ============================
   FEATURES — APPLE BENTO GRID
   ============================ */
.features-section {
    padding: 120px 0;
    background: var(--black);
    text-align: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 16px;
    margin-top: 64px;
}

.bento-card {
    background: var(--gray-900);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 44px 36px;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212,175,55,0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.bento-card:hover {
    border-color: rgba(212,175,55,0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.bento-card:hover::before { opacity: 1; }

.bento-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-dim);
    border: 1px solid rgba(212,175,55,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 28px;
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 12px;
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.65;
}

/* ============================
   GALLERY — MOSAIC
   ============================ */
.gallery-section {
    padding: 120px 0;
    background: var(--gray-900);
    text-align: center;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 280px 280px;
    gap: 12px;
    margin-top: 64px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}

.gallery-item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 4; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 3; grid-row: span 1; }
.gallery-item:nth-child(4) { grid-column: span 3; grid-row: span 1; }
.gallery-item:nth-child(5) { grid-column: span 4; grid-row: span 1; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.5s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;
}

/* ============================
   FORM SECTION
   ============================ */
.form-section {
    padding: 140px 0;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

/* Ambient glow behind the form */
.form-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.form-copy {
    padding-top: 20px;
}

.form-copy .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.form-copy .section-sub {
    text-align: left;
    margin: 0 0 40px;
}

.trust-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trust-point {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--gray-400);
}

.trust-point i {
    color: var(--accent);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.form-card {
    background: var(--gray-900);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 44px 40px;
}

.form-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--white);
}

.form-card .form-desc {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 32px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px 18px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--white);
    transition: border-color 0.25s, background 0.25s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder { color: var(--gray-600); }

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(212,175,55,0.04);
}

.form-group select option {
    background: var(--gray-800);
    color: var(--white);
}

.iti { width: 100%; }
.iti__flag-container { padding: 2px; }
.iti input { color: var(--white) !important; }

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0 28px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--accent);
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.5;
}

.btn-submit {
    width: 100%;
    background: var(--accent);
    color: var(--black);
    border: none;
    border-radius: 999px;
    padding: 17px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.btn-submit:hover {
    background: #c8a42e;
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(212,175,55,0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-disclaimer {
    text-align: center;
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--gray-600);
}

#formMessage {
    margin-top: 16px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    padding: 12px;
}

/* ============================
   ABOUT SECTION
   ============================ */
.about-section {
    padding: 120px 0;
    background: var(--gray-900);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.about-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-inner .section-title {
    margin-bottom: 20px;
}

.about-inner p {
    font-size: 1.05rem;
    color: var(--gray-400);
    line-height: 1.75;
}

/* ============================
   FOOTER
   ============================ */
footer {
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 60px 0 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}
.footer-logo span { color: var(--accent); }

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--gray-400);
    transition: color 0.25s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 28px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* ============================
   MERCI PAGE
   ============================ */
.merci-page {
    min-height: 100vh;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
}

.merci-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.merci-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 20px;
}

.merci-hero p {
    font-size: 1.1rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.video-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.merci-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 24px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: var(--white);
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 0 0 0 rgba(37,211,102,0.4);
}
.btn-whatsapp:hover {
    transform: scale(1.04);
    box-shadow: 0 0 30px rgba(37,211,102,0.3);
}

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}
.btn-call:hover {
    background: rgba(255,255,255,0.1);
}

/* ============================
   KEYFRAMES
   ============================ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
        height: 220px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    nav ul { display: none; }
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .gallery-mosaic {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        height: 220px;
    }
}
