/* Modern Components CSS - Consistent Header & Footer Styles */

/* CRITICAL: Force override all existing styles */
#footer,
footer#footer,
body #footer,
html body #footer {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f23 100%) !important;
    color: white !important;
}

/* Remove any white backgrounds from footer elements */
#footer *,
#footer .container,
#footer .row,
#footer .col,
#footer .col-lg-3,
#footer .col-md-6,
#footer .footer-top,
#footer .footer-bottom,
#footer .footer-newsletter,
#footer .footer-contact,
#footer .footer-links {
    background: transparent !important;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Override Bootstrap and other framework classes */
#footer .container-fluid,
#footer .d-flex,
#footer .justify-content-center,
#footer .text-center,
#footer .mt-3,
#footer .clearfix,
#footer div,
#footer section {
    background: transparent !important;
    background-color: transparent !important;
}

/* Force text visibility */
#footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6 {
    color: white !important;
}

#footer p, #footer span, #footer div, #footer li, #footer a {
    color: rgba(255, 255, 255, 0.8) !important;
}

#footer a:hover {
    color: var(--primary-blue) !important;
}

/* Override any inline styles */
#footer [style*="background"],
#footer [style*="color"] {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

:root {
    --primary-blue: #47b2e4;
    --dark-blue: #37517e;
    --light-blue: #73c5eb;
    --accent-gradient: linear-gradient(135deg, #47b2e4 0%, #37517e 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow-glow: 0 8px 32px rgba(71, 178, 228, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MODERN HEADER STYLES ===== */
#header {
    background: rgba(15, 15, 35, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    padding: 1rem 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    transition: var(--transition-smooth) !important;
    box-shadow: none !important;
}

#header.scrolled {
    background: rgba(15, 15, 35, 0.98) !important;
    box-shadow: var(--shadow-glow) !important;
    border-bottom-color: var(--primary-blue) !important;
}

.header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* Logo Styling */
.logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: var(--transition-smooth) !important;
}

.logo img {
    height: 45px !important;
    filter: brightness(1.2) !important;
    transition: var(--transition-smooth) !important;
}

.logo:hover img {
    transform: scale(1.05) !important;
    filter: brightness(1.4) drop-shadow(0 0 10px rgba(71, 178, 228, 0.5)) !important;
}

/* Navigation */
.navbar {
    display: flex !important;
    align-items: center !important;
}

.navbar ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 2rem !important;
    align-items: center !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    transition: var(--transition-smooth) !important;
    position: relative !important;
    overflow: hidden !important;
}

.nav-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--accent-gradient) !important;
    transition: left 0.3s ease !important;
    z-index: -1 !important;
    border-radius: 25px !important;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0 !important;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(71, 178, 228, 0.3) !important;
}

/* CTA Buttons */
.getstarted {
    background: var(--accent-gradient) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: var(--transition-smooth) !important;
    margin-left: 1rem !important;
}

.getstarted:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-glow) !important;
    color: white !important;
}

.getstarted.secondary {
    background: transparent !important;
    border: 1px solid var(--primary-blue) !important;
    color: var(--primary-blue) !important;
}

.getstarted.secondary:hover {
    background: var(--primary-blue) !important;
    color: white !important;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none !important;
    font-size: 1.5rem !important;
    color: white !important;
    cursor: pointer !important;
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 10px !important;
    padding: 8px !important;
    transition: var(--transition-smooth) !important;
}

.mobile-nav-toggle:hover {
    background: var(--primary-blue) !important;
    transform: scale(1.1) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem !important;
    }

    .mobile-nav-toggle {
        display: block !important;
    }

    .navbar ul {
        position: fixed !important;
        top: 80px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 80px) !important;
        background: rgba(15, 15, 35, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 3rem !important;
        gap: 1.5rem !important;
        transition: var(--transition-smooth) !important;
        border-right: 1px solid var(--glass-border) !important;
    }

    .navbar.mobile-nav-active ul {
        left: 0 !important;
    }

    .nav-link {
        font-size: 1.2rem !important;
        padding: 1rem 2rem !important;
        width: 80% !important;
        text-align: center !important;
    }

    .getstarted {
        margin: 1rem 0 !important;
        width: 80% !important;
        justify-content: center !important;
    }
}

