/**
 * Prashant Rana Portfolio — Chapter Styles
 * Per-chapter visual identity: unique lighting, depth, transitions
 */

/* ============ Shared Chapter ============ */
.chapter {
    position: relative;
}

.chapter__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* ============ CH 1: Arrival ============ */
.chapter--arrival {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.chapter--arrival .chapter__bg {
    background: radial-gradient(
        ellipse at 50% 60%,
        rgba(45, 212, 191, 0.06) 0%,
        transparent 60%
    );
}

.hero__greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--c-primary);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.hero__pulse {
    width: 8px;
    height: 8px;
    background: var(--c-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); box-shadow: 0 0 12px var(--c-primary-glow); }
}

.hero__name {
    font-size: var(--fs-hero);
    font-weight: var(--fw-extrabold);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--c-text-primary) 40%, var(--c-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__tagline {
    font-size: var(--fs-h3);
    font-weight: var(--fw-light);
    color: var(--c-text-secondary);
    margin-bottom: var(--space-md);
}

.hero__description {
    font-size: var(--fs-body);
    color: var(--c-text-muted);
    max-width: 640px;
    margin: 0 auto var(--space-xl);
    line-height: var(--lh-relaxed);
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.hero__scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.hero__scroll-text {
    font-size: var(--fs-caption);
    color: var(--c-text-dim);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
}

.hero__scroll-arrow {
    width: 20px;
    height: 20px;
    color: var(--c-text-dim);
    animation: bob 2s ease-in-out infinite;
}

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

/* ============ CH 2: Identity ============ */
.chapter--identity .chapter__bg {
    background: radial-gradient(
        ellipse at 30% 50%,
        rgba(45, 212, 191, 0.05) 0%,
        transparent 50%
    );
}

.identity-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: center;
}

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

.identity__avatar {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.identity__avatar-ring {
    position: absolute;
    inset: -12px;
    border: 2px solid var(--c-primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: ring-rotate 20s linear infinite;
}

@keyframes ring-rotate {
    to { transform: rotate(360deg); }
}

.identity__avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-surface-raised), var(--c-surface-overlay));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.identity__avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.identity__roles {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

@media (max-width: 768px) {
    .identity__roles {
        justify-content: center;
    }
}

.identity__about {
    font-size: var(--fs-body);
    color: var(--c-text-muted);
    line-height: var(--lh-relaxed);
    margin-top: var(--space-xl);
}

.identity__highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

@media (max-width: 480px) {
    .identity__highlights {
        grid-template-columns: 1fr;
    }
}

.identity__highlight {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--c-primary-subtle);
    border: 1px solid rgba(45, 212, 191, 0.08);
}

.identity__highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.identity__highlight-text {
    font-size: var(--fs-small);
    color: var(--c-text-secondary);
}

/* ============ CH 3: Journey (Experience Timeline) ============ */
.chapter--journey .chapter__bg {
    background: radial-gradient(
        ellipse at 70% 40%,
        rgba(245, 158, 11, 0.04) 0%,
        transparent 50%
    );
}

/* ============ CH 4: AI & Automation ============ */
.chapter--ai .chapter__bg {
    background: radial-gradient(
        ellipse at 40% 50%,
        rgba(45, 212, 191, 0.06) 0%,
        transparent 55%
    );
}

.expertise-scene {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

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

.expertise-scene__visual {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    background: var(--c-surface-raised);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.expertise-scene__visual-icon {
    font-size: 6rem;
    opacity: 0.6;
}

.expertise-scene__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* ============ CH 5: Digital Marketing ============ */
.chapter--marketing .chapter__bg {
    background: radial-gradient(
        ellipse at 60% 50%,
        rgba(245, 158, 11, 0.05) 0%,
        transparent 55%
    );
}

/* ============ CH 6: Hospitality Technology ============ */
.chapter--hospitality .chapter__bg {
    background: radial-gradient(
        ellipse at 50% 60%,
        rgba(34, 197, 94, 0.04) 0%,
        transparent 55%
    );
}

/* ============ CH 7: Projects ============ */
.chapter--projects .chapter__bg {
    background: radial-gradient(
        ellipse at 50% 30%,
        rgba(129, 140, 248, 0.04) 0%,
        transparent 50%
    );
}

/* ============ CH 8: Skills Constellation ============ */
.chapter--skills .chapter__bg {
    background: radial-gradient(
        ellipse at 50% 50%,
        rgba(45, 212, 191, 0.04) 0%,
        transparent 60%
    );
}

/* ============ CH 9: Credentials ============ */
.chapter--credentials .chapter__bg {
    background: radial-gradient(
        ellipse at 40% 60%,
        rgba(129, 140, 248, 0.04) 0%,
        transparent 50%
    );
}

/* ============ CH 10: Testimonials ============ */
.chapter--testimonials .chapter__bg {
    background: radial-gradient(
        ellipse at 50% 50%,
        rgba(245, 158, 11, 0.04) 0%,
        transparent 50%
    );
}

.testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-3xl);
}

.testimonial-card__quote {
    font-size: var(--fs-h3);
    font-weight: var(--fw-light);
    font-style: italic;
    color: var(--c-text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-xl);
    position: relative;
}

.testimonial-card__quote::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: var(--fw-bold);
    color: var(--c-primary);
    opacity: 0.3;
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
}

.testimonial-card__author {
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    color: var(--c-text-primary);
}

.testimonial-card__role {
    font-size: var(--fs-small);
    color: var(--c-text-muted);
}

/* ============ CH 11: Contact ============ */
.chapter--contact .chapter__bg {
    background: radial-gradient(
        ellipse at 50% 80%,
        rgba(245, 158, 11, 0.04) 0%,
        transparent 50%
    );
}

/* ============ Scroll Progress Bar ============ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-tertiary));
    z-index: calc(var(--z-sticky) + 1);
    transition: none;
}

/* ============ Shader Canvas ============ */
.shader-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============ Particle Canvas ============ */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
