/* =====================================
   GHAZI ELEVEN HOCKEY CLUB
   COMPLETE CSS
===================================== */

:root {
    --primary: #01411C;
    --light-green: #EEF8F0;
    --text-primary: #1B1F23;
    --text-secondary: #5F6B76;
    --border: rgba(1,65,28,0.08);
    --shadow-soft: 0 20px 50px rgba(0,0,0,0.08);
    --shadow-hover: 0 30px 70px rgba(1,65,28,0.15);
    --shadow-card: 0 15px 40px rgba(0,0,0,0.06);
    --transition: all .35s cubic-bezier(.4,0,.2,1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--text-primary);
    background: white;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ===== TYPOGRAPHY ===== */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--primary);
}

.section-tag::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--primary);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -.04em;
    font-weight: 800;
    color: var(--text-primary);
}

.section-text {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-secondary);
    max-width: 680px;
}

/* ===== NAVIGATION ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
}

#navbar.scrolled h1,
#navbar.scrolled p,
#navbar.scrolled .nav-link {
    color: var(--text-primary);
}

.nav-link {
    position: relative;
    font-size: .95rem;
    color: white;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: white;
}

.nav-link.active::after {
    width: 100%;
}

#navbar.scrolled .nav-link {
    color: var(--text-primary);
}

#navbar.scrolled .nav-link.active {
    color: var(--primary);
}

/* ===== HERO ===== */
.hero-image {
    transform: scale(1.05);
    animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

.field-lines {
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image:
        linear-gradient(90deg, white 1px, transparent 1px),
        linear-gradient(white 1px, transparent 1px);
    background-size: 120px 120px;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
}

.circle-1 { width: 500px; height: 500px; left: -250px; top: 20%; }
.circle-2 { width: 300px; height: 300px; right: -150px; bottom: 15%; }
.circle-3 { width: 180px; height: 180px; right: 25%; top: 20%; }

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border-radius: 999px;
    background: white;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 15px 40px rgba(0,0,0,.12);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,.18);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    color: white;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    font-weight: 700;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-4px);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    width: 28px;
    height: 48px;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 5px;
    height: 10px;
    background: white;
    border-radius: 999px;
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(18px); opacity: 0; }
}

/* ===== STAT CARDS ===== */
.stat-card {
    padding: 28px;
    border-radius: 24px;
    background: white;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

/* ===== VALUES - MODERN CARDS ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card-modern {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.value-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.value-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(1,65,28,0.05);
    line-height: 1;
    transition: var(--transition);
}

.value-card-modern:hover .value-number {
    color: rgba(1,65,28,0.1);
    transform: scale(1.1);
}

.value-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--light-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.value-card-modern:hover .value-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: rotate(-6deg) scale(1.05);
}

.value-title-modern {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.value-text-modern {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* ===== VISION ===== */
.vision-panel {
    border-radius: 32px;
    background: var(--light-green);
    padding: 50px;
}

.vision-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: white;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light-green);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    gap: 8px;
}

.gallery-placeholder .emoji {
    font-size: 3rem;
}

/* ===== JOURNEY / EVENTS ===== */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.journey-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.journey-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.journey-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(1,65,28,0.06);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.journey-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--light-green);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.journey-card:hover .journey-icon {
    background: var(--primary);
    color: white;
}

.journey-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.journey-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta-box {
    box-shadow: 0 40px 90px rgba(1,65,28,.25);
}

/* ===== FOOTER ===== */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -200px;
    top: -200px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
}

.footer-link {
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
    display: inline-block;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.parallax {
    will-change: transform;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .section-title { font-size: 3rem; }
    .vision-panel { padding: 35px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .journey-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.5rem; }
    .section-text { font-size: 1rem; line-height: 1.8; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .hero-image { animation: none; }
    .vision-panel { padding: 24px; }
    .values-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .journey-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .gallery-grid { grid-template-columns: 1fr; }
    .value-card-modern { padding: 2rem 1.5rem; }
}

@media (max-width: 640px) {
    .circle-1 { width: 250px; height: 250px; }
    .circle-2 { width: 180px; height: 180px; }
    .value-number { font-size: 2.5rem !important; }
    .value-card-modern { padding: 1.5rem; }
    .journey-card { padding: 1.5rem; }
}
/* =====================================
   PLAYER CAROUSEL
===================================== */

.player-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    max-width: 280px;
    margin: 0 auto;
}

.player-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.player-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 280px;
    background: var(--light-green);
    flex-shrink: 0;
}

