:root {
    /* Color Palette */
    --bg-dark: #000B18; /* Deep Abyss Blue */
    --bg-surface: #02162B; /* Deep Navy */
    --bg-surface-light: #052648; /* Lighter Navy */
    
    --primary: #00B4D8; /* Vibrant Teal/Cyan */
    --primary-glow: rgba(0, 180, 216, 0.4);
    
    --accent: #E8B971; /* Gold/Sand Accent mimicking the buttons from layout */
    --accent-dark: #C49045;
    
    --text-primary: #FFFFFF;
    --text-secondary: #A0B2C6;
    --text-muted: #6482A0;

    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(255, 255, 255, 0.2);
    
    /* Layout */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --transition-snappy: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.italic { font-style: italic; }
.highlight { color: var(--primary); font-weight: 600; }
.section { padding: 6rem 0; }

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.fade-in.visible {
    opacity: 1;
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-snappy);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(232, 185, 113, 0.2);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 185, 113, 0.4);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-highlight);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(0, 11, 24, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px; /* Adjust based on actual logo proportion */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Offset for navbar */
    overflow: hidden;
}

.hero-about {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 2rem;
}

.hero-about + .about-content {
    padding-top: 0;
}

.hero-logo {
    max-width: 550px;
    width: 100%;
    height: auto;
    margin-bottom: 3rem;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('assets/background.jpg') center top / cover no-repeat;
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 11, 24, 0.2) 0%, var(--bg-dark) 100%);
    z-index: 1;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 2.8rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #B0C4DE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Series Format Section */
.series-format {
    background-color: var(--bg-dark);
    padding-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
    cursor: default;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
}

.card-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.card-header-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-subtle);
}

.card-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.pool-gradient {
    background: radial-gradient(circle at bottom left, rgba(0, 180, 216, 0.4), transparent 70%);
}

.ocean-gradient {
    background: radial-gradient(circle at bottom right, rgba(2, 62, 138, 0.6), transparent 70%);
}

.card:hover .card-gradient {
    opacity: 0.8;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.detail-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.detail-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-distances {
    display: flex;
    gap: 0.5rem;
}

.badge {
    background: rgba(232, 185, 113, 0.1);
    color: var(--accent);
    border: 1px solid rgba(232, 185, 113, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Register Section */
.register-section {
    position: relative;
    padding: 3rem 0 8rem 0;
    background: url('assets/background.jpg') center bottom / cover no-repeat;
}
.register-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 11, 24, 0.5) 50%, var(--bg-dark) 100%);
    z-index: 0;
}
.register-section > .container {
    position: relative;
    z-index: 1;
}

.quote-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 3rem 0;
}

/* Stats Section */
.border-top {
    border-top: 1px solid var(--border-subtle);
}

.stats-grid, .believe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    padding: 4rem 0;
}

.believe-grid {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.detail-list {
    list-style: none;
    margin-top: 1rem;
    text-align: left;
}

.detail-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.detail-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.founder-name {
    margin-top: -1rem;
    font-size: 2rem;
    letter-spacing: 1px;
}

.founder-grid, .about-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.about-split-content {
    text-align: left;
}

.about-split-side {
    position: relative;
    padding: 2rem;
    border-left: 1px solid var(--accent);
}

.about-text.large {
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
}

@media (max-width: 868px) {
    .founder-grid, .about-split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-split-side {
        border-left: none;
        border-top: 1px solid var(--accent);
        padding: 2rem 0;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: var(--border-subtle);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 20px rgba(232, 185, 113, 0.2);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    background-color: var(--bg-dark);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
.carousel-section {
    padding: 1rem 0 4rem;
    background: var(--bg-dark);
}

.carousel-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-viewport {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 2rem 0;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.carousel-viewport::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.carousel-item {
    flex: 0 0 calc(33.333% - 1rem); /* 3 items visible on desktop */
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
    background: var(--bg-surface);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.carousel-item:hover {
    transform: scale(1.02);
}

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

@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - 0.75rem);
    }
    
    .about-split-layout, .founder-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .about-brand-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .about-brand-panel {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 2rem !important;
        height: auto !important;
    }
    
    .about-transformation-panel {
        flex-direction: column !important;
        padding: 2rem !important;
    }
    
    .about-brand-text {
        text-align: center !important;
    }
    
    .about-intro-split {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .about-logo-wrapper {
        margin-top: 2rem !important;
        padding-left: 0 !important;
        border-left: none !important;
    }
    
    .about-logo-wrapper::before {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 85%;
    }

    .about-split-layout, .founder-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-split-side, .about-split-content {
        text-align: center !important;
    }

    .believe-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .believe-grid .stat-item::after {
        display: none;
    }

    .hero-about {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-about .hero-title {
        font-size: 2.5rem;
    }

    .about-text.large {
        font-size: 1.2rem !important;
    }

    .glass-panel {
        padding: 2rem !important;
    }

    .founder-grid img {
        height: 350px !important;
    }

    /* Mobile Overrides for About Page */
    .about-intro-text p {
        text-align: center !important;
        font-size: 1.15rem;
    }
    .about-logo-wrapper {
        margin-top: 0;
        padding-left: 0;
        padding-top: 2rem;
    }
    .about-logo-wrapper::before {
        top: 0;
        bottom: auto;
        left: 20%;
        right: 20%;
        width: auto;
        height: 1px;
    }
    .about-brand-grid {
        align-items: stretch !important;
        justify-items: stretch !important;
    }
    .about-brand-panel {
        align-items: center !important;
        padding: 2rem 1.5rem !important;
        width: 100%;
        box-sizing: border-box;
    }
    .about-brand-text {
        text-align: center !important;
        width: 100%;
    }
}

/* Base Classes for About Page */
.about-intro-split {
    margin-top: 0;
    gap: 2rem;
}
.about-intro-text p {
    font-size: 1.15rem; 
    line-height: 1.8; 
    margin-bottom: 1.5rem; 
    text-align: left;
    color: var(--text-primary);
}
.about-intro-text p.last-para {
    margin-bottom: 0;
}
.about-logo-wrapper {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-top: -3rem;
    padding-left: 2rem;
    position: relative;
}
.about-logo-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3rem; 
    bottom: 0;
    width: 1px;
    background-color: var(--accent);
}

.about-transformation-panel {
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 4rem;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.about-brand-grid {
    gap: 2rem; 
    align-items: stretch;
}
.about-brand-panel {
    padding: 2.5rem; 
    flex-direction: column; 
    align-items: flex-start; 
    justify-content: flex-start; 
    height: 100%;
}
.about-brand-logo {
    max-width: 150px; 
    height: auto; 
    margin-bottom: 1.5rem; 
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}
.about-brand-text {
    font-size: 1.05rem; 
    text-align: left;
}
