* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #fff;
    font-family: 'Roboto', Tahoma, Verdana, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --font-color: rgba(255, 255, 255, 1.0);
    --glass-bg: rgba(81, 120, 190, 1);
    --border: 1px solid rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(73, 78, 141, 0.37);
    --background_gradient: linear-gradient(0deg, #092773, #425994) /*#3e63a8*/;
    --background_color: #425994;
}

body {
    background: var(--background_color);
    min-height: 100vh;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    background: var(--background_gradient);
    border-bottom: var(--border);
    z-index: 1000;
    /* transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
    box-shadow: var(--shadow);
}

/* .navbar.scrolled {
    background: rgba(10, 10, 10, 0.55);
} */

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0;
    padding: 1rem 2rem;
}

.header-container {
    width: 100%;
    padding-left: 60px;
    background-image: url('tooth_small.svg');
    background-repeat: no-repeat;
    background-size: 50px 50px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.header-left {
    float: left;
    height: 3rem;
    font-size: 1.8rem;
    font-weight: 800;
    white-space: nowrap;
    padding-left: 30px;
    min-width: 0; 
}

.header-right {
    float: right;
    padding-top: 11px;
    padding-right: 30px;
    min-width: 0; 
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--font-color);
    background-size: 300%;
    transition: width 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--font-color);
    background-size: 300%;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-links a:hover::before,
.nav-links a:hover::after {
    width: 100%;
    animation: gradient 8s linear infinite;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.mobile-nav-toggle:hover {
    background-color: var(--background_color);
}

.mobile-nav-toggle .bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.4s ease;
}

.mobile-nav-toggle .bar:nth-child(1) {
    top: 14px;
}

.mobile-nav-toggle .bar:nth-child(2) {
    top: 19px;
}

.mobile-nav-toggle .bar:nth-child(3) {
    top: 24px;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.section-title {
    font-size: 3rem;
}

.section-description {
    font-size: 1rem;
    padding: 0 1rem;
}

section {
    min-height: 100vh;
    padding: 120px 5% 80px;
    display: flex;
    /* justify-content: center; */
    /* align-items: center; */
    position: relative;
    overflow: hidden;
}

section:nth-child(even) {
    background: var(--section-bg);
}

.section-content {
    max-width: 1400px;
    width: 100%;
    text-align: left;
    position: relative;
    z-index: 1;
}

.section-home {
    font-size: 7vw;
    display: inline-block;
    font-weight: 800;
    padding: 1rem;
    margin-bottom: 1rem;
    background-size: 300%;
    line-height: 1.1;
    color: #143078;
    backdrop-filter: blur(30px);
}

.section-title {
    font-size: 3rem;
    display: inline-block;
    font-weight: 800;
    padding: 1rem;
    margin-bottom: 2rem;
    background-size: 300%;
    line-height: 1.1;
    color: #fff;
}

.section-description {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: left;
    color: white;
}

#home {
    background-image: url(about.jpg);
    background-attachment:fixed;
    background-size: cover;
    height: 100vh ;
    background-position: center;
    background-repeat: no-repeat;
}

.tooth {
    background-image: url();
    background-repeat: no-repeat;
    padding-left: 200px;
    background-size: 32%;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: left;
    color: white;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0px;
        right: -110%;
        height: 100vh;
        width: 80%;
        /* max-width: 400px; */
        background: linear-gradient(0deg, rgb(103, 140, 209), rgb(81, 120, 190));
        flex-direction: column;
        text-align: right;
        gap: 2rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding: 7rem;
        backdrop-filter: blur(30px);
    }

    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03));
        pointer-events: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links a:nth-child(5) {
        transition-delay: 0.5s;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .mobile-nav-toggle.active .bar:nth-child(1) {
        transform: translate(-50%, 5px) rotate(45deg);
        width: 24px;
    }

    .mobile-nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.active .bar:nth-child(3) {
        transform: translate(-50%, -5px) rotate(-45deg);
        width: 24px;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        backdrop-filter: blur(4px);
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
}