/* --- 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; }


/* --- body sections starts --- */
/* --- Content Sections --- */
.content-section {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto; /* More space between sections */
}

.section-title {
    color: #f8fafc;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.section-desc {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 25px;
}

/* --- The Platform Grid --- */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.platform-card {
    background: #111111; /* Pitch black cards like your image */
    border-radius: 12px;
    padding: 40px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #1e293b;
    transition: all 0.3s ease;
}

.platform-card:hover {
    background: #1a1a1a;
    border-color: #38bdf8;
    transform: translateY(-5px);
}

.logo-wrapper {
    height: 60px; /* Limits logo height to keep them uniform */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-wrapper img {
    max-height: 100%;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Optional: makes all logos white if you want a minimal look */
}

.platform-card span {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.fit-page {
      max-width: 100%;
      height: auto;
      display: block;
}

/* Mobile Tweak: 2 cards per row */
@media (max-width: 500px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- body sections ends ---*/


/* --- 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;
}
