
/* ── About Page CSS Styles (100% Theme Customizer variables aware) ── */
.about-section {
    padding: 120px 24px;
    position: relative;
    overflow: hidden;
}
.about-section-dark {
    background: var(--about-dark-bg, var(--bg-dark));
}
.about-section-alt {
    background: var(--about-alt-bg, color-mix(in srgb, var(--primary-color) 4%, var(--bg-dark)));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* ── About Hero Banner ── */
.about-hero-banner {
    text-align: center;
    position: relative;
}
.about-hero-pretitle {
    letter-spacing: 0.35em;
    margin-bottom: 18px;
}
.about-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    /* Use white text forced — hero sits on dark overlay, must be readable */
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.7), 0 0 40px color-mix(in srgb, var(--primary-color) 25%, transparent);
    margin-bottom: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.about-hero-subtitle {
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ── Reveal-Up Scroll Animation (CSS-only baseline) ── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal-up.in-view {
    opacity: 1;
    transform: translateY(0);
}
/* Immediately visible without JS (no FOUC on elements above fold) */
@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Hero Section */
.premium-hero-banner {
    position: relative;
    padding: 140px 24px 80px 24px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}
#aboutParticlesCanvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.hero-glow-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 18%, transparent) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}
.hero-pretitle {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.45em;
    color: var(--primary-color);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    text-shadow: 0 0 15px color-mix(in srgb, var(--primary-color) 45%, transparent);
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6.5vw, 5.2rem);
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    max-width: 950px;
    margin: 0 auto 25px auto;
    background: linear-gradient(135deg, #ffffff 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 80px color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 820px;
    margin: 0 auto 40px auto;
}
.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 34px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.4s ease;
}
.btn-outline:hover {
    background: var(--border-color);
    color: var(--text-main);
    transform: translateY(-3px);
}

/* Stat Cards */
.stat-card {
    background: var(--feature-card-bg, var(--bg-card));
    border: 1.5px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--primary-color) 15%, transparent);
}
.count-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 5px;
    text-shadow: 0 0 15px color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Image wrapper */
.premium-image-wrapper {
    border-radius: 24px;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    box-shadow: 0 20px 45px rgba(0,0,0,0.5);
    position: relative;
}
.about-factory-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.premium-image-wrapper:hover .about-factory-img {
    transform: scale(1.06);
}
.image-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

/* Value & capabilities cards */
.val-card {
    background: var(--feature-card-bg, var(--bg-card));
    border: 1.5px solid var(--border-color);
    padding: 45px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}
.val-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid transparent;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.val-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px color-mix(in srgb, var(--primary-color) 25%, transparent);
}
.val-card:hover::after {
    opacity: 1;
}
.val-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}
.val-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Icon Wrap System */
.val-icon-wrap {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    font-size: 2.5rem;
    animation: emojiFloat 4s ease-in-out infinite;
}
.val-card:hover .val-icon-wrap {
    animation-play-state: paused;
    transform: scale(1.15) rotate(8deg);
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 15%, transparent);
}

/* Sparkle CSS */
.sparkle-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffffff 0%, var(--primary-color) 100%);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 8px var(--primary-color);
    z-index: 10;
    animation: sparkleOut 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
@keyframes sparkleOut {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0); opacity: 0; }
}

/* Silver Jubilee Banner */
.jubilee-banner {
    background: var(--about-dark-bg, var(--bg-dark));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 110px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.jubilee-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--primary-color) 8%, transparent) 0%, transparent 70%);
    pointer-events: none;
}
.jubilee-year {
    font-size: clamp(4.5rem, 11vw, 9rem);
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    font-family: var(--font-heading);
    text-shadow: 0 0 60px color-mix(in srgb, var(--primary-color) 40%, transparent);
    display: block;
    margin-top: 40px;
}
.jubilee-tagline {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}
.jubilee-label {
    font-size: 1.1rem;
    color: var(--text-muted);
}
.jubilee-years-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-gradient);
    color: #fff;
    padding: 20px 45px;
    border-radius: 100px;
    margin: 30px auto 0;
    font-weight: 900;
    gap: 4px;
    box-shadow: 0 5px 25px color-mix(in srgb, var(--primary-color) 40%, transparent);
}
.jubilee-years-badge span:first-child { font-size: 2.2rem; line-height: 1; font-family: var(--font-heading); }
.jubilee-years-badge span:last-child { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}
.event-card {
    background: var(--event-card-bg, var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.event-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid transparent;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px color-mix(in srgb, var(--primary-color) 25%, transparent);
}
.event-card:hover::after {
    opacity: 1;
}
.emoji-icon-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    font-size: 3.2rem;
    transition: all 0.4s ease;
    animation: emojiFloat 4s ease-in-out infinite;
}
.event-card:hover .emoji-icon-wrap {
    animation-play-state: paused;
    transform: scale(1.15) rotate(8deg);
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 15%, transparent);
}
.emoji-icon {
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 206, 27, 0.7));
    transition: transform 0.4s ease;
}
.event-card:hover .emoji-icon {
    transform: scale(1.1);
}
.ripple-glow {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
    pointer-events: none;
}
.event-card:hover .ripple-glow {
    animation: rippleAnimation 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}
