/* ============================================================
   GENERATIONS SECTION — generations.css
   Scoped: ALL rules prefixed .ak-gen-
   Zero bleed to other sections.
   Lighthouse 95+ — GPU-only animations, no layout triggers.
============================================================ */


/* ─── SECTION ─────────────────────────────────────────────── */
.ak-gen-section {
    padding: 90px 60px 80px;
    background: #fdf9f4;
    font-family: 'Poppins', sans-serif;
    color: #222;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Canvas particles ── */
.ak-gen-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── Ambient background orbs ── */
.ak-gen-bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    will-change: transform;
}

.ak-gen-bg-orb--1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(232,93,4,0.10) 0%, transparent 70%);
    top: -120px;
    right: -100px;
    animation: ak-gen-orb-float 12s ease-in-out infinite alternate;
}

.ak-gen-bg-orb--2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255,165,0,0.08) 0%, transparent 70%);
    bottom: 60px;
    left: -80px;
    animation: ak-gen-orb-float 16s ease-in-out 2s infinite alternate-reverse;
}

.ak-gen-bg-orb--3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(232,93,4,0.07) 0%, transparent 70%);
    top: 50%;
    left: 40%;
    animation: ak-gen-orb-float 10s ease-in-out 1s infinite alternate;
}

@keyframes ak-gen-orb-float {
    from { transform: translateY(0px) scale(1); }
    to   { transform: translateY(-30px) scale(1.06); }
}

/* All content above canvas/orbs */
.ak-gen-header,
.ak-gen-hero,
.ak-gen-section-sep,
.ak-gen-timeline,
.ak-gen-cta-strip {
    position: relative;
    z-index: 2;
}


/* ─── HEADER ──────────────────────────────────────────────── */
.ak-gen-header {
    text-align: center;
    margin-bottom: 64px;
    opacity: 0;
    transform: translateY(-22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ak-gen-header.ak-gen-show {
    opacity: 1;
    transform: translateY(0);
}

.ak-gen-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e85d04;
    margin-bottom: 12px;
    position: relative;
}

.ak-gen-eyebrow::before,
.ak-gen-eyebrow::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: #e85d04;
    vertical-align: middle;
    margin: 0 10px;
    opacity: 0.5;
}

.ak-gen-title {
    font-size: 38px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.ak-gen-lead {
    max-width: 600px;
    margin: 0 auto 28px;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* Decorative divider */
.ak-gen-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.ak-gen-divider span {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e85d04, transparent);
}

.ak-gen-divider svg {
    animation: ak-gen-star-pulse 2.5s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes ak-gen-star-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50%       { transform: scale(1.3) rotate(180deg); opacity: 1; }
}


/* ─── HERO BLOCK (5th Gen) ────────────────────────────────── */
.ak-gen-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 0 70px;
    align-items: center;
    background: #fff;
    border-radius: 28px;
    padding: 48px 56px;
    margin-bottom: 70px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.08), 0 0 0 1px rgba(232,93,4,0.08);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    /* Subtle inner gradient */
    background: linear-gradient(135deg, #fff 70%, #fff8f3 100%);
}

.ak-gen-hero.ak-gen-show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Image side ── */
.ak-gen-hero-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    flex-shrink: 0;
}

/* Decorative rings */
.ak-gen-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(232,93,4,0.25);
    pointer-events: none;
}

.ak-gen-ring--1 {
    inset: -14px;
    animation: ak-gen-ring-pulse 3s ease-in-out infinite;
}

.ak-gen-ring--2 {
    inset: -28px;
    border-color: rgba(232,93,4,0.15);
    border-style: dashed;
    animation: ak-gen-spin 18s linear infinite;
}

.ak-gen-ring--3 {
    inset: -44px;
    border-color: rgba(232,93,4,0.08);
    animation: ak-gen-spin 28s linear infinite reverse;
}

@keyframes ak-gen-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.04); opacity: 1; }
}

@keyframes ak-gen-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ak-gen-ring--2,
    .ak-gen-ring--3,
    .ak-gen-zodiac-wrap { animation: none !important; }
}

