/* ===========================================
   Professor Tony - Premium Design System
   Inspired by Apple's obsessive attention to detail
   =========================================== */

/* Custom Properties */
:root {
    /* Colors - Refined, sophisticated palette */
    --ink: #1d1d1f;
    --ink-secondary: #424245;
    --ink-tertiary: #86868b;
    --paper: #fbfbfd;
    --paper-elevated: #ffffff;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-warm: #bf4800;
    --accent-warm-soft: rgba(191, 72, 0, 0.08);
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Typography Scale - Perfect ratios */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Transitions - Natural feeling */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;

    /* Layout */
    --nav-height: 48px;
    --container-max: 980px;
    --container-wide: 1120px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + var(--space-8));
    -webkit-text-size-adjust: 100%;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    font-size: var(--text-base);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.015em;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Subtle grain texture - barely perceptible */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.015;
    pointer-events: none;
    z-index: 10000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===========================================
   Typography - The soul of design
   =========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-optical-sizing: auto;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
}

.display-large {
    font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.02;
}

.display-medium {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.headline {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.2;
}

.title {
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.body-large {
    font-size: var(--text-lg);
    line-height: 1.5;
    letter-spacing: -0.014em;
}

.body {
    font-size: var(--text-base);
    line-height: 1.5;
    letter-spacing: -0.011em;
}

.caption {
    font-size: var(--text-sm);
    line-height: 1.42;
    letter-spacing: -0.008em;
}

.overline {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-tertiary);
}

/* Text colors */
.text-secondary { color: var(--ink-secondary); }
.text-tertiary { color: var(--ink-tertiary); }
.text-accent { color: var(--accent); }

/* ===========================================
   Apple-Style Navigation
   =========================================== */

.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: var(--nav-height);
    transition: background var(--duration-normal) var(--ease-out),
                backdrop-filter var(--duration-normal) var(--ease-out);
}

.nav-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.nav-wrapper.scrolled::before {
    opacity: 1;
}

.nav-wrapper.scrolled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.main-nav {
    position: relative;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--ink);
    transition: opacity var(--duration-fast) var(--ease-out);
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-logo-mark {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--ink) 0%, #434345 100%);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    flex-shrink: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--space-2);
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link svg {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: transform var(--duration-fast) var(--ease-out);
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Dropdown - Refined */
.nav-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 260px;
    background: var(--paper-elevated);
    border-radius: 12px;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--duration-fast) var(--ease-out);
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.dropdown-item-title {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 2px;
}

.dropdown-item-desc {
    font-size: var(--text-xs);
    color: var(--ink-tertiary);
    line-height: 1.4;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-2) var(--space-4);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10001;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    margin: 4px auto;
    border-radius: 1px;
    transition: all var(--duration-normal) var(--ease-out);
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        background: var(--paper);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-2);
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration-normal) var(--ease-out);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: var(--text-xl);
        padding: var(--space-4);
    }

    .nav-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        min-width: auto;
        padding: 0 var(--space-4);
        opacity: 1;
        visibility: visible;
    }

    .nav-item:hover .nav-dropdown {
        transform: none;
    }
}

/* Nav spacer */
.nav-spacer {
    height: var(--nav-height);
}

/* ===========================================
   Layout
   =========================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ===========================================
   Page Header (Subpages)
   =========================================== */

.page-header {
    padding: var(--space-10) 0 var(--space-6);
    border-bottom: 1px solid var(--border);
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-mark {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-tertiary);
}

.course-tag {
    font-size: var(--text-sm);
    color: var(--ink-tertiary);
}

/* ===========================================
   Hero Section - Make it breathe
   =========================================== */

.hero {
    padding: var(--space-24) 0 var(--space-20);
    border-bottom: 1px solid var(--border);
}

.hero-home {
    padding: var(--space-32) 0;
    min-height: calc(100vh - var(--nav-height) - var(--space-32));
    display: flex;
    align-items: center;
    text-align: center;
    border-bottom: none;
}

.hero-home .container {
    max-width: 800px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.hero-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-warm);
    border-radius: 50%;
}

