/*=========
   ABOUT PAGE — asset/css/about.css
   Extends the shared style.css. Do not duplicate base rules.
   ========== */



/* ---- Shared Section Wrappers ---- */
.about-section {
    padding: 7rem 0;
    background: var(--bg-color);
    position: relative;
    z-index: 10;
}
.about-section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 6vw;
}

/* ---- Section Typography ---- */
.section-eyebrow {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 500;
    opacity: 0.45;
    margin-bottom: 1.25rem;
}
.section-heading {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-color);
    line-height: 1.2;
}

/* ========
   SECTION 1 — ABOUT HERO
   ========= */
.about-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    background: var(--bg-color);
    position: relative;
    z-index: 10;
}
.about-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 6vw;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 5rem;
}
@media (max-width: 900px) {
    .about-hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 7rem;
    }
}

/* Hero Text */
.about-eyebrow {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-weight: 500;
    opacity: 0.45;
    display: block;
    margin-bottom: 1.5rem;
}
.about-hero-name {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: var(--text-color);
}
.about-hero-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-color);
    max-width: 480px;
    margin-bottom: 1.25rem;
}
.about-hero-sub {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 420px;
    margin-bottom: 2.5rem;
}
.about-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--text-color);
    color: var(--bg-color);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.about-cta-btn:hover { opacity: 0.8; transform: translateY(-1px); }
.about-cta-btn--ghost {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--line-color);
}
.about-cta-btn--ghost:hover {
    border-color: var(--text-color);
    opacity: 1;
}
.cta-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}
.about-cta-btn:hover .cta-arrow { transform: translateX(3px); }

/* ---- Profile Image Frame ---- */
.about-hero-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.profile-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3 / 4;
    border-radius: 2rem;
    overflow: hidden;
    /* Light mode defaults */
    box-shadow:
        0 0 0 1px var(--line-color),
        0 24px 64px rgba(0,0,0,0.1);
    transition: box-shadow 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.profile-frame:hover {
    transform: translateY(-6px) scale(1.01);
}

/* Glow pseudo — hidden in light, visible in dark */
.profile-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(111, 76, 255, 0.0), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: background 0.5s ease;
}
html[data-theme='dark'] .profile-glow {
    background: radial-gradient(ellipse at 50% 120%, rgba(111, 76, 255, 0.35) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.profile-img-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-color);
}
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Light mode */
    filter: contrast(1.05) brightness(1.02);
    transition: filter 0.5s ease;
}

/* =======
   DARK MODE IMAGE SWAP (DATA-THEME)
    === */
[data-theme="dark"] .theme-img-light { 
    display: none !important; 
}

[data-theme="dark"] .theme-img-dark { 
    display: block !important; 
}

html[data-theme='dark'] .profile-img {
    /* Dark mode: desaturate + darken slightly */
    filter: saturate(0.75) brightness(0.85) contrast(1.1);
}

/* Overlay: light mode = none, dark mode = subtle gradient rim */
.profile-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: 2rem;
    background: transparent;
    transition: background 0.5s ease;
}
html[data-theme='dark'] .profile-overlay {
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(10, 10, 10, 0.55) 100%
    );
    /* Subtle purple rim-light */
    box-shadow: inset 0 0 40px rgba(111, 76, 255, 0.12),
                inset -2px 0 30px rgba(255, 97, 210, 0.08);
}

/* Gradient border in dark mode */
.profile-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 3;
    pointer-events: none;
    transition: background 0.5s ease;
}
html[data-theme='dark'] .profile-frame::before {
    background: linear-gradient(135deg, rgba(255, 97, 210, 0.3), rgba(111, 76, 255, 0.3));
}

/* Placeholder (shown when no image) */
.profile-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.5;
}
.profile-img-container.no-photo .profile-img { display: none; }
.profile-img-container.no-photo .profile-placeholder { display: flex; }

/* Badge */
.profile-badge {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    border: 1px solid var(--line-color);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-color);
    white-space: nowrap;
    backdrop-filter: blur(8px);
    transition: background 0.4s ease, border-color 0.4s ease;
}
html[data-theme='dark'] .profile-badge {
    background: rgba(20, 20, 20, 0.8);
    border-color: rgba(111, 76, 255, 0.3);
}
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: badgePulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

/* ==============
   SECTION 2 — PROFESSIONAL OVERVIEW
   ================ */
.overview-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 768px) {
    .overview-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.overview-para {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 1.75rem;
}
.overview-para:last-child { margin-bottom: 0; }

/* =============
   SECTION 3 — TIMELINE
 ================ */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 2px;
}
.timeline-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 2rem;
    align-items: start;
}
.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.timeline-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-color);
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}
.timeline-item:hover .timeline-node {
    border-color: #FF61D2;
    box-shadow: 0 0 12px rgba(255, 97, 210, 0.25);
}
.timeline-node--active {
    border-color: rgba(111, 76, 255, 0.5);
    box-shadow: 0 0 16px rgba(111, 76, 255, 0.2);
    background: var(--surface-color);
}
.timeline-icon {
    width: 18px;
    height: 18px;
}
.timeline-line {
    width: 1px;
    flex-grow: 1;
    min-height: 3rem;
    background: var(--line-color);
    margin: 4px 0;
}
.timeline-item:last-child .timeline-line { display: none; }

.timeline-content {
    padding-bottom: 3.5rem;
}
.timeline-item:last-child .timeline-content { padding-bottom: 0; }
.timeline-year {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    opacity: 0.6;
}
.timeline-title {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-color);
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
}
.timeline-item:hover .timeline-title { color: #6F4CFF; }
.timeline-desc {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 560px;
}

/* =============
   SECTION 4 — TECHNOLOGIES
    =============== */
.tech-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}
.tech-group-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 1.25rem;
}
.tech-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .tech-items { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .tech-items { grid-template-columns: repeat(5, 1fr); }
}

.tech-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--line-color);
    border-radius: 0.875rem;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    background: var(--card-bg);
    cursor: default;
    transition: border-color 0.3s ease, color 0.3s ease,
                transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease;
}
.tech-card:hover {
    border-color: rgba(111, 76, 255, 0.4);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(111, 76, 255, 0.08);
}
.tech-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: filter 0.3s ease;
}
.tech-card:hover .tech-icon {
    filter: drop-shadow(0 0 4px rgba(255, 97, 210, 0.4));
}

/* ==============
   SECTION 5 — CLOSING NOTE
   ================ */
.closing-section {
    background: var(--bg-color);
}
.closing-inner {
    max-width: 720px;
}
.closing-heading {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-color);
    margin-bottom: 1.75rem;
}
.closing-para {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}
.closing-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---- About Footer ---- */
.about-footer {
    background: var(--bg-color);
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}
.about-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 6vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================
   SCROLL REVEAL — initial state
  ================= */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grouped items */
.timeline-item.reveal-item:nth-child(1) { transition-delay: 0s; }
.timeline-item.reveal-item:nth-child(2) { transition-delay: 0.1s; }
.timeline-item.reveal-item:nth-child(3) { transition-delay: 0.2s; }
.timeline-item.reveal-item:nth-child(4) { transition-delay: 0.3s; }
.timeline-item.reveal-item:nth-child(5) { transition-delay: 0.4s; }

.tech-group.reveal-item:nth-child(1) { transition-delay: 0s; }
.tech-group.reveal-item:nth-child(2) { transition-delay: 0.1s; }
.tech-group.reveal-item:nth-child(3) { transition-delay: 0.2s; }