/* Zodiac wheel behind image */
.ak-gen-zodiac-wrap {
    position: absolute;
    inset: -60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ak-gen-spin 30s linear infinite;
    will-change: transform;
    pointer-events: none;
}

.ak-gen-zodiac-wrap svg {
    opacity: 0.18;
}

/* Hero image circle */
.ak-gen-hero-img {
    position: relative;
    z-index: 2;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #ff8c00;
    box-shadow: 0 0 0 8px rgba(255,140,0,0.12),
                0 20px 50px rgba(232,93,4,0.22);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    will-change: transform;
}

.ak-gen-hero-img:hover {
    transform: scale(1.04);
    box-shadow: 0 0 0 12px rgba(255,140,0,0.16),
                0 28px 60px rgba(232,93,4,0.30);
}

.ak-gen-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gen badge */
.ak-gen-gen-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 3;
    background: linear-gradient(135deg, #e85d04, #f97316);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(232,93,4,0.40);
}

.ak-gen-gen-badge sup {
    font-size: 8px;
    vertical-align: super;
}

/* ── Content side ── */
.ak-gen-hero-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ak-gen-hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #e85d04;
    background: rgba(232,93,4,0.08);
    border: 1px solid rgba(232,93,4,0.2);
    border-radius: 20px;
    padding: 5px 16px;
    width: fit-content;
}

.ak-gen-hero-title {
    font-size: 30px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.3px;
}

.ak-gen-hero-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin: 0;
    border-left: 3px solid #e85d04;
    padding-left: 16px;
}

/* Stats row */
.ak-gen-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fdf9f4;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(232,93,4,0.10);
}

.ak-gen-stat {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ak-gen-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #e85d04;
    line-height: 1;
    letter-spacing: -0.5px;
}

.ak-gen-stat-label {
    font-size: 11px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ak-gen-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(232,93,4,0.15);
    margin: 0 8px;
}

/* Trait pills */
.ak-gen-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ak-gen-traits span {
    font-size: 12px;
    font-weight: 500;
    color: #e85d04;
    background: rgba(232,93,4,0.07);
    border: 1px solid rgba(232,93,4,0.18);
    border-radius: 20px;
    padding: 5px 14px;
    transition: background 0.25s ease, transform 0.25s ease;
    cursor: default;
}

.ak-gen-traits span:hover {
    background: rgba(232,93,4,0.15);
    transform: translateY(-2px);
}


/* ─── SECTION SEPARATOR ───────────────────────────────────── */
.ak-gen-section-sep {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 56px;
}

.ak-gen-sep-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,93,4,0.25), transparent);
}

.ak-gen-sep-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #b06020;
    white-space: nowrap;
}


/* ─── TIMELINE ────────────────────────────────────────────── */
.ak-gen-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 28px;
    position: relative;
    margin-bottom: 70px;
    align-items: start;
}

/* Horizontal connector line */
.ak-gen-connector {
    position: absolute;
    top: 44px;          /* vertically centred on the dot */
    left: calc(12.5% );
    right: calc(12.5%);
    height: 2px;
    background: linear-gradient(90deg,
        rgba(232,93,4,0.15),
        rgba(232,93,4,0.50),
        rgba(232,93,4,0.15)
    );
    z-index: 0;
    pointer-events: none;
}

/* ── Item ── */
.ak-gen-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.65s ease, transform 0.65s ease;
    will-change: opacity, transform;
}

.ak-gen-item.ak-gen-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ak-gen-item[data-index="0"] { transition-delay: 0.05s; }
.ak-gen-item[data-index="1"] { transition-delay: 0.15s; }
.ak-gen-item[data-index="2"] { transition-delay: 0.25s; }
.ak-gen-item[data-index="3"] { transition-delay: 0.35s; }

