/* =========================================================================
   Global Styles & Variables
   Theme: Scholar's Transition (Sapphire, Ivory, and Gold)
   Typography: Playfair Display (Headings) | Inter (Body)
   ========================================================================= */

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

:root {
    /* Color Palette */
    --clr-primary: #1A365D;
    /* Deep Sapphire */
    --clr-secondary: #D4AF37;
    /* Muted Gold */
    --clr-accent: #2B6CB0;
    /* Vibrant Blue */
    --clr-background: #FDFBF7;
    /* Warm Ivory */
    --clr-surface: #FFFFFF;
    /* Pure White */

    /* Text Colors */
    --clr-text-main: #2D3748;
    --clr-text-muted: #718096;
    --clr-text-light: #F7FAFC;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows & Effects */
    --shadow-soft: 0 10px 25px -5px rgba(26, 54, 93, 0.08);
    --shadow-hover: 0 20px 30px -10px rgba(26, 54, 93, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--clr-text-main);
    background-color: var(--clr-background);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    color: var(--clr-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--clr-primary);
}

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

/* =========================================================================
   Layout & Components
   ========================================================================= */

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-light {
    background-color: var(--clr-surface);
}

.section-dark {
    background-color: var(--clr-primary);
    color: var(--clr-text-light);
}

.section-dark h2,
.section-dark h3 {
    color: var(--clr-surface);
}

.section-dark .text-muted {
    color: #A0AEC0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-secondary);
    color: var(--clr-primary);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #F6E05E;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-surface);
    color: var(--clr-surface);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--clr-accent);
    color: white;
}

.btn-accent:hover {
    background-color: #2c5282;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(43, 108, 176, 0.3);
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    background-color: rgba(253, 251, 247, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 54, 93, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    letter-spacing: 1px;
}

.brand span {
    color: var(--clr-secondary);
}

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

.nav-links a {
    color: var(--clr-text-main);
    font-size: 1rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--clr-accent);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--clr-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    padding: calc(var(--spacing-xl) * 1.5) 0 var(--spacing-xl);
    text-align: center;
    background: linear-gradient(to bottom, #FDFBF7, #EBF8FF);
    border-bottom: 1px solid rgba(43, 108, 176, 0.1);
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.35rem;
    color: var(--clr-text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Feature Grid — true 3 columns on desktop */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--spacing-md);
}

/* Card */
.card {
    background: var(--clr-surface);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(26, 54, 93, 0.03);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.25);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--clr-secondary);
    margin-bottom: 1.5rem;
}

/* Coach Profile */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.profile-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.profile-image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-family: var(--font-heading);
}

/* Footer */
.footer {
    background-color: var(--clr-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    text-align: center;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-copy {
    font-size: 0.9rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-sm);
}

/* =========================================================================
   Scroll Animations — Fade In on Scroll
   ========================================================================= */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger cards */
.card.fade-in:nth-child(2) {
    transition-delay: 0.1s;
}

.card.fade-in:nth-child(3) {
    transition-delay: 0.2s;
}

.card.fade-in:nth-child(4) {
    transition-delay: 0.15s;
}

.card.fade-in:nth-child(5) {
    transition-delay: 0.25s;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 3rem;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--clr-background);
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        gap: 1.5rem;
        z-index: 105;
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        padding: var(--spacing-xl) 0;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

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

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}