@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
    --bg-dark: #07080A;
    --bg2-dark: #1d1f23;
    --bg-light: #ffffff;
    --text-dark: #ffffff;
    --text-light: #000000;
    --active: #16A34A;
    --actived: #159946;
    --hover-bg: #222;
    --group2-hover-bg: #222;
}

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

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-dark);
    transition: background 0.3s, color 0.3s;
    position: relative;
}

body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-light);
}

body.blurred::after {
    content: '';
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    height: calc(100% - 100px);
    backdrop-filter: blur(8px);
    z-index: 5;
    pointer-events: none;
}

header {
    background-color: transparent;
    backdrop-filter: blur(50px);
    border-bottom: 1px solid var(--text-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.light-mode header {
    border-bottom: 1px solid var(--text-light);
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    margin: 10px 130px;
}

a.logo {
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Poppins";
    font-weight: bold;
    font-size: 1.5rem;
}

.logo img {
    width: 30px;
    height: 30px;
}

nav {
    display: flex;
    align-items: center;
    font-family: "Ubuntu", sans-serif;
    font-weight: bold;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: inherit;
    font-size: 0.95rem;
    padding: 10px 15px;
    transition: color 0.3s;
}

nav a.active {
    background: var(--hover-bg);
    color: var(--active);
}

nav a:hover {
    background: var(--hover-bg);
    color: var(--active);
}

.icons {
    display: flex;
    gap: 16px;
}

.icons a {
    font-size: 18px;
    color: inherit;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.icons a:hover {
    background-color: var(--group2-hover-bg);
    color: var(--active);
}

.menu-toggle {
    font-size: 24px;
    background: transparent;
    border: none;
    color: inherit;
    display: none;
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: inherit;
    flex-direction: column;
    padding: 0 20px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    border-bottom: 1px solid white;
    /* ✅ white border added */
    border-top: none;
    z-index: 99;
}

.mobile-menu.show {
    max-height: 500px;
    padding: 20px;
    opacity: 1;
    transform: translateY(0);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.mobile-menu .group1 {
    margin: 10px 0 20px;
    display: flex;
    flex-direction: column;
    font-family: "Ubuntu", sans-serif;
    font-weight: bold;
    gap: 12px;
}

.mobile-menu .group1 a {
    padding: 10px 12px;
    text-decoration: none;
    color: inherit;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-menu .group1 a.active,
.mobile-menu .group1 a:hover {
    background-color: var(--hover-bg);
    color: var(--active);
}

.mobile-menu .group2 {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.mobile-menu .group2 a {
    font-size: 20px;
    color: inherit;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-menu .group2 a:hover {
    background-color: var(--group2-hover-bg);
    color: var(--active);
}

main {
    padding: 40px 20px;
    z-index: 1;
    position: relative;
}

@media (max-width: 768px) {
    .container {
        margin: 0;
    }

    nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

@media (min-width: 769px) {

    nav a,
    .icons a {
        border-radius: 8px;
    }
}