/* Header */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Allow search suggestions to show */
}

header.header-scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.top-header {
    padding: 15px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #121212 100%);
    position: relative;
    z-index: 1000;
    overflow: visible; /* Allow search suggestions to show */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--light-text);
}

.logo {
    height: 60px;
    margin-right: 15px;
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--accent-color), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.tagline {
    font-size: 12px;
    margin-top: 4px;
    color: var(--accent-color);
    font-style: italic;
}

.search-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1050;
}

.search-btn {
    background-color: var(--accent-color);
    border: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #f0d030;
    transform: translateY(-2px);
}

.welcome-text {
    font-size: 14px;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: none;
}

.menu-toggle:hover {
    color: var(--light-text);
    transform: scale(1.1);
}

.mobile-search {
    background-color: #111;
    padding: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-search.show-search {
    padding: 10px 0;
    height: auto;
    opacity: 1;
}

.search-icon-mobile {
    display: none;
    color: var(--accent-color);
    font-size: 20px;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.search-icon-mobile:hover, 
.search-icon-mobile.active {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Navigation */
.main-nav {
    background: linear-gradient(to right, #111111, #222222, #111111);
    border-top: 1px solid #333;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
    will-change: max-height, opacity, visibility;
}

.nav-menu li {
    flex: 1;
    text-align: center;
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px 10px;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 80%;
}

.nav-menu li a:hover {
    background-color: #333;
    color: var(--accent-color);
}

.nav-menu li a.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Main Content Sections */
main {
    padding: 0 0 40px;
    position: relative;
    z-index: 1;
}

/* Ensure containers don't clip search suggestions */
.container-fluid {
    overflow: visible;
}

.row {
    overflow: visible;
}

[class*="col-"] {
    overflow: visible;
}

section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    position: relative;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 40px 0 20px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    color: var(--light-text);
    text-decoration: none;
}

.footer-menu li a:hover {
    color: var(--accent-color);
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .search-form {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
        background: linear-gradient(to bottom, #111111, #222222);
        position: relative;
        z-index: 999;
    }
    
    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding: 10px 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        padding: 15px;
        text-align: left;
    }
    
    .mobile-search {
        display: block;
        background-color: #111;
        border-top: 1px solid #333;
        padding: 0;
        height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .mobile-search.show-search {
        padding: 15px 0;
        height: auto;
        opacity: 1;
    }

    .logo {
        height: 40px;
    }

    .logo-text {
        font-size: 20px;
    }
    
    .menu-toggle {
        display: flex;
        font-size: 20px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        background: rgba(212, 175, 55, 0.1);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
        border: none;
        color: var(--accent-color);
        cursor: pointer;
    }
    
    .menu-toggle:hover,
    .menu-toggle.active {
        background: rgba(212, 175, 55, 0.2);
        transform: scale(1.05);
    }
    
    .search-toggle {
        display: flex;
        font-size: 18px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        background: rgba(212, 175, 55, 0.1);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
        border: none;
        color: var(--accent-color);
        cursor: pointer;
    }
    
    .search-toggle:hover,
    .search-toggle.active {
        background: var(--accent-color);
        color: var(--primary-color);
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .requirement-item {
        flex-direction: column;
    }
    
    .requirement-item .icon {
        margin-bottom: 10px;
    }
    
    /* Animation for mobile menu */
    .nav-menu li {
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active li {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.6s; }
}

/* Dark Mode Toggle */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dark-mode-toggle {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.toggle-container {
    width: 70px;
    height: 35px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 35px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.toggle-slider {
    width: 27px;
    height: 27px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e17a 50%, #d4af37 100%);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(212, 175, 55, 0.4);
}

.toggle-slider i {
    font-size: 12px;
    color: #2c3e50;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.light-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.dark-icon {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
}

/* Dark mode active state */
body.dark-mode .toggle-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-color: rgba(212, 175, 55, 0.5);
}

body.dark-mode .toggle-slider {
    transform: translateX(33px);
    background: linear-gradient(135deg, #d4af37 0%, #f4e17a 50%, #d4af37 100%);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(212, 175, 55, 0.4);
}

body.dark-mode .light-icon {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

body.dark-mode .dark-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    color: #1a1a1a;
}

.toggle-container:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(212, 175, 55, 0.2);
}

@media (max-width: 576px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content h2 {
        font-size: 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
}