.hero-label span,
.hero-label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-warm);
}

.hero h1 {
    margin-bottom: var(--space-6);
}

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

.hero-intro {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--ink-secondary);
    max-width: 600px;
}

.hero-home .hero-intro {
    margin: 0 auto var(--space-10);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================================
   Buttons - Refined interactions
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    min-height: 44px;
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 400;
    text-decoration: none;
    border-radius: 980px;
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.btn svg {
    width: 14px;
    height: 14px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover svg {
    transform: translateX(2px);
}

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

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
}

.btn-secondary:hover {
    background: rgba(0, 113, 227, 0.08);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.btn-outline:hover {
    background: var(--ink);
    color: white;
    box-shadow: none;
}

.btn-linkedin {
    background: #0a66c2;
    color: white;
}

.btn-linkedin:hover {
    background: #004182;
}

/* ===========================================
   Sections
   =========================================== */

section {
    padding: var(--space-24) 0;
}

section + section {
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: var(--space-12);
    text-align: center;
}

.section-number {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-tertiary);
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.section-intro {
    font-size: var(--text-lg);
    color: var(--ink-secondary);
    max-width: 600px;
    margin: var(--space-4) auto 0;
    text-align: center;
    line-height: 1.6;
}

/* ===========================================
   Course Cards - Premium feel
   =========================================== */

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.course-card {
    background: var(--paper-elevated);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-slow) var(--ease-out);
}

.course-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-xl);
}

.course-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--ink) 0%, #434345 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.course-card-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform var(--duration-slow) var(--ease-out);
}

.course-card:hover .course-card-icon {
    transform: scale(1.1);
}

.course-card-icon svg {
    width: 32px;
    height: 32px;
}

.course-card-content {
    padding: var(--space-8);
}

.course-card-institution {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-tertiary);
    margin-bottom: var(--space-3);
}

.course-card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.course-card-desc {
    font-size: var(--text-sm);
    color: var(--ink-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-6);
}

.course-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
}

.course-card-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.course-card:hover .course-card-link svg {
    transform: translateX(4px);
}

/* ===========================================
   Resource Cards
   =========================================== */

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.resource-card {
    background: var(--paper-elevated);
    border-radius: 16px;
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-slow) var(--ease-out);
    position: relative;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-warm) 0%, #e85d04 100%);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.card-badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: var(--space-1) var(--space-3);
    background: var(--accent-warm-soft);
    color: var(--accent-warm);
    border-radius: 100px;
    margin-bottom: var(--space-5);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.card-description {
    font-size: var(--text-sm);
    color: var(--ink-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--ink-tertiary);
    margin-bottom: var(--space-5);
}

.card-meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* ===========================================
   About Section
   =========================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
}

.about-image-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    color: var(--ink-tertiary);
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.about-content h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-6);
}