.player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}

.player-card:hover .player-image {
    transform: scale(1.05);
}

.player-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    z-index: 2;
}

.player-badge.captain {
    background: #FFD700;
    color: #1B1F23;
}

.player-badge.vice-captain {
    background: #C0C0C0;
    color: #1B1F23;
}

.player-badge.player {
    background: var(--primary);
}

.player-info {
    padding: 1.5rem;
    text-align: center;
}

.player-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.player-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2px;
}

.player-number {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(1,65,28,0.08);
    margin-top: 4px;
}

.player-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.player-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =====================================
   CAROUSEL CONTAINER - ARROWS OUTSIDE
===================================== */

.carousel-wrapper {
    position: relative;
    padding: 0 60px;
    margin: 0 -10px;
}

/* Hide overflow on the cards only, not the arrows */
.carousel-track {
    overflow: hidden;
    position: relative;
}

#playerCarousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* =====================================
   CAROUSEL CONTROLS - OUTSIDE THE CARDS
===================================== */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    color: var(--text-primary);
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

/* Position arrows OUTSIDE the cards */
.prev-btn {
    left: -10px;
}

.next-btn {
    right: -10px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 999px;
}

/* =====================================
   PLAYER CAROUSEL RESPONSIVE
===================================== */

@media (max-width: 1024px) {
    .carousel-wrapper {
        padding: 0 50px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    .prev-btn {
        left: -5px;
    }
    .next-btn {
        right: -5px;
    }
    .player-image-wrapper { 
        height: 240px; 
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .prev-btn {
        left: -5px;
    }
    
    .next-btn {
        right: -5px;
    }
    
    .player-card { 
        max-width: 280px; 
        margin: 0 auto; 
    }
    .player-image-wrapper { 
        height: 220px; 
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        padding: 0 30px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
    }
    
    .carousel-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .prev-btn {
        left: -5px;
    }
    
    .next-btn {
        right: -5px;
    }
    
    .player-image-wrapper { 
        height: 200px; 
    }
    .player-info { 
        padding: 1rem; 
    }
    .player-name { 
        font-size: 1rem; 
    }
}

/* =====================================
   LOADING ANIMATION - ELEPHANTS MERGE & EXPLODE
===================================== */

.loading-screen {
    position: fixed;
    inset: 0;
    background: #01411C;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-container {
    position: relative;
    width: 700px;
    height: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== ELEPHANTS - ROUND ===== */
.elephant {
    position: absolute;
    width: 180px;
    height: 180px;
    z-index: 2;
    top: 40%;
    border-radius: 50%;
    overflow: hidden;
}

.elephant-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Left Elephant - Starts from far left */
.left-elephant {
    transform: translateX(-300px) translateY(-50%) scale(0.5);
    opacity: 0;
}

.left-elephant.animate-in {
    animation: leftIn 1.8s ease forwards;
}

@keyframes leftIn {
    0% {
        transform: translateX(-400px) translateY(-50%) scale(0.4) rotate(-15deg);
        opacity: 0;
    }
    50% {
        transform: translateX(-80px) translateY(-50%) scale(1.3) rotate(5deg);
        opacity: 1;
    }
    80% {
        transform: translateX(-20px) translateY(-50%) scale(0.95) rotate(-3deg);
        opacity: 1;
    }
    100% {
        transform: translateX(0px) translateY(-50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.left-elephant.merge {
    animation: leftMerge 0.8s ease forwards !important;
}

@keyframes leftMerge {
    0% {
        transform: translateX(0px) translateY(-50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateX(0px) translateY(-50%) scale(1.5) rotate(-10deg);
        opacity: 1;
    }
    100% {
        transform: translateX(0px) translateY(-50%) scale(0) rotate(-40deg);
        opacity: 0;
    }
}

/* Right Elephant - Starts from far right */
.right-elephant {
    transform: translateX(300px) translateY(-50%) scale(0.5);
    opacity: 0;
}

.right-elephant.animate-in {
    animation: rightIn 1.8s ease forwards;
}

@keyframes rightIn {
    0% {
        transform: translateX(400px) translateY(-50%) scale(0.4) rotate(15deg);
        opacity: 0;
    }
    50% {
        transform: translateX(80px) translateY(-50%) scale(1.3) rotate(-5deg);
        opacity: 1;
    }
    80% {
        transform: translateX(20px) translateY(-50%) scale(0.95) rotate(3deg);
        opacity: 1;
    }
    100% {
        transform: translateX(0px) translateY(-50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.right-elephant.merge {
    animation: rightMerge 0.8s ease forwards !important;
}

@keyframes rightMerge {
    0% {
        transform: translateX(0px) translateY(-50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateX(0px) translateY(-50%) scale(1.5) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: translateX(0px) translateY(-50%) scale(0) rotate(40deg);
        opacity: 0;
    }
}

/* ===== EXPLOSION RING ===== */
.explosion-ring {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #FFD700;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

.explosion-ring.active {
    animation: explodeRing 0.8s ease forwards;
}

@keyframes explodeRing {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.1);
        border-width: 4px;
        border-color: #FFD700;
    }
    25% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
        border-width: 12px;
        border-color: #FFD700;
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
        border-width: 8px;
        border-color: #FFA500;
    }
    75% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(2.5);
        border-width: 5px;
        border-color: #FF6B00;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(4);
        border-width: 2px;
        border-color: #FF4400;
    }
}

/* ===== CENTER LOGO - ROUND (BIGGER) ===== */
.center-logo {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(-30deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    padding: 60px;
    backdrop-filter: blur(10px);
    width: 520px;
    height: 520px;
    border: 2px solid rgba(255,255,255,0.08);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 80px rgba(255,255,255,0.03);
}

.center-logo.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.center-logo-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 8px;
}

.center-text {
    text-align: center;
    color: white;
}

.center-text h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.center-text p {
    font-size: 1.3rem;
    opacity: 0.8;
    letter-spacing: 0.15em;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Glow effect when logo appears */
.center-logo.show::before {
    content: '';
    position: absolute;
    inset: -25px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    animation: glowPulse 2.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.5; 
    }
    50% { 
        transform: scale(1.15); 
        opacity: 1; 
    }
}

/* ===== SLOGAN - COMPLETELY OUTSIDE THE CIRCLE ===== */
.slogan-wrapper {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: all 0.8s ease 0.6s;
    width: 100%;
    z-index: 5;
}

/* Slogan appears after logo */
.center-logo.show ~ .slogan-wrapper {
    opacity: 1;
}

.slogan-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    white-space: nowrap;
    animation: sloganPulse 3s ease-in-out infinite 1s;
}

@keyframes sloganPulse {
    0%, 100% { 
        opacity: 0.7;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.03);
    }
}

/* ===== LOADING BAR ===== */
.loading-bar-container {
    position: absolute;
    bottom: 40px;
    width: 450px;
    height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #a8e6cf, #ffffff);
    border-radius: 999px;
    animation: loadingProgress 5.5s ease forwards;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    15% { width: 10%; }
    30% { width: 20%; }
    50% { width: 35%; }
    70% { width: 55%; }
    85% { width: 75%; }
    95% { width: 92%; }
    100% { width: 100%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .loading-container { 
        width: 450px; 
        height: 500px; 
    }
    .elephant { 
        width: 130px; 
        height: 130px; 
    }
    .center-logo { 
        width: 360px; 
        height: 360px; 
        padding: 35px; 
    }
    .center-logo-img { 
        width: 220px; 
        height: 220px; 
    }
    .center-text h2 { 
        font-size: 2.2rem; 
    }
    .center-text p { 
        font-size: 1rem; 
    }
    .slogan-text {
        font-size: 1.1rem;
        letter-spacing: 0.2em;
    }
    .slogan-wrapper {
        bottom: 70px;
    }
    .loading-bar-container { 
        width: 300px; 
        bottom: 30px; 
    }

    @keyframes leftIn {
        0% { transform: translateX(-250px) translateY(-50%) scale(0.4) rotate(-15deg); opacity: 0; }
        50% { transform: translateX(-50px) translateY(-50%) scale(1.3) rotate(5deg); opacity: 1; }
        80% { transform: translateX(-15px) translateY(-50%) scale(0.95) rotate(-3deg); opacity: 1; }
        100% { transform: translateX(0px) translateY(-50%) scale(1) rotate(0deg); opacity: 1; }
    }

    @keyframes rightIn {
        0% { transform: translateX(250px) translateY(-50%) scale(0.4) rotate(15deg); opacity: 0; }
        50% { transform: translateX(50px) translateY(-50%) scale(1.3) rotate(-5deg); opacity: 1; }
        80% { transform: translateX(15px) translateY(-50%) scale(0.95) rotate(3deg); opacity: 1; }
        100% { transform: translateX(0px) translateY(-50%) scale(1) rotate(0deg); opacity: 1; }
    }
}

@media (max-width: 480px) {
    .loading-container { 
        width: 300px; 
        height: 400px; 
    }
    .elephant { 
        width: 90px; 
        height: 90px; 
    }
    .center-logo { 
        width: 250px; 
        height: 250px; 
        padding: 22px; 
    }
    .center-logo-img { 
        width: 150px; 
        height: 150px; 
    }
    .center-text h2 { 
        font-size: 1.5rem; 
    }
    .center-text p { 
        font-size: 0.75rem; 
    }
    .slogan-text {
        font-size: 0.9rem;
        letter-spacing: 0.15em;
    }
    .slogan-wrapper {
        bottom: 50px;
    }
    .loading-bar-container { 
        width: 200px; 
        bottom: 20px; 
        height: 3px; 
    }

    @keyframes leftIn {
        0% { transform: translateX(-150px) translateY(-50%) scale(0.4) rotate(-15deg); opacity: 0; }
        50% { transform: translateX(-30px) translateY(-50%) scale(1.3) rotate(5deg); opacity: 1; }
        80% { transform: translateX(-10px) translateY(-50%) scale(0.95) rotate(-3deg); opacity: 1; }
        100% { transform: translateX(0px) translateY(-50%) scale(1) rotate(0deg); opacity: 1; }
    }

    @keyframes rightIn {
        0% { transform: translateX(150px) translateY(-50%) scale(0.4) rotate(15deg); opacity: 0; }
        50% { transform: translateX(30px) translateY(-50%) scale(1.3) rotate(-5deg); opacity: 1; }
        80% { transform: translateX(10px) translateY(-50%) scale(0.95) rotate(3deg); opacity: 1; }
        100% { transform: translateX(0px) translateY(-50%) scale(1) rotate(0deg); opacity: 1; }
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(1,65,28,0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(1,65,28,0.45);
    background: #013015;
}

.back-to-top:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    animation: whatsappPulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 10px 60px rgba(37, 211, 102, 0.6); }
    100% { box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4); }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 85px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ===== PAGE TRANSITION ===== */
main > section {
    animation: fadeUp 0.7s ease forwards;
    opacity: 0;
}

main > section:nth-child(1) { animation-delay: 0.1s; }
main > section:nth-child(2) { animation-delay: 0.2s; }
main > section:nth-child(3) { animation-delay: 0.3s; }
main > section:nth-child(4) { animation-delay: 0.4s; }
main > section:nth-child(5) { animation-delay: 0.5s; }
main > section:nth-child(6) { animation-delay: 0.6s; }
main > section:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children animations inside sections */
section .reveal:nth-child(2) { transition-delay: 0.1s; }
section .reveal:nth-child(3) { transition-delay: 0.2s; }
section .reveal:nth-child(4) { transition-delay: 0.3s; }


/* =====================================
   OUR SPIRIT - POEM SECTION
===================================== */

.poem-container {
    max-width: 800px;
    margin: 0 auto;
}

.poem-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.poem-label-text {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    background: rgba(1,65,28,0.08);
    padding: 0.3rem 1.2rem;
    border-radius: 999px;
}

.poem-label-line {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.3;
}

.poem-box {
    background: white;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(1,65,28,0.06);
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
    min-height: 200px;
}

.poem-box:hover {
    box-shadow: 0 30px 80px rgba(1,65,28,0.10);
    transform: translateY(-2px);
}

.poem-box.urdu {
    background: linear-gradient(135deg, #ffffff 0%, #f6faf6 100%);
}

.poem-box::before {
    content: '❝';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.08;
    font-family: Georgia, serif;
}

.poem-box::after {
    content: '❞';
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.08;
    font-family: Georgia, serif;
}

/* REMOVED: .poem-box.urdu::before (Bismillah) - no longer needed */
/* REMOVED: .poem-box.urdu::after - no longer needed */

.poem-content {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.15rem;
    line-height: 2.2;
    color: var(--text-primary);
    text-align: center;
    padding: 0.5rem 0;
}

.poem-content .poem-line {
    display: block;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.1rem 0;
}

.poem-content .poem-line.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.poem-content .highlight {
    color: var(--primary);
    font-weight: 700;
}

.poem-content .highlight-gold {
    color: #C9A84C;
    font-weight: 700;
}

.poem-content .poem-line.empty {
    height: 1.2rem;
    opacity: 0;
    transform: none;
    pointer-events: none;
}

.poem-box.urdu .poem-content {
    font-family: 'Noto Nastaliq Urdu', 'Urdu Typesetting', 'Jameel Noori Nastaleeq', serif;
    font-size: 1.4rem;
    line-height: 2.6;
    text-align: center;
    color: #1a1a1a;
}

.poem-divider {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2.5rem 0;
    color: var(--primary);
    font-size: 1.2rem;
    opacity: 0.25;
}

/* Responsive */
@media (max-width: 768px) {
    .poem-box {
        padding: 2rem 1.5rem;
    }
    .poem-content {
        font-size: 1rem;
        line-height: 2;
    }
    .poem-box.urdu .poem-content {
        font-size: 1.2rem;
        line-height: 2.4;
    }
    .poem-divider {
        gap: 1.2rem;
        padding: 1.8rem 0;
        font-size: 1rem;
    }
    .poem-label-text {
        font-size: 0.75rem;
        padding: 0.2rem 1rem;
    }
}

@media (max-width: 480px) {
    .poem-box {
        padding: 1.5rem 1rem;
    }
    .poem-content {
        font-size: 0.9rem;
        line-height: 1.9;
    }
    .poem-box.urdu .poem-content {
        font-size: 1rem;
        line-height: 2.2;
    }
    .poem-box::before,
    .poem-box::after {
        font-size: 1.5rem;
    }
}

/* Staggered delays for English poem lines */
.poem-content .poem-line:nth-child(1) { transition-delay: 0.05s; }
.poem-content .poem-line:nth-child(2) { transition-delay: 0.10s; }
.poem-content .poem-line:nth-child(3) { transition-delay: 0.15s; }
.poem-content .poem-line:nth-child(4) { transition-delay: 0.20s; }
.poem-content .poem-line:nth-child(5) { transition-delay: 0.25s; }
.poem-content .poem-line:nth-child(6) { transition-delay: 0.30s; }
.poem-content .poem-line:nth-child(7) { transition-delay: 0.35s; }
.poem-content .poem-line:nth-child(8) { transition-delay: 0.40s; }
.poem-content .poem-line:nth-child(9) { transition-delay: 0.45s; }
.poem-content .poem-line:nth-child(10) { transition-delay: 0.50s; }
.poem-content .poem-line:nth-child(11) { transition-delay: 0.55s; }
.poem-content .poem-line:nth-child(12) { transition-delay: 0.60s; }
.poem-content .poem-line:nth-child(13) { transition-delay: 0.65s; }
.poem-content .poem-line:nth-child(14) { transition-delay: 0.70s; }
.poem-content .poem-line:nth-child(15) { transition-delay: 0.75s; }
.poem-content .poem-line:nth-child(16) { transition-delay: 0.80s; }
.poem-content .poem-line:nth-child(17) { transition-delay: 0.85s; }
.poem-content .poem-line:nth-child(18) { transition-delay: 0.90s; }
.poem-content .poem-line:nth-child(19) { transition-delay: 0.95s; }
.poem-content .poem-line:nth-child(20) { transition-delay: 1.00s; }
.poem-content .poem-line:nth-child(21) { transition-delay: 1.05s; }
.poem-content .poem-line:nth-child(22) { transition-delay: 1.10s; }
.poem-content .poem-line:nth-child(23) { transition-delay: 1.15s; }
.poem-content .poem-line:nth-child(24) { transition-delay: 1.20s; }
.poem-content .poem-line:nth-child(25) { transition-delay: 1.25s; }
.poem-content .poem-line:nth-child(26) { transition-delay: 1.30s; }
.poem-content .poem-line:nth-child(27) { transition-delay: 1.35s; }
.poem-content .poem-line:nth-child(28) { transition-delay: 1.40s; }
.poem-content .poem-line:nth-child(29) { transition-delay: 1.45s; }
.poem-content .poem-line:nth-child(30) { transition-delay: 1.50s; }
.poem-content .poem-line:nth-child(31) { transition-delay: 1.55s; }
.poem-content .poem-line:nth-child(32) { transition-delay: 1.60s; }
.poem-content .poem-line:nth-child(33) { transition-delay: 1.65s; }
.poem-content .poem-line:nth-child(34) { transition-delay: 1.70s; }
.poem-content .poem-line:nth-child(35) { transition-delay: 1.75s; }
.poem-content .poem-line:nth-child(36) { transition-delay: 1.80s; }
.poem-content .poem-line:nth-child(37) { transition-delay: 1.85s; }
.poem-content .poem-line:nth-child(38) { transition-delay: 1.90s; }
.poem-content .poem-line:nth-child(39) { transition-delay: 1.95s; }
.poem-content .poem-line:nth-child(40) { transition-delay: 2.00s; }

/* Staggered delays for Urdu poem lines (start after English) */
.poem-box.urdu .poem-content .poem-line:nth-child(1) { transition-delay: 2.80s; }
.poem-box.urdu .poem-content .poem-line:nth-child(2) { transition-delay: 2.85s; }
.poem-box.urdu .poem-content .poem-line:nth-child(3) { transition-delay: 2.90s; }
.poem-box.urdu .poem-content .poem-line:nth-child(4) { transition-delay: 2.95s; }
.poem-box.urdu .poem-content .poem-line:nth-child(5) { transition-delay: 3.00s; }
.poem-box.urdu .poem-content .poem-line:nth-child(6) { transition-delay: 3.05s; }
.poem-box.urdu .poem-content .poem-line:nth-child(7) { transition-delay: 3.10s; }
.poem-box.urdu .poem-content .poem-line:nth-child(8) { transition-delay: 3.15s; }
.poem-box.urdu .poem-content .poem-line:nth-child(9) { transition-delay: 3.20s; }
.poem-box.urdu .poem-content .poem-line:nth-child(10) { transition-delay: 3.25s; }
.poem-box.urdu .poem-content .poem-line:nth-child(11) { transition-delay: 3.30s; }
.poem-box.urdu .poem-content .poem-line:nth-child(12) { transition-delay: 3.35s; }
.poem-box.urdu .poem-content .poem-line:nth-child(13) { transition-delay: 3.40s; }
.poem-box.urdu .poem-content .poem-line:nth-child(14) { transition-delay: 3.45s; }
.poem-box.urdu .poem-content .poem-line:nth-child(15) { transition-delay: 3.50s; }
.poem-box.urdu .poem-content .poem-line:nth-child(16) { transition-delay: 3.55s; }
.poem-box.urdu .poem-content .poem-line:nth-child(17) { transition-delay: 3.60s; }
.poem-box.urdu .poem-content .poem-line:nth-child(18) { transition-delay: 3.65s; }
.poem-box.urdu .poem-content .poem-line:nth-child(19) { transition-delay: 3.70s; }
.poem-box.urdu .poem-content .poem-line:nth-child(20) { transition-delay: 3.75s; }
.poem-box.urdu .poem-content .poem-line:nth-child(21) { transition-delay: 3.80s; }
.poem-box.urdu .poem-content .poem-line:nth-child(22) { transition-delay: 3.85s; }
.poem-box.urdu .poem-content .poem-line:nth-child(23) { transition-delay: 3.90s; }
.poem-box.urdu .poem-content .poem-line:nth-child(24) { transition-delay: 3.95s; }
.poem-box.urdu .poem-content .poem-line:nth-child(25) { transition-delay: 4.00s; }
.poem-box.urdu .poem-content .poem-line:nth-child(26) { transition-delay: 4.05s; }
.poem-box.urdu .poem-content .poem-line:nth-child(27) { transition-delay: 4.10s; }
.poem-box.urdu .poem-content .poem-line:nth-child(28) { transition-delay: 4.15s; }
.poem-box.urdu .poem-content .poem-line:nth-child(29) { transition-delay: 4.20s; }
.poem-box.urdu .poem-content .poem-line:nth-child(30) { transition-delay: 4.25s; }
.poem-box.urdu .poem-content .poem-line:nth-child(31) { transition-delay: 4.30s; }
.poem-box.urdu .poem-content .poem-line:nth-child(32) { transition-delay: 4.35s; }
.poem-box.urdu .poem-content .poem-line:nth-child(33) { transition-delay: 4.40s; }
.poem-box.urdu .poem-content .poem-line:nth-child(34) { transition-delay: 4.45s; }
.poem-box.urdu .poem-content .poem-line:nth-child(35) { transition-delay: 4.50s; }
.poem-box.urdu .poem-content .poem-line:nth-child(36) { transition-delay: 4.55s; }
.poem-box.urdu .poem-content .poem-line:nth-child(37) { transition-delay: 4.60s; }
.poem-box.urdu .poem-content .poem-line:nth-child(38) { transition-delay: 4.65s; }
.poem-box.urdu .poem-content .poem-line:nth-child(39) { transition-delay: 4.70s; }
.poem-box.urdu .poem-content .poem-line:nth-child(40) { transition-delay: 4.75s; }

.poem-content .highlight {
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

.poem-content .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    opacity: 0.2;
}

.poem-content .highlight-gold {
    color: #C9A84C;
    font-weight: 700;
}

.poem-content .highlight-gold::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #C9A84C;
    opacity: 0.3;
}

.poem-content .poem-line.empty {
    height: 1.2rem;
    opacity: 0;
    transform: none;
    pointer-events: none;
}

.poem-box.urdu .poem-content {
    font-family: 'Noto Nastaliq Urdu', 'Urdu Typesetting', 'Jameel Noori Nastaleeq', serif;
    font-size: 1.4rem;
    line-height: 2.6;
    text-align: center;
    color: #1a1a1a;
}

.poem-box.urdu .poem-content .highlight {
    color: var(--primary);
}

.poem-box.urdu .poem-content .highlight-gold {
    color: #C9A84C;
}

.poem-divider {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2.5rem 0;
    color: var(--primary);
    font-size: 1.2rem;
    opacity: 0.25;
}
/* When the spirit section becomes active, show all poem lines */
/* FORCE POEM TO SHOW - OVERRIDE */
#spirit.active .poem-content .poem-line {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .poem-box {
        padding: 2rem 1.5rem;
    }
    .poem-content {
        font-size: 1rem;
        line-height: 2;
    }
    .poem-box.urdu .poem-content {
        font-size: 1.2rem;
        line-height: 2.4;
    }
    .poem-divider {
        gap: 1.2rem;
        padding: 1.8rem 0;
        font-size: 1rem;
    }
    .poem-label-text {
        font-size: 0.75rem;
        padding: 0.2rem 1rem;
    }
}

@media (max-width: 480px) {
    .poem-box {
        padding: 1.5rem 1rem;
    }
    .poem-content {
        font-size: 0.9rem;
        line-height: 1.9;
    }
    .poem-box.urdu .poem-content {
        font-size: 1rem;
        line-height: 2.2;
    }
    .poem-box::before,
    .poem-box::after {
        font-size: 1.5rem;
    }
}