/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
}

/* --- Sticky Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #1e293b;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Logo left, Links right */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #38bdf8;
    text-decoration: none;
    letter-spacing: -1px;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar ul li a:hover, .navbar ul li a.active {
    color: #38bdf8;
}

/* --- Mobile Menu Toggle --- */
#click { display: none; }
.menu-btn { display: none; font-size: 1.8rem; cursor: pointer; color: #fff; }

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 60px 20px 20px;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 10px; }

/* --- The 2x2 Grid --- */
.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Exactly 2 columns */
    gap: 30px;
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    padding-bottom: 60px;
}

.card {
    background: #1e293b;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    border: 1px solid #334155;
    transition: transform 0.3s ease, border-color 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #38bdf8;
}

.icon { font-size: 4rem; margin-bottom: 20px; }
h2 { margin-bottom: 15px; font-size: 1.8rem; color: #38bdf8; }
p { color: #94a3b8; line-height: 1.6; margin-bottom: 25px; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #38bdf8;
    color: #0f172a;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 850px) {
    .menu-btn { display: block; }
    
    .navbar ul {
        position: fixed;
        top: 80px;
        left: -100%; /* Hidden by default */
        background: #111b2d;
        height: 100vh;
        width: 100%;
        display: block;
        text-align: center;
        transition: all 0.3s ease;
    }

    #click:checked ~ ul {
        left: 0; /* Slides in when clicked */
    }

    .navbar ul li {
        margin: 40px 0;
    }

    .navbar ul li a {
        font-size: 1.5rem;
        display: block;
    }

    /* Change Grid to 1 column on small screens */
    .container {
        grid-template-columns: 1fr;
    }
}

/* ===== FOOTER ===== */
footer {
    background: #1e293b;
    padding: 40px 20px;
    text-align: center;
    color: #777;
    margin-top: 60px;
}

/* Footer Link Colors */
footer a {
    color: #38bdf8;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}