.about-content h2 strong {
    background: linear-gradient(135deg, var(--accent) 0%, #40a9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    font-size: var(--text-base);
    color: var(--ink-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.about-stats {
    display: flex;
    gap: var(--space-10);
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

.stat-number {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--ink-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===========================================
   Certification Layout
   =========================================== */

.cert-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
    align-items: start;
}

@media (max-width: 768px) {
    .cert-layout {
        grid-template-columns: 1fr;
    }
}

.cert-intro h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.cert-intro h3 strong {
    background: linear-gradient(135deg, var(--accent) 0%, #40a9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cert-intro p {
    font-size: var(--text-base);
    color: var(--ink-secondary);
    line-height: 1.6;
}

.cert-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.step-card {
    background: var(--paper-elevated);
    border-radius: 16px;
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-indicator {
    position: absolute;
    top: calc(-1 * var(--space-3));
    left: var(--space-6);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #0d7c5c 0%, #10b981 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
}

.step-title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--ink-secondary);
}

.checklist li::before {
    content: '\2713';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: rgba(13, 124, 92, 0.1);
    color: #0d7c5c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.skill-tag {
    font-size: var(--text-xs);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    background: rgba(0, 113, 227, 0.08);
    color: var(--accent);
    border-radius: 6px;
}

/* ===========================================
   Pro Tip Box
   =========================================== */

.pro-tip {
    background: linear-gradient(135deg, var(--ink) 0%, #2c2c2e 100%);
    border-radius: 20px;
    padding: var(--space-10);
    margin-top: var(--space-10);
    position: relative;
    overflow: hidden;
}

.pro-tip::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(191, 72, 0, 0.15) 0%, transparent 70%);
}

.pro-tip-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: var(--space-4);
}

.pro-tip-label svg {
    width: 14px;
    height: 14px;
}

.pro-tip h4 {
    font-size: var(--text-xl);
    color: white;
    margin-bottom: var(--space-4);
}

.pro-tip p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 600px;
}

.example-post {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: var(--space-5);
    margin-top: var(--space-5);
    border-left: 3px solid var(--accent-warm);
}

.example-post p {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

/* ===========================================
   Footer
   =========================================== */

footer {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.footer-nav {
    display: flex;
    gap: var(--space-8);
    list-style: none;
}

.footer-nav a {
    font-size: var(--text-sm);
    color: var(--ink-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-nav a:hover {
    color: var(--ink);
}

.footer-text {
    font-size: var(--text-xs);
    color: var(--ink-tertiary);
}

.footer-text span {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--border-strong);
    border-radius: 50%;
    vertical-align: middle;
    margin: 0 var(--space-3);
}

/* ===========================================
   Animations - Subtle reveal on scroll
   =========================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--duration-slow) var(--ease-out);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration-slow) var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 500ms; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    :root {
        --space-24: 4rem;
        --space-32: 5rem;
    }

    .hero-home {
        text-align: left;
        min-height: auto;
        padding: var(--space-16) 0;
    }

    .hero-home .hero-intro {
        margin: 0 0 var(--space-8);
    }

    .hero-cta {
        justify-content: flex-start;
    }

    .section-header {
        text-align: left;
    }

    .section-intro {
        margin-left: 0;
        text-align: left;
    }

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

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

    .about-stats {
        gap: var(--space-6);
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4) var(--space-6);
    }
}

/* ===========================================
   Utility Classes
   =========================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===========================================
   Dark Mode
   =========================================== */

/* Dark mode toggle button */
.theme-toggle {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--space-2);
    transition: background var(--duration-fast) var(--ease-out);
    color: var(--ink);
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform var(--duration-normal) var(--ease-out);
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

/* Dark mode colors */
[data-theme="dark"] {
    --ink: #f5f5f7;
    --ink-secondary: #a1a1a6;
    --ink-tertiary: #6e6e73;
    --paper: #000000;
    --paper-elevated: #1c1c1e;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

[data-theme="dark"] body::before {
    opacity: 0.03;
}

[data-theme="dark"] .nav-wrapper::before {
    background: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .nav-logo-mark {
    background: linear-gradient(135deg, #f5f5f7 0%, #a1a1a6 100%);
    color: #000;
}

[data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(0, 113, 227, 0.15);
}

[data-theme="dark"] .btn-outline {
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
}

[data-theme="dark"] .course-card-image {
    background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%);
}

[data-theme="dark"] .about-image-placeholder {
    background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .pro-tip {
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    box-shadow: var(--shadow-lg);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ink: #f5f5f7;
        --ink-secondary: #a1a1a6;
        --ink-tertiary: #6e6e73;
        --paper: #000000;
        --paper-elevated: #1c1c1e;
        --border: rgba(255, 255, 255, 0.1);
        --border-strong: rgba(255, 255, 255, 0.15);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
        --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    }
}

/* ===========================================
   Testimonials Section
   =========================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.testimonial-card {
    background: var(--paper-elevated);
    border-radius: 16px;
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-4);
    left: var(--space-6);
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-text {
    font-size: var(--text-base);
    color: var(--ink-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, #40a9ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: var(--text-sm);
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: var(--text-xs);
    color: var(--ink-tertiary);
}

/* ===========================================
   Resources Page
   =========================================== */

.resources-hero {
    padding: var(--space-16) 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.resources-hero h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.resources-hero p {
    font-size: var(--text-lg);
    color: var(--ink-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.resource-category {
    margin-bottom: var(--space-4);
}

.resource-category-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.resource-category-title svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.download-card {
    background: var(--paper-elevated);
    border-radius: 16px;
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--space-5);
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    color: inherit;
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent) 0%, #40a9ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.download-icon.pdf { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); }
.download-icon.doc { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); }
.download-icon.sheet { background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%); }
.download-icon.link { background: linear-gradient(135deg, var(--accent-warm) 0%, #f97316 100%); }

.download-content {
    flex: 1;
    min-width: 0;
}

.download-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-1);
}

.download-desc {
    font-size: var(--text-sm);
    color: var(--ink-secondary);
    line-height: 1.5;
}

.download-meta {
    font-size: var(--text-xs);
    color: var(--ink-tertiary);
    margin-top: var(--space-2);
}

.download-arrow {
    width: 20px;
    height: 20px;
    color: var(--ink-tertiary);
    transition: transform var(--duration-fast) var(--ease-out);
}

.download-card:hover .download-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-5);
}

/* ===========================================
   404 Page
   =========================================== */

.error-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-8);
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
}

.error-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.error-description {
    font-size: var(--text-base);
    color: var(--ink-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

/* ===========================================
   Contact Form Styles
   =========================================== */

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.contact-card {
    background: var(--paper-elevated);
    border-radius: 16px;
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent) 0%, #40a9ff 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-card h4 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.contact-card p {
    font-size: var(--text-sm);
    color: var(--ink-secondary);
    line-height: 1.5;
}

.contact-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ===========================================
   Stats/Metrics Section
   =========================================== */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: var(--space-12) 0;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.metric-item {
    text-align: center;
}

.metric-value {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.metric-value span {
    background: linear-gradient(135deg, var(--accent) 0%, #40a9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: var(--text-sm);
    color: var(--ink-tertiary);
}

/* ===========================================
   Social Links
   =========================================== */

.social-links {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-6);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--paper-elevated);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-secondary);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* ===========================================
   Newsletter Signup
   =========================================== */

.newsletter-section {
    background: linear-gradient(135deg, var(--ink) 0%, #2c2c2e 100%);
    border-radius: 24px;
    padding: var(--space-12);
    text-align: center;
    margin: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.2) 0%, transparent 70%);
}

.newsletter-section h3 {
    font-size: var(--text-2xl);
    color: white;
    margin-bottom: var(--space-3);
    position: relative;
}

.newsletter-section p {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-8);
    position: relative;
}

.newsletter-form {
    display: flex;
    gap: var(--space-3);
    max-width: 450px;
    margin: 0 auto;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-4) var(--space-5);
    border: none;
    border-radius: 980px;
    font-family: inherit;
    font-size: var(--text-base);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: background var(--duration-fast) var(--ease-out);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: var(--space-4) var(--space-6);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 980px;
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--accent-hover);
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* ===========================================
   AI Comparison Table
   =========================================== */

