/* SIMPLE NAVIGATION CSS - NO CONFLICTS */

/* Basic reset */
.modern-nav * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Premium Light Blue Background for Whole Website */
body {
    background: rgba(173, 216, 230, 0.3) !important;
    min-height: 100vh;
    position: relative;
}

/* Override any conflicting backgrounds */
body.bg-gray-50,
.bg-gray-50 {
    background: rgba(173, 216, 230, 0.3) !important;
}

/* Make all sections transparent to show flower background */
section {
    background: transparent !important;
}

/* Override common white backgrounds */
.bg-white,
.bg-gray-50,
.bg-gray-100,
.bg-gray-200 {
    background: transparent !important;
}

/* Make containers transparent */
.container {
    background: transparent !important;
}

/* Override section backgrounds */
main {
    background: transparent !important;
}

/* Remove white backgrounds from cards and divs */
div[class*="bg-"] {
    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); }
}

/* Navigation bar */
.modern-nav {
    background: rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Container */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: Arial, sans-serif;
}

/* Desktop menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
    font-family: Arial, sans-serif;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    display: block;
}

/* Hover effect */
.nav-link:hover {
    color: #3b82f6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===============================
DROPDOWN MENU STYLES
================================ */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(59, 130, 246, 0.7);
    backdrop-filter: blur(10px);
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.dropdown-section {
    min-width: 180px;
}

.dropdown-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #000000;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-list li {
    margin-bottom: 2px;
}

.dropdown-link {
    text-decoration: none;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 400;
    font-family: Arial, sans-serif;
    padding: 4px 8px;
    display: block;
    transition: color 0.2s ease;
    border: 1px solid #000000;
    border-radius: 3px;
    margin-bottom: 2px;
}

.dropdown-link:hover {
    color: #ffffff !important;
    padding-left: 8px;
    background: rgba(0, 0, 0, 0.2);
}

/* Force white text for all dropdown elements */
.dropdown-menu * {
    color: #ffffff !important;
}

/* Override any link colors in dropdown */
.dropdown-menu a {
    color: #ffffff !important;
}

.dropdown-menu a:hover {
    color: #ffffff !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #4a5568;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #e2e8f0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    display: block;
    max-height: 400px;
    overflow-y: auto;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 20px 24px;
}

.mobile-menu-list li {
    margin-bottom: 16px;
}

.mobile-menu-list li:last-child {
    margin-bottom: 0;
}

.mobile-nav-link {
    text-decoration: none;
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
    font-family: Arial, sans-serif;
    padding: 12px 0;
    display: block;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #3b82f6;
    padding-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
        height: 70px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .brand-logo {
        width: 35px;
        height: 35px;
    }
    
    /* Hide dropdown on mobile */
    .dropdown-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
    }
    
    .brand-name {
        font-size: 18px;
    }
    
    .mobile-menu-list {
        padding: 16px 12px;
    }
}

/* Active state */
.nav-link.active {
    color: #3b82f6;
}

.nav-link.active::after {
    width: 100%;
}

/* Scroll effect */
.modern-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Focus states */
.nav-link:focus,
.mobile-nav-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

.mobile-menu-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Dropdown focus states */
.dropdown-toggle:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

.dropdown-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}
