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

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0b1220; /* Primary background fallback */
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #51cbf5 0%, #3b82f6 40%, #9d4edd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    height: 35px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: lighten;
}

/* ================= NAV LINKS ================= */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #3b82f6;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #3b82f6;
}

/* ================= HAMBURGER MENU (hidden on desktop) ================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #e2e8f0;
    border-radius: 2px;
    transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ================= LOGIN / SIGNUP BUTTONS ================= */
.btn-small {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    color: white !important;
    transition: 0.3s;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-small.primary {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border: none;
}

.btn-small:hover {
    transform: translateY(-2px);
    background: #3b82f6;
}

.btn-small-primary {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    padding: 8px 16px;
    border-radius: 8px;
    color: white !important;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    border: none;
}

.btn-small-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ================= HERO ================= */
.hero {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 60px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), radial-gradient(circle at top, #1e293b, #0b1220);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 60px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.large-logo {
    max-width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    mix-blend-mode: lighten;
}

.hero-content {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ================= HERO BUTTONS ================= */
.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(59, 130, 246, 0.35);
}

.btn-outline {
    border: 2px solid #3b82f6;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    color: #3b82f6;
    transition: 0.3s;
    display: inline-block;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-3px);
}

/* ================= FEATURES ================= */
.features {
    padding: 80px 20px;
    text-align: center;
    background: #0f172a;
}

.features h2 {
    font-size: 2.4rem;
    margin-bottom: 40px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

.card {
    background: rgba(30, 41, 59, 0.7);
    padding: 25px;
    border-radius: 14px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(51, 65, 85, 0.9);
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
}

/* ================= ABOUT ================= */
.about {
    padding: 80px 20px;
    text-align: center;
    background: #0b1220;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #3b82f6;
}

.about p {
    max-width: 700px;
    margin: auto;
    color: #cbd5e1;
    line-height: 1.7;
}

/* ================= CONTACT ================= */
.contact {
    padding: 60px 20px;
    text-align: center;
    background: #0f172a;
}

.contact p {
    color: #cbd5e1;
}

.contact p a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact p a:hover {
    color: #8b5cf6;
    text-decoration: underline;
}

/* ================= FOOTER ================= */
footer {
    padding: 20px;
    text-align: center;
    background: #020617;
    color: #94a3b8;
    font-size: 14px;
}

/* =====================================================
   RESPONSIVE MOBILE FIXES
   ===================================================== */

/* ---- Tablets & small laptops ---- */
@media (max-width: 992px) {
    .navbar {
        padding: 16px 32px;
    }

    .hero {
        padding: 40px 32px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-container {
        gap: 30px;
    }

    .large-logo {
        max-height: 320px;
    }
}

/* ---- Mobile phones & small tablets ---- */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 24px;
        position: relative;
    }

    /* Show hamburger, hide default nav */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 14px 24px;
    }

    .nav-links a.btn-small-primary {
        display: inline-block;
        width: calc(100% - 48px);
        margin: 8px 24px;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 50px 24px;
    }

    .hero-container {
        flex-direction: column-reverse; /* image on top, text below */
        gap: 30px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .large-logo {
        max-height: 260px;
    }

    .features,
    .about,
    .contact {
        padding: 60px 20px;
    }

    .features h2,
    .about h2,
    .contact h2 {
        font-size: 1.9rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Small phones ---- */
@media (max-width: 420px) {
    .navbar {
        padding: 14px 16px;
    }

    .logo {
        font-size: 20px;
        gap: 8px;
    }

    .logo-icon {
        height: 28px;
    }

    .hero {
        padding: 40px 16px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .large-logo {
        max-height: 200px;
    }

    .features h2,
    .about h2,
    .contact h2 {
        font-size: 1.6rem;
    }

    .card {
        padding: 20px;
    }
}