.ai-comparison-table-wrapper {
    overflow-x: auto;
    margin: var(--space-10) 0;
    border-radius: 16px;
    background: var(--paper-elevated);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.ai-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    min-width: 700px;
}

.ai-comparison-table thead {
    background: var(--paper);
    border-bottom: 1px solid var(--border-strong);
}

.ai-comparison-table th {
    padding: var(--space-4) var(--space-5);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-secondary);
    text-align: center;
    white-space: nowrap;
}

.ai-comparison-table th.task-column {
    text-align: left;
    min-width: 180px;
}

.ai-comparison-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--duration-fast) var(--ease-out);
}

.ai-comparison-table tbody tr:last-child {
    border-bottom: none;
}

.ai-comparison-table tbody tr:hover {
    background: rgba(0, 113, 227, 0.03);
}

.ai-comparison-table td {
    padding: var(--space-4) var(--space-5);
    text-align: center;
    color: var(--ink-tertiary);
    font-weight: 500;
}

.ai-comparison-table td.task-column {
    text-align: left;
    color: var(--ink);
    font-weight: 500;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
    font-size: 14px;
    font-weight: 700;
}

.check-icon.best {
    background: #34c759;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
}

.table-legend {
    display: flex;
    gap: var(--space-8);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--ink-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.legend-item .check-icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
}

