@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-green: #2EBD85;
    --primary-red: #E52E2E;
    --bg-dark: #0A0E17;
    --bg-panel: rgba(20, 26, 41, 0.7);
    --bg-panel-light: rgba(30, 39, 56, 0.8);
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --green-glow: 0 0 20px rgba(46, 189, 133, 0.4);
    --red-glow: 0 0 20px rgba(229, 46, 46, 0.3);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', system-ui, sans-serif; }

html, body { overflow-x: hidden; max-width: 100%; }

body { background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; }

body::before {
    content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(46, 189, 133, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(229, 46, 46, 0.05) 0%, transparent 40%);
    z-index: -1; pointer-events: none;
}

h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 6vw, 4.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1rem; }
@media (min-width: 768px) { p { font-size: 1.1rem; } }

.text-gradient-green { background: linear-gradient(135deg, #4AF5A8, #2EBD85); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-red { background: linear-gradient(135deg, #FF6B6B, #E52E2E); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-green { color: var(--primary-green); }
.text-red { color: var(--primary-red); }

.container { max-width: 1400px; margin: 0 auto; padding: 0 1.25rem; width: 100%; }
.text-center { text-align: center; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; transition: all 0.35s; cursor: pointer; border: none; white-space: nowrap; overflow: hidden;
}
.btn-primary { background: linear-gradient(135deg, #2EBD85, #1B8C5F); color: #FFF; box-shadow: var(--green-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(46, 189, 133, 0.6); }
.btn-secondary { background: linear-gradient(135deg, #E52E2E, #BD2020); color: #FFF; box-shadow: var(--red-glow); }
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(229, 46, 46, 0.6); }
.btn-outline { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary-red); color: var(--primary-red); transform: translateY(-3px); }

/* ====== NAVBAR ====== */
.navbar {
    background: rgba(10, 14, 23, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 999;
    padding: 0.8rem 0;
    transition: padding 0.3s, background 0.3s;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.navbar-brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; font-size: 1.8rem; font-weight: 900; color: var(--text-main); letter-spacing: 1px; flex-shrink: 0; }
.navbar-brand img { height: 58px; }

/* Desktop nav links */
.navbar-nav { display: none; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .navbar-nav { display: flex; } }

.nav-link { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 1rem; position: relative; transition: color 0.3s; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary-green); transition: width 0.3s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--primary-green); }

/* Desktop auth buttons */
.nav-auth { display: none; gap: 0.75rem; align-items: center; flex-shrink: 0; }
@media (min-width: 992px) { .nav-auth { display: flex; } }

/* Mobile toggle button */
.mobile-menu-btn { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.07); border: 1px solid var(--border-color); width: 40px; height: 40px; border-radius: 8px; color: var(--text-main); font-size: 1.2rem; cursor: pointer; transition: background 0.3s; }
.mobile-menu-btn:hover { background: rgba(255,255,255,0.12); }
@media (min-width: 992px) { .mobile-menu-btn { display: none; } }

/* Mobile drawer */
.mobile-drawer {
    display: none;
    flex-direction: column;
    background: rgba(10, 14, 23, 0.98);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    position: absolute; top: 100%; left: 0; right: 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    gap: 1rem;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer .mobile-nav-links { display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-drawer .mobile-nav-links a { color: var(--text-muted); text-decoration: none; font-size: 1.05rem; font-weight: 500; padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); transition: color 0.3s; }
.mobile-drawer .mobile-nav-links a:last-child { border-bottom: none; }
.mobile-drawer .mobile-nav-links a:hover, .mobile-drawer .mobile-nav-links a.active { color: var(--primary-green); }
.mobile-drawer .mobile-auth { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1rem; }
.mobile-drawer .mobile-auth .btn { width: 100%; }

/* ====== CARDS ====== */
.card {
    background: var(--bg-panel); backdrop-filter: blur(16px);
    border: 1px solid var(--border-color); border-radius: 16px;
    padding: 1.75rem; box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); }
.card:hover { transform: translateY(-5px); border-color: rgba(46, 189, 133, 0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(46, 189, 133, 0.08); }

/* ====== FORMS ====== */
.form-group { margin-bottom: 1.25rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
.form-control { width: 100%; padding: 0.9rem 1.1rem; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); font-size: 1rem; transition: all 0.3s; }
.form-control:focus { outline: none; border-color: var(--primary-green); background: rgba(0,0,0,0.35); box-shadow: 0 0 0 3px rgba(46, 189, 133, 0.1); }

/* ====== ANIMATIONS ====== */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.floating { animation: float 6s ease-in-out infinite; }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(46,189,133,0.4); } 70% { box-shadow: 0 0 0 18px rgba(46,189,133,0); } }
.glow-btn { animation: pulse-glow 2.2s infinite; }

/* ====== LAYOUT UTILS ====== */
.section-padding { padding: 4rem 0; }
@media (min-width: 992px) { .section-padding { padding: 7rem 0; } }

/* ====== FOOTER ====== */
.footer { background: linear-gradient(to top, #05070a, transparent); padding: 4rem 0 2rem; border-top: 1px solid var(--border-color); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; } }
.footer-col h4 { margin-bottom: 1.25rem; color: var(--text-main); font-size: 1.1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.9rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: all 0.3s; display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary-red); transform: translateX(4px); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--text-main); text-decoration: none; transition: all 0.3s; font-size: 1.1rem; border: 1px solid var(--border-color); }
.social-icon:hover { background: var(--primary-red); border-color: var(--primary-red); color: #FFF; transform: translateY(-3px); }
