
/* ============================================ */
/* BACK TO TOP BUTTON - UNIVERSAL STYLES       */
/* ============================================ */
/* ============================================
   HERO STANDARD - Modern Business Hero
   ============================================ */
   
   /* =============================================================================
   TEXT WITH IMAGE SECTION
   ============================================================================= */

.text-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

/* Image alignment variations */
.text-image-grid.left {
    grid-template-columns: 1fr 1fr;
}

.text-image-grid.left .image-content {
    order: -1;
}

.text-image-grid.right {
    grid-template-columns: 1fr 1fr;
}

.text-image-grid.right .text-content {
    order: -1;
}

/* Text content */
.text-content {
    padding-left: 2rem;
}

.text-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a202c;
    line-height: 1.2;
}

.text-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.25rem;
}

.text-content p:last-child {
    margin-bottom: 0;
}

.text-content ul,
.text-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.text-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.text-content li:last-child {
    margin-bottom: 0;
}

/* Image content */
.image-content {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.image-content img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.image-content:hover img {
    transform: scale(1.05);
}

/* Add decorative element */
.image-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary-color, #0066cc);
    opacity: 0.1;
    border-radius: 12px;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 968px) {
    .text-image-grid {
        gap: 3rem;
    }

    .text-content h2 {
        font-size: 2rem;
    }

    .text-content p,
    .text-content li {
        font-size: 1.0625rem;
    }
}

@media (max-width: 768px) {
    .text-image-grid,
    .text-image-grid.left,
    .text-image-grid.right {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0;
    }

    .text-image-grid.left .image-content,
    .text-image-grid.right .text-content {
        order: 0;
    }

    .text-content {
        padding: 1rem 0;
    }

    .text-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .text-content p,
    .text-content li {
        font-size: 1rem;
    }

    .image-content::before {
        width: 60px;
        height: 60px;
        top: -10px;
        left: -10px;
    }
}

@media (max-width: 480px) {
    .text-image-grid {
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .text-content h2 {
        font-size: 1.5rem;
    }

    .image-content {
        border-radius: 8px;
    }
}

/* Alternative style with background accent */
.page-section.text-image-accent .text-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .page-section.text-image-accent .text-content {
        padding: 2rem;
    }
}