/* Dark mode support for comparison table */
[data-theme="dark"] .ai-comparison-table-wrapper {
    background: var(--paper-elevated);
    border-color: var(--border);
}

[data-theme="dark"] .ai-comparison-table thead {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .ai-comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .check-icon {
    background: rgba(52, 199, 89, 0.2);
}

[data-theme="dark"] .check-icon.best {
    background: #34c759;
}

@media (max-width: 768px) {
    .ai-comparison-table th,
    .ai-comparison-table td {
        padding: var(--space-3) var(--space-3);
        font-size: var(--text-xs);
    }

    .ai-comparison-table th.task-column {
        min-width: 140px;
    }

    .check-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .table-legend {
        gap: var(--space-4);
        font-size: var(--text-xs);
    }
}

/* ===========================================
   Steve Jobs Approved - Premium Enhancements
   Obsessive attention to every pixel
   =========================================== */

/* Custom Selection - Refined brand color */
::selection {
    background: rgba(0, 113, 227, 0.2);
    color: inherit;
}

::-moz-selection {
    background: rgba(0, 113, 227, 0.2);
    color: inherit;
}

/* Focus States - Accessible yet beautiful */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.nav-link:focus-visible {
    outline-offset: 6px;
    border-radius: 8px;
}

.course-card:focus-visible,
.resource-card:focus-visible {
    outline-offset: 4px;
    border-radius: 20px;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

/* Dark mode focus adjustments */
[data-theme="dark"] :focus-visible {
    outline-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.25);
}

/* Link Hover Animations - Subtle underline reveal */
.animated-link {
    position: relative;
    text-decoration: none;
    color: var(--accent);
}

.animated-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out);
}

