/* Enhanced Header and Footer Styles with Color Consistency */

/* Header Enhancements */
#Header_wrapper {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

#Header_wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #e74c3c, #27ae60);
    z-index: 1;
}

#Header {
    background: transparent;
    padding: 15px 0;
    position: relative;
}

#Top_bar {
    background: transparent;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Enhancements */
.logo {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #3498db;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.logo a:hover {
    color: #2980b9;
    text-decoration: none;
    transform: scale(1.02);
}

.logo img {
    max-height: 50px;
    width: auto;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.logo a:hover img {
    transform: scale(1.05);
}

/* Navigation Menu Enhancements */
.menu_wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

#menu-main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

#menu-main-menu li {
    margin: 0 5px;
    position: relative;
}

#menu-main-menu li a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#menu-main-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#menu-main-menu li a:hover::before {
    left: 100%;
}

#menu-main-menu li a:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    text-decoration: none;
    transform: translateY(-2px);
}

#menu-main-menu li.current_page_item a {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

#menu-main-menu li.current_page_item a:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: #ffffff;
}

/* Mobile Menu Toggle */
.responsive-menu-toggle {
    display: none;
    background: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.responsive-menu-toggle:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

/* Top Bar Layout */
.top_bar_left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Header CTA Button (Optional Enhancement) */
.header-cta {
    margin-left: 20px;
}

.header-cta-button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.header-cta-button:hover {
    background: transparent;
    border-color: #e74c3c;
    color: #e74c3c;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Footer Enhancements */
#Footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 50px 0 30px 0;
    margin-top: 60px;
    position: relative;
}

#Footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #e74c3c, #27ae60);
}

.footer_copy {
    background: transparent;
    padding: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #e74c3c;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Footer Contact Info */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    color: #bdc3c7;
    font-size: 0.95rem;
}

.footer-contact-item i {
    width: 20px;
    margin-right: 10px;
    color: #3498db;
}

.footer-contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #3498db;
}

/* Footer Social Links */
.footer-social {
    margin-top: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.2);
    border: 2px solid #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

/* Footer Services */
.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-services li {
    margin-bottom: 8px;
}

.footer-services li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-services li a::before {
    content: '→';
    margin-right: 8px;
    color: #3498db;
    transition: transform 0.3s ease;
}

.footer-services li a:hover {
    color: #3498db;
    padding-left: 5px;
}

.footer-services li a:hover::before {
    transform: translateX(3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-3px);
    text-decoration: none;
    color: white;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

/* Mobile Responsiveness */

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    #menu-main-menu li a {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    #Header {
        padding: 10px 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .top_bar_left {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .logo {
        align-self: center;
    }
    
    .menu_wrapper {
        width: 100%;
        justify-content: center;
    }
    
    #menu-main-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(44, 62, 80, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    #menu-main-menu.active {
        display: flex;
    }
    
    #menu-main-menu li {
        margin: 5px 0;
        width: 100%;
    }
    
    #menu-main-menu li a {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }
    
    .responsive-menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .header-cta {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
    
    .header-cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .logo a {
        font-size: 1.3rem;
    }
    
    .logo img {
        max-height: 40px;
        margin-right: 10px;
    }
    
    #menu-main-menu li a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-contact-item {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme, but can add variations */
    #Header_wrapper {
        background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    }
    
    #Footer {
        background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #menu-main-menu li a {
        border: 2px solid transparent;
    }
    
    #menu-main-menu li a:hover {
        border-color: #3498db;
    }
    
    .social-link {
        border-width: 3px;
    }
}

/* Animation for menu items */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#menu-main-menu.active li {
    animation: slideInDown 0.3s ease-out;
}

#menu-main-menu.active li:nth-child(1) { animation-delay: 0.1s; }
#menu-main-menu.active li:nth-child(2) { animation-delay: 0.2s; }
#menu-main-menu.active li:nth-child(3) { animation-delay: 0.3s; }
#menu-main-menu.active li:nth-child(4) { animation-delay: 0.4s; }

/* Print styles */
@media print {
    #Header_wrapper,
    #Footer,
    .back-to-top {
        display: none !important;
    }
}

/* Accessibility improvements */
#menu-main-menu li a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.responsive-menu-toggle:focus,
.social-link:focus,
.back-to-top:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Header positioning fix */
#Header_wrapper {
    position: relative;
    z-index: 1000;
}

/* Fix for content being hidden under header */
.services-section,
.whyus-section,
.contactus-section,
.ourprocess-section {
    padding-top: 160px !important;
}

/* Sticky header enhancement */
.sticky-header #Header_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.sticky-header body {
    padding-top: 80px; /* Adjust based on header height */
}

/* Global H1 styling - White color for entire website */
h1 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure readability on all backgrounds */
.services-header h1,
.whyus-header h1,
.contactus-header h1,
.ourprocess-header h1 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}
