/* PREMIUM NAVIGATION CSS - MODERN GLASSMORPHISM DESIGN */

/* Basic reset */
.modern-nav * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Premium Light Blue Background for Whole Website */
body {
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.2) 0%, rgba(230, 240, 255, 0.3) 100%) !important;
    min-height: 100vh;
    position: relative;
}

/* Override any conflicting backgrounds */
body.bg-gray-50,
.bg-gray-50 {
    background: transparent !important;
}

/* Make sections transparent to show flower background - but preserve specific colored elements */
section:not(#our-skills) {
    background: transparent !important;
}

/* Make containers transparent */
.container {
    background: transparent !important;
}

/* Override section backgrounds */
main {
    background: transparent !important;
}


/* Specific section overrides */
#projects-overview,
#about,
#services,
#supply,
#events,
#portfolio,
#latest-projects,
#blogs {
    background: transparent !important;
}

/* Fix text visibility - make text dark for light background */
.text-white {
    color: #1a1a1a !important;
}

.text-gray-600,
.text-gray-700,
.text-gray-800 {
    color: #2d3748 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1a1a1a !important;
}

p,
span,
div {
    color: #2d3748 !important;
}

/* Button text fixes */
button.text-white {
    color: #1a1a1a !important;
}

/* Link text fixes */
a {
    color: #2b6cb0 !important;
}

a:hover {
    color: #1a365d !important;
}

/* Hero section text fixes */
#home .text-white {
    color: #1a1a1a !important;
}

#home h1 {
    color: #1a1a1a !important;
}

#home p {
    color: #2d3748 !important;
}

/* Flower Decorative Elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Large flowers */
        radial-gradient(circle at 15% 20%, rgba(255, 182, 193, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 85% 15%, rgba(255, 192, 203, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 25% 80%, rgba(221, 160, 221, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 75% 85%, rgba(238, 130, 238, 0.4) 0%, transparent 15%),

        /* Medium flowers */
        radial-gradient(circle at 10% 50%, rgba(255, 218, 185, 0.3) 0%, transparent 12%),
        radial-gradient(circle at 90% 50%, rgba(255, 228, 196, 0.3) 0%, transparent 12%),
        radial-gradient(circle at 50% 10%, rgba(230, 230, 250, 0.3) 0%, transparent 12%),
        radial-gradient(circle at 50% 90%, rgba(176, 224, 230, 0.3) 0%, transparent 12%),

        /* Small flowers */
        radial-gradient(circle at 30% 30%, rgba(255, 255, 224, 0.2) 0%, transparent 8%),
        radial-gradient(circle at 70% 30%, rgba(255, 250, 205, 0.2) 0%, transparent 8%),
        radial-gradient(circle at 30% 70%, rgba(240, 255, 240, 0.2) 0%, transparent 8%),
        radial-gradient(circle at 70% 70%, rgba(255, 240, 245, 0.2) 0%, transparent 8%);
    z-index: -1;
    animation: flowerFloat 15s ease-in-out infinite;
}

/* Flower petals pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Flower petals */
        radial-gradient(ellipse at 20% 30%, rgba(255, 182, 193, 0.3) 0%, transparent 20%),
        radial-gradient(ellipse at 80% 30%, rgba(255, 192, 203, 0.3) 0%, transparent 20%),
        radial-gradient(ellipse at 20% 70%, rgba(221, 160, 221, 0.3) 0%, transparent 20%),
        radial-gradient(ellipse at 80% 70%, rgba(238, 130, 238, 0.3) 0%, transparent 20%),

        /* Small decorative dots */
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 65% 25%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 35% 75%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 65% 75%, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 60px 60px, 60px 60px, 60px 60px, 60px 60px;
    z-index: -1;
    animation: petalFloat 20s ease-in-out infinite reverse;
}

@keyframes flowerFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes petalFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
}