.animated-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Button Interactions - Subtle feedback */
.btn {
    transition: transform 0.15s var(--ease-out),
                box-shadow 0.15s var(--ease-out),
                background 0.15s var(--ease-out);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    box-shadow: 0 1px 2px rgba(0, 113, 227, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

/* Refined Input Fields */
input, textarea, select {
    transition: border-color 0.2s var(--ease-out),
                box-shadow 0.2s var(--ease-out),
                background 0.2s var(--ease-out);
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

/* Glassmorphism Enhancement */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .glass {
    background: rgba(28, 28, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Refined Shadows - Layered depth */
.shadow-depth-1 {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
                0 2px 4px rgba(0, 0, 0, 0.04),
                0 4px 8px rgba(0, 0, 0, 0.04);
}

.shadow-depth-2 {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04),
                0 4px 8px rgba(0, 0, 0, 0.04),
                0 8px 16px rgba(0, 0, 0, 0.04),
                0 16px 32px rgba(0, 0, 0, 0.04);
}

.shadow-depth-3 {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04),
                0 8px 16px rgba(0, 0, 0, 0.04),
                0 16px 32px rgba(0, 0, 0, 0.04),
                0 32px 64px rgba(0, 0, 0, 0.08);
}

/* Scroll-triggered Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Intersection Observer Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out),
                transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s var(--ease-out),
                transform 0.6s var(--ease-out);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for children */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.15s; }
.stagger > *:nth-child(4) { transition-delay: 0.2s; }
.stagger > *:nth-child(5) { transition-delay: 0.25s; }
.stagger > *:nth-child(6) { transition-delay: 0.3s; }

/* Refined Course Card Hover */
.course-card {
    transform: translateY(0);
    transition: transform 0.4s var(--ease-out),
                box-shadow 0.4s var(--ease-out);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08),
                0 4px 10px rgba(0, 0, 0, 0.04);
}

/* Resource Card Hover */
.resource-card {
    transition: transform 0.3s var(--ease-out),
                box-shadow 0.3s var(--ease-out);
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Download Card Hover */
.download-card {
    transition: transform 0.25s var(--ease-out),
                box-shadow 0.25s var(--ease-out);
}

.download-card:hover {
    box-shadow: var(--shadow-md);
}

/* Refined Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 10px;
    border: 3px solid var(--paper);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ink-tertiary);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

/* Hero Section Entrance Animations - Dramatic Staggered Reveals */
.hero-home .hero-label {
    opacity: 0;
    animation: heroLabelReveal 0.8s var(--ease-out) 0.2s forwards;
}

@keyframes heroLabelReveal {
    from {
        opacity: 0;
        letter-spacing: 0.2em;
    }
    to {
        opacity: 1;
        letter-spacing: 0.08em;
    }
}

.hero-home h1 {
    opacity: 0;
    animation: heroTitleReveal 1.2s var(--ease-out) 0.4s forwards;
}

@keyframes heroTitleReveal {
    from {
        opacity: 0;
        transform: translateY(60px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-home .hero-intro {
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.7s forwards;
}

.hero-home .hero-cta {
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.9s forwards;
}

/* Pro Tip Box */
.pro-tip {
    transition: box-shadow 0.3s var(--ease-out);
}

.pro-tip:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Contact Card Hover */
.contact-card {
    transition: transform 0.25s var(--ease-out);
}

.contact-card:hover {
    transform: translateY(-2px);
}

/* Social Link Hover */
.social-link {
    transition: transform 0.2s var(--ease-out),
                background 0.2s var(--ease-out);
}

.social-link:hover {
    transform: translateY(-2px);
}

/* Footer Link Hover */
.footer-nav a {
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--ink);
    transition: width 0.3s var(--ease-out);
}

.footer-nav a:hover::after {
    width: 100%;
}

/* Semantic variables for theming */
:root {
    --surface-primary: var(--paper);
    --surface-secondary: #f5f5f7;
    --surface-tertiary: #e8e8ed;
    --ink-primary: var(--ink);
    --accent-primary: var(--accent);
    --border-primary: var(--border);
    --border-secondary: var(--border-strong);
}

[data-theme="dark"] {
    --surface-primary: #000000;
    --surface-secondary: #1c1c1e;
    --surface-tertiary: #2c2c2e;
    --ink-primary: #f5f5f7;
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.15);
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    .nav-wrapper,
    .theme-toggle,
    footer,
    .btn,
    .social-links,
    .newsletter-section {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1 { font-size: 24pt; }
    h2 { font-size: 18pt; }
    h3 { font-size: 14pt; }

    a {
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* Site Footer Styles - Enhanced */
.site-footer {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border);
    background: var(--surface-secondary);
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-4);
}

.footer-brand p {
    font-size: var(--text-sm);
    color: var(--ink-tertiary);
    max-width: 300px;
    margin: 0 auto;
}

.footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--ink-tertiary);
}

/* ===========================================
   Atmospheric Visual Enhancements
   =========================================== */

/* Hero Gradient Orbs - Subtle atmospheric background */
.hero-home {
    position: relative;
    overflow: hidden;
}

.hero-home::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.hero-home::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(191, 72, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Testimonials Section Styling */
.testimonials-section {
    position: relative;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Search Input Focus State */
#resource-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    background: var(--paper-elevated);
}

/* Filter Tag Hover States */
.filter-tag:hover:not(.active) {
    background: var(--surface-tertiary) !important;
    border-color: var(--border-strong);
}

/* Keyboard Shortcut Hint */
#resource-search::placeholder {
    color: var(--ink-tertiary);
}

/* Dark mode atmospheric adjustments */
[data-theme="dark"] .hero-home::before {
    background: radial-gradient(circle, rgba(0, 113, 227, 0.12) 0%, transparent 70%);
}

[data-theme="dark"] .hero-home::after {
    background: radial-gradient(circle, rgba(191, 72, 0, 0.1) 0%, transparent 70%);
}

/* Section Number Styling Enhancement */
.section-number {
    font-family: 'Fraunces', Georgia, serif;
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--accent-warm);
    opacity: 0.7;
}

/* ===========================================
   Custom Cursor - Blend mode spotlight effect
   =========================================== */

.custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease-out),
                height 0.2s var(--ease-out),
                background 0.2s var(--ease-out),
                opacity 0.2s var(--ease-out),
                border-radius 0.2s var(--ease-out);
    mix-blend-mode: difference;
    opacity: 0;
}

