/* Root Body */
body {
    background-color: #1a1a1a;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    padding: 0;
    margin: 0;
}

/* Navbar Container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #2a2a2a;
    padding: clamp(10px, 2vw, 16px) clamp(16px, 4vw, 32px);
    border-radius: 8px;
    box-sizing: border-box;
    flex-wrap: wrap; /* for small screens */
}

/* Logo Section */
.navbar-logo .logo {
    height: clamp(30px, 5vw, 40px); /* Responsive logo size */
}

/* Link Group */
.navbar-links {
    display: flex;
    gap: clamp(10px, 3vw, 24px);
    flex-wrap: wrap;
}

/* Navigation Links */
.navbar-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: #fff;
}

/* Time Display */
.navbar-time {
    color: #ccc;
    font-weight: bold;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

/* ============================= */
/* MEDIA QUERIES FOR ADAPTATION */
/* ============================= */

/* Mobile Devices (<480px) */
@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }

    .navbar-links {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .navbar-time {
        align-self: flex-end;
        width: 100%;
        text-align: right;
    }
}

/* Small to Medium Screens (≤1366px, e.g., 720p) */
@media (max-width: 1366px) {
    .navbar {
        padding: 12px 20px;
    }
}

/* Large Screens (≥1920px, e.g., 1080p and above) */
@media (min-width: 1920px) {
    .navbar {
        max-width: 1600px;
        padding: 20px 48px;
    }

    .navbar-links a {
        font-size: 1.2rem;
    }

    .navbar-time {
        font-size: 1.1rem;
    }
}