/* ===============================
   PREMIUM NAVIGATION BAR
================================ */
.modern-nav {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(240, 248, 255, 0.95) 50%,
            rgba(230, 240, 255, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-nav.scrolled {
    box-shadow:
        0 12px 40px rgba(31, 38, 135, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(240, 248, 255, 0.98) 50%,
            rgba(230, 240, 255, 0.98) 100%);
}

/* Container */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.nav-brand:hover .brand-logo {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: rotate(-5deg);
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Desktop menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    padding: 10px 18px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    border-radius: 10px;
    letter-spacing: 0.3px;
}

/* Premium hover effect */
.nav-link:hover {
    color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    transform: translateY(-2px);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 18px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before {
    width: calc(100% - 36px);
}

/* ===============================
   HIERARCHICAL DROPDOWN MENU
================================ */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #3b82f6;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Main dropdown menu - shows categories */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(240, 248, 255, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    min-width: 280px;
    box-shadow:
        0 20px 60px rgba(31, 38, 135, 0.25),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content {
    padding: 16px;
}

/* Category items */
.dropdown-category {
    position: relative;
    margin-bottom: 4px;
}

.dropdown-category:last-child {
    margin-bottom: 0;
}

.category-link {
    text-decoration: none;
    color: #334155 !important;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
}

.category-link:hover {
    color: #3b82f6 !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.category-arrow {
    font-size: 12px;
    color: #3b82f6;
    transition: transform 0.3s ease;
}

.dropdown-category:hover .category-arrow {
    transform: translateX(4px);
}

/* Subcategory dropdown - appears on category hover */
.subcategory-menu {
    position: absolute;
    top: 0;
    left: calc(100% + 8px);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(240, 248, 255, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    min-width: 280px;
    max-width: 350px;
    box-shadow:
        0 20px 60px rgba(31, 38, 135, 0.25),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding: 16px;
}

.dropdown-category:hover .subcategory-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.subcategory-title {
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff !important;
    margin-bottom: 12px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subcategory-list li {
    margin-bottom: 4px;
}

.subcategory-link {
    text-decoration: none;
    color: #475569 !important;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    padding: 8px 12px;
    display: block;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    border: 1px solid transparent;
}

.subcategory-link:hover {
    color: #3b82f6 !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

/* Dropdown sections for multi-column layout (home page) */
.dropdown-section {
    min-width: 180px;
}

.dropdown-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-list li {
    margin-bottom: 2px;
}

.dropdown-link {
    text-decoration: none;
    color: #475569 !important;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    display: block;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.dropdown-link:hover {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08);
    transform: translateX(4px);
}


/* ===============================
   PREMIUM MOBILE MENU
================================ */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(240, 248, 255, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    display: block;
    max-height: 600px;
    overflow-y: auto;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 24px;
}

.mobile-menu-list li {
    margin-bottom: 8px;
}

.mobile-menu-list li:last-child {
    margin-bottom: 0;
}

.mobile-nav-link {
    text-decoration: none;
    color: #334155;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    padding: 14px 16px;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    border: 1px solid transparent;
}

.mobile-nav-link:hover {
    color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Mobile Dropdown Styling */
.mobile-nav-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-nav-link {
    flex-grow: 1;
}

.mobile-dropdown-toggle,
.mobile-subcategory-toggle {
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    color: #3b82f6;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.active,
.mobile-subcategory-toggle.active {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(59, 130, 246, 0.03);
    border-radius: 8px;
    margin: 0 10px;
}

.mobile-dropdown-menu.active {
    max-height: 1000px;
    /* Arbitrary large height */
    margin-bottom: 15px;
    padding: 10px 0;
}

.mobile-category-item {
    margin-bottom: 5px;
}

.mobile-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    border-radius: 6px;
}

.mobile-category-link {
    text-decoration: none;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    flex-grow: 1;
}

.mobile-subcategory-list {
    list-style: none;
    padding: 0 15px 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-left: 2px solid rgba(59, 130, 246, 0.2);
    margin-left: 15px;
}

.mobile-subcategory-list.active {
    max-height: 500px;
    padding-bottom: 10px;
    padding-top: 5px;
}

.mobile-subcategory-list li {
    margin-bottom: 8px;
}

.mobile-subcategory-list li a {
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    display: block;
    padding: 5px 0;
    transition: color 0.2s ease;
}

.mobile-subcategory-list li a:hover {
    color: #3b82f6;
}

/* ===============================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 24px;
    }

    .nav-menu {
        gap: 4px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 14px;
    }

    .dropdown-menu {
        min-width: 650px;
    }

    .dropdown-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 75px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
        background: transparent;
        z-index: 1002;
    }

    .brand-name {
        font-size: 22px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    /* Hide dropdown on mobile */
    .dropdown-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
        height: 70px;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .mobile-menu-list {
        padding: 20px 16px;
    }

    .mobile-nav-link {
        font-size: 15px;
        padding: 12px 14px;
    }
}

/* Active state */
.nav-link.active {
    color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
}

.nav-link.active::before {
    width: calc(100% - 36px);
}

/* Focus states for accessibility */
.nav-link:focus,
.mobile-nav-link:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
    border-radius: 10px;
}

.mobile-menu-btn:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 4px;
    border-radius: 6px;
}

.dropdown-toggle:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
    border-radius: 10px;
}

.dropdown-link:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Smooth scrollbar for mobile menu */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}