:root {
    --primary-green: #22C55E;
    --primary-dark: #047857;
    --primary-light: #d1fae5;
    --grey-900: #111827;
    --grey-800: #1f2937;
    --grey-700: #374151;
    --grey-600: #4b5563;
    --grey-500: #6b7280;
    --grey-400: #9ca3af;
    --grey-300: #d1d5db;
    --grey-200: #e5e7eb;
    --grey-100: #f3f4f6;
    --grey-50: #f9fafb;
    --white: #ffffff;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --header-height: 70px;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--grey-100);
    color: var(--grey-800);
    line-height: 1.5;
}

/* SMS Alert Section */
.sms-alert {
    background-color: #FACC15;
    color: #000;
    text-align: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--card-shadow);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's below the slide-in menu and header */
}

.sms-alert .close-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--grey-600);
    cursor: pointer;
    transition: color 0.2s ease;
}

.sms-alert .close-btn:hover {
    color: var(--grey-800);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-link:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}

.whatsapp-link svg {
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.whatsapp-link:hover svg {
    transform: scale(1.1);
}

.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Header Styles */
.header {
    background-color: var(--grey-900);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1001; /* Increased z-index to ensure proper positioning */
    box-shadow: var(--card-shadow);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-container {
    max-width: 1280px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; /* Ensure proper positioning context */
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text span:first-child {
    color: var(--white);
}

.logo-text span:last-child {
    color: var(--primary-green);
}

/* Navigation Styles */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Dropdown Menu */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--border-radius);
}

.dropdown-toggle:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    z-index: 100;
    overflow: hidden;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--grey-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Hamburger Menu */
.menu-toggle {
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1003; /* Ensure it's above all other elements */
    position: relative; /* Ensure proper positioning */
}

.hamburger-icon {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    outline: 1px solid transparent; /* Ensure visibility */
}

.hamburger-line {
    display: block;
    height: 3px; /* Increased height for better visibility */
    width: 100%;
    background-color: var(--white);
    margin: 4px 0; /* Increased margin for better spacing */
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-line.short-line {
    width: 50%;
    margin-left: auto;
}

/* Optional: Animation for active state (X shape) */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 100%;
}


/* Slide-in Menu */
.slide-in-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    background-color: var(--white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: var(--card-shadow);
    z-index: 1002; /* Increased z-index to ensure it's on top of all elements */
    padding: 100px 0 30px;
}

.slide-in-menu.active {
    transform: translateX(0);
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: var(--grey-600);
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
}

.mobile-nav .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--grey-800);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--border-radius);
}

.mobile-nav .dropdown-menu {
    display: none;
    padding-left: 16px;
}

.mobile-nav .dropdown.active .dropdown-menu {
    display: block;
}

.mobile-nav .dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--grey-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mobile-nav .dropdown-menu a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.mobile-footer {
    margin-top: auto;
    padding: 20px 16px;
    border-top: 1px solid var(--grey-200);
    text-align: center;
    font-size: 14px;
    color: var(--grey-500);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header {
        height: 60px;
        padding: 0 16px;
    }

    .logo {
        font-size: 20px;
    }

    .sms-alert {
        font-size: 13px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .slide-in-menu {
        width: 80%;
    }

    .mobile-nav .dropdown-toggle,
    .mobile-nav .dropdown-menu a {
        font-size: 13px;
        padding: 10px 12px;
    }

    .sms-alert {
        font-size: 12px;
        padding: 8px 16px;
    }
}