/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", sans-serif; background: #040d21; color: #fff; overflow-x: hidden; }

/* ===== GLASS MORPHISM ===== */
.glass {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}
.glass-dark {
    background: rgba(4,13,33,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ===== NAVBAR SCROLL ===== */
#navbar { background: transparent; }
#navbar.scrolled { background: rgba(4,13,33,0.92); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.08); box-shadow: 0 4px 30px rgba(0,0,0,0.4); }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-2 {
    background: linear-gradient(135deg, #f472b6, #fb923c, #facc15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.6); opacity: 0.95; }

.btn-outline {
    background: transparent;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }

/* ===== 3D CARD ===== */
.card-3d {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}
.card-3d:hover { transform: translateY(-10px) rotateX(5deg); box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(59,130,246,0.15); }

/* ===== SERVICE CARD ===== */
.service-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(6,182,212,0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover { border-color: rgba(59,130,246,0.4); transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(59,130,246,0.1); }
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(6,182,212,0.2));
    border: 1px solid rgba(59,130,246,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon { background: linear-gradient(135deg, rgba(37,99,235,0.4), rgba(6,182,212,0.4)); transform: scale(1.1) rotate(5deg); box-shadow: 0 0 20px rgba(59,130,246,0.4); }

/* ===== STATS ===== */
.stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.25rem;
    padding: 1.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}
.stat-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(59,130,246,0.3); transform: translateY(-4px); }

/* ===== GLOW EFFECTS ===== */
.glow-blue { box-shadow: 0 0 40px rgba(59,130,246,0.3); }
.glow-cyan { box-shadow: 0 0 40px rgba(6,182,212,0.3); }
.text-glow { text-shadow: 0 0 30px rgba(96,165,250,0.5); }

/* ===== HERO ===== */
#hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

/* ===== SECTION DIVIDER ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), transparent);
    margin: 0 auto;
}

/* ===== FORM INPUTS ===== */
.input-field {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}
.input-field::placeholder { color: rgba(255,255,255,0.35); }
.input-field:focus { border-color: rgba(59,130,246,0.7); background: rgba(59,130,246,0.08); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.3);
    color: #93c5fd;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(0.8);} }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #040d21; }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59,130,246,0.7); }

/* ===== ANIMATIONS ===== */
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-20px);} }
@keyframes float-delay { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-15px);} }
@keyframes spin-slow { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
@keyframes pulse-ring { 0%{transform:scale(1);opacity:0.8;} 100%{transform:scale(1.8);opacity:0;} }
@keyframes gradient-shift { 0%,100%{background-position:0% 50%;} 50%{background-position:100% 50%;} }

.float { animation: float 6s ease-in-out infinite; }
.float-delay { animation: float-delay 8s ease-in-out infinite; }
.spin-slow { animation: spin-slow 20s linear infinite; }
.pulse-ring::before {
    content:''; position:absolute; inset:-8px; border-radius:inherit;
    border: 2px solid rgba(59,130,246,0.4);
    animation: pulse-ring 2s ease-out infinite;
}

/* ===== FOOTER ===== */
.footer-link { color: rgba(255,255,255,0.5); transition: color 0.3s ease; text-decoration: none; }
.footer-link:hover { color: #60a5fa; }

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #040d21 0%, #0a1628 50%, #040d21 100%);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content:''; position:absolute; top:-50%; left:-50%;
    width:200%; height:200%;
    background: radial-gradient(circle at 30% 50%, rgba(37,99,235,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(6,182,212,0.06) 0%, transparent 50%);
}

/* ===== ALERT ===== */
.alert-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; border-radius: 0.75rem; padding: 0.875rem 1.25rem; margin-bottom: 1rem; }
.alert-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; border-radius: 0.75rem; padding: 0.875rem 1.25rem; margin-bottom: 1rem; }

/* ===== GLASS CARD ===== */
.glass-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.25rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== FORM INPUT (alias used by landing pages) ===== */
.form-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input:focus { border-color: rgba(59,130,246,0.7); background: rgba(59,130,246,0.08); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
textarea.form-input { resize: vertical; min-height: 100px; }

/* Chrome / Edge / Safari autofill override — keep inputs dark */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active,
.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus,
.input-field:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px #0a1933 inset !important;
    box-shadow: 0 0 0 1000px #0a1933 inset !important;
    caret-color: #fff !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* ===== COUNTER ===== */
.counter-value { font-size: 3rem; font-weight: 900; line-height: 1; }

/* ===== TESTIMONIAL ===== */
.testimonial-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}
.testimonial-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-5px); }

/* ===== ADMIN ===== */
.admin-sidebar-link { display:block; padding:0.625rem 1rem; border-radius:0.5rem; color:rgba(255,255,255,0.6); transition:all 0.2s; font-size:0.9rem; }
.admin-sidebar-link:hover { background:rgba(59,130,246,0.15); color:#fff; }
.admin-sidebar-link.active { background:rgba(59,130,246,0.2); color:#93c5fd; border-left:2px solid #3b82f6; }
