/* --- Google Font API Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* --- Base Reset --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    background: #0a1622;
    color: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- Header --- */

.main-header {
    width: 100%;
    background: #050b13; 
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    z-index: 1000;
    transition: 0.3s;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: #4eb5c2;
    letter-spacing: 3px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    padding-bottom: 12px;
    position: relative;
    transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #4eb5c2;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #4eb5c2;
    border-radius: 2px;
    transition: 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* --- Responsive Layouts --- */

/* Big Tablets & iPads (Portrait) */
@media (max-width: 1024px) {
    .header-container { padding: 0 30px; }
    .nav-menu ul { gap: 20px; }
}

/* Tablets to Mobile Switch (992px) */
@media (max-width: 992px) {
    .mobile-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%; /* Slightly narrower for tablets */
        height: 100vh;
        background: rgba(5, 11, 19, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-menu.open { right: 0; }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-menu a { font-size: 1.25rem; }
}

/* Large Phones & Small Tablets */
@media (max-width: 600px) {
    .nav-menu { width: 85%; }
    .logo { font-size: 1.2rem; }
}

/* Foldables & Ultra-Small Screens */
@media (max-width: 320px) {
    .header-container { padding: 0 15px; }
    .nav-menu { width: 100%; }
    .logo { font-size: 1.1rem; }
    .logo small { letter-spacing: 1px; }
}

/* Ultra-wide Desktop */
@media (min-width: 1400px) {
    .header-container { max-width: 1400px; }
}