@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

:root {
    --color-1: #222;
    --text-color: #fff;
    --accent-color: #f79420;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 12pt;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

/* ====== Layout ====== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #1f1e1e;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ====== Header / Navbar ====== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-1);
    height: 60px;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 15px;
    margin-top: 4px;
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.links-container {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

nav a {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    transition: background 0.3s ease;
}

nav a:hover {
    background-color: var(--accent-color);
    color: #000;
}

nav .home-link {
    margin-right: auto;
}

nav svg {
    fill: var(--text-color);
}

#sidebar-active {
    display: none;
}

.open-sidebar-button,
.close-sidebar-button {
    display: none;
}

/* ====== Dropdown Menu (optional) ====== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
    z-index: 10;
    flex-direction: column;
}

.dropdown-content a {
    padding: 10px 20px;
    width: 100%;
    text-align: left;
    color: var(--text-color);
    text-decoration: none;
    background-color: var(--color-1);
}

.dropdown-content a:hover {
    background-color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
    display: flex;
}

/* ====== WhatsApp Button ====== */
.whatsapp-button {
    position: fixed;
    bottom: 40px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    z-index: 100;
}

.whatsapp-icon {
    width: 75px;
    height: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50%;
}

.whatsapp-button:hover .whatsapp-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ====== Mobile Nav ====== */
@media (max-width: 600px) {
    .links-container {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 300px;
        background-color: var(--color-1);
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.75s ease-out;
        padding-top: 60px;
    }

    nav a {
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }

    .open-sidebar-button,
    .close-sidebar-button {
        padding: 20px;
        display: block;
        cursor: pointer;
    }

    #sidebar-active:checked ~ .links-container {
        right: 0;
    }

    #sidebar-active:checked ~ #overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
        background: rgba(0, 0, 0, 0.5);
        display: block;
    }

    #overlay {
        display: none;
    }

    .dropdown-content {
        position: static;
        width: 100%;
    }
}

/* ====== Main Content ====== */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    margin-top: 60px; /* offset for fixed header */
}

/* ====== Spinner ====== */
.loader {
    border: 8px solid #222;
    border-top: 8px solid var(--accent-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-top: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====== Typography ====== */
h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ====== Footer ====== */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: var(--color-1);
    font-size: 0.9em;
    color: var(--text-color);
}
