/* --- GLOBAL & THEME --- */
:root {
    --bg-black: #0a0a0a;
    --bg-card: #151515;
    --primary-green: #00ff88;
    --dark-green: #00b35f;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --border-color: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1300px;
    margin: auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 1px;
}

.logo span { color: var(--primary-green); }

/* Desktop Nav */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover { color: var(--primary-green); }

.auth-btns {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-login:hover { color: var(--primary-green); }

.btn-register {
    background-color: var(--primary-green);
    color: var(--bg-black);
    padding: 10px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    display: inline-block;
}

.btn-register:hover {
    background-color: var(--text-white);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-black); 
    padding-top: 80px;
    position: relative; 
    overflow: hidden;   
}

#hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; 
    pointer-events: none; 
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    position: relative;
    z-index: 1; 
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary-green);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.floating-element { animation: float 4s ease-in-out infinite; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- SECTIONS & CARDS --- */
section + section {
    margin-top: 0;
}
/* BEFORE */
section {
    padding: 80px 5%;
    max-width: 1300px;
    margin: auto;
}

/* AFTER */
section {
    padding: 60px 5%;
    max-width: 1300px;
    margin: 0 auto;
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px; /* 40px → 30px */
}
.section-title span { color: var(--primary-green); }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background-color: var(--primary-green);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}
/* --- CARD IMAGES (FIXED) --- */
.card-img-container {
    width: 100%;
    height: 200px !important; /* Forces a strict height */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #111;
    border: 1px solid var(--border-color);
    display: block;
}

.card-img-container img {
    width: 100%;
    height: 100% !important; /* Forces image to fit the 200px box */
    object-fit: cover !important; /* Crops the image perfectly instead of stretching */
    display: block;
    transition: transform 0.4s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
}

.card:hover::before { transform: scaleX(1); }

.card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-white); }
.card p { color: var(--text-gray); line-height: 1.6; }

/* --- ALTERNATING SPLIT LAYOUTS --- */
.split-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 100px 5%;
    max-width: 1200px;
    margin: auto;
}

.split-section.reverse { flex-direction: row-reverse; }

.split-text { flex: 1; }
.split-text h2 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.2; }
.split-text h2 span { color: var(--primary-green); }
.split-text p { color: var(--text-gray); font-size: 1.1rem; line-height: 1.7; margin-bottom: 25px; }

.split-list { list-style: none; margin-bottom: 30px; }
.split-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
}

.split-list li::before {
    content: '✓';
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.split-image { flex: 1; position: relative; }
.split-image img {
    width: 100%;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.split-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.15);
}

/* --- LIVE TICKER --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-bottom: 50px;
}

.ticker { display: inline-block; white-space: nowrap; animation: ticker 20s linear infinite; }
.ticker-item { display: inline-block; padding: 0 40px; font-weight: bold; font-size: 1.1rem; }
.ticker-item span.up { color: var(--primary-green); }
.ticker-item span.down { color: #ff4d4d; }

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .hamburger { 
        display: flex; 
        z-index: 1001; 
    }

    /* Mobile Menu Default State */
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100vw;
        width: 100vw;
        height: calc(100vh - 70px);
        background-color: var(--bg-black);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        border-bottom: 1px solid var(--border-color);
        transition: right 0.4s ease;
        gap: 30px;
        display: flex;
        z-index: 999;
    }

    .nav-links.active { right: 0; }

    .nav-links ul {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .auth-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .btn-register { width: 100%; text-align: center; }
    .btn-login { text-align: center; padding: 10px 0; }

    .hero h1 { font-size: 2.2rem; }

    /* Stack Split Layouts */
    .split-section, .split-section.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 5%;
    }
    
    .split-list li { justify-content: center; }
}

/* --- SITE FOOTER --- */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 80px 5% 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col .logo {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-col .logo span {
    color: var(--primary-green);
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

/* Little green line under headings */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-green);
}

.footer-desc {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Footer Links with Hover Animation */
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary-green);
    transform: translateX(5px); /* Moves slightly right on hover */
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-black);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-3px);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    background-color: var(--bg-black);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-white);
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input:focus {
    border-color: var(--primary-green);
}

.newsletter-form button {
    cursor: pointer;
    border: none;
    padding: 12px 20px;
}

/* Bottom Bar */
.footer-bottom {
    max-width: 1300px;
    margin: auto;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--primary-green);
}

/* --- MOBILE RESPONSIVE FOOTER --- */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr; /* Stack everything in one column */
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%); /* Center the green line */
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}
/* --- NAVBAR LOGO (Image Version) --- */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 55px; /* Adjust this if you want the logo bigger/smaller */
    width: auto;
    object-fit: contain;
    /* Adds a subtle green glow around the image to match the theme */
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3)); 
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover effect on the logo */
.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.6));
}