/* =====================================================
   Stephan — Luxury Professional One-Pager
   Design System: Midnight Obsidian & Champagne Gold
   ===================================================== */

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

:root {
    --obsidian: #020202;
    --charcoal: #0a0a0a;
    --gold: #C5A059;
    --gold-muted: rgba(197, 160, 89, 0.4);
    --liquid-blue: #3b82f6;
    --text: #e8e8e8;
    --text-muted: rgba(232, 232, 232, 0.5);
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(10, 10, 10, 0.7);
    --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--obsidian);
}

body {
    background: var(--obsidian);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* =====================================================
   Hero Section (Impactful Luxury)
   ===================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--obsidian);
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-bg-layer.active {
    opacity: 1;
}

/* Dark Overlay for Hero Images */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--obsidian) 90%),
        linear-gradient(to bottom, transparent 60%, var(--obsidian));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 40px;
}

.hero-section h1 {
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    line-height: 0.95;
    margin-bottom: 30px;
    color: var(--text);
}

.hero-section h1 span {
    display: block;
    color: var(--gold);
    font-style: italic;
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation Dots (Floating Glass) */
.navigation-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 20;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    border: 1px solid var(--border);
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
}

.dot.active {
    background: var(--gold);
    transform: scale(1.4);
    box-shadow: 0 0 15px var(--gold-muted);
}

/* =====================================================
   Expert Network Section (Obsidian Glass)
   ===================================================== */
.card-section {
    position: relative;
    padding: 160px 0;
    background: var(--obsidian);
    overflow: hidden;
    /* Prevent horizontal scrollbar on body */
}

.card-section h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 80px;
    color: var(--text);
}

.card-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 30px auto 0;
}

.cards-container {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 40px 0 80px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    scroll-snap-type: x mandatory;
    width: 100%;
}

/* Spacer logic for centering first and last cards */
.cards-container::before,
.cards-container::after {
    content: '';
    flex: 0 0 calc(50vw - 170px);
    /* 50% viewport - half card */
}

.cards-container::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 340px;
    background: var(--charcoal);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    opacity: 0.6;
    transform: scale(0.9);
}

.card.focused {
    opacity: 1;
    transform: scale(1);
    border-color: var(--gold);
    box-shadow: 0 0 40px rgba(197, 160, 89, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--gold-muted);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

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

.card-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 2px solid var(--gold);
    padding: 4px;
    background: var(--obsidian);
    transition: transform var(--transition);
}

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

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text);
}

.card .title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 24px;
}

.card .description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    opacity: 0.8;
}

/* =====================================================
   Visionary Projects (Parallax Depth)
   ===================================================== */
#projects-section .card {
    flex: 0 0 480px;
    padding: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

#projects-section .cards-container {
    /* padding-left: calc(50% - 240px); */
    /* 50% - half of 480px */
    /* padding-right: calc(50% - 240px); */
}

#projects-section .cards-container::before,
#projects-section .cards-container::after {
    flex: 0 0 calc(50vw - 240px);
    /* half of 480 */
}

@media (max-width: 768px) {
    #projects-section .card {
        flex: 0 0 300px;
    }

    #projects-section .cards-container::before,
    #projects-section .cards-container::after {
        flex: 0 0 calc(50vw - 150px);
    }
}

#projects-section .card-image img {
    width: 100%;
    height: 280px;
    border-radius: 0;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

#projects-section .card-content {
    padding: 40px;
}

/* =====================================================
   CEO Section & Dynamic Buttons
   ===================================================== */
.ceo-section {
    padding: 160px 40px;
    background: var(--obsidian);
}

.ceo-profile {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
    text-align: left;
    background: var(--charcoal);
    padding: 80px;
    border-radius: 40px;
    border: 1px solid var(--border);
}

.ceo-profile .profile-pic {
    width: 320px;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--gold-muted);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.ceo-profile h3 {
    font-size: 3.5rem;
    margin-bottom: 12px;
}

.ceo-profile .motivation {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text);
    margin: 40px 0;
    line-height: 1.4;
    border-left: 2px solid var(--gold);
    padding-left: 40px;
}

/* Luxury Liquid Button */
.cta-button {
    position: relative;
    background: var(--gold);
    color: var(--obsidian);
    padding: 22px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.15);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 30px 60px rgba(197, 160, 89, 0.3);
    background: #e5bc7a;
}

.cta-button:hover::before {
    left: 100%;
}

/* =====================================================
   Footer
   ===================================================== */
footer {
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* =====================================================
   Responsive Design & Fine-Tuning
   ===================================================== */

/* Large Tablets & Small Desktops */
@media (max-width: 1200px) {
    .ceo-profile {
        max-width: 900px;
        gap: 40px;
        padding: 60px;
    }
}

/* Tablets (iPad, etc.) */
@media (max-width: 1024px) {
    .card-section {
        padding: 100px 20px;
    }

    .ceo-profile {
        flex-direction: column;
        text-align: center;
        padding: 40px;
        gap: 40px;
    }

    .ceo-profile .profile-pic {
        width: 280px;
        height: 380px;
        margin: 0 auto;
    }

    .ceo-profile .motivation {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--gold);
        padding-top: 30px;
        font-size: 1.25rem;
    }

    .ceo-profile h3 {
        font-size: 2.5rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    html {
        font-size: 15px;
        /* Slightly smaller base for mobile */
    }

    .hero-content {
        padding: 20px;
    }

    .hero-section h1 {
        font-size: clamp(3rem, 12vw, 4.5rem);
    }

    .card-section {
        padding: 80px 15px;
    }

    .card-section h2 {
        margin-bottom: 40px;
    }

    .cards-container {
        display: flex;
        /* Ensure it stays flex */
        flex-direction: row;
        /* Horizontal */
        gap: 40px;
        padding: 40px 0 80px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .cards-container::before,
    .cards-container::after {
        content: '';
        display: block;
        flex: 0 0 calc(50vw - 140px);
        /* 50% - half of 280px */
    }

    .card {
        flex: 0 0 280px;
        padding: 30px 20px;
        scroll-snap-align: center;
        opacity: 0.6;
        transform: scale(0.9);
    }

    .card.focused {
        opacity: 1;
        transform: scale(1);
    }

    #projects-section .card {
        flex: 0 0 300px;
    }

    #projects-section .cards-container::before,
    #projects-section .cards-container::after {
        flex: 0 0 calc(50vw - 150px);
        display: block;
    }

    #projects-section .card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 340px;
    }

    #projects-section .cards-container::before,
    #projects-section .cards-container::after {
        display: none;
    }

    #projects-section .card-image img {
        height: 200px;
    }

    .ceo-section {
        padding: 80px 20px;
    }

    .ceo-profile .profile-pic {
        width: 100%;
        max-width: 320px;
    }

    .navigation-dots {
        bottom: 20px;
        padding: 8px 16px;
    }

    footer {
        padding: 40px 20px;
        font-size: 0.7rem;
    }
}

/* Very Small Devices */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .cta-button {
        padding: 18px 36px;
        font-size: 1rem;
    }

    .card {
        flex: 0 0 260px;
    }
}