.hero-standard {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-standard.gradient-bg {
    background: var(--gradient-primary);
}

.hero-standard.has-background {
    background-color: var(--dark-bg, #1a1a2e);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 180px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-primary i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.hero-buttons .btn-primary:hover i {
    transform: translateX(5px);
}

.hero-buttons .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.hero-scroll-indicator:hover {
    color: white;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.animate-fade-up.delay-1 {
    animation-delay: 0.2s;
}

.animate-fade-up.delay-2 {
    animation-delay: 0.4s;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-standard {
        min-height: 550px;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color, #8b5cf6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    background: var(--primary-dark, #7c3aed);
}

/* Responsive back to top */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ============================================ */
/* ENHANCED HEADER STYLES                      */
/* ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.4s var(--ease-out-expo);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(30px);
}

/* Top Header */
.top-header {
    background: var(--primary-color, #1e40af);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.contact-item i {
    font-size: 0.8rem;
    opacity: 0.9;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color, #f59e0b);
    transform: translateY(-1px);
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links a {
    color: white;
    text-decoration: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out-expo);
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.1);
    color: var(--accent-color, #f59e0b);
}

/* Main Header */
.main-header {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.site-header.scrolled .main-header {
    padding: 0.75rem 0;
}

.main-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.logo:hover {
    transform: scale(1.05);
}

.site-logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-header.scrolled .site-logo-img {
    height: 40px;
}

.logo-content {
    display: flex;
    flex-direction: column;
}

.site-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary, #1f2937);
    line-height: 1;
    background: var(--gradient-primary, linear-gradient(135deg, var(--primary-color), var(--secondary-color)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-tagline {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    font-weight: 400;
    margin-top: 0.2rem;
}

.site-header.scrolled .site-tagline {
    display: none;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary, #1f2937);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-md, 8px);
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s var(--ease-out-expo);
    transform: translateX(-50%);
}

.nav-link:hover::before,
.main-nav li.active .nav-link::before {
    width: 80%;
}

.nav-link:hover,
.main-nav li.active .nav-link {
    color: var(--primary-color, #1e40af);
    background: rgba(139, 92, 246, 0.05);
}

.nav-icon {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    width: 16px;
    text-align: center;
}

.nav-link:hover .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Submenu */
.has-submenu {
    position: relative;
}

.has-submenu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md, 8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-out-expo);
    z-index: 1000;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary, #1f2937);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.submenu-link:hover {
    background: rgba(139, 92, 246, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.submenu-link i {
    font-size: 0.8rem;
    opacity: 0.7;
    width: 12px;
}

/* ============================================ */
/* MOBILE MENU TOGGLE STYLES                   */
/* ============================================ */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    z-index: 1001; /* Ensure toggle is above overlay */
}

.mobile-menu-toggle:hover {
    background: rgba(139, 92, 246, 0.1);
}

.hamburger-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.line {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.mobile-menu-toggle.active .line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================ */
/* MOBILE MENU OVERLAY                         */
/* ============================================ */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998; /* Below menu but above content */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================ */
/* MOBILE NAVIGATION STYLES                    */
/* ============================================ */

@media (max-width: 768px) {
    .top-header {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: right 0.4s var(--ease-out-expo);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 999; /* Above overlay */
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem 0;
        justify-content: flex-start;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    .nav-link::before {
        display: none;
    }
    
    /* FIX: Hide submenus by default on mobile */
    .has-submenu .submenu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s var(--ease-out-expo);
    }
    
    /* FIX: Show submenu only when parent has active class */
    .has-submenu.active .submenu {
        opacity: 1;
        visibility: visible;
        max-height: 500px; /* Adjust based on content */
    }
    
    .submenu-link {
        padding: 0.75rem 0;
        font-size: 0.9rem;
        border-bottom: none;
    }
    
    .nav-cta {
        margin: 1rem 0 0 0;
        width: 100%;
    }
    
    .nav-cta-btn {
        justify-content: center;
        width: 100%;
    }
    
    /* FIX: Ensure home link is visible and clickable */
    .main-nav .logo {
        display: none; /* Hide duplicate logo in mobile nav */
    }
    
    /* Theme-specific mobile styles */
    .creative-dark-theme .main-nav,
    .modern-tech-theme .main-nav {
        background: var(--bg-secondary);
    }
    
    .creative-dark-theme .nav-link,
    .modern-tech-theme .nav-link {
        border-bottom-color: var(--border-light);
    }
    
    /* FIX: Ensure proper z-index stacking */
    .site-header {
        z-index: 1000;
    }
    
    .mobile-menu-toggle {
        z-index: 1001;
    }
    
    .main-nav {
        z-index: 999;
    }
    
    .mobile-menu-overlay {
        z-index: 998;
    }
}

/* ============================================ */
/* SUBMENU TOGGLE FOR MOBILE                   */
/* ============================================ */

/* Add submenu toggle indicator for mobile */
.has-submenu > .nav-link::after {
    content: '\f107'; /* FontAwesome chevron down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s var(--ease-out-expo);
}

.has-submenu.active > .nav-link::after {
    transform: rotate(180deg);
}

/* ============================================ */
/* MOBILE SUBMENU ENHANCEMENTS                 */
/* ============================================ */

@media (max-width: 768px) {
    /* FIX: Make submenu items visually distinct */
    .submenu-link {
        padding-left: 1.5rem;
        color: var(--text-muted);
        font-size: 0.85rem;
        border-left: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .submenu-link:hover {
        border-left-color: var(--primary-color);
        background: rgba(139, 92, 246, 0.05);
    }
    
    /* FIX: Add subtle background to submenu */
    .has-submenu.active .submenu {
        background: rgba(0, 0, 0, 0.02);
        border-radius: var(--border-radius-sm);
        margin: 0.5rem 0;
        padding: 0.5rem 0;
    }
    
    /* FIX: Ensure all links are properly spaced */
    .main-nav ul {
        gap: 0.5rem;
    }
    
    .nav-link {
        margin: 0;
    }
}

/* ============================================ */
/* ACCESSIBILITY ENHANCEMENTS                  */
/* ============================================ */

/* Ensure proper focus management for mobile */
@media (max-width: 768px) {
    .main-nav {
        /* Allow focus within mobile menu */
        :focus {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}
/* ============================================ */
/* RESPONSIVE HEADER STYLES                    */
/* ============================================ */

@media (max-width: 1024px) {
    .main-nav ul {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .top-header {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: right 0.4s var(--ease-out-expo);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem 0;
        justify-content: flex-start;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link::before {
        display: none;
    }
    
   
    
    .nav-cta {
        margin: 1rem 0 0 0;
        width: 100%;
    }
    
    .nav-cta-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-header-content {
        gap: 1rem;
    }
    
    .site-logo-img {
        height: 40px;
    }
    
    .site-name {
        font-size: 1.5rem;
    }
    
    .main-nav {
        width: 280px;
    }
}

/* ============================================ */
/* ENHANCED FOOTER STYLES - ALL THEMES         */
/* ============================================ */

.site-footer {
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-secondary, #475569);
    position: relative;
    overflow: hidden;
}

/* Footer Main Section */
.footer-main {
    padding: 4rem 0 2rem;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.footer-widget {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget-title {
    color: var(--text-primary, #1f2937);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Company Info */
.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo-text .footer-site-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-about {
    line-height: 1.6;
    color: var(--text-secondary);
}

.trust-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

.trust-badge i {
    color: var(--primary-color);
}

/* Quick Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
    padding: 0.5rem 0;
    border-radius: var(--border-radius-sm);
}

.footer-menu li a:hover {
    color: var(--primary-color);
    transform: translateX(8px);
    background: rgba(139, 92, 246, 0.05);
}

.footer-menu li a i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Contact Info */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
}

.contact-text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary-color);
}

/* Newsletter & Social */
.newsletter-box {
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.newsletter-box p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.input-group {
    display: flex;
    flex: 1;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.input-group input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    background: transparent;
    color: var(--text-primary);
}

.input-group input:focus {
    outline: none;
}

.newsletter-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--gradient-accent);
}

.footer-social h5 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.social-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

.social-link i {
    width: 16px;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    background: var(--bg-secondary);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.copyright p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.credits p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ============================================ */
/* THEME-SPECIFIC FOOTER STYLES                */
/* ============================================ */

/* Creative Dark Theme */
.creative-theme .site-footer {
    background: var(--bg-primary, #0f0f23);
    border-top: 1px solid var(--border-light);
}

.creative-theme .trust-badge,
.creative-theme .newsletter-box,
.creative-theme .social-link {
    background: var(--bg-primary);
    border-color: var(--border-light);
}

.creative-theme .input-group {
    background: var(--bg-secondary);
    border-color: var(--border-light);
}

.creative-theme .input-group input {
    background: transparent;
    color: var(--text-secondary);
}

.creative-theme .footer-bottom {
    background: var(--bg-tertiary);
    border-top-color: var(--border-light);
}

/* Corporate Elegance Theme */
.elegance-theme .site-footer {
    background: var(--bg-secondary, #f8fafc);
    border-top: 1px solid var(--border-color);
}

.elegance-theme .trust-badge,
.elegance-theme .newsletter-box,
.elegance-theme .social-link {
    background: white;
    border-color: var(--border-color);
    box-shadow: var(--shadow-subtle);
}

.elegance-theme .footer-bottom {
    background: var(--gradient-primary);
}

/* Modern Tech Theme */
.modern-theme .site-footer {
    background: var(--bg-primary, #0f172a);
    border-top: 1px solid var(--border-color);
}

.modern-theme .trust-badge,
.modern-theme .newsletter-box,
.modern-theme .social-link {
    background: var(--gradient-glass);
    backdrop-filter: var(--blur-amount);
    border: 1px solid var(--border-light);
}

.modern-theme .input-group {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
}

.modern-theme .input-group input {
    background: transparent;
    color: var(--text-secondary);
}

.modern-theme .footer-bottom {
    background: var(--bg-tertiary);
    border-top-color: var(--border-light);
}

/* ============================================ */
/* FOOTER RESPONSIVE DESIGN                    */
/* ============================================ */

@media (max-width: 1024px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-links-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .trust-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .footer-widget {
        gap: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================ */
/* FOOTER ANIMATIONS & EFFECTS                 */
/* ============================================ */

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-widget {
    animation: floatUp 0.6s var(--ease-out-expo) forwards;
}

/* Hover effects */
.footer-widget:hover .widget-title::after {
    width: 60px;
    transition: width 0.3s var(--ease-out-expo);
}

/* Loading states */
.newsletter-form.loading .newsletter-btn {
    pointer-events: none;
    opacity: 0.7;
}

.newsletter-form.loading .newsletter-btn i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================ */
/* FOOTER ACCESSIBILITY                        */
/* ============================================ */

@media (prefers-reduced-motion: reduce) {
    .footer-widget {
        animation: none;
    }
    
    .social-link:hover {
        transform: none;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .site-footer {
        border-top: 3px solid var(--primary-color);
    }
    
    .widget-title::after {
        height: 4px;
    }
    
    .social-link,
    .trust-badge,
    .newsletter-box {
        border-width: 2px;
    }
}

/* ============================================ */
/* COMPONENT STYLES - MOBILE FIRST            */
/* ============================================ */

/* Text with Image Grid */
.text-image-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    align-items: center;
    padding: var(--space-8) var(--space-4);
    background: var(--bg-primary, #ffffff);
    transition: background-color 0.3s ease;
}

.text-image-grid .image-content {
    order: 1; /* Image comes first on mobile */
    width: 100%;
    max-width: 400px;
}

.text-image-grid .image-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    filter: brightness(0.95); /* Slight adjustment for dark mode */
    transition: filter 0.3s ease;
}

.text-image-grid .text-content {
    order: 2; /* Text comes after image on mobile */
    text-align: center; /* Center align for mobile */
    width: 100%;
}

.text-image-grid .text-content h2 {
    color: var(--text-primary, #1f2937);
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.text-image-grid .text-content h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.text-image-grid .text-content p {
    color: var(--text-secondary, #4b5563);
    text-align: left;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

/* About Intro Section */
.about-intro-section {
    padding: var(--space-8) var(--space-4);
    background: var(--bg-secondary, linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%));
    transition: background 0.3s ease;
}

.about-intro-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    align-items: center;
}

.about-intro-content {
    order: 2; /* Text comes after image on mobile */
    text-align: center;
}

.about-intro-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    line-height: 1.2;
    margin-bottom: var(--space-4);
    transition: color 0.3s ease;
}

.about-intro-content p {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    color: var(--text-secondary, #4b5563);
    line-height: 1.6;
    text-align: left;
    margin-bottom: var(--space-4);
    padding-right: 0;
    transition: color 0.3s ease;
}

.about-intro-image {
    order: 1; /* Image comes first on mobile */
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.about-intro-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    filter: brightness(0.95); /* Slight adjustment for dark mode */
    transition: filter 0.3s ease;
}

.about-cta {
    display: inline-block;
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.about-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* ============================================ */
/* TABLET STYLES (768px and up)               */
/* ============================================ */

@media (min-width: 768px) {
    .text-image-grid {
        padding: var(--space-12) var(--space-6);
    }
    
    .text-image-grid .text-content {
        text-align: left;
    }
    
    .text-image-grid .text-content h2::after {
        left: 0;
        transform: none;
    }
    
    .about-intro-section {
        padding: var(--space-12) var(--space-6);
    }
    
    .about-intro-content {
        text-align: left;
    }
    
    .about-intro-content p {
        padding-right: 20px;
    }
    
    .about-cta {
        padding: var(--space-3) var(--space-8);
    }
}

/* ============================================ */
/* DESKTOP STYLES (1024px and up)             */
/* ============================================ */

@media (min-width: 1024px) {
    /* Text with Image Grid - Desktop */
    .text-image-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
        align-items: center;
        padding: var(--space-16) var(--space-8);
    }
    
    .text-image-grid .image-content {
        order: 2; /* Image on right side */
        max-width: none;
    }
    
    .text-image-grid .text-content {
        order: 1; /* Text on left side */
        text-align: left;
    }
    
    .text-image-grid .text-content h2::after {
        left: 0;
        transform: none;
    }
    
    /* Alternate layout for text-image-grid */
    .text-image-grid.alternate .image-content {
        order: 1; /* Image on left */
    }
    
    .text-image-grid.alternate .text-content {
        order: 2; /* Text on right */
    }
    
    /* About Intro - Desktop */
    .about-intro-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
        align-items: center;
    }
    
    .about-intro-content {
        order: 1;
        text-align: left;
    }
    
    .about-intro-image {
        order: 2;
        max-width: none;
    }
    
    .about-intro-content p {
        padding-right: 40px;
        text-align: justify;
        line-height: 1.7;
    }
    
    .about-intro-section {
        padding: var(--space-16) var(--space-8);
    }
}

/* ============================================ */
/* LARGE DESKTOP STYLES (1200px and up)       */
/* ============================================ */

@media (min-width: 1200px) {
    .text-image-grid {
        padding: var(--space-20) var(--space-12);
        gap: var(--space-16);
    }
    
    .about-intro-section {
        padding: var(--space-20) var(--space-12);
    }
    
    .about-intro-grid {
        gap: var(--space-16);
    }
}


/* ============================================ */
/* ACCESSIBILITY & PERFORMANCE                */
/* ============================================ */

@media (prefers-reduced-motion: reduce) {
    .about-cta,
    .text-image-grid,
    .text-image-grid .image-content img,
    .about-intro-image img {
        transition: none;
    }
    
    .about-cta:hover {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    .about-intro-section {
        background: #ffffff;
        border: 2px solid #000000;
    }
    
    .text-image-grid {
        border: 2px solid #000000;
    }
    
    .text-image-grid .text-content h2::after,
    .about-intro-content h2::after {
        height: 4px;
        background: #000000;
    }
    
 
}

/* ============================================ */
/* DARK MODE VARIABLES                         */
/* ============================================ */

:root {
    /* Dark mode color palette */
    --bg-primary-dark: #0f0f23;
    --bg-secondary-dark: #1a1a2e;
    --bg-tertiary-dark: #252541;
    --text-primary-dark: #f8fafc;
    --text-secondary-dark: #cbd5e1;
    --text-muted-dark: #94a3b8;
    --border-dark: #334155;
    --border-light-dark: #475569;
    
    /* Dark mode specific colors */
    --primary-dark: #7c3aed;
    --primary-darker: #6d28d9;
    --accent-dark: #f59e0b;
}

/* ============================================ */
/* DARK MODE MEDIA QUERY                       */
/* ============================================ */

@media (prefers-color-scheme: dark) {
    /* BACK TO TOP BUTTON - DARK MODE */
    .back-to-top {
        background: var(--primary-dark, #7c3aed);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px) brightness(0.8);
    }

    .back-to-top:hover {
        background: var(--primary-darker, #6d28d9);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    }

    /* ENHANCED HEADER STYLES - DARK MODE */
    .site-header {
        background: rgba(15, 15, 35, 0.95);
        backdrop-filter: blur(20px) brightness(0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header.scrolled {
        background: rgba(15, 15, 35, 0.98);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(30px) brightness(0.9);
    }

    /* Top Header - Dark Mode */
    .top-header {
        background: var(--primary-dark, #1e40af);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .social-links a {
        background: rgba(255, 255, 255, 0.1);
    }

    .social-links a:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Logo - Dark Mode */
    .site-name {
        color: var(--text-primary-dark, #f8fafc);
    }

    .site-tagline {
        color: var(--text-muted-dark, #94a3b8);
    }

    /* Navigation - Dark Mode */
    .nav-link {
        color: var(--text-primary-dark, #f8fafc);
    }

    .nav-link:hover,
    .main-nav li.active .nav-link {
        color: var(--primary-dark, #8b5cf6);
        background: rgba(139, 92, 246, 0.1);
    }

    /* Submenu - Dark Mode */
    .has-submenu .submenu {
        background: var(--bg-secondary-dark, #1a1a2e);
        backdrop-filter: blur(20px) brightness(0.9);
        border: 1px solid var(--border-dark, #334155);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .submenu-link {
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .submenu-link:hover {
        background: rgba(139, 92, 246, 0.1);
        color: var(--primary-dark, #8b5cf6);
    }

    /* Mobile Menu - Dark Mode */
    .mobile-menu-toggle:hover {
        background: rgba(139, 92, 246, 0.15);
    }

    .line {
        background: var(--text-primary-dark, #f8fafc);
    }

    .main-nav {
        background: var(--bg-secondary-dark, #1a1a2e);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-link {
        border-bottom: 1px solid var(--border-dark, #334155);
    }

    /* Mobile Submenu - Dark Mode */
    .has-submenu.active .submenu {
        background: rgba(0, 0, 0, 0.1);
    }

    .submenu-link {
        color: var(--text-muted-dark, #94a3b8);
    }

    .submenu-link:hover {
        border-left-color: var(--primary-dark, #8b5cf6);
        background: rgba(139, 92, 246, 0.08);
    }

    /* ENHANCED FOOTER STYLES - DARK MODE */
    .site-footer {
        background: var(--bg-secondary-dark, #1a1a2e);
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .widget-title {
        color: var(--text-primary-dark, #f8fafc);
    }

    .footer-logo-text .footer-site-name {
        color: var(--text-primary-dark, #f8fafc);
    }

    .footer-tagline {
        color: var(--text-muted-dark, #94a3b8);
    }

    .footer-about {
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .trust-badge {
        background: var(--bg-tertiary-dark, #252541);
        border: 1px solid var(--border-dark, #334155);
    }

    .footer-menu li a {
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .footer-menu li a:hover {
        color: var(--primary-dark, #8b5cf6);
        background: rgba(139, 92, 246, 0.08);
    }

    .contact-text a {
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .contact-text a:hover {
        color: var(--primary-dark, #8b5cf6);
    }

    .newsletter-box {
        background: var(--bg-tertiary-dark, #252541);
        border: 1px solid var(--border-dark, #334155);
    }

    .input-group {
        background: var(--bg-primary-dark, #0f0f23);
        border: 1px solid var(--border-dark, #334155);
    }

    .input-group input {
        color: var(--text-primary-dark, #f8fafc);
    }

    .input-group input::placeholder {
        color: var(--text-muted-dark, #94a3b8);
    }

    .social-link {
        background: var(--bg-tertiary-dark, #252541);
        border: 1px solid var(--border-dark, #334155);
    }

    .social-link:hover {
        background: var(--primary-dark, #7c3aed);
        border-color: transparent;
    }

    .footer-bottom {
        background: var(--bg-tertiary-dark, #252541);
        border-top: 1px solid var(--border-dark, #334155);
    }

    .copyright p {
        color: var(--text-muted-dark, #94a3b8);
    }

    .footer-links a {
        color: var(--text-muted-dark, #94a3b8);
    }

    .footer-links a:hover {
        color: var(--primary-dark, #8b5cf6);
    }

    .credits p {
        color: var(--text-muted-dark, #94a3b8);
    }

    /* COMPONENT STYLES - DARK MODE */
    .text-image-grid {
        background: var(--bg-primary-dark, #0f0f23);
    }

    .text-image-grid .text-content h2 {
        color: var(--text-primary-dark, #f8fafc);
    }

    .text-image-grid .text-content p {
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .text-image-grid .image-content img {
        filter: brightness(0.85) contrast(1.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .about-intro-section {
        background: var(--bg-secondary-dark, #1a1a2e);
    }

    .about-intro-content h2 {
        color: var(--text-primary-dark, #f8fafc);
    }

    .about-intro-content p {
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .about-intro-image img {
        filter: brightness(0.85) contrast(1.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
}

/* ============================================ */
/* MANUAL DARK MODE CLASS SUPPORT              */
/* ============================================ */

.dark-mode {
    /* BACK TO TOP BUTTON - DARK MODE */
    .back-to-top {
        background: var(--primary-dark, #7c3aed);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px) brightness(0.8);
    }

    .back-to-top:hover {
        background: var(--primary-darker, #6d28d9);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    }

    /* ENHANCED HEADER STYLES - DARK MODE */
    .site-header {
        background: rgba(15, 15, 35, 0.95);
        backdrop-filter: blur(20px) brightness(0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header.scrolled {
        background: rgba(15, 15, 35, 0.98);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(30px) brightness(0.9);
    }

    /* Top Header - Dark Mode */
    .top-header {
        background: var(--primary-dark, #1e40af);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .social-links a {
        background: rgba(255, 255, 255, 0.1);
    }

    .social-links a:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Logo - Dark Mode */
    .site-name {
        color: var(--text-primary-dark, #f8fafc);
    }

    .site-tagline {
        color: var(--text-muted-dark, #94a3b8);
    }

    /* Navigation - Dark Mode */
    .nav-link {
        color: var(--text-primary-dark, #f8fafc);
    }

    .nav-link:hover,
    .main-nav li.active .nav-link {
        color: var(--primary-dark, #8b5cf6);
        background: rgba(139, 92, 246, 0.1);
    }

    /* Submenu - Dark Mode */
    .has-submenu .submenu {
        background: var(--bg-secondary-dark, #1a1a2e);
        backdrop-filter: blur(20px) brightness(0.9);
        border: 1px solid var(--border-dark, #334155);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .submenu-link {
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .submenu-link:hover {
        background: rgba(139, 92, 246, 0.1);
        color: var(--primary-dark, #8b5cf6);
    }

    /* Mobile Menu - Dark Mode */
    .mobile-menu-toggle:hover {
        background: rgba(139, 92, 246, 0.15);
    }

    .line {
        background: var(--text-primary-dark, #f8fafc);
    }

    .main-nav {
        background: var(--bg-secondary-dark, #1a1a2e);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-link {
        border-bottom: 1px solid var(--border-dark, #334155);
    }

    /* Mobile Submenu - Dark Mode */
    .has-submenu.active .submenu {
        background: rgba(0, 0, 0, 0.1);
    }

    .submenu-link {
        color: var(--text-muted-dark, #94a3b8);
    }

    .submenu-link:hover {
        border-left-color: var(--primary-dark, #8b5cf6);
        background: rgba(139, 92, 246, 0.08);
    }

    /* ENHANCED FOOTER STYLES - DARK MODE */
    .site-footer {
        background: var(--bg-secondary-dark, #1a1a2e);
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .widget-title {
        color: var(--text-primary-dark, #f8fafc);
    }

    .footer-logo-text .footer-site-name {
        color: var(--text-primary-dark, #f8fafc);
    }

    .footer-tagline {
        color: var(--text-muted-dark, #94a3b8);
    }

    .footer-about {
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .trust-badge {
        background: var(--bg-tertiary-dark, #252541);
        border: 1px solid var(--border-dark, #334155);
    }

    .footer-menu li a {
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .footer-menu li a:hover {
        color: var(--primary-dark, #8b5cf6);
        background: rgba(139, 92, 246, 0.08);
    }

    .contact-text a {
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .contact-text a:hover {
        color: var(--primary-dark, #8b5cf6);
    }

    .newsletter-box {
        background: var(--bg-tertiary-dark, #252541);
        border: 1px solid var(--border-dark, #334155);
    }

    .input-group {
        background: var(--bg-primary-dark, #0f0f23);
        border: 1px solid var(--border-dark, #334155);
    }

    .input-group input {
        color: var(--text-primary-dark, #f8fafc);
    }

    .input-group input::placeholder {
        color: var(--text-muted-dark, #94a3b8);
    }

    .social-link {
        background: var(--bg-tertiary-dark, #252541);
        border: 1px solid var(--border-dark, #334155);
    }

    .social-link:hover {
        background: var(--primary-dark, #7c3aed);
        border-color: transparent;
    }

    .footer-bottom {
        background: var(--bg-tertiary-dark, #252541);
        border-top: 1px solid var(--border-dark, #334155);
    }

    .copyright p {
        color: var(--text-muted-dark, #94a3b8);
    }

    .footer-links a {
        color: var(--text-muted-dark, #94a3b8);
    }

    .footer-links a:hover {
        color: var(--primary-dark, #8b5cf6);
    }

    .credits p {
        color: var(--text-muted-dark, #94a3b8);
    }

    /* COMPONENT STYLES - DARK MODE */
    .text-image-grid {
        background: var(--bg-primary-dark, #0f0f23);
    }

    .text-image-grid .text-content h2 {
        color: var(--text-primary-dark, #f8fafc);
    }

    .text-image-grid .text-content p {
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .text-image-grid .image-content img {
        filter: brightness(0.85) contrast(1.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .about-intro-section {
        background: var(--bg-secondary-dark, #1a1a2e);
    }

    .about-intro-content h2 {
        color: var(--text-primary-dark, #f8fafc);
    }

    .about-intro-content p {
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .about-intro-image img {
        filter: brightness(0.85) contrast(1.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
}

/* ============================================ */
/* THEME-SPECIFIC DARK MODE STYLES             */
/* ============================================ */

/* Creative Dark Theme - Enhanced for Dark Mode */
.creative-theme.dark-mode .site-footer,
.dark-mode .creative-theme .site-footer {
    background: var(--bg-primary-dark, #0a0a1a);
    border-top: 1px solid var(--border-light-dark, #2d2d5a);
}

.creative-theme.dark-mode .trust-badge,
.creative-theme.dark-mode .newsletter-box,
.creative-theme.dark-mode .social-link,
.dark-mode .creative-theme .trust-badge,
.dark-mode .creative-theme .newsletter-box,
.dark-mode .creative-theme .social-link {
    background: var(--bg-primary-dark, #0a0a1a);
    border-color: var(--border-light-dark, #2d2d5a);
}

.creative-theme.dark-mode .input-group,
.dark-mode .creative-theme .input-group {
    background: var(--bg-secondary-dark, #151529);
    border-color: var(--border-light-dark, #2d2d5a);
}

.creative-theme.dark-mode .footer-bottom,
.dark-mode .creative-theme .footer-bottom {
    background: var(--bg-tertiary-dark, #1a1a35);
    border-top-color: var(--border-light-dark, #2d2d5a);
}

/* Modern Tech Theme - Enhanced for Dark Mode */
.modern-theme.dark-mode .site-footer,
.dark-mode .modern-theme .site-footer {
    background: var(--bg-primary-dark, #0f172a);
    border-top: 1px solid var(--border-dark, #1e293b);
}

.modern-theme.dark-mode .trust-badge,
.modern-theme.dark-mode .newsletter-box,
.modern-theme.dark-mode .social-link,
.dark-mode .modern-theme .trust-badge,
.dark-mode .modern-theme .newsletter-box,
.dark-mode .modern-theme .social-link {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: var(--blur-amount);
    border: 1px solid var(--border-light-dark, #334155);
}

.modern-theme.dark-mode .input-group,
.dark-mode .modern-theme .input-group {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-light-dark, #334155);
}

.modern-theme.dark-mode .footer-bottom,
.dark-mode .modern-theme .footer-bottom {
    background: var(--bg-tertiary-dark, #1e293b);
    border-top-color: var(--border-light-dark, #334155);
}

/* ============================================ */
/* DARK MODE TRANSITIONS                       */
/* ============================================ */

.site-header,
.site-footer,
.text-image-grid,
.about-intro-section,
.back-to-top,
.nav-link,
.submenu-link,
.footer-menu li a,
.social-link,
.trust-badge,
.newsletter-box,
.input-group {
    transition: background-color 0.3s ease, 
                border-color 0.3s ease, 
                color 0.3s ease,
                box-shadow 0.3s ease;
}

/* ============================================ */
/* DARK MODE ACCESSIBILITY                     */
/* ============================================ */

@media (prefers-contrast: high) {
    .dark-mode .site-header,
    .dark-mode .site-footer {
        border-width: 2px;
    }
    
    .dark-mode .widget-title::after {
        height: 4px;
    }
    
    .dark-mode .social-link,
    .dark-mode .trust-badge,
    .dark-mode .newsletter-box {
        border-width: 2px;
    }
}

/* Ensure proper contrast in dark mode */
@media (prefers-color-scheme: dark) {
    .nav-link:focus,
    .submenu-link:focus,
    .footer-menu li a:focus,
    .social-link:focus {
        outline: 2px solid var(--accent-dark, #f59e0b);
        outline-offset: 2px;
    }
}

.dark-mode .nav-link:focus,
.dark-mode .submenu-link:focus,
.dark-mode .footer-menu li a:focus,
.dark-mode .social-link:focus {
    outline: 2px solid var(--accent-dark, #f59e0b);
    outline-offset: 2px;
}

/* ============================================ */
/* COMPREHENSIVE FOOTER DARK MODE FIX          */
/* ============================================ */

@media (prefers-color-scheme: dark) {
    /* Reset all footer backgrounds */
    .site-footer,
    .site-footer *,
    .site-footer .container,
    .site-footer .footer-main,
    .site-footer .footer-widgets-grid,
    .site-footer .footer-widget,
    .site-footer .footer-widget > * {
        background: var(--bg-secondary-dark, #1a1a2e) !important;
        background-color: var(--bg-secondary-dark, #1a1a2e) !important;
    }

    /* Specific footer sections */
    .site-footer {
        background: var(--bg-secondary-dark, #1a1a2e) !important;
        color: var(--text-secondary-dark, #cbd5e1);
    }

    .footer-main {
        background: transparent !important;
    }

    /* Footer bottom should inherit from site-footer */
    .footer-bottom {
        background: var(--bg-tertiary-dark, #252541) !important;
        border-top-color: var(--border-dark, #334155);
    }
    
    .footer-bottom-content {
        background: var(--bg-tertiary-dark, #252541) !important;
       
    }
    
    .copyright {
         background: var(--bg-tertiary-dark, #252541) !important;
    }
    
    .footer-links {
         background: var(--bg-tertiary-dark, #252541) !important;
    }
    
    .credits {
         background: var(--bg-tertiary-dark, #252541) !important;
    }
}

.dark-mode .site-footer,
.dark-mode .site-footer *,
.dark-mode .site-footer .container,
.dark-mode .site-footer .footer-main,
.dark-mode .site-footer .footer-widgets-grid,
.dark-mode .site-footer .footer-widget,
.dark-mode .site-footer .footer-widget > * {
    background: var(--bg-secondary-dark, #1a1a2e) !important;
    background-color: var(--bg-secondary-dark, #1a1a2e) !important;
}

.dark-mode .site-footer {
    background: var(--bg-secondary-dark, #1a1a2e) !important;
    color: var(--text-secondary-dark, #cbd5e1);
}

.dark-mode .footer-main {
    background: transparent !important;
}

.dark-mode .footer-bottom {
    background: var(--bg-tertiary-dark, #252541) !important;
    border-top-color: var(--border-dark, #334155);
}

/* Nuclear option - if nothing else works */
html.dark-mode body .site-footer,
body.dark-mode .site-footer {
    background: var(--bg-secondary-dark, #1a1a2e) !important;
}

html.dark-mode body .site-footer *,
body.dark-mode .site-footer * {
    background-color: transparent !important;
}