/**
 * Developer Story - Landing Design System
 * Long-form storytelling with editorial design
 */

/* ==========================================================================
   Design System Variables
   ========================================================================== */

.about-developer-page {
    /* Colors - Primary Palette */
    --color-primary: #6366F1;
    --color-primary-light: #818CF8;
    --color-secondary: #8B5CF6;
    --color-accent: #22D3EE;

    /* Colors - Backgrounds */
    --color-bg-primary: #0F0D1A;
    --color-bg-secondary: #1E1B4B;
    --color-bg-surface: rgba(255, 255, 255, 0.05);
    --color-bg-surface-hover: rgba(255, 255, 255, 0.08);

    /* Colors - Text */
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #A5B4FC;
    --color-text-muted: rgba(255, 255, 255, 0.6);

    /* Colors - Borders */
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(255, 255, 255, 0.2);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --gradient-surface: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Apply base styles */
    font-family: var(--font-family);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    min-height: 100vh;
}

/* ==========================================================================
   Article Container
   ========================================================================== */

.about-developer-page .developer-story {
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    min-height: 100vh;
}

/* ==========================================================================
   Hero Section - Photo + Intro
   ========================================================================== */

.about-developer-page .story-hero {
    padding: calc(var(--space-3xl) + 80px) 0 var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.about-developer-page .story-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.about-developer-page .story-hero .hero-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Photo */
.about-developer-page .story-hero .hero-photo {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        var(--shadow-lg),
        0 0 60px rgba(99, 102, 241, 0.2);
    border: 3px solid rgba(99, 102, 241, 0.3);
    position: relative;
}

.about-developer-page .story-hero .hero-photo::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--gradient-primary);
    filter: blur(30px);
    opacity: 0.3;
    z-index: -1;
    border-radius: 50%;
}

.about-developer-page .story-hero .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Text Content */
.about-developer-page .story-hero .hero-text {
    flex: 1;
}

.about-developer-page .story-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: about-title-reveal 1s ease-out forwards;
}