.custom-cursor.visible {
    opacity: 1;
}

.custom-cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1.5px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease-out),
                height 0.35s var(--ease-out),
                border-color 0.2s var(--ease-out),
                opacity 0.25s var(--ease-out),
                border-width 0.2s var(--ease-out);
    mix-blend-mode: difference;
    opacity: 0;
}

.custom-cursor-ring.visible {
    opacity: 0.5;
}

/* Hovering on interactive elements - expands dramatically */
.custom-cursor.hovering {
    width: 60px;
    height: 60px;
}

.custom-cursor-ring.hovering {
    width: 70px;
    height: 70px;
    opacity: 0;
}

/* Text hover state - transforms to I-beam */
.custom-cursor.text-hover {
    width: 3px;
    height: 20px;
    border-radius: 2px;
    background: var(--accent);
    mix-blend-mode: normal;
}

.custom-cursor-ring.text-hover {
    opacity: 0;
}

/* Click state - compress effect */
.custom-cursor.clicking {
    width: 50px;
    height: 50px;
}

.custom-cursor-ring.clicking {
    width: 35px;
    height: 35px;
    opacity: 0.8;
}

/* Hide custom cursor on touch devices and small screens */
@media (hover: none), (max-width: 768px) {
    .custom-cursor,
    .custom-cursor-ring {
        display: none !important;
    }
}

/* ===========================================
   Magnetic Buttons - Subtle attraction effect
   =========================================== */

.btn-magnetic {
    position: relative;
    transition: transform 0.3s var(--ease-out);
}

.btn-magnetic .btn-text {
    display: inline-block;
    transition: transform 0.3s var(--ease-out);
}

/* Magnetic button enhanced hover */
.btn-magnetic:hover {
    z-index: 10;
}

/* CTA buttons get magnetic effect */
.hero-cta .btn,
.btn-primary,
.btn-outline {
    position: relative;
    overflow: visible;
}

/* Button glow on hover */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--accent);
    border-radius: inherit;
    opacity: 0;
    filter: blur(12px);
    z-index: -1;
    transition: opacity 0.3s var(--ease-out);
}

.btn-primary:hover::after {
    opacity: 0.25;
}

/* ===========================================
   Skeleton Loading States
   =========================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--surface-secondary) 0%,
        var(--surface-tertiary) 50%,
        var(--surface-secondary) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
}

.skeleton-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.skeleton-card {
    padding: var(--space-6);
    background: var(--paper-elevated);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.skeleton-image {
    height: 200px;
    border-radius: 12px;
    margin-bottom: var(--space-4);
}

/* ===========================================
   Page Transitions
   =========================================== */

