
/* =========================
   ROOT VARIABLES
========================= */
:root {
    --primary: #0b3d91;
    --primary-dark: #072a63;
    --accent: #1e88e5;
    --text: #1f1f1f;
    --muted: #666;
    --bg: #f6f8fb;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* =========================
   RESET + BASE
========================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
}

/* =========================
   SCROLL PROGRESS BAR
========================= */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
}

/* =========================
   LOADER
========================= */
#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #0b0f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-box {
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================
   HEADER
========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: linear-gradient(90deg,
            rgba(21, 101, 192, 0.9),
            rgba(30, 136, 229, 0.9),
            rgba(66, 165, 245, 0.9));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
}

.header.shrink {
    padding: 10px 8%;
    background: linear-gradient(90deg,
            rgba(21, 101, 192, 0.98),
            rgba(30, 136, 229, 0.98));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* =========================
   LOGO
========================= */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    filter: brightness(1.3);
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}

/* =========================
   NAV
========================= */
nav {
    display: flex;
    gap: 25px;
}

nav a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 10%;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #00e5ff;
    border-radius: 10px;
    transition: width 0.3s ease;
}

nav a:hover {
    background: rgba(0, 229, 255, 0.12);
    transform: translateY(-2px);
}

nav a:hover::after,
nav a.active::after {
    width: 80%;
}

nav a.active {
    font-weight: 700;
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("IMG/Picture2.jpg") center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(11, 61, 145, 0.88),
            rgba(7, 42, 99, 0.88));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 850px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 40px;
    margin: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.primary {
    background: var(--primary);
    color: white;
}

.btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn.secondary {
    border: 2px solid white;
    color: white;
}

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

/* =========================
   STATS
========================= */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 70px 10%;
    background: var(--bg);
    text-align: center;
}

.stat-box h2 {
    font-size: 2.6rem;
    color: var(--primary);
}

.stat-box p {
    color: var(--muted);
}

/* =========================
   SECTIONS
========================= */
.section {
    padding: 90px 10%;
    text-align: center;
}

.section.light {
    background: var(--bg);
}

.section h2 {
    margin-bottom: 45px;
    font-size: 2rem;
    color: var(--text);
}

.center-text {
    max-width: 700px;
    margin: auto;
    color: var(--muted);
    line-height: 1.6;
}

/* =========================
   GRID
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* =========================
   CARDS
========================= */
.card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow);
    text-align: left;
    overflow: hidden;
    transition: all 0.35s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* =========================
   CTA
========================= */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 90px 20px;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* =========================
   WHATSAPP FLOAT
========================= */
.whatsapp {
    position: fixed;
    bottom: 22px;
    right: 22px;
    font-size: 48px;
    color: #25D366;
    z-index: 999;
}

/* =========================
   CONTACT
========================= */
.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header p {
    max-width: 700px;
    margin: auto;
    color: var(--muted);
}

.contact-card i {
    font-size: 24px;
    color: #0077cc;
    margin-bottom: 10px;
}

.map {
    margin-top: 30px;
}

/* =========================
   AUTH / LOGIN
========================= */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
}

.auth-container {
    position: relative;
    width: 950px;
    max-width: 95%;
    display: flex;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    background: white;
}

.auth-character {
    position: absolute;
    left: -90px;
    bottom: 0;
    width: 200px;
    transition: transform 0.6s ease;
}

.auth-character img {
    width: 100%;
    animation: dance 2.5s infinite ease-in-out;
}

@keyframes dance {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(-3deg);
    }

    50% {
        transform: translateY(0) rotate(3deg);
    }

    75% {
        transform: translateY(-6px) rotate(-2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.auth-container.contact-active .auth-character {
    transform: translateX(0);
}

.auth-container.login-active .auth-character {
    transform: translateX(40px);
}

.auth-container.signup-active .auth-character {
    transform: translateX(80px);
}

.auth-form-box {
    flex: 1;
    padding: 50px 40px;
    position: relative;
    min-height: 420px;
}

.view {
    position: absolute;
    width: calc(100% - 80px);
    top: 50px;
    left: 40px;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.view.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.auth-overlay {
    width: 35%;
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.password-box {
    position: relative;
}

.password-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #1e88e5;
    color: white;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #1565c0;
}

.auth-overlay button {
    background: white;
    color: #1565c0;
}

.link {
    display: block;
    margin-top: 12px;
    color: #1e88e5;
    cursor: pointer;
}

.info-box {
    background: #f1f5ff;
    padding: 15px;
    border-radius: 10px;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #0b0f1a;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 0.9rem;
}

.footer-credit {
    font-size: 13px;
    font-style: italic;
    color: #00e5ff;
    opacity: 0.8;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 60px 20px;
    }

    .auth-container {
        flex-direction: column;
    }

    .auth-character {
        display: none;
    }
}

