:root {
    --primary-color: #082a4a;
    --primary-dark: #262760;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc627;
    --accent-dark: #e0a800;
    --dark-color: #343a40;
    --light-color: #ffffff;
    --text-color: #495057;
    --light-gray: #e9ecef;
    --secondary: #ffb300;
    --white: #ffffff;
    --light: #f5f5f5;
    --dark: #333333;
    --gray: #757575;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    padding-top: 120px;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 60px;
    }
}

body.mobile-menu-open {
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--secondary);
    }

/* Header Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background-color: var(--light-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s;
    filter: brightness(0) saturate(100%) invert(17%) sepia(53%) saturate(749%) hue-rotate(183deg) brightness(95%) contrast(95%);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

    .logo-text h1 {
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        font-size: 1.6rem;
        margin: 0;
        color: var(--primary-color);
        line-height: 1.2;
    }

    .logo-text span {
        font-size: 0.8rem;
        color: var(--text-color);
    }

.header-contacts {
    display: flex;
    gap: 20px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.header-contact-text {
    display: flex;
    flex-direction: column;
}

.header-contact-label {
    font-size: 0.7rem;
    color: var(--text-color);
}

.header-contact-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
}

/* Main Navigation */
.main-navbar {
    background-color: var(--primary-color);
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    z-index: 1010;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.nav-link {
    color: white;
    font-weight: 500;
    padding: 12px 15px !important;
    position: relative;
    transition: all 0.3s;
    border-radius: 20px;
}

    .nav-link:hover,
    .nav-link:focus {
        color: var(--accent-color);
        background-color: var(--primary-dark);
    }

    .nav-link.active {
        color: var(--accent-color);
        font-weight: 600;
    }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 15px;
            width: calc(100% - 30px);
            height: 3px;
            background-color: var(--accent-color);
            animation: underlineGrow 0.3s ease-out;
        }

@keyframes underlineGrow {
    from {
        width: 0;
    }

    to {
        width: calc(100% - 30px);
    }
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    border-radius: 0;
    margin-top: 0;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 10px 20px;
    color: var(--dark-color);
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.2s;
    position: relative;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: var(--primary-color);
        color: var(--accent-color);
        padding-left: 25px;
    }

    .dropdown-item.has-submenu::after {
        content: '\f054';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 15px;
        font-size: 0.8rem;
        transition: transform 0.3s;
    }

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: 0;
        display: none;
    }

/* Desktop Dropdown Behavior */
@media (min-width: 992px) {
    .dropdown-menu {
        display: none;
    }

    .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu > .dropdown-item.has-submenu::after {
        content: '\f054';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 15px;
        font-size: 0.8rem;
    }
}

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
    .main-navbar {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: 0;
        z-index: 1000;
        max-height: 100vh;
        overflow-y: auto;
        transform: translateY(-100%);
        transition: transform 0.3s ease-out;
    }

    body.mobile-menu-open .main-navbar {
        transform: translateY(0);
    }

    .main-navbar.navbar-scrolled {
        top: 0;
    }

    .navbar-collapse {
        padding: 15px 0;
    }

    .navbar-nav {
        padding: 0 15px;
    }

    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.2);
        border-left: 3px solid var(--accent-color);
        margin-left: 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .dropdown.show > .dropdown-menu,
    .dropdown-submenu.show > .dropdown-menu {
        max-height: 1000px;
    }

    .dropdown-submenu .dropdown-menu {
        margin-left: 15px;
    }

    .dropdown-item {
        padding: 8px 15px 8px 25px;
    }

    .dropdown-toggle::after {
        content: '\f054';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        border: none;
        margin-left: 0;
        position: absolute;
        right: 15px;
        top: 12px;
        transition: transform 0.3s;
    }

    .dropdown.show > .dropdown-toggle::after {
        transform: rotate(90deg);
    }

    .dropdown-submenu.show > .has-submenu::after {
        transform: rotate(90deg);
    }
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: transparent;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    position: relative;
    transition: all 0.3s;
}

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background-color: var(--primary-color);
        left: 0;
        transition: all 0.3s;
    }

    .navbar-toggler-icon::before {
        transform: translateY(-6px);
    }

    .navbar-toggler-icon::after {
        transform: translateY(6px);
    }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
        transform: rotate(45deg);
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
        transform: rotate(-45deg);
    }

/* Loader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader {
    text-align: center;
}

.loader-inner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.loader-leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50% 0 50% 50%;
    transform-origin: center;
    animation: leafSpin 1.5s infinite ease-in-out;
}

    .loader-leaf:nth-child(1) {
        top: 0;
        left: 30px;
        animation-delay: 0s;
    }

    .loader-leaf:nth-child(2) {
        top: 30px;
        right: 0;
        animation-delay: 0.2s;
    }

    .loader-leaf:nth-child(3) {
        bottom: 0;
        left: 30px;
        animation-delay: 0.4s;
    }

    .loader-leaf:nth-child(4) {
        top: 30px;
        left: 0;
        animation-delay: 0.6s;
    }

.loader-text {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes leafSpin {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(0.7) rotate(180deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

    .footer h5 {
        color: white;
        font-weight: 600;
        margin-bottom: 25px;
        position: relative;
        padding-bottom: 10px;
    }

        .footer h5::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 2px;
            background-color: var(--accent-color);
        }

.footer-logo {
    margin-bottom: 20px;
}

    .footer-logo img {
        height: 60px;
        margin-bottom: 10px;
        filter: brightness(0) invert(1);
    }

    .footer-logo h4 {
        color: white;
        font-family: 'Playfair Display', serif;
        margin-bottom: 5px;
    }

    .footer-logo p {
        color: #adb5bd;
        font-size: 0.9rem;
        line-height: 1.6;
    }

.footer-links {
    padding-left: 0;
}

    .footer-links li {
        margin-bottom: 12px;
        list-style: none;
    }

    .footer-links a {
        color: #adb5bd;
        text-decoration: none;
        transition: all 0.3s;
        display: block;
        padding: 5px 0;
        font-size: 0.9rem;
    }

        .footer-links a:hover {
            color: var(--accent-color);
            padding-left: 5px;
        }

    .footer-links i {
        margin-right: 8px;
        color: var(--accent-color);
        width: 18px;
        text-align: center;
    }

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

    .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        width: 36px;
        height: 36px;
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        border-radius: 50%;
        transition: all 0.3s;
    }

        .social-icons a:hover {
            background-color: var(--accent-color);
            color: var(--dark-color);
            transform: translateY(-3px);
        }

.footer-map {
    height: 200px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}

    .footer-map iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

.footer-bottom {
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .footer-bottom p {
        margin: 0;
        font-size: 0.85rem;
        color: #adb5bd;
    }

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

    .footer-bottom-links a {
        color: #adb5bd;
        text-decoration: none;
        transition: all 0.3s;
        font-size: 0.85rem;
    }

        .footer-bottom-links a:hover {
            color: var(--accent-color);
        }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

    .back-to-top.active {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background-color: var(--accent-color);
        color: var(--dark-color);
        transform: translateY(-5px);
    }

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .header-contact-item {
        gap: 5px;
    }

    .header-contact-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .header-contact-value {
        font-size: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .logo-text h1 {
        font-size: 1.2rem;
    }

    .footer-map {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-text span {
        font-size: 0.65rem;
    }

    .logo-img {
        height: 40px;
    }

    .nav-link {
        padding: 8px !important;
        font-size: 0.9rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 8px;
    }
}
