/* ========================
   RESET & VARIABLES
   ======================== */
:root {
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --text-dark: #1d1d1f; 
    --accent-blue: #0071e3; 
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

body { 
    /* FIXED: Allow vertical scroll so GSAP can work */
    overflow-x: hidden; 
    overflow-y: auto; 
    
    width: 100vw;
    font-family: var(--font-body);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* ========================
   BACKGROUND CANVAS
   ======================== */
.fixed-background {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    background: #fbfbfd; 
}

.map-layer {
    width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.6; 
    filter: contrast(0.8) brightness(1.2);
}

.gradient-blob {
    position: absolute;
    top: -20%; left: -20%;
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, rgba(0,113,227,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    filter: blur(80px);
}

.ship-container {
    position: absolute;
    top: 60%; left: 10%;
    z-index: 1;
    will-change: transform, left, top;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

/* ========================
   LAYOUT ENGINE
   ======================== */
.horizontal-wrapper {
    display: flex;
    width: 400%; /* 4 Slides wide */
    height: 100vh;
}

.slide {
    width: 100vw;
    height: 100vh;
    flex: 0 0 100vw; /* Crucial: Prevents shrinking */
    position: relative;
    overflow: hidden;
}

/* ========================
   GLASS UI COMPONENTS
   ======================== */
.glass-card, .glass-panel, .glass-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* Split Layout */
.split-slide { display: flex; flex-direction: column; }
.split-top, .split-bottom {
    flex: 1; width: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

/* Brand */
.brand-box { padding: 40px 60px; text-align: center; min-width: 320px; }
.logo-circle {
    width: 70px; height: 70px;
    border: 2px solid var(--text-dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 15px auto;
}
h1 { font-family: var(--font-heading); font-size: 2.2rem; letter-spacing: 2px; margin-bottom: 5px; color: #000; }
.tagline { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: #555; margin-bottom: 25px; }

.scroll-pill {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    animation: float 2s ease-in-out infinite;
}

/* Text Cards */
.text-card { padding: 40px; max-width: 500px; text-align: center; }
.text-card h2 { font-family: var(--font-heading); margin-bottom: 12px; font-size: 1.8rem; }
.text-card p { line-height: 1.6; color: #333; }

.text-card.dark-mode {
    background: rgba(30, 30, 30, 0.75);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}
.text-card.dark-mode p, .text-card.dark-mode h2 { color: white; }

/* Product Grid */
.full-slide { display: flex; justify-content: center; align-items: center; }
.glass-panel { padding: 40px; display: flex; flex-direction: column; align-items: center; }
.section-title { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 30px; }

.products-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.glass-btn {
    width: 120px; height: 120px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; transition: transform 0.2s ease;
    background: rgba(255, 255, 255, 0.4);
}
.glass-btn:hover { transform: scale(1.05); background: rgba(255,255,255,0.6); }
.glass-btn .icon { font-size: 2.5rem; margin-bottom: 8px; }
.glass-btn h3 { font-size: 0.8rem; font-weight: 600; }

/* About */
.about-content { max-width: 600px; text-align: center; padding: 60px; }
.divider { height: 1px; width: 60px; background: rgba(0,0,0,0.1); margin: 25px auto; }
.ios-btn {
    margin-top: 20px; padding: 14px 40px;
    background: var(--accent-blue); color: white;
    border: none; border-radius: 14px;
    font-size: 1rem; font-weight: 500; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Mobile */
@media (max-width: 768px) {
    .products-matrix { gap: 10px; }
    .glass-btn { width: 90px; height: 90px; }
    .brand-box { padding: 30px; min-width: unset; width: 90%; }
    h1 { font-size: 1.8rem; }
}