@keyframes about-title-reveal {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.about-developer-page .story-hero .lead {
    font-size: 1.25rem;
    line-height: 1.85;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    animation: about-fade-up 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes about-fade-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Author Signature */
.about-developer-page .author-signature {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    animation: about-fade-up 0.8s ease-out 0.5s forwards;
    opacity: 0;
}

.about-developer-page .author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.about-developer-page .author-role {
    font-size: 0.95rem;
    color: var(--color-primary-light);
}

/* ==========================================================================
   Story Content - Chapters
   ========================================================================== */

.about-developer-page .story-content {
    padding: var(--space-2xl) 0;
}

.about-developer-page .story-content .container {
    max-width: 720px;
}

/* Individual Chapter */
.about-developer-page .story-chapter {
    margin-bottom: var(--space-2xl);
}

.about-developer-page .story-chapter h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.about-developer-page .story-chapter p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Pull Quotes - Editorial Style
   ========================================================================== */

.about-developer-page .pull-quote {
    margin: var(--space-2xl) 0;
    padding: var(--space-xl) 0;
    position: relative;
}

.about-developer-page .pull-quote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.about-developer-page .pull-quote blockquote {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text-secondary);
    font-style: italic;
    margin: 0;
    padding-left: var(--space-lg);
}

/* Alternate style - centered */
.about-developer-page .pull-quote.alt {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    background: var(--gradient-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.about-developer-page .pull-quote.alt::before {
    display: none;
}

.about-developer-page .pull-quote.alt blockquote {
    padding-left: 0;
    font-size: 1.35rem;
}

.about-developer-page .pull-quote.alt blockquote::before {
    content: '"';
    display: block;
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Closing Section
   ========================================================================== */

.about-developer-page .story-closing {
    padding: var(--space-3xl) 0;
    position: relative;
}

.about-developer-page .story-closing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.about-developer-page .closing-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-developer-page .closing-text {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    font-style: italic;
}

/* CTA Button */
.about-developer-page .story-closing .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.about-developer-page .story-closing .btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.4);
    color: white;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.about-developer-page .about-animate {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-developer-page .about-animate.is-visible {
    opacity: 1;
}

.about-developer-page .about-animate-up {
    transform: translateY(40px);
}

.about-developer-page .about-animate-up.is-visible {
    transform: translateY(0);
}

.about-developer-page .about-animate-scale {
    transform: scale(0.9);
}

.about-developer-page .about-animate-scale.is-visible {
    transform: scale(1);
}

/* Staggered animations for chapters */
.about-developer-page .story-chapter:nth-child(1) { transition-delay: 0s; }
.about-developer-page .story-chapter:nth-child(2) { transition-delay: 0.1s; }
.about-developer-page .story-chapter:nth-child(3) { transition-delay: 0.15s; }
.about-developer-page .story-chapter:nth-child(4) { transition-delay: 0.2s; }

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

@media (max-width: 992px) {
    .about-developer-page .story-hero {
        padding-top: calc(var(--space-2xl) + 80px);
    }

    .about-developer-page .story-hero .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-xl);
    }

    .about-developer-page .story-hero .hero-photo {
        width: 180px;
        height: 180px;
    }

    .about-developer-page .story-hero h1 {
        font-size: 2.5rem;
    }

    .about-developer-page .story-hero .lead {
        font-size: 1.15rem;
    }

    .about-developer-page .author-signature {
        align-items: center;
    }

    .about-developer-page .story-chapter h2 {
        font-size: 1.5rem;
    }

    .about-developer-page .pull-quote blockquote {
        font-size: 1.3rem;
    }

    .about-developer-page .pull-quote.alt blockquote {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .about-developer-page .story-hero {
        padding: calc(var(--space-xl) + 70px) 0 var(--space-xl) 0;
    }

    .about-developer-page .story-hero .hero-photo {
        width: 150px;
        height: 150px;
    }

    .about-developer-page .story-hero h1 {
        font-size: 2rem;
    }

    .about-developer-page .story-hero .lead {
        font-size: 1.05rem;
    }

    .about-developer-page .story-content {
        padding: var(--space-xl) 0;
    }

    .about-developer-page .story-chapter {
        margin-bottom: var(--space-xl);
    }

    .about-developer-page .story-chapter h2 {
        font-size: 1.35rem;
    }

    .about-developer-page .story-chapter p {
        font-size: 1.05rem;
    }

    .about-developer-page .pull-quote {
        margin: var(--space-xl) 0;
        padding: var(--space-md) 0;
    }

    .about-developer-page .pull-quote blockquote {
        font-size: 1.2rem;
        padding-left: var(--space-md);
    }

    .about-developer-page .pull-quote.alt {
        padding: var(--space-lg) var(--space-md);
    }

    .about-developer-page .pull-quote.alt blockquote {
        font-size: 1.1rem;
    }

    .about-developer-page .pull-quote.alt blockquote::before {
        font-size: 3rem;
    }

    .about-developer-page .closing-text {
        font-size: 1.15rem;
    }

    .about-developer-page .story-closing {
        padding: var(--space-xl) 0;
    }
}

@media (max-width: 576px) {
    .about-developer-page .story-hero .hero-photo {
        width: 130px;
        height: 130px;
    }

    .about-developer-page .story-hero h1 {
        font-size: 1.75rem;
    }

    .about-developer-page .story-chapter h2 {
        font-size: 1.25rem;
    }

    .about-developer-page .story-chapter p {
        font-size: 1rem;
    }

    .about-developer-page .pull-quote blockquote {
        font-size: 1.1rem;
    }

    .about-developer-page .closing-text {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .about-developer-page .story-hero h1,
    .about-developer-page .story-hero .lead,
    .about-developer-page .author-signature {
        animation: none;
        opacity: 1;
    }

    .about-developer-page .about-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