@keyframes rippleAnimation {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}
@keyframes emojiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.event-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
}
.event-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.event-card:hover .event-emoji {
    transform: scale(1.2) rotate(-5deg);
}

/* Unique Emoji Hover Animations */
.event-emoji.anim-anniversary {
    animation: wiggleBounce 0.8s ease-in-out infinite;
}
.event-emoji.anim-wedding {
    animation: weddingPulse 0.8s ease-in-out infinite;
}
.event-emoji.anim-betrothal {
    animation: handshakeSqueeze 0.8s ease-in-out infinite;
}
.event-emoji.anim-festival {
    animation: festivalFireworks 0.8s ease-in-out infinite;
}
.event-emoji.anim-inauguration {
    animation: scissorSnip 0.5s ease-in-out infinite;
}
.event-emoji.anim-gettogether {
    animation: partyPopup 0.8s ease-in-out infinite;
}
.event-emoji.anim-birthday {
    animation: candleGlow 0.8s ease-in-out infinite;
}
.event-emoji.anim-temple {
    animation: bellSway 0.8s ease-in-out infinite;
}
.event-emoji.anim-launch {
    animation: rocketLaunch 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.event-emoji.anim-sports {
    animation: trophyBounce 0.8s ease-in-out infinite;
}

@keyframes wiggleBounce {
    0%, 100% { transform: scale(1.2) translateY(0) rotate(-5deg); }
    25% { transform: scale(1.25) translateY(-8px) rotate(-15deg); }
    75% { transform: scale(1.2) translateY(-4px) rotate(5deg); }
}
@keyframes weddingPulse {
    0%, 100% { transform: scale(1.2); filter: drop-shadow(0 0 0px #ff4b72); }
    50% { transform: scale(1.4) rotate(5deg); filter: drop-shadow(0 0 15px #ff4b72); }
}
@keyframes handshakeSqueeze {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.05, 1.3) rotate(5deg); }
}
@keyframes festivalFireworks {
    0%, 100% { transform: scale(1.2) rotate(-5deg); filter: hue-rotate(0deg); }
    50% { transform: scale(1.4) rotate(10deg); filter: hue-rotate(180deg) drop-shadow(0 0 15px var(--primary-color)); }
}
@keyframes scissorSnip {
    0%, 100% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(1.2) rotate(20deg); }
}
@keyframes partyPopup {
    0%, 100% { transform: scale(1.2) rotate(-5deg); }
    30% { transform: scale(1) rotate(-15deg); }
    60% { transform: scale(1.4) rotate(15deg); }
}
@keyframes candleGlow {
    0%, 100% { transform: scale(1.2); filter: drop-shadow(0 0 5px #ffae19); }
    50% { transform: scale(1.3) translateY(-3px); filter: drop-shadow(0 0 20px #ff5100); }
}
@keyframes bellSway {
    0%, 100% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(1.2) rotate(15deg); }
}
@keyframes rocketLaunch {
    0% { transform: scale(1.2) translateY(0); }
    30% { transform: scale(1.1) translateY(4px); }
    70% { transform: scale(1.3) translateY(-30px); opacity: 0; }
    71% { transform: scale(1.1) translateY(30px); opacity: 0; }
    100% { transform: scale(1.2) translateY(0); opacity: 1; }
}
@keyframes trophyBounce {
    0%, 100% { transform: scale(1.2) translateY(0) rotate(-5deg); }
    50% { transform: scale(1.35) translateY(-10px) rotate(5deg); filter: brightness(1.2) drop-shadow(0 0 15px var(--primary-color)); }
}

/* Emoji Interactive Particles */
.emoji-particle {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    animation: particleFadeOut 1s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    transform: translate(-50%, -50%);
}
@keyframes particleFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(0.5) rotate(var(--rot));
    }
}

/* Premium Left/Right Alternating Timeline */
.timeline-wrap {
    position: relative;
    max-width: 1100px;
    margin: 60px auto 0 auto;
    padding: 40px 0;
    transition: max-width 0.3s ease;
}
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--timeline-dot-color, var(--primary-color)) 10%,
        var(--timeline-dot-color, var(--primary-color)) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
    box-shadow: 0 0 8px color-mix(in srgb, var(--timeline-dot-color, var(--primary-color)) 40%, transparent);
}
.timeline-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 80px !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    padding: 0 !important;
    text-align: left !important;
}
.timeline-item::after {
    display: none !important;
    content: none !important;
}
.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
}
.timeline-item:nth-child(odd)::after,
.timeline-item:nth-child(even)::after {
    display: none !important;
    content: none !important;
}
.timeline-col {
    width: 45% !important;
    position: relative !important;
}
.timeline-center {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 5 !important;
}
.timeline-dot {
    width: 24px;
    height: 24px;
    background: var(--bg-dark);
    border: 4px solid var(--timeline-dot-color, var(--primary-color));
    border-radius: 50%;
    box-shadow: 0 0 15px var(--timeline-dot-color, var(--primary-color));
    transition: all 0.4s ease;
}
.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: var(--timeline-dot-color, var(--primary-color));
    box-shadow: 0 0 25px var(--timeline-dot-color, var(--primary-color));
}
.timeline-card {
    background: var(--timeline-card-bg, var(--bg-card));
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible; /* Ensure logo popup is visible outside card boundaries */
}
.timeline-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid transparent;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.timeline-card:hover {
    transform: scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px color-mix(in srgb, var(--primary-color) 25%, transparent);
}
.timeline-card:hover::after {
    opacity: 1;
}
.timeline-year, .timeline-card-year {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
    display: block;
    margin-bottom: 5px;
}
.timeline-event, .timeline-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}
.timeline-badge-sub, .timeline-card-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Logo-only Popup on Timeline Card Hover */
.tl-logo-popup {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    background: color-mix(in srgb, var(--timeline-card-bg, var(--bg-card)) 90%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid var(--primary-color);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 12px 35px color-mix(in srgb, var(--primary-color) 30%, transparent), 0 0 0 1px color-mix(in srgb, var(--primary-color) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 64px;
}
/* Card inside timeline-left (visually on the LEFT): popup opens to the LEFT */
.timeline-left .tl-logo-popup {
    right: calc(100% + 18px);
    left: auto;
}
/* Card inside timeline-right (visually on the RIGHT): popup opens to the RIGHT */
.timeline-right .tl-logo-popup {
    left: calc(100% + 18px);
    right: auto;
}
.tl-logo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tl-logo-inner img {
    height: 42px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)) brightness(1.15);
}
.tl-logo-inner .timeline-logo-emoji {
    font-size: 2.2rem;
    line-height: 1;
}

