
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    font-family: Arial,sans-serif;
}

.container img {
    max-width: 100%;
    height: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col {
    flex: 1 1 300px;
}

body {
    background: #f4f4f4;
    padding-top: 60px;
}

/* Header */
header {
    background: purple;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    flex-wrap: wrap;
    position: fixed;        /* ✅ Fixed so it stays on top */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Nav links in header */
.menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.menu a:hover {
    background: rgba(255,255,255,0.2);
}

#navLogin {
    background: white;
    color: purple !important;
}

#navSignup {
    border: 1.5px solid rgba(255,255,255,0.7);
}

#navProfile {
    background: #f59e0b;
    color: white !important;
    display: none;
}

#navLogout {
    display: none;
}

/* Hero */
.hero {
    background: url("images/bg.jpg") center/cover;
    padding: 60px 15px;
    text-align: center;
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    width: 60%;
    margin: 20px auto;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-box button {
    padding: 14px;
    border: none;
    background: #6a1b9a;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.search-box button:hover {
    background: #4a148c;
}

/* Features */
.features {
    padding: 30px 15px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* Slider */
.slider-section {
    background: black;
    color: white;
    padding: 30px 15px;
    clear: both;
    position: relative;
    z-index: 1;
}

.slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    margin-top: 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 5px;
}

.slider::-webkit-scrollbar { display: none; }

.slider img {
    border-radius: 10px;
    min-width: 250px;
    height: 170px;
    object-fit: cover;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
}

.menu-icon {
    cursor: pointer;
    font-size: 22px;
}

/* Menu panel */
.menu-panel {
    position: absolute;
    color: white;
    top: 60px;
    left: 10px;
    background: #1f1f1f;
    width: 200px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: column;
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.menu-panel a {
    color: white;
    text-decoration: none;
    padding: 12px;
    border-bottom: 1px solid #333;
}

.menu-panel a:hover {
    background: black;
}

.dropdown-btn {
    background: black;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.dropdown-list {
    position: absolute;
    top: 45px;
    left: 0;
    background: #000;
    width: 150px;
    border-radius: 6px;
    display: none;
    z-index: 3000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.dropdown-list div {
    padding: 10px;
    color: #000;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-list div:hover {
    background: purple;
    color: #fff;
}

a {
    color: black;
    text-decoration: none;
}

/* About page */
.about-hero {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #6d28d9, #9333ea);
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-content {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.about-card {
    background: rgba(255,255,255,0.08);
    padding: 25px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
}

.about-card h2 {
    margin-bottom: 12px;
    color: #c084fc;
}

.about-card p {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ── MOBILE ────────────────────────────── */
@media (max-width: 768px) {

    body {
        padding-top: 64px;
    }

    /* Header stacks logo on top, nav below */
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 16px;
        min-height: auto;
        gap: 8px;
    }

    .logo {
        font-size: 20px;
        margin-bottom: 0;
    }

    /* Nav wraps nicely on mobile */
    .menu {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }

    .menu a {
        font-size: 12px;
        padding: 5px 10px;
        flex: 1 1 auto;
        text-align: center;
        min-width: 70px;
    }

    /* Search box full width on mobile */
    .search-box {
        width: 90%;
        flex-direction: row; /* keep side by side */
    }

    .search-box input {
        font-size: 14px;
        padding: 12px 14px;
    }

    .search-box button {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Features 2 column on mobile */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Smaller slider images on mobile */
    .slider img {
        min-width: 200px;
        height: 130px;
    }

    /* About page */
    .about-hero h1 {
        font-size: 2rem;
    }

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

/* Very small screens */
@media (max-width: 400px) {
    .menu a {
        font-size: 11px;
        padding: 5px 8px;
    }

    .search-box {
        width: 95%;
    }

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

    .slider img {
        min-width: 160px;
        height: 110px;
    }
}