/* ===== MODERN FOOTER STYLES ===== */
body #footer,
html #footer,
#footer.footer,
footer#footer {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f23 100%) !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 6rem !important;
}

body #footer::before,
html #footer::before,
#footer.footer::before,
footer#footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: 
        radial-gradient(circle at 20% 20%, rgba(71, 178, 228, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(115, 197, 235, 0.1) 0%, transparent 50%) !important;
    z-index: 1 !important;
}

#footer .footer-content,
#footer > .footer-content {
    position: relative !important;
    z-index: 2 !important;
    background: transparent !important;
}

/* Newsletter Section */
#footer .footer-newsletter,
#footer > .footer-content .footer-newsletter {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 30px !important;
    padding: 4rem 2rem !important;
    margin: 0 2rem 4rem !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
}

#footer .footer-newsletter::before,
#footer > .footer-content .footer-newsletter::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: conic-gradient(from 0deg, transparent, rgba(71, 178, 228, 0.1), transparent) !important;
    animation: rotate 10s linear infinite !important;
    z-index: -1 !important;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#footer .footer-newsletter h4,
#footer > .footer-content .footer-newsletter h4 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    background: var(--accent-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 1rem !important;
    color: transparent !important;
}

#footer .footer-newsletter p,
#footer > .footer-content .footer-newsletter p {
    font-size: 1.2rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 2rem !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#footer .newsletter-form,
#footer > .footer-content .newsletter-form {
    display: flex !important;
    gap: 1rem !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    align-items: stretch !important;
}

#footer .newsletter-form input[type="email"],
#footer > .footer-content .newsletter-form input[type="email"] {
    flex: 1 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 25px !important;
    padding: 15px 20px !important;
    color: white !important;
    font-size: 1rem !important;
    transition: var(--transition-smooth) !important;
}

#footer .newsletter-form input[type="email"]:focus,
#footer > .footer-content .newsletter-form input[type="email"]:focus {
    outline: none !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 20px rgba(71, 178, 228, 0.3) !important;
}

#footer .newsletter-form input[type="email"]::placeholder,
#footer > .footer-content .newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

#footer .newsletter-form input[type="submit"],
#footer > .footer-content .newsletter-form input[type="submit"] {
    background: var(--accent-gradient) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 15px 30px !important;
    color: white !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    white-space: nowrap !important;
}

#footer .newsletter-form input[type="submit"]:hover,
#footer > .footer-content .newsletter-form input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-glow) !important;
}

/* Footer Main Content */
#footer .footer-top,
#footer > .footer-content .footer-top {
    padding: 4rem 2rem 2rem !important;
    background: transparent !important;
}

#footer .footer-grid,
#footer > .footer-content .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 3rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

#footer .footer-section,
#footer > .footer-content .footer-section {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    transition: var(--transition-smooth) !important;
    position: relative !important;
    overflow: hidden !important;
}

#footer .footer-section::before,
#footer > .footer-content .footer-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(71, 178, 228, 0.1), transparent) !important;
    transition: left 0.6s ease !important;
}

#footer .footer-section:hover::before,
#footer > .footer-content .footer-section:hover::before {
    left: 100% !important;
}

#footer .footer-section:hover,
#footer > .footer-content .footer-section:hover {
    transform: translateY(-5px) !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 10px 30px rgba(71, 178, 228, 0.2) !important;
}

#footer .footer-section h4,
#footer > .footer-content .footer-section h4 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    color: white !important;
    position: relative !important;
}