@media (min-width: 769px) and (max-width: 1350px) {
    .timeline-wrap {
        max-width: 720px;
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.panel-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px 12px;
    min-height: 48px;
    min-width: 48px;
}
.timeline-logo-img {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) brightness(1.1);
}
.timeline-logo-emoji {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.panel-year {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
}
.panel-image-wrap {
    position: relative;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.panel-fallback-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.pfb-1 { background-image: radial-gradient(circle, #b71c1c 10%, #111 80%); }
.pfb-2 { background-image: radial-gradient(circle, #ff8a00 10%, #111 80%); }
.pfb-3 { background-image: radial-gradient(circle, #ffce1b 10%, #111 80%); }
.pfb-4 { background-image: radial-gradient(circle, #00c853 10%, #111 80%); }
.pfb-5 { background-image: radial-gradient(circle, #00b0ff 10%, #111 80%); }
.pfb-6 { background-image: radial-gradient(circle, #d500f9 10%, #111 80%); }
.pfb-7 { background-image: radial-gradient(circle, #ff1744 10%, #111 80%); }
.pfb-8 { background-image: radial-gradient(circle, #e65100 10%, #111 80%); }
.pfb-9 { background-image: radial-gradient(circle, #ffd600 10%, #111 80%); }
.pfb-10 { background-image: radial-gradient(circle, #00e5ff 10%, #111 80%); }
.pfb-11 { background-image: radial-gradient(circle, #651fff 10%, #111 80%); }

.panel-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.6) 100%);
}
.panel-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}
.panel-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.panel-milestone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.milestone-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    padding: 2px 8px;
    border-radius: 4px;
}
.milestone-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Feature Cards System */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--feature-card-bg, var(--bg-card)) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid transparent;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px color-mix(in srgb, var(--primary-color) 25%, transparent);
}
.feature-card:hover::after {
    opacity: 1;
}
.feature-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}
.feature-card-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}
.feature-icon-wrap {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    font-size: 2.4rem;
    animation: emojiFloat 4s ease-in-out infinite;
}
.feature-card:hover .feature-icon-wrap {
    animation-play-state: paused;
    transform: scale(1.15) rotate(-6deg);
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 15%, transparent);
}

/* Requirements & Terms layout */
.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.req-card {
    background: var(--req-card-bg, var(--bg-card)) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 20px;
    padding: 35px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}
.req-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid transparent;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.req-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px color-mix(in srgb, var(--primary-color) 20%, transparent);
}
.req-card:hover::after {
    opacity: 1;
}
.small-emoji {
    width: 70px;
    height: 70px;
    font-size: 2.2rem;
    margin: 0;
    flex-shrink: 0;
}
.req-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.req-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
}
.req-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Firework Effects Grid */
.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 24px;
}
.effect-card {
    background: var(--effect-card-bg, var(--bg-card));
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    padding: 30px 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.effect-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid transparent;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.effect-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px color-mix(in srgb, var(--primary-color) 20%, transparent);
}
.effect-card:hover::after {
    opacity: 1;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .timeline-col {
        width: 48% !important;
    }
}
@media (max-width: 768px) {
    .timeline-wrap {
        padding-left: 30px;
    }
    .timeline-line {
        left: 20px !important;
        transform: none !important;
    }
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
        margin-bottom: 40px !important;
    }
    .timeline-col {
        width: calc(100% - 40px) !important;
        margin-left: 40px !important;
    }
    .timeline-center {
        left: 20px !important;
        transform: translateX(-50%) !important;
        top: 30px !important;
    }
    .timeline-dot {
        width: 20px;
        height: 20px;
    }
    
    /* Hide the absolute popups by default on mobile */
    .timeline-item .tl-logo-popup {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        opacity: 0 !important;
        height: 0;
        overflow: hidden;
        padding: 0 !important;
        margin-top: 0;
        border: none !important;
        box-shadow: none !important;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
        pointer-events: none !important;
    }
    /* When card is active, display the popup inline under the text */
    .timeline-item.active .tl-logo-popup {
        opacity: 1 !important;
        height: auto;
        padding: 10px 15px !important;
        margin-top: 15px;
        border: 1.5px solid var(--primary-color) !important;
        background: color-mix(in srgb, var(--timeline-card-bg, var(--bg-card)) 95%, transparent) !important;
        pointer-events: auto !important;
    }
    
    .about-section {
        padding: 80px 16px;
    }
    .premium-hero-banner {
        /* 74px navbar + ~95px badge hang = need ~130px+ clearance on mobile */
        padding: 130px 16px 60px 16px;
        min-height: 280px;
    }
    .about-hero-title {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }
    .about-hero-subtitle {
        font-size: 0.95rem;
    }
}

/* Display Fireworks Effects Showcase */
.effects-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
@media (max-width: 991px) {
    .effects-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 600px) {
    .effects-showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.effect-showcase-card {
    background: var(--effect-card-bg, var(--bg-card)) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}
.effect-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px color-mix(in srgb, var(--primary-color) 30%, transparent);
    border-color: var(--primary-color);
}
.effect-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-dark);
}
.effect-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.effect-showcase-card:hover .effect-showcase-img {
    transform: scale(1.1);
}
.effect-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    opacity: 0.8;
    transition: opacity 0.5s ease;
}
.effect-showcase-card:hover .effect-showcase-overlay {
    opacity: 0.9;
}
.effect-showcase-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gradient);
    color: var(--button-text-color);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 30px;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.effect-showcase-footer {
    padding: 20px;
    text-align: center;
    border-top: 1.5px solid var(--border-color) !important;
    background: var(--bg-card) !important;
    transition: background 0.5s ease;
}
.effect-showcase-card:hover .effect-showcase-footer {
    background: var(--bg-card) !important;
}
.effect-showcase-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
    margin: 0;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}
.effect-showcase-card:hover .effect-showcase-title {
    color: var(--primary-color);
}

/* Mobile 2-column grid enhancements (Max 768px Only) */
@media (max-width: 768px) {
    .events-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .feature-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .feature-card {
        padding: 20px 14px !important;
    }
    .feature-card-title {
        font-size: 0.95rem !important;
    }
    .feature-card-desc {
        font-size: 0.8rem !important;
    }
    .req-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .req-card {
        padding: 16px 12px !important;
    }
    .req-title {
        font-size: 0.9rem !important;
    }
    .req-desc {
        font-size: 0.78rem !important;
    }
    .effects-showcase-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

