/* ========================================
   TYPOGRAPHY - Enhanced with Dynamic Effects
   ======================================== */

/* Import Modern Font */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600&display=swap');

/* Keyframe Animations */
@keyframes breatheIn {
    from {
        opacity: 0;
        letter-spacing: 0.2em;
    }
    to {
        opacity: 1;
        letter-spacing: 0.05em;
    }
}

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

@keyframes expandLine {
    to {
        width: 100%;
    }
}

/* Base Heading Styles */
h1, h2, h3, h4 {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    color: var(--color-primary-olive);
}

/* H1 - Hero Headlines with Gradient & Animation */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;

    /* Gradient text effect */
    background: linear-gradient(135deg, #5E7D64 0%, #E6B85F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* Subtle depth */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
                 2px 2px 4px rgba(0, 0, 0, 0.05);

    /* Breathing animation on load */
    animation: breatheIn 1.2s ease-out;
}

/* Animated underline for H1 */
h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: #5E7D64;
    animation: expandLine 1s ease-out 0.3s forwards;
}

/* H2 - Section Headers with Subtle Effects */
h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    animation: fadeScaleIn 0.8s ease-out;
}

/* H3 - Subsection Headers */
h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    animation: fadeScaleIn 0.8s ease-out 0.2s both;
}

/* Paragraph - Enhanced Readability */
p {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

/* Animated Content Text */
.content-text {
    animation: fadeScaleIn 0.8s ease-out;
}

/* Section Titles */
.section-title {
    margin-bottom: var(--spacing-md);
}

/* Section Subtitles with Animation */
.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-top: calc(-1 * var(--spacing-sm));
    margin-bottom: var(--spacing-lg);
    animation: fadeScaleIn 0.8s ease-out 0.3s both;
}

/* Hero Heading Variation (no underline) */
.hero-title {
    position: relative;
    display: block;
}

.hero-title::after {
    display: none;
}

/* Scroll-triggered Animation Classes (add via IntersectionObserver) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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