/* ==========================================
   FIBONACCI EGYPT - STYLE.CSS
========================================== */

:root {
    --bg: #050816;
    --bg2: #0b1024;
    --card: rgba(255, 255, 255, .08);
    --primary: #5b7cff;
    --secondary: #00d4ff;
    --gold: #ffc857;
    --white: #ffffff;
    --text: #d9e3ff;
    --muted: #8d98b3;
    --border: rgba(255, 255, 255, .12);
    --radius: 22px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
    --transition: .35s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden; /* Hard cut-off to prevent horizontal scrolling */
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top, #203b8f 0%, #050816 55%);
    color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: white;
}

section {
    padding: 100px 8%;
    width: 100%;
}

/*==================================
PARTICLE BACKGROUND
==================================*/
#particles {
    position: fixed;
    inset: 0;
    z-index: -5;
    background-image: radial-gradient(circle, #ffffff22 1px, transparent 1px);
    background-size: 55px 55px;
    animation: moveParticles 35s linear infinite;
    pointer-events: none;
}

@keyframes moveParticles {
    0% { background-position: 0 0; }
    100% { background-position: 500px 800px; }
}

/*==================================
NAVBAR
==================================*/
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(18px);
    background: rgba(5, 8, 22, .55);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    z-index: 1000;
    transition: background 0.3s;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

nav li {
    font-weight: 500;
}

nav a {
    transition: .3s;
    font-size: 15px;
}

nav a:hover {
    color: var(--secondary);
}

nav a.active {
    color: #00d4ff;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

/*==================================
HERO
==================================*/
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding-top: 130px;
    position: relative;
}

.hero-left h1 {
    font-size: 88px;
    line-height: .9;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-left h1 span {
    display: block;
    background: linear-gradient(90deg, #00d4ff, #5b7cff, #b26cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-left h2 {
    font-size: 34px;
    margin-bottom: 25px;
    font-weight: 600;
    color: white;
}

.hero-left p {
    font-size: 18px;
    line-height: 1.9;
    max-width: 620px;
    color: var(--text);
    margin-bottom: 45px;
}

.badge {
    display: inline-flex;
    padding: 10px 20px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50px;
    margin-bottom: 30px;
    font-size: 14px;
    backdrop-filter: blur(15px);
}

/*==================================
BUTTONS & RIPPLE
==================================*/
.buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 16px 34px;
    border-radius: 50px;
    font-weight: 600;
    transition: .35s;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.primary {
    background: linear-gradient(135deg, #5b7cff, #00d4ff);
    box-shadow: 0 10px 30px rgba(0, 212, 255, .35);
    border: none;
    color: white;
}

.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 212, 255, .45);
}

.secondary {
    border: 2px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(20px);
}

.secondary:hover {
    background: white;
    color: #000;
}

.ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    transform: translate(-50%, -50%) scale(0);
    animation: ripple .6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
    }
}

/*==================================
RIGHT HERO
==================================*/
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glass-card {
    width: 380px;
    height: 380px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 35px;
    backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.glass-card i {
    font-size: 80px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #00d4ff, #5b7cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card h3 { font-size: 34px; margin-bottom: 15px; }
.glass-card p { color: var(--text); font-size: 18px; }

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.one { width: 220px; height: 220px; background: #00d4ff55; top: -20px; right: 20px; }
.two { width: 180px; height: 180px; background: #6c5cff55; bottom: 40px; left: 0; }
.three { width: 260px; height: 260px; background: #ffb34733; top: 160px; right: -60px; }

/*==================================
STATS
==================================*/
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stat {
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    transition: .35s;
}

.stat:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, .12);
}

.stat h3 {
    font-size: 52px;
    background: linear-gradient(90deg, #00d4ff, #5b7cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.stat p { color: var(--text); font-size: 18px; }

/*==================================
FLOAT ANIMATION
==================================*/
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
    100% { transform: translateY(0); }
}

/* ==========================================
   SECTIONS / ABOUT / TIMELINE / CATEGORIES
========================================== */
.section {
    padding: 120px 8%;
}

.section.dark {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .04));
}

.section-title {
    text-align: center;
    max-width: 820px;
    margin: auto auto 70px;
}

.section-title h2 {
    font-size: 52px;
    margin-bottom: 18px;
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text);
    line-height: 1.8;
    font-size: 18px;
}

/*==================================
ABOUT GRID
==================================*/
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: 45px;
    transition: .35s;
}

.about-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .35);
}

.about-card i {
    font-size: 55px;
    margin-bottom: 22px;
    color: var(--secondary);
}

.about-card h3 { font-size: 28px; margin-bottom: 16px; }
.about-card p { color: var(--text); line-height: 1.8; }

/*==================================
TIMELINE
==================================*/
.timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
}

.number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5b7cff, #00d4ff);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, .35);
}

.step h3 { text-align: center; font-size: 18px; }

.line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #5b7cff);
    border-radius: 10px;
}

/*==================================
CATEGORIES
==================================*/
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.category {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 45px 25px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: .35s;
    cursor: pointer;
}

.category:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, .12);
}

