:root {
    --bg-color: #FAFAFA;
    --card-bg: #E0E0E0;
    --text-color: #121212;
    --accent-color: #00D8FF;
    --shadow-light: #FFFFFF;
    --shadow-dark: #BEBEBE;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: var(--card-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.logo img {
    height: 50px;
    border-radius: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

nav a:hover {
    color: var(--accent-color);
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
    animation: fadeIn 1s ease forwards;
}

#hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, var(--card-bg), var(--bg-color));
}

/* Neumorphic card */
.neumorphic {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 8px 8px 16px var(--shadow-dark),
                -8px -8px 16px var(--shadow-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
}

.btn:hover {
    transform: scale(1.05);
}

/* Services */
.services ul {
    list-style: none;
    padding: 0;
}

.services li {
    background: var(--card-bg);
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 10px;
}

/* Footer */
footer {
    background: var(--card-bg);
    text-align: center;
    padding: 2rem;
}

.social a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--text-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE NAVBAR (FINAL)
   ========================= */
@media (max-width: 768px) {

    /* Header becomes vertical container */
    header {
        flex-direction: column;
        align-items: stretch;   /* 🔥 KEY LINE */
        padding: 0.8rem 1rem;
    }

    /* Top bar: logo left, menu right */
    .nav-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo img {
        height: 42px;
    }

    /* Hamburger */
    .menu-toggle {
        display: block;
        font-size: 2rem;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* Dropdown menu */
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--card-bg);
        margin-top: 0.6rem;
        padding: 1rem 0;
        border-radius: 12px;
    }

    nav ul li {
        text-align: center;
        padding: 0.6rem 0;
    }

    nav ul.active {
        display: flex;
    }
}
