/* landing.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

:root {
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --dark: #050b14;
    /* Darker background for more contrast */
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-pink: #ff00ff;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Background Animation */
.bg-animate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--secondary);
    bottom: -200px;
    right: -200px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--neon-blue);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
    opacity: 0.15;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(40px, 60px);
    }

    66% {
        transform: translate(-30px, 20px);
    }
}

/* Hero Title Hover Effect */
.hero-title-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    perspective: 1000px;
}

.hero-title-english,
.hero-title-urdu {
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.hero-title-english {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.hero-title-urdu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: rotateX(-180deg);
    font-family: 'Noto Nastaliq Urdu', serif;
    color: var(--neon-purple);
    text-shadow: 0 0 25px rgba(188, 19, 254, 0.6), 0 0 50px rgba(188, 19, 254, 0.3);
}

.hero-title-container:hover .hero-title-english {
    opacity: 0;
    transform: rotateX(180deg);
}

.hero-title-container:hover .hero-title-urdu {
    opacity: 1;
    transform: rotateX(0deg);
}

/* 3D Mobile Showcase */
.mobile-showcase-section {
    perspective: 2000px;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 150px 0;
    margin: 80px 0;
}

.mobile-3d-container {
    position: relative;
    width: 320px;
    height: 640px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: float-mobile 8s ease-in-out infinite;
}

.mobile-frame {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 45px;
    border: 2px solid #333;
    box-shadow:
        0 0 0 4px #1a1a1a,
        0 0 60px rgba(59, 130, 246, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-frame:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow:
        0 0 0 4px #222,
        0 0 80px rgba(59, 130, 246, 0.25),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.mobile-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.mobile-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 32px;
    background: #000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 20;
}

.app-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 18px;
    margin: 0 auto 24px;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    position: relative;
}

.app-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }

    20%,
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.app-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

/* Holographic Features & Arrows */
.feature-arrow-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateZ(60px);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.feature-arrow-container.right {
    left: 100%;
    margin-left: 20px;
}

.glowing-arrow {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    position: relative;
    opacity: 0.7;
    flex-shrink: 0;
}

.glowing-arrow::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--neon-blue);
    border-radius: 50%;
    top: -2px;
    box-shadow: 0 0 10px var(--neon-blue);
    animation: pulse-dot 2s infinite;
    left: 0;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 200px;
    margin-left: 15px;
    align-items: flex-start;
}

.feature-capsule {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 10px 20px;
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    opacity: 0;
    animation: slide-in-feature 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
}

.feature-capsule:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--neon-blue);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.feature-capsule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--neon-blue);
    opacity: 0.5;
}

.feature-capsule:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-capsule:nth-child(2) {
    animation-delay: 0.3s;
}

.feature-capsule:nth-child(3) {
    animation-delay: 0.4s;
}

.feature-capsule:nth-child(4) {
    animation-delay: 0.5s;
}

.feature-capsule:nth-child(5) {
    animation-delay: 0.6s;
}

.feature-capsule:nth-child(6) {
    animation-delay: 0.7s;
}

@keyframes slide-in-feature {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-mobile {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

/* 3D Card Effect - Enhanced */
.card-3d-container {
    perspective: 1200px;
}

.card-3d {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.card-3d::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-3d:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-3d h3 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-neon {
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-flex;
    animation: scroll 50s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.event-card {
    width: 300px;
    height: 180px;
    margin: 0 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    cursor: default;
    position: relative;
}

.event-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.2);
}

/* Stats Counter */
.stat-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid #020617;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .mobile-showcase-section {
        flex-direction: column;
        height: auto;
        padding-bottom: 60px;
    }

    .feature-arrow-container {
        position: relative;
        top: auto;
        left: auto !important;
        right: auto !important;
        transform: none;
        flex-direction: column !important;
        margin-top: 30px;
        width: 100%;
    }

    .mobile-3d-container {
        height: auto;
        width: 100%;
        max-width: 280px;
        margin-bottom: 30px;
        animation: float-mobile 6s ease-in-out infinite;
        /* Keep float on mobile but gentler */
    }

    .mobile-frame {
        height: 580px;
        transform: none;
    }

    .mobile-frame:hover {
        transform: none;
    }

    .glowing-arrow {
        display: none;
    }

    .feature-list {
        margin: 0;
        align-items: center !important;
        width: 100%;
        gap: 12px;
    }

    .feature-capsule {
        transform: none !important;
        opacity: 1;
        animation: none;
        margin: 0;
        width: 90%;
        text-align: center;
        background: rgba(15, 23, 42, 0.8);
    }

    .feature-capsule::before {
        display: none;
    }
}

/* Top Participants Section Styles */
.participant-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.participant-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.rank-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    border-radius: 50%;
    transform: rotate(15deg);
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #fff;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #808080);
    color: #fff;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: #fff;
}

.participant-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.medal-count {
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: 8px;
}

.medal-count:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.point-glow {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}