.page-transition {
    position: fixed;
    inset: 0;
    background: var(--paper);
    z-index: 100000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* Content fade in on page load */
.page-content {
    animation: pageEnter 0.6s var(--ease-out) forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Exit animation class */
.page-exit {
    animation: pageExit 0.3s var(--ease-out) forwards;
}

@keyframes pageExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ===========================================
   Animated Icons - Hover effects
   =========================================== */

.icon-animated {
    transition: transform 0.3s var(--ease-out);
}

/* Arrow icons - slide right on hover */
.icon-arrow {
    transition: transform 0.2s var(--ease-out);
}

a:hover .icon-arrow,
button:hover .icon-arrow {
    transform: translateX(4px);
}

/* Download icon - bounce down */
.icon-download {
    transition: transform 0.2s var(--ease-out);
}

a:hover .icon-download,
button:hover .icon-download {
    animation: iconBounce 0.4s var(--ease-out);
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* External link icon - diagonal move */
.icon-external {
    transition: transform 0.2s var(--ease-out);
}

a:hover .icon-external {
    transform: translate(2px, -2px);
}

/* Rotate icons on hover */
.icon-rotate {
    transition: transform 0.4s var(--ease-out);
}

a:hover .icon-rotate,
button:hover .icon-rotate {
    transform: rotate(90deg);
}

/* Pulse effect for notification icons */
.icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Theme toggle icon rotation */
.theme-toggle:hover .icon-moon,
.theme-toggle:hover .icon-sun {
    transform: rotate(20deg);
}

/* Nav dropdown chevron */
.nav-link svg {
    transition: transform 0.2s var(--ease-out);
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Social link icons */
.social-link svg {
    transition: transform 0.2s var(--ease-out);
}

.social-link:hover svg {
    transform: scale(1.15);
}

/* Course card arrow animation */
.course-card-link svg {
    transition: transform 0.3s var(--ease-out);
}

.course-card:hover .course-card-link svg {
    transform: translateX(6px);
}

/* Download card arrow */
.download-card .download-arrow {
    transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.download-card:hover .download-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* ===========================================
   Easter Egg Styles
   =========================================== */

.konami-activated {
    animation: konamiCelebrate 1s var(--ease-out);
}

@keyframes konamiCelebrate {
    0% { filter: hue-rotate(0deg); }
    25% { filter: hue-rotate(90deg); }
    50% { filter: hue-rotate(180deg); }
    75% { filter: hue-rotate(270deg); }
    100% { filter: hue-rotate(360deg); }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 100001;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Secret hover state */
.nav-logo-mark {
    transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.nav-logo-mark:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Logo click counter visual feedback */
.nav-logo-mark.clicked {
    animation: logoClick 0.3s var(--ease-out);
}

@keyframes logoClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ===========================================
   Back to Top Button
   =========================================== */

.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 48px;
    height: 48px;
    background: var(--paper-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s var(--ease-out),
                visibility 0.3s var(--ease-out),
                transform 0.3s var(--ease-out),
                background 0.2s var(--ease-out),
                box-shadow 0.2s var(--ease-out);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.back-to-top:hover svg {
    color: white;
}

.back-to-top:active {
    transform: scale(0.95);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    color: var(--ink);
    transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: var(--space-6);
        right: var(--space-6);
        width: 44px;
        height: 44px;
    }
}

/* ===========================================
   Skip to Main Content Link (Accessibility)
   =========================================== */

.skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: 0 0 12px 12px;
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    z-index: 100001;
    transition: top 0.2s var(--ease-out);
    box-shadow: var(--shadow-lg);
}

.skip-link:focus {
    top: 0;
    outline: none;
}

[data-theme="dark"] .skip-link {
    background: var(--paper-elevated);
    color: var(--ink);
    border: 1px solid var(--border);
}

/* ===========================================
   Print Stylesheet - Clean, readable output
   =========================================== */

@media print {
    /* Reset colors for print */
    :root {
        --ink: #000;
        --ink-secondary: #333;
        --ink-tertiary: #666;
        --paper: #fff;
        --paper-elevated: #fff;
        --accent: #000;
    }

    /* Hide non-essential elements */
    .nav-wrapper,
    .nav-spacer,
    footer,
    .back-to-top,
    .skip-link,
    .custom-cursor,
    .custom-cursor-ring,
    .theme-toggle,
    .newsletter-section,
    .hero-cta,
    .social-links,
    .testimonials-section,
    body::before {
        display: none !important;
    }

    /* Reset body styles */
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }

    /* Improve text readability */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black;
    }

    p, li, blockquote {
        orphans: 3;
        widows: 3;
    }

    /* Show URLs after links */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }

    a[href^="#"]::after {
        content: "";
    }

    /* Cards print nicely */
    .course-card,
    .resource-card,
    .contact-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Page margins */
    @page {
        margin: 2cm;
    }

    /* Main content full width */
    main {
        padding: 0 !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Hero simpler for print */
    .hero {
        padding: 1cm 0;
        min-height: auto;
    }

    .hero-orb,
    .hero-shapes {
        display: none;
    }
}