/* Timeline dot */
.ak-gen-item-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e85d04, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 0 0 4px rgba(232,93,4,0.15),
                0 4px 14px rgba(232,93,4,0.35);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.ak-gen-item:hover .ak-gen-item-dot {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(232,93,4,0.20),
                0 6px 20px rgba(232,93,4,0.45);
}

/* Card */
.ak-gen-item-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px 16px 18px;
    width: 100%;
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    border: 1px solid rgba(232,93,4,0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    will-change: transform;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.ak-gen-item-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e85d04, #f97316);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.ak-gen-item:hover .ak-gen-item-card {
    transform: translateY(-8px);
    box-shadow: 0 18px 44px rgba(232,93,4,0.14);
    border-color: rgba(232,93,4,0.18);
}

.ak-gen-item:hover .ak-gen-item-card::before {
    transform: scaleX(1);
}

/* Image inside card */
.ak-gen-item-img-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 14px;
}

.ak-gen-item-img-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff8c00;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
    will-change: transform;
}

.ak-gen-item:hover .ak-gen-item-img-wrap img {
    transform: scale(1.07);
}

/* Glow behind image */
.ak-gen-item-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,93,4,0.20) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.ak-gen-item:hover .ak-gen-item-glow {
    opacity: 1;
}

/* Card text */
.ak-gen-item-year {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #e85d04;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ak-gen-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.3;
}

.ak-gen-item-desc {
    font-size: 12.5px;
    color: #777;
    line-height: 1.7;
    margin: 0;
}

/* Decorative corner star */
.ak-gen-item-star {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0.15;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.ak-gen-item:hover .ak-gen-item-star {
    opacity: 0.6;
    transform: rotate(20deg) scale(1.2);
}


/* ─── CTA STRIP ───────────────────────────────────────────── */
.ak-gen-cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #e85d04 0%, #f97316 60%, #fb923c 100%);
    border-radius: 20px;
    padding: 32px 48px;
    box-shadow: 0 16px 48px rgba(232,93,4,0.28);
}

.ak-gen-cta-strip p {
    font-size: 17px;
    color: rgba(255,255,255,0.92);
    margin: 0;
    line-height: 1.5;
}

.ak-gen-cta-strip p strong {
    color: #fff;
    font-weight: 700;
}

.ak-gen-cta-btn {
    display: inline-block;
    background: #fff;
    color: #e85d04;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    flex-shrink: 0;
}

.ak-gen-cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.20);
}


/* ─── TABLET ≤ 1024px ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .ak-gen-section        { padding: 70px 36px 70px; }
    .ak-gen-title          { font-size: 32px; }
    .ak-gen-hero           { grid-template-columns: 280px 1fr; gap: 0 48px; padding: 40px 40px; }
    .ak-gen-hero-img       { width: 190px; height: 190px; }
    .ak-gen-hero-img-wrap  { width: 240px; height: 240px; }
    .ak-gen-timeline       { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .ak-gen-connector      { display: none; }
}

/* ─── MOBILE ≤ 768px ──────────────────────────────────────── */
@media (max-width: 768px) {
    .ak-gen-section        { padding: 56px 20px 56px; }
    .ak-gen-title          { font-size: 26px; }
    .ak-gen-hero           { grid-template-columns: 1fr; gap: 36px 0; padding: 32px 24px; text-align: center; }
    .ak-gen-hero-desc      { border-left: none; border-top: 3px solid #e85d04; padding-left: 0; padding-top: 14px; }
    .ak-gen-hero-tag       { margin: 0 auto; }
    .ak-gen-traits         { justify-content: center; }
    .ak-gen-stats          { justify-content: center; }
    .ak-gen-timeline       { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .ak-gen-cta-strip      { flex-direction: column; text-align: center; padding: 28px 24px; }
}

/* ─── SMALL MOBILE ≤ 480px ────────────────────────────────── */
@media (max-width: 480px) {
    .ak-gen-title          { font-size: 22px; }
    .ak-gen-timeline       { grid-template-columns: 1fr; }
    .ak-gen-item-card      { padding: 16px 14px; }
    .ak-gen-stat-num       { font-size: 22px; }
}