.category i {
    font-size: 60px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #00d4ff, #5b7cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category h3 { font-size: 22px; }

/*==================================
HOVER GLOW EFFECTS
==================================*/
.about-card, .category, .stat, .glass-card {
    position: relative;
    overflow: hidden;
}

.about-card::before, .category::before, .stat::before, .glass-card::before {
    content: "";
    position: absolute;
    top: -150%;
    left: -150%;
    width: 250%;
    height: 250%;
    background: radial-gradient(circle, rgba(255, 255, 255, .15), transparent 70%);
    transform: rotate(25deg);
    transition: .6s;
}

.about-card:hover::before, .category:hover::before, .stat:hover::before, .glass-card:hover::before {
    top: -60%;
    left: -60%;
}

/*==================================
SECTION DIVIDER
==================================*/
.section::after {
    content: "";
    display: block;
    width: 140px;
    height: 4px;
    margin: 90px auto 0;
    border-radius: 30px;
    background: linear-gradient(90deg, transparent, #00d4ff, #5b7cff, transparent);
}

/*==================================
JUDGING
==================================*/
.judging {
    max-width: 900px;
    margin: auto;
    display: grid;
    gap: 30px;
}

.judge-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px);
    border-radius: 22px;
    padding: 28px;
    transition: .35s;
}

.judge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .35);
}

.judge-card h3 { font-size: 24px; margin-bottom: 18px; }

.progress {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress div {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, #00d4ff, #5b7cff, #8b5cf6);
}

.judge-card span { color: var(--text); font-size: 17px; }

/*==================================
REGISTER
==================================*/
.register {
    text-align: center;
    padding: 120px 8%;
    position: relative;
    overflow: hidden;
}

.register::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(91, 124, 255, .25), transparent 70%);
    z-index: -1;
}

.register h2 {
    font-size: 56px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, white, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.register p {
    color: var(--text);
    max-width: 760px;
    margin: 0 auto 45px;
    line-height: 1.9;
    font-size: 20px;
}

/*==================================
FOOTER
==================================*/
footer {
    padding: 80px 8%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #040612;
}

footer h2 { font-size: 34px; margin-bottom: 12px; }
footer p { color: var(--muted); line-height: 1.8; }

.social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 35px 0;
}

.social i {
    width: 58px;
    height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    font-size: 22px;
    transition: .35s;
    cursor: pointer;
}

.social i:hover {
    transform: translateY(-8px) scale(1.1);
    background: linear-gradient(135deg, #5b7cff, #00d4ff);
}

/*==================================
SCROLLBAR & SELECTION
==================================*/
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #050816; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(#5b7cff, #00d4ff);
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(#7c96ff, #31dcff); }
::selection { background: #00d4ff; color: #04101e; }

/*==================================
LAZY FADE IN SYSTEM
==================================*/
.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

.category:hover, .about-card:hover, .judge-card:hover, .stat:hover {
    border-color: rgba(0, 212, 255, .45);
}

.hero::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 212, 255, .12), transparent 70%);
    top: -250px;
    right: -250px;
    pointer-events: none;
    z-index: -1;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES (COMPACT LOCKDOWN)
========================================== */
@media (min-width: 1600px) {
    .hero, .section { max-width: 1600px; margin: auto; }
}

@media (max-width: 1200px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-left { display: flex; flex-direction: column; align-items: center; }
    .hero-left p { max-width: 700px; }
    .hero-right { margin-top: 60px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    nav { 
        padding: 15px 6%; 
        flex-direction: row; 
        justify-content: space-between; 
        width: 100vw;
    }
    
    .menu-toggle { 
        display: block; 
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 8, 22, 0.98);
        backdrop-filter: blur(25px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.1, 1, 0.1, 1);
    }

    nav ul.active {
        max-height: 480px; /* Safe expand vertical space limit */
    }

    nav ul li {
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav ul a {
        display: block;
        padding: 16px 0;
        width: 100%;
        font-size: 15px;
    }

    .hero { padding-top: 140px; }
    .hero-left h1 { font-size: 64px; }
    .hero-left h2 { font-size: 28px; }
    .section-title h2 { font-size: 42px; }
    .timeline { flex-direction: column; }
    .line { width: 3px; height: 60px; }
    .step { width: 100%; }
    .glass-card { width: 320px; height: 320px; }
    .categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    section { padding: 80px 6%; }
    .hero { gap: 40px; }
    .hero-left h1 { font-size: 42px; }
    .hero-left h2 { font-size: 20px; }
    .hero-left p { font-size: 15px; }
    .badge { font-size: 12px; }
    .buttons { flex-direction: column; width: 100%; gap: 12px; }
    .btn { width: 100%; text-align: center; padding: 14px 28px; }
    .stats { grid-template-columns: 1fr; margin-top: 20px; }
    .stat { padding: 30px; }
    .stat h3 { font-size: 42px; }
    .categories { grid-template-columns: 1fr; }
    .category { padding: 35px 20px; }
    .about-card { padding: 35px; }
    .section-title h2 { font-size: 32px; }
    .section-title p { font-size: 15px; }
    .glass-card { width: 260px; height: 260px; }
    .glass-card i { font-size: 50px; }
    .glass-card h3 { font-size: 22px; }
    .register h2 { font-size: 32px; }
    .register p { font-size: 15px; }
    footer h2 { font-size: 26px; }
    .social i { width: 46px; height: 46px; font-size: 17px; }
}

.text-center { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; }
.hidden { display: none; }