#footer .footer-section h4::after,
#footer > .footer-content .footer-section h4::after {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 0 !important;
    width: 40px !important;
    height: 3px !important;
    background: var(--accent-gradient) !important;
    border-radius: 2px !important;
}

#footer .footer-logo,
#footer > .footer-content .footer-logo {
    height: 60px !important;
    margin-bottom: 1rem !important;
    filter: brightness(1.2) !important;
}

#footer .footer-section p,
#footer > .footer-content .footer-section p {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

#footer .footer-links,
#footer > .footer-content .footer-links {
    list-style: none !important;
    padding: 0 !important;
}

#footer .footer-links li,
#footer > .footer-content .footer-links li {
    margin-bottom: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
}

#footer .footer-links a,
#footer > .footer-content .footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: var(--transition-smooth) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#footer .footer-links a:hover,
#footer > .footer-content .footer-links a:hover {
    color: var(--primary-blue) !important;
    transform: translateX(5px) !important;
}

#footer .footer-links i,
#footer > .footer-content .footer-links i {
    color: var(--primary-blue) !important;
    font-size: 0.8rem !important;
}

/* Social Links */
#footer .social-links,
#footer > .footer-content .social-links {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
}

#footer .social-links a,
#footer > .footer-content .social-links a {
    width: 45px !important;
    height: 45px !important;
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.2rem !important;
    transition: var(--transition-smooth) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

#footer .social-links a::before,
#footer > .footer-content .social-links a::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--accent-gradient) !important;
    transform: scale(0) !important;
    transition: transform 0.3s ease !important;
    border-radius: 50% !important;
}

#footer .social-links a:hover::before,
#footer > .footer-content .social-links a:hover::before {
    transform: scale(1) !important;
}

#footer .social-links a:hover,
#footer > .footer-content .social-links a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(71, 178, 228, 0.4) !important;
    color: white !important;
}

#footer .social-links a i,
#footer > .footer-content .social-links a i {
    position: relative !important;
    z-index: 1 !important;
    color: white !important;
}

/* Footer Bottom */
#footer .footer-bottom,
#footer > .footer-content .footer-bottom {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 2rem !important;
    text-align: center !important;
    border-top: 1px solid var(--glass-border) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

#footer .footer-bottom .copyright,
#footer > .footer-content .footer-bottom .copyright {
    color: rgba(255, 255, 255, 0.8) !important;
}

#footer .footer-bottom .credits,
#footer > .footer-content .footer-bottom .credits {
    color: rgba(255, 255, 255, 0.6) !important;
}

#footer .footer-bottom .credits a,
#footer > .footer-content .footer-bottom .credits a {
    color: var(--primary-blue) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: var(--transition-smooth) !important;
}

#footer .footer-bottom .credits a:hover,
#footer > .footer-content .footer-bottom .credits a:hover {
    color: var(--light-blue) !important;
}

/* Override any Bootstrap or other framework styles */
#footer *,
#footer *::before,
#footer *::after {
    box-sizing: border-box !important;
}

#footer .container,
#footer .container-fluid,
#footer .row,
#footer .col,
#footer .col-lg-3,
#footer .col-md-6 {
    background: transparent !important;
    color: inherit !important;
}

/* Ensure all text elements are visible */
#footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6,
#footer p, #footer span, #footer div, #footer a, #footer li {
    color: rgba(255, 255, 255, 0.8) !important;
}

#footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6 {
    color: white !important;
}

/* Scroll to top button */
.scroll-top {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    width: 50px !important;
    height: 50px !important;
    background: var(--accent-gradient) !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 1000 !important;
}

.scroll-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.scroll-top:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: var(--shadow-glow) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-newsletter {
        margin: 0 1rem 2rem !important;
        padding: 2rem 1rem !important;
    }

    .footer-newsletter h4 {
        font-size: 2rem !important;
    }

    .newsletter-form {
        flex-direction: column !important;
    }

    .footer-top {
        padding: 2rem 1rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
    }

    .social-links {
        justify-content: center !important;
    }
} 