/* ========================================================
   S3india Multi-Theme Engine & Header Navigation Styles
   Fixes contrast across all 6 themes:
   - Eliminates white-text-on-white-background issues
   - Ensures crystal-clear navigation visibility (desktop & mobile)
   - High-contrast brand logo and responsive menu buttons
   ======================================================== */

/* --------------------------------------------------------
   GLOBAL HEADER & NAVIGATION CONTRAST BASE
   -------------------------------------------------------- */
nav {
    position: relative;
    z-index: 100;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

@media screen and (min-width: 769px) {
    nav .line.nav-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 74px !important;
    }
    .nav-brand-col {
        display: flex !important;
        align-items: center !important;
        float: none !important;
        width: auto !important;
        min-height: 74px !important;
    }
    .top-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        float: none !important;
        width: auto !important;
        flex: 1 !important;
    }
    .top-nav ul.right {
        display: flex !important;
        align-items: center !important;
        float: none !important;
        gap: 6px;
        margin: 0 !important;
    }
    .nav-text,
    .mobile-hamburger-btn {
        display: none !important;
    }
}

/* Base Logo & Brand Link */
.logo, p.logo {
    top: 0 !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    text-transform: none !important;
    line-height: 1 !important;
}

.brand-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-link:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.site-logo-img {
    max-height: 48px;
    max-width: 240px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-icon-svg {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.brand-link:hover .logo-icon-svg {
    transform: scale(1.05);
}

.brand-text {
    font-size: 26px;
    letter-spacing: -0.5px;
    line-height: 1;
    font-family: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
    display: inline-flex;
    align-items: baseline;
    text-transform: none !important;
}

.logo-bold {
    font-weight: 800;
    letter-spacing: -0.6px;
}

.logo-light {
    font-weight: 600;
    margin-left: 1px;
    opacity: 0.95;
}

/* Menu links base styling */
.top-nav ul li a,
.top-nav li a {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px;
    padding: 10px 16px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: inline-block;
    border-top: none !important;
    background: transparent !important;
}

/* Mobile Hamburger Trigger Base */
.nav-text::after,
.mobile-hamburger-btn::after {
    display: none !important;
    content: "" !important;
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background-color: currentColor;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    transform-origin: center;
}


/* --------------------------------------------------------
   THEME 1: S3 Classic (classic / default)
   -------------------------------------------------------- */
body.theme-classic {
    background: #f6f8fb !important;
    color: #1f2937 !important;
}

body.theme-classic #topbar {
    background: #111827 !important;
    border-bottom: 1px solid #1f2937;
}

body.theme-classic #topbar p {
    color: #cbd5e1 !important;
}

body.theme-classic #topbar strong a {
    color: #60a5fa !important;
}

body.theme-classic nav {
    background: #ffffff !important;
    border-bottom: 2px solid #2563eb !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

body.theme-classic .logo,
body.theme-classic .logo a,
body.theme-classic .logo strong {
    color: #111827 !important;
}

body.theme-classic .logo-icon-svg {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

body.theme-classic .logo-bold {
    color: #0f172a !important;
}

body.theme-classic .logo-light {
    color: #2563eb !important;
}

body.theme-classic .top-nav ul li a,
body.theme-classic .top-nav li a {
    color: #1f2937 !important; /* High contrast dark text on white navbar */
}

body.theme-classic .top-nav ul li a:hover,
body.theme-classic .top-nav li a:hover {
    color: #2563eb !important;
    background: #eff6ff !important;
}

body.theme-classic .mobile-hamburger-btn,
body.theme-classic p.nav-text,
body.theme-classic button.nav-text {
    color: #111827 !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}

body.theme-classic .mobile-hamburger-btn .hamburger-bar {
    background-color: #111827 !important;
}

body.theme-classic .mobile-hamburger-btn:hover,
body.theme-classic .mobile-hamburger-btn.is-active {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
}

@media screen and (max-width: 768px) {
    body.theme-classic .top-nav ul {
        background: #ffffff !important;
        border: 1px solid #e2e8f0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
    body.theme-classic .top-nav ul li a {
        color: #1f2937 !important;
        background: transparent !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
}


/* --------------------------------------------------------
   THEME 2: Cyber Dark Tech (cyber-dark)
   -------------------------------------------------------- */
body.theme-cyber-dark {
    background: #090d16 !important;
    color: #e2e8f0 !important;
}

body.theme-cyber-dark #topbar {
    background: #030712 !important;
    border-bottom: 1px solid #1e293b;
}

body.theme-cyber-dark #topbar p {
    color: #94a3b8 !important;
}

body.theme-cyber-dark #topbar strong a {
    color: #38bdf8 !important;
}

body.theme-cyber-dark nav {
    background: #0f172a !important;
    border-bottom: 2px solid #06b6d4 !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6) !important;
}

body.theme-cyber-dark .logo,
body.theme-cyber-dark .logo a,
body.theme-cyber-dark .logo strong {
    color: #38bdf8 !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

body.theme-cyber-dark .logo-icon-svg {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: #030712;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.45);
}

body.theme-cyber-dark .logo-bold {
    color: #38bdf8 !important;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

body.theme-cyber-dark .logo-light {
    color: #f1f5f9 !important;
}

body.theme-cyber-dark .top-nav ul li a,
body.theme-cyber-dark .top-nav li a {
    color: #f1f5f9 !important; /* Luminous silver-white on dark background */
}

body.theme-cyber-dark .top-nav ul li a:hover,
body.theme-cyber-dark .top-nav li a:hover {
    color: #38bdf8 !important;
    background: #1e293b !important;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

body.theme-cyber-dark .mobile-hamburger-btn,
body.theme-cyber-dark p.nav-text,
body.theme-cyber-dark button.nav-text {
    color: #38bdf8 !important;
    background: #1e293b !important;
    border: 1px solid #06b6d4 !important;
}

body.theme-cyber-dark .mobile-hamburger-btn .hamburger-bar {
    background-color: #38bdf8 !important;
}

body.theme-cyber-dark .mobile-hamburger-btn:hover,
body.theme-cyber-dark .mobile-hamburger-btn.is-active {
    background: #0f172a !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3) !important;
}

@media screen and (max-width: 768px) {
    body.theme-cyber-dark .top-nav ul {
        background: #0f172a !important;
        border: 1px solid #06b6d4;
    }
    body.theme-cyber-dark .top-nav ul li a {
        color: #f1f5f9 !important;
        border-bottom: 1px solid #1e293b !important;
    }
}

body.theme-cyber-dark #carousel .text {
    background: rgba(3, 7, 18, 0.9) !important;
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.2);
}

body.theme-cyber-dark #carousel h2 {
    color: #38bdf8 !important;
}

body.theme-cyber-dark #carousel p {
    color: #cbd5e1 !important;
}

body.theme-cyber-dark .home-page .dynamic-section {
    border-top: 1px solid #1e293b !important;
}

body.theme-cyber-dark .home-page .dynamic-section .line {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

body.theme-cyber-dark .home-page .dynamic-section h2 {
    color: #38bdf8 !important;
}

body.theme-cyber-dark .home-page .dynamic-section .copy,
body.theme-cyber-dark .home-page .dynamic-section .copy p,
body.theme-cyber-dark .home-page .dynamic-section .copy div,
body.theme-cyber-dark .home-page .dynamic-section .copy span,
body.theme-cyber-dark .home-page .dynamic-section .copy strong,
body.theme-cyber-dark .home-page .dynamic-section .copy li {
    color: #cbd5e1 !important;
}

body.theme-cyber-dark .home-page .dynamic-section .copy a {
    color: #38bdf8 !important;
}

body.theme-cyber-dark .home-page .dynamic-section table {
    border-color: #334155 !important;
}

body.theme-cyber-dark .home-page .dynamic-section td {
    border-color: #1e293b !important;
    color: #cbd5e1 !important;
}

body.theme-cyber-dark .work-marquee-wrap {
    background: #0a0f1d !important;
    border-top: 1px solid #1e293b !important;
    border-bottom: 1px solid #1e293b !important;
}

body.theme-cyber-dark .work-marquee-title {
    color: #38bdf8 !important;
}

body.theme-cyber-dark .work-card {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

body.theme-cyber-dark .work-card:hover {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

body.theme-cyber-dark .work-card p {
    color: #e2e8f0 !important;
}

body.theme-cyber-dark .services-wrap {
    background: #080c18 !important;
    border-top: 1px solid #1e293b !important;
}

body.theme-cyber-dark .services-title {
    color: #38bdf8 !important;
}

body.theme-cyber-dark .service-card {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    border-left: 3px solid #06b6d4 !important;
}

body.theme-cyber-dark .service-card h3 {
    color: #38bdf8 !important;
}

body.theme-cyber-dark .service-card p {
    color: #94a3b8 !important;
}

body.theme-cyber-dark #contact h3,
body.theme-cyber-dark #contact p,
body.theme-cyber-dark #contact strong,
body.theme-cyber-dark #contact address p {
    color: #e2e8f0 !important;
}

body.theme-cyber-dark #contact a {
    color: #38bdf8 !important;
}

body.theme-cyber-dark .customform input,
body.theme-cyber-dark .customform textarea {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #ffffff !important;
}

body.theme-cyber-dark .customform input:focus,
body.theme-cyber-dark .customform textarea:focus {
    border-color: #06b6d4 !important;
    outline: none;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3) !important;
}

body.theme-cyber-dark .customform button,
body.theme-cyber-dark .color-btn {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4) !important;
}

body.theme-cyber-dark .compact-footer {
    background: #020617 !important;
    border-top: 1px solid #1e293b;
}


/* --------------------------------------------------------
   THEME 3: Emerald Growth Pro (emerald-pro)
   -------------------------------------------------------- */
body.theme-emerald-pro {
    background: #f0fdf4 !important;
    color: #14532d !important;
}

body.theme-emerald-pro #topbar {
    background: #064e3b !important;
}

body.theme-emerald-pro #topbar p {
    color: #d1fae5 !important;
}

body.theme-emerald-pro #topbar strong a {
    color: #34d399 !important;
}

body.theme-emerald-pro nav {
    background: #ffffff !important;
    border-bottom: 2px solid #059669 !important;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.12) !important;
}

body.theme-emerald-pro .logo,
body.theme-emerald-pro .logo a,
body.theme-emerald-pro .logo strong {
    color: #064e3b !important;
}

body.theme-emerald-pro .logo-icon-svg {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

body.theme-emerald-pro .logo-bold {
    color: #064e3b !important;
}

body.theme-emerald-pro .logo-light {
    color: #059669 !important;
}

/* Explicit high-contrast text for Emerald nav links */
body.theme-emerald-pro .top-nav ul li a,
body.theme-emerald-pro .top-nav li a {
    color: #14532d !important; /* Deep forest green - strong contrast on white */
}

body.theme-emerald-pro .top-nav ul li a:hover,
body.theme-emerald-pro .top-nav li a:hover {
    color: #059669 !important;
    background: #ecfdf5 !important;
}

body.theme-emerald-pro .mobile-hamburger-btn,
body.theme-emerald-pro p.nav-text,
body.theme-emerald-pro button.nav-text {
    color: #064e3b !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
}

body.theme-emerald-pro .mobile-hamburger-btn .hamburger-bar {
    background-color: #064e3b !important;
}

body.theme-emerald-pro .mobile-hamburger-btn:hover,
body.theme-emerald-pro .mobile-hamburger-btn.is-active {
    background: #d1fae5 !important;
    border-color: #059669 !important;
}

@media screen and (max-width: 768px) {
    body.theme-emerald-pro .top-nav ul {
        background: #ffffff !important;
        border: 1px solid #a7f3d0;
        box-shadow: 0 8px 24px rgba(5, 150, 105, 0.15);
    }
    body.theme-emerald-pro .top-nav ul li a {
        color: #14532d !important;
        background: transparent !important;
        border-bottom: 1px solid #f0fdf4 !important;
    }
}

body.theme-emerald-pro #carousel .text {
    background: rgba(6, 78, 59, 0.9) !important;
    border-radius: 12px;
    border: 1px solid #10b981;
}

body.theme-emerald-pro #carousel h2 {
    color: #a7f3d0 !important;
}

body.theme-emerald-pro .home-page .dynamic-section {
    border-top: 1px solid #d1fae5 !important;
}

body.theme-emerald-pro .home-page .dynamic-section .line {
    background: #ffffff !important;
    border: 1px solid #a7f3d0 !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.06) !important;
}

body.theme-emerald-pro .home-page .dynamic-section h2 {
    color: #065f46 !important;
}

body.theme-emerald-pro .home-page .dynamic-section .copy p,
body.theme-emerald-pro .home-page .dynamic-section .copy li {
    color: #166534 !important;
}

body.theme-emerald-pro .home-page .dynamic-section .copy a {
    color: #059669 !important;
}

body.theme-emerald-pro .work-marquee-wrap {
    background: #ffffff !important;
    border-top: 1px solid #a7f3d0 !important;
    border-bottom: 1px solid #a7f3d0 !important;
}

body.theme-emerald-pro .work-marquee-title {
    color: #065f46 !important;
}

body.theme-emerald-pro .work-card {
    border: 1px solid #a7f3d0 !important;
}

body.theme-emerald-pro .work-card:hover {
    border-color: #059669 !important;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.2);
}

body.theme-emerald-pro .services-wrap {
    background: #ecfdf5 !important;
    border-top: 1px solid #a7f3d0 !important;
}

body.theme-emerald-pro .services-title {
    color: #065f46 !important;
}

body.theme-emerald-pro .service-card {
    border: 1px solid #a7f3d0 !important;
    border-top: 3px solid #059669 !important;
}

body.theme-emerald-pro .service-card h3 {
    color: #065f46 !important;
}

body.theme-emerald-pro .service-card p {
    color: #166534 !important;
}

body.theme-emerald-pro .customform input,
body.theme-emerald-pro .customform textarea {
    border: 1px solid #a7f3d0 !important;
}

body.theme-emerald-pro .customform input:focus,
body.theme-emerald-pro .customform textarea:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

body.theme-emerald-pro .customform button,
body.theme-emerald-pro .color-btn {
    background: #059669 !important;
}

body.theme-emerald-pro .customform button:hover,
body.theme-emerald-pro .color-btn:hover {
    background: #047857 !important;
}

body.theme-emerald-pro .compact-footer {
    background: #064e3b !important;
}


/* --------------------------------------------------------
   THEME 4: Royal Violet Creative (royal-violet)
   -------------------------------------------------------- */
body.theme-royal-violet {
    background: #faf5ff !important;
    color: #1e1b4b !important;
}

body.theme-royal-violet #topbar {
    background: #2e1065 !important;
}

body.theme-royal-violet #topbar p {
    color: #e9d5ff !important;
}

body.theme-royal-violet #topbar strong a {
    color: #c084fc !important;
}

body.theme-royal-violet nav {
    background: #ffffff !important;
    border-bottom: 2px solid #7c3aed !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12) !important;
}

body.theme-royal-violet .logo,
body.theme-royal-violet .logo a,
body.theme-royal-violet .logo strong {
    color: #4c1d95 !important;
}

body.theme-royal-violet .logo-icon-svg {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

body.theme-royal-violet .logo-bold {
    color: #4c1d95 !important;
}

body.theme-royal-violet .logo-light {
    color: #7c3aed !important;
}

/* Explicit high-contrast text for Royal Violet nav links */
body.theme-royal-violet .top-nav ul li a,
body.theme-royal-violet .top-nav li a {
    color: #2e1065 !important; /* Deep dark purple - strong contrast on white */
}

body.theme-royal-violet .top-nav ul li a:hover,
body.theme-royal-violet .top-nav li a:hover {
    color: #7c3aed !important;
    background: #f5f3ff !important;
}

body.theme-royal-violet .mobile-hamburger-btn,
body.theme-royal-violet p.nav-text,
body.theme-royal-violet button.nav-text {
    color: #4c1d95 !important;
    background: #f5f3ff !important;
    border: 1px solid #ddd6fe !important;
}

body.theme-royal-violet .mobile-hamburger-btn .hamburger-bar {
    background-color: #4c1d95 !important;
}

body.theme-royal-violet .mobile-hamburger-btn:hover,
body.theme-royal-violet .mobile-hamburger-btn.is-active {
    background: #ede9fe !important;
    border-color: #7c3aed !important;
}

@media screen and (max-width: 768px) {
    body.theme-royal-violet .top-nav ul {
        background: #ffffff !important;
        border: 1px solid #ddd6fe;
        box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
    }
    body.theme-royal-violet .top-nav ul li a {
        color: #2e1065 !important;
        background: transparent !important;
        border-bottom: 1px solid #faf5ff !important;
    }
}

body.theme-royal-violet #carousel .text {
    background: rgba(46, 16, 101, 0.9) !important;
    border-radius: 14px;
    border: 1px solid #8b5cf6;
}

body.theme-royal-violet #carousel h2 {
    color: #ddd6fe !important;
}

body.theme-royal-violet .home-page .dynamic-section {
    border-top: 1px solid #e9d5ff !important;
}

body.theme-royal-violet .home-page .dynamic-section .line {
    background: #ffffff !important;
    border: 1px solid #e9d5ff !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08) !important;
}

body.theme-royal-violet .home-page .dynamic-section h2 {
    color: #4c1d95 !important;
}

body.theme-royal-violet .home-page .dynamic-section .copy p,
body.theme-royal-violet .home-page .dynamic-section .copy li {
    color: #475569 !important;
}

body.theme-royal-violet .home-page .dynamic-section .copy a {
    color: #7c3aed !important;
}

body.theme-royal-violet .work-marquee-wrap {
    background: #ffffff !important;
    border-top: 1px solid #e9d5ff !important;
    border-bottom: 1px solid #e9d5ff !important;
}

body.theme-royal-violet .work-marquee-title {
    color: #4c1d95 !important;
}

body.theme-royal-violet .work-card {
    border: 1px solid #e9d5ff !important;
}

body.theme-royal-violet .work-card:hover {
    border-color: #7c3aed !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.25);
}

body.theme-royal-violet .services-wrap {
    background: #f5f3ff !important;
    border-top: 1px solid #e9d5ff !important;
}

body.theme-royal-violet .services-title {
    color: #4c1d95 !important;
}

body.theme-royal-violet .service-card {
    border: 1px solid #e9d5ff !important;
    border-top: 3px solid #7c3aed !important;
}

body.theme-royal-violet .service-card h3 {
    color: #4c1d95 !important;
}

body.theme-royal-violet .customform input,
body.theme-royal-violet .customform textarea {
    border: 1px solid #d8b4fe !important;
}

body.theme-royal-violet .customform input:focus,
body.theme-royal-violet .customform textarea:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

body.theme-royal-violet .customform button,
body.theme-royal-violet .color-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
}

body.theme-royal-violet .compact-footer {
    background: #2e1065 !important;
}


/* --------------------------------------------------------
   THEME 5: Sunset Crimson Bold (sunset-crimson)
   -------------------------------------------------------- */
body.theme-sunset-crimson {
    background: #fff1f2 !important;
    color: #1c1917 !important;
}

body.theme-sunset-crimson #topbar {
    background: #881337 !important;
}

body.theme-sunset-crimson #topbar p {
    color: #fecdd3 !important;
}

body.theme-sunset-crimson #topbar strong a {
    color: #fda4af !important;
}

body.theme-sunset-crimson nav {
    background: #ffffff !important;
    border-bottom: 2px solid #e11d48 !important;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.12) !important;
}

body.theme-sunset-crimson .logo,
body.theme-sunset-crimson .logo a,
body.theme-sunset-crimson .logo strong {
    color: #881337 !important;
}

body.theme-sunset-crimson .logo-icon-svg {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

body.theme-sunset-crimson .logo-bold {
    color: #881337 !important;
}

body.theme-sunset-crimson .logo-light {
    color: #e11d48 !important;
}

/* Explicit high-contrast text for Sunset Crimson nav links */
body.theme-sunset-crimson .top-nav ul li a,
body.theme-sunset-crimson .top-nav li a {
    color: #881337 !important; /* Deep dark ruby - strong contrast on white */
}

body.theme-sunset-crimson .top-nav ul li a:hover,
body.theme-sunset-crimson .top-nav li a:hover {
    color: #e11d48 !important;
    background: #ffe4e6 !important;
}

body.theme-sunset-crimson .mobile-hamburger-btn,
body.theme-sunset-crimson p.nav-text,
body.theme-sunset-crimson button.nav-text {
    color: #881337 !important;
    background: #ffe4e6 !important;
    border: 1px solid #fecdd3 !important;
}

body.theme-sunset-crimson .mobile-hamburger-btn .hamburger-bar {
    background-color: #881337 !important;
}

body.theme-sunset-crimson .mobile-hamburger-btn:hover,
body.theme-sunset-crimson .mobile-hamburger-btn.is-active {
    background: #fecdd3 !important;
    border-color: #e11d48 !important;
}

@media screen and (max-width: 768px) {
    body.theme-sunset-crimson .top-nav ul {
        background: #ffffff !important;
        border: 1px solid #fecdd3;
        box-shadow: 0 8px 24px rgba(225, 29, 72, 0.15);
    }
    body.theme-sunset-crimson .top-nav ul li a {
        color: #881337 !important;
        background: transparent !important;
        border-bottom: 1px solid #fff1f2 !important;
    }
}

body.theme-sunset-crimson #carousel .text {
    background: rgba(136, 19, 55, 0.9) !important;
    border-radius: 12px;
    border: 1px solid #f43f5e;
}

body.theme-sunset-crimson #carousel h2 {
    color: #ffe4e6 !important;
}

body.theme-sunset-crimson .home-page .dynamic-section {
    border-top: 1px solid #fecdd3 !important;
}

body.theme-sunset-crimson .home-page .dynamic-section .line {
    background: #ffffff !important;
    border: 1px solid #fecdd3 !important;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.08) !important;
}

body.theme-sunset-crimson .home-page .dynamic-section h2 {
    color: #9f1239 !important;
}

body.theme-sunset-crimson .home-page .dynamic-section .copy p,
body.theme-sunset-crimson .home-page .dynamic-section .copy li {
    color: #374151 !important;
}

body.theme-sunset-crimson .home-page .dynamic-section .copy a {
    color: #e11d48 !important;
}

body.theme-sunset-crimson .work-marquee-wrap {
    background: #ffffff !important;
    border-top: 1px solid #fecdd3 !important;
    border-bottom: 1px solid #fecdd3 !important;
}

body.theme-sunset-crimson .work-marquee-title {
    color: #9f1239 !important;
}

body.theme-sunset-crimson .work-card {
    border: 1px solid #fecdd3 !important;
}

body.theme-sunset-crimson .work-card:hover {
    border-color: #e11d48 !important;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.25);
}

body.theme-sunset-crimson .services-wrap {
    background: #ffe4e6 !important;
    border-top: 1px solid #fecdd3 !important;
}

body.theme-sunset-crimson .services-title {
    color: #9f1239 !important;
}

body.theme-sunset-crimson .service-card {
    border: 1px solid #fecdd3 !important;
    border-left: 3px solid #e11d48 !important;
}

body.theme-sunset-crimson .service-card h3 {
    color: #9f1239 !important;
}

body.theme-sunset-crimson .customform input,
body.theme-sunset-crimson .customform textarea {
    border: 1px solid #fda4af !important;
}

body.theme-sunset-crimson .customform input:focus,
body.theme-sunset-crimson .customform textarea:focus {
    border-color: #e11d48 !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15) !important;
}

body.theme-sunset-crimson .customform button,
body.theme-sunset-crimson .color-btn {
    background: linear-gradient(135deg, #e11d48 0%, #ea580c 100%) !important;
}

body.theme-sunset-crimson .compact-footer {
    background: #881337 !important;
}


/* --------------------------------------------------------
   THEME 6: Luxury Slate Minimal (luxury-slate)
   -------------------------------------------------------- */
body.theme-luxury-slate {
    background: #f8fafc !important;
    color: #0f172a !important;
}

body.theme-luxury-slate #topbar {
    background: #000000 !important;
}

body.theme-luxury-slate #topbar p {
    color: #cbd5e1 !important;
    letter-spacing: 0.5px;
}

body.theme-luxury-slate #topbar strong a {
    color: #ffffff !important;
}

body.theme-luxury-slate nav {
    background: #ffffff !important;
    border-bottom: 2px solid #000000 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

body.theme-luxury-slate .logo,
body.theme-luxury-slate .logo a,
body.theme-luxury-slate .logo strong {
    color: #000000 !important;
    letter-spacing: 1px;
}

body.theme-luxury-slate .logo-icon-svg {
    background: #000000;
    color: #ffffff;
    box-shadow: 2px 2px 0px #000000;
}

body.theme-luxury-slate .logo-bold {
    color: #000000 !important;
}

body.theme-luxury-slate .logo-light {
    color: #334155 !important;
}

/* Explicit high-contrast text for Luxury Slate nav links */
body.theme-luxury-slate .top-nav ul li a,
body.theme-luxury-slate .top-nav li a {
    color: #0f172a !important; /* Solid black/charcoal on white */
}

body.theme-luxury-slate .top-nav ul li a:hover,
body.theme-luxury-slate .top-nav li a:hover {
    color: #000000 !important;
    background: #f1f5f9 !important;
}

body.theme-luxury-slate .mobile-hamburger-btn,
body.theme-luxury-slate p.nav-text,
body.theme-luxury-slate button.nav-text {
    color: #000000 !important;
    background: #f1f5f9 !important;
    border: 1px solid #000000 !important;
}

body.theme-luxury-slate .mobile-hamburger-btn .hamburger-bar {
    background-color: #000000 !important;
}

body.theme-luxury-slate .mobile-hamburger-btn:hover,
body.theme-luxury-slate .mobile-hamburger-btn.is-active {
    background: #000000 !important;
    color: #ffffff !important;
}

body.theme-luxury-slate .mobile-hamburger-btn:hover .hamburger-bar,
body.theme-luxury-slate .mobile-hamburger-btn.is-active .hamburger-bar {
    background-color: #ffffff !important;
}

@media screen and (max-width: 768px) {
    body.theme-luxury-slate .top-nav ul {
        background: #ffffff !important;
        border: 2px solid #000000;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
    body.theme-luxury-slate .top-nav ul li a {
        color: #000000 !important;
        background: transparent !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
}

body.theme-luxury-slate #carousel .text {
    background: rgba(0, 0, 0, 0.92) !important;
    border-radius: 4px;
    border: 1px solid #334155;
}

body.theme-luxury-slate .home-page .dynamic-section {
    border-top: 1px solid #cbd5e1 !important;
}

body.theme-luxury-slate .home-page .dynamic-section .line {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 4px !important;
    box-shadow: 4px 4px 0px #000000 !important;
}

body.theme-luxury-slate .home-page .dynamic-section h2 {
    color: #000000 !important;
    font-weight: 800;
}

body.theme-luxury-slate .work-marquee-wrap {
    background: #ffffff !important;
    border-top: 1px solid #000000 !important;
    border-bottom: 1px solid #000000 !important;
}

body.theme-luxury-slate .work-marquee-title {
    color: #000000 !important;
    font-weight: 800;
}

body.theme-luxury-slate .work-card {
    border: 1px solid #000000 !important;
    border-radius: 4px !important;
}

body.theme-luxury-slate .services-wrap {
    background: #f1f5f9 !important;
    border-top: 1px solid #000000 !important;
}

body.theme-luxury-slate .services-title {
    color: #000000 !important;
    font-weight: 800;
}

body.theme-luxury-slate .service-card {
    border: 1px solid #000000 !important;
    border-radius: 4px !important;
    box-shadow: 3px 3px 0px #000000;
}

body.theme-luxury-slate .customform input,
body.theme-luxury-slate .customform textarea {
    border: 1px solid #000000 !important;
    border-radius: 4px !important;
}

body.theme-luxury-slate .customform input:focus,
body.theme-luxury-slate .customform textarea:focus {
    border-color: #000000 !important;
    box-shadow: 3px 3px 0px #000000 !important;
}

body.theme-luxury-slate .customform button,
body.theme-luxury-slate .color-btn {
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
}

body.theme-luxury-slate .compact-footer {
    background: #000000 !important;
}

/* ========================================================
   REDESIGNED SECTIONS & LAYOUT MODERNIZATION
   1. Our Web Design Services (Features): Full-width modern grid
   2. Our Work Selection: Compact image & zero awkward whitespace
   3. Services Section: Premium 4-card grid with icon badges
   ======================================================== */

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

/* Hero Carousel Picture & Responsive Media */
#carousel picture.hero-picture {
    display: block;
    width: 100%;
    height: 100%;
}

#carousel .item img,
#carousel .hero-slide-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ========================================================
   SECTION HEADER & FOOTER SPACING OPTIMIZATION
   Removes excessive padding, margins, and gaps in each section
   to create a tight, cohesive, compact modern layout
   ======================================================== */
#features,
#about-us,
#our-work,
#contact,
.dynamic-section {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

#about-us article {
    padding: 14px 20px !important;
}

/* 1. Full-Width Feature Section */
.full-width-feature-section .full-width-line {
    display: block !important;
    padding: 18px 24px !important;
    border-radius: 12px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.feature-header-wrap {
    text-align: center;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
}

.feature-header-wrap h2 {
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 4px 0 0 !important;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px !important;
}

.feature-box {
    padding: 16px 14px !important;
    border-radius: 10px !important;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.feature-box:hover {
    transform: translateY(-3px);
}

.feature-icon-wrap {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px !important;
}

.feature-box h3 {
    font-size: 15px !important;
    font-weight: 700;
    margin-bottom: 6px !important;
    line-height: 1.3;
}

.feature-box p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0;
}

/* 2. Compact Our Work Section */
.compact-work-section .work-compact-line {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
}

.work-copy {
    flex: 1.3 !important;
}

.work-copy h2 {
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 2px 0 6px !important;
}

.work-content-body p {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    margin: 0 0 8px !important;
}

.project-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px !important;
    margin-top: 6px !important;
}

.project-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 12.5px !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.project-chip:hover {
    transform: translateY(-2px);
}

.work-visual-compact {
    flex: 0.9 !important;
    max-width: 320px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-visual-compact img {
    max-height: 180px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

/* 3. Work Marquee Section Spacing */
.work-marquee-wrap {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.work-marquee-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    text-align: center;
}

/* 4. Contact Section Spacing */
#contact.dynamic-section {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.contact-card-box,
.contact-form-box {
    padding: 18px 20px !important;
    border-radius: 10px !important;
}

.contact-card-box h3,
.contact-form-box h3 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-size: 20px !important;
}

/* 5. Responsive Breakpoints */
@media screen and (max-width: 992px) {
    .feature-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .compact-work-section .work-compact-line {
        flex-direction: column !important;
        text-align: center;
    }
    .project-chips {
        justify-content: center;
    }
    .work-visual-compact {
        max-width: 100% !important;
    }
}

@media screen and (max-width: 640px) {
    .feature-cards-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
    .full-width-feature-section .full-width-line {
        padding: 14px 12px !important;
    }
}


/* ========================================================
   THEME PALETTE SPECIFICS FOR REDESIGNED SECTIONS
   ======================================================== */

/* Classic Theme Styles */
body.theme-classic .section-tag {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
body.theme-classic .feature-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
body.theme-classic .feature-box:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}
body.theme-classic .feature-icon-wrap {
    background: #eff6ff;
    color: #2563eb;
}
body.theme-classic .project-chip {
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}
body.theme-classic .project-chip:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}
body.theme-classic .services-subtitle {
    color: #64748b;
}
body.theme-classic .modern-service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
body.theme-classic .modern-service-card:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}
body.theme-classic .service-icon-box {
    background: #eff6ff;
    color: #2563eb;
}

/* Cyber Dark Theme Styles */
body.theme-cyber-dark .section-tag {
    background: rgba(6, 182, 212, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(6, 182, 212, 0.3);
}
body.theme-cyber-dark .feature-box {
    background: #0f172a;
    border: 1px solid #1e293b;
}
body.theme-cyber-dark .feature-box:hover {
    border-color: #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}
body.theme-cyber-dark .feature-box h3 {
    color: #38bdf8 !important;
}
body.theme-cyber-dark .feature-box p {
    color: #94a3b8 !important;
}
body.theme-cyber-dark .feature-icon-wrap {
    background: rgba(6, 182, 212, 0.15);
    color: #38bdf8;
}
body.theme-cyber-dark .project-chip {
    background: #1e293b;
    color: #38bdf8;
    border: 1px solid #334155;
}
body.theme-cyber-dark .project-chip:hover {
    background: #0f172a;
    border-color: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}
body.theme-cyber-dark .services-subtitle {
    color: #94a3b8;
}
body.theme-cyber-dark .modern-service-card {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
}
body.theme-cyber-dark .modern-service-card:hover {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25) !important;
}
body.theme-cyber-dark .modern-service-card h3 {
    color: #38bdf8 !important;
}
body.theme-cyber-dark .modern-service-card p {
    color: #94a3b8 !important;
}
body.theme-cyber-dark .service-icon-box {
    background: rgba(6, 182, 212, 0.15);
    color: #38bdf8;
}

/* Emerald Growth Pro Theme Styles */
body.theme-emerald-pro .section-tag {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
body.theme-emerald-pro .feature-box {
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
}
body.theme-emerald-pro .feature-box:hover {
    border-color: #059669;
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.12);
}
body.theme-emerald-pro .feature-box h3 {
    color: #065f46 !important;
}
body.theme-emerald-pro .feature-box p {
    color: #166534 !important;
}
body.theme-emerald-pro .feature-icon-wrap {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
body.theme-emerald-pro .project-chip {
    background: #f0fdf4;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
body.theme-emerald-pro .project-chip:hover {
    background: #ecfdf5;
    color: #059669;
    border-color: #34d399;
}
body.theme-emerald-pro .services-subtitle {
    color: #166534;
}
body.theme-emerald-pro .modern-service-card {
    background: #ffffff !important;
    border: 1px solid #a7f3d0 !important;
    border-top: 3px solid #059669 !important;
}
body.theme-emerald-pro .modern-service-card:hover {
    border-color: #059669 !important;
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.15) !important;
}
body.theme-emerald-pro .modern-service-card h3 {
    color: #065f46 !important;
}
body.theme-emerald-pro .modern-service-card p {
    color: #166534 !important;
}
body.theme-emerald-pro .service-icon-box {
    background: #ecfdf5;
    color: #059669;
}

/* Royal Violet Theme Styles */
body.theme-royal-violet .section-tag {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}
body.theme-royal-violet .feature-box {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
}
body.theme-royal-violet .feature-box:hover {
    border-color: #7c3aed;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.15);
}
body.theme-royal-violet .feature-box h3 {
    color: #4c1d95 !important;
}
body.theme-royal-violet .feature-box p {
    color: #475569 !important;
}
body.theme-royal-violet .feature-icon-wrap {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}
body.theme-royal-violet .project-chip {
    background: #faf5ff;
    color: #4c1d95;
    border: 1px solid #ddd6fe;
}
body.theme-royal-violet .project-chip:hover {
    background: #f5f3ff;
    color: #7c3aed;
    border-color: #c084fc;
}
body.theme-royal-violet .services-subtitle {
    color: #64748b;
}
body.theme-royal-violet .modern-service-card {
    background: #ffffff !important;
    border: 1px solid #e9d5ff !important;
    border-top: 3px solid #7c3aed !important;
}
body.theme-royal-violet .modern-service-card:hover {
    border-color: #7c3aed !important;
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.15) !important;
}
body.theme-royal-violet .modern-service-card h3 {
    color: #4c1d95 !important;
}
body.theme-royal-violet .modern-service-card p {
    color: #475569 !important;
}
body.theme-royal-violet .service-icon-box {
    background: #f5f3ff;
    color: #7c3aed;
}

/* Sunset Crimson Theme Styles */
body.theme-sunset-crimson .section-tag {
    background: #ffe4e6;
    color: #e11d48;
    border: 1px solid #fecdd3;
}
body.theme-sunset-crimson .feature-box {
    background: #fff1f2;
    border: 1px solid #fecdd3;
}
body.theme-sunset-crimson .feature-box:hover {
    border-color: #e11d48;
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.15);
}
body.theme-sunset-crimson .feature-box h3 {
    color: #9f1239 !important;
}
body.theme-sunset-crimson .feature-box p {
    color: #475569 !important;
}
body.theme-sunset-crimson .feature-icon-wrap {
    background: #ffe4e6;
    color: #e11d48;
    border: 1px solid #fecdd3;
}
body.theme-sunset-crimson .project-chip {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}
body.theme-sunset-crimson .project-chip:hover {
    background: #ffe4e6;
    color: #e11d48;
    border-color: #fda4af;
}
body.theme-sunset-crimson .services-subtitle {
    color: #64748b;
}
body.theme-sunset-crimson .modern-service-card {
    background: #ffffff !important;
    border: 1px solid #fecdd3 !important;
    border-left: 3px solid #e11d48 !important;
}
body.theme-sunset-crimson .modern-service-card:hover {
    border-color: #e11d48 !important;
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.15) !important;
}
body.theme-sunset-crimson .modern-service-card h3 {
    color: #9f1239 !important;
}
body.theme-sunset-crimson .modern-service-card p {
    color: #475569 !important;
}
body.theme-sunset-crimson .service-icon-box {
    background: #ffe4e6;
    color: #e11d48;
}

/* Luxury Slate Theme Styles */
body.theme-luxury-slate .section-tag {
    background: #f1f5f9;
    color: #000000;
    border: 1px solid #000000;
}
body.theme-luxury-slate .feature-box {
    background: #ffffff;
    border: 1px solid #000000;
    box-shadow: 3px 3px 0px #000000;
    border-radius: 6px;
}
body.theme-luxury-slate .feature-box:hover {
    transform: translate(-2px, -3px);
    box-shadow: 5px 5px 0px #000000;
}
body.theme-luxury-slate .feature-box h3 {
    color: #000000 !important;
}
body.theme-luxury-slate .feature-box p {
    color: #334155 !important;
}
body.theme-luxury-slate .feature-icon-wrap {
    background: #000000;
    color: #ffffff;
    border-radius: 6px;
}
body.theme-luxury-slate .project-chip {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 4px;
}
body.theme-luxury-slate .project-chip:hover {
    background: #000000;
    color: #ffffff;
}
body.theme-luxury-slate .services-subtitle {
    color: #475569;
}
body.theme-luxury-slate .modern-service-card {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    box-shadow: 4px 4px 0px #000000 !important;
    border-radius: 6px !important;
}
body.theme-luxury-slate .modern-service-card:hover {
    transform: translate(-2px, -4px) !important;
    box-shadow: 6px 6px 0px #000000 !important;
}
body.theme-luxury-slate .modern-service-card h3 {
    color: #000000 !important;
}
body.theme-luxury-slate .modern-service-card p {
    color: #334155 !important;
}
body.theme-luxury-slate .service-icon-box {
    background: #000000;
    color: #ffffff;
    border-radius: 6px;
}

/* ========================================================
   GLOBAL MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS
   ======================================================== */

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Universal responsive image & media constraint */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Contact Card Styling Across Themes */
.contact-card-box {
    padding: 24px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.contact-item {
    margin-bottom: 14px;
    line-height: 1.5;
}

.contact-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 2px;
}

.contact-link {
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
    word-break: break-word;
}

.contact-blurb-box {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.contact-form-box {
    padding: 0 4px;
}

/* Theme specific contact card tweaks */
body.theme-cyber-dark .contact-card-box {
    background: #0f172a;
    border-color: #1e293b;
}
body.theme-cyber-dark .contact-label {
    color: #06b6d4;
}
body.theme-cyber-dark .contact-link {
    color: #f1f5f9;
}
body.theme-cyber-dark .contact-blurb-box {
    border-top-color: #1e293b;
    color: #94a3b8;
}

body.theme-emerald-pro .contact-card-box {
    background: #ecfdf5;
    border-color: #a7f3d0;
}
body.theme-emerald-pro .contact-label {
    color: #059669;
}
body.theme-emerald-pro .contact-link {
    color: #064e3b;
}

body.theme-royal-violet .contact-card-box {
    background: #faf5ff;
    border-color: #e9d5ff;
}
body.theme-royal-violet .contact-label {
    color: #9333ea;
}
body.theme-royal-violet .contact-link {
    color: #581c87;
}

body.theme-sunset-crimson .contact-card-box {
    background: #fff1f2;
    border-color: #fecdd3;
}
body.theme-sunset-crimson .contact-label {
    color: #e11d48;
}
body.theme-sunset-crimson .contact-link {
    color: #881337;
}

body.theme-luxury-slate .contact-card-box {
    background: #ffffff;
    border: 1px solid #000000;
    box-shadow: 3px 3px 0px #000000;
}

/* ========================================================
   TABLET & MOBILE BREAKPOINTS (<= 768px)
   ======================================================== */
@media screen and (max-width: 768px) {
    /* Prevent any element horizontal run-off */
    .line {
        padding: 0 16px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Topbar Stacked on Mobile */
    #topbar {
        padding: 8px 12px !important;
    }
    #topbar .line {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
    }
    #topbar p {
        text-align: center !important;
        font-size: 13px !important;
        margin: 0 !important;
    }
    #topbar .social.right {
        text-align: center !important;
        float: none !important;
        padding: 2px 0 !important;
    }

    /* Mobile Header & Nav Bar (Single compact row) */
    header nav {
        padding: 8px 0 !important;
        position: relative !important;
    }
    nav .line.nav-wrapper,
    .nav-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 52px !important;
        position: relative !important;
        padding: 0 16px !important;
        width: 100% !important;
    }
    .nav-brand-col {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: auto !important;
        float: none !important;
        padding: 0 !important;
        min-height: auto !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    .logo, p.logo {
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        width: auto !important;
    }
    .brand-link {
        justify-content: flex-start !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .site-logo-img {
        max-height: 38px !important;
        margin: 0 !important;
    }
    .brand-text {
        font-size: 22px !important;
    }
    .logo-icon-svg {
        width: 32px !important;
        height: 32px !important;
    }

    /* Mobile Hamburger Button (Compact 42x42px icon button, firmly right-aligned) */
    .top-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        float: right !important;
        width: auto !important;
        position: static !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        text-align: right !important;
    }

    .mobile-hamburger-btn,
    button.nav-text,
    p.nav-text {
        display: inline-flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        padding: 8px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        align-self: center !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        border: 1px solid transparent !important;
        font-size: 0 !important;
        color: transparent !important;
        line-height: 0 !important;
        text-indent: -9999px !important;
        box-shadow: none !important;
        outline: none !important;
        overflow: hidden !important;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.25s ease !important;
    }
    .mobile-hamburger-btn::after,
    button.nav-text::after,
    p.nav-text::after {
        display: none !important;
        content: "" !important;
    }
    .hamburger-bar {
        display: block !important;
        width: 22px !important;
        height: 2.5px !important;
        border-radius: 2px !important;
        background-color: currentColor !important;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease !important;
        transform-origin: center !important;
        text-indent: 0 !important;
    }

    /* Animated 3-bar hamburger to X */
    .mobile-hamburger-btn.is-active .hamburger-bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg) !important;
    }
    .mobile-hamburger-btn.is-active .hamburger-bar:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }
    .mobile-hamburger-btn.is-active .hamburger-bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg) !important;
    }

    /* Mobile Nav Dropdown List */
    .top-nav ul.right {
        float: none !important;
    }
    .top-nav ul {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 16px !important;
        right: 16px !important;
        width: calc(100% - 32px) !important;
        margin: 6px 0 0 0 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        z-index: 9999 !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16) !important;
    }
    .top-nav ul.show-menu {
        display: block !important;
    }
    .top-nav ul li {
        width: 100% !important;
        float: none !important;
        display: block !important;
    }
    .top-nav ul li a {
        display: block !important;
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        text-align: left !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
    }

    /* Hero Carousel on Mobile with dedicated mobile dimensions */
    #carousel .item {
        min-height: 400px !important;
        position: relative !important;
        overflow: hidden !important;
    }
    #carousel picture.hero-picture {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 400px !important;
    }
    #carousel .item img,
    #carousel .hero-slide-img {
        width: 100% !important;
        height: 100% !important;
        min-height: 400px !important;
        max-height: 520px !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }
    #carousel .text {
        position: absolute !important;
        bottom: 24px !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        max-width: 92% !important;
        margin: 0 auto !important;
        padding: 14px 16px !important;
        text-align: center !important;
        background: rgba(0, 0, 0, 0.65) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        border-radius: 10px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    }
    #carousel .text h2 {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
        background: transparent !important;
        padding: 0 !important;
        color: #ffffff !important;
    }
    #carousel .text p {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
        background: transparent !important;
        padding: 0 !important;
        color: #e2e8f0 !important;
    }
    #carousel .white-btn {
        display: inline-block !important;
        padding: 6px 16px !important;
        font-size: 13px !important;
        margin-top: 4px !important;
    }

    /* Section Headings and Containers Mobile Spacing */
    #features,
    #about-us,
    #our-work,
    #contact,
    .home-page .dynamic-section {
        padding: 10px 0 !important;
    }
    .home-page .dynamic-section .line {
        padding: 14px 12px !important;
        border-radius: 10px !important;
    }
    .dynamic-section h2 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    .dynamic-section h3 {
        font-size: 19px !important;
        line-height: 1.3 !important;
    }
    .dynamic-section p {
        font-size: 14.5px !important;
        line-height: 1.6 !important;
    }

    /* Full-Width Features Grid on Mobile */
    .features-grid-full {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .feature-box {
        padding: 20px 16px !important;
        border-radius: 10px !important;
    }
    .feature-box h3 {
        font-size: 17px !important;
    }
    .feature-box p {
        font-size: 14px !important;
    }

    /* Our Work Section on Mobile */
    .work-showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .work-featured-image {
        max-height: 190px !important;
        width: 100% !important;
        object-fit: contain !important;
    }
    .work-project-chips {
        justify-content: flex-start !important;
        gap: 8px !important;
    }
    .project-chip {
        font-size: 12.5px !important;
        padding: 6px 12px !important;
        min-height: 36px !important;
    }

    /* Services Grid on Mobile */
    .service-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .modern-service-card {
        padding: 20px 16px !important;
        border-radius: 10px !important;
    }
    .modern-service-card h3 {
        font-size: 17px !important;
    }
    .modern-service-card p {
        font-size: 14px !important;
    }

    /* Contact Section on Mobile */
    .contact-info-col {
        text-align: left !important;
        margin-bottom: 24px !important;
    }
    .contact-card-box {
        padding: 20px 16px !important;
    }
    .contact-card-box h3 {
        font-size: 19px !important;
        margin-bottom: 14px !important;
    }
    .contact-form-box h3 {
        font-size: 19px !important;
        margin-bottom: 14px !important;
    }

    /* Form Inputs Mobile Friendly (16px font prevents iOS zoom) */
    .customform input[type="text"],
    .customform input[type="email"],
    .customform input[type="tel"],
    .customform input[type="url"],
    .customform textarea {
        width: 100% !important;
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 12px 14px !important;
        border-radius: 8px !important;
        margin-bottom: 14px !important;
        box-sizing: border-box !important;
    }
    .customform textarea {
        min-height: 120px !important;
        resize: vertical !important;
    }

    /* Submit Button on Mobile */
    .customform button[type="submit"],
    .color-btn {
        width: 100% !important;
        min-height: 50px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    /* Footer Mobile Alignment */
    .compact-footer {
        padding: 24px 16px !important;
    }
    .footer-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .footer-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 14px !important;
        float: none !important;
        text-align: center !important;
    }
    .footer-links a {
        margin: 0 4px !important;
        font-size: 14px !important;
        min-height: 40px !important;
        line-height: 40px !important;
        display: inline-block !important;
    }
}

/* ========================================================
   SMALL SMARTPHONES (<= 480px)
   ======================================================== */
@media screen and (max-width: 480px) {
    .line {
        padding: 0 12px !important;
    }
    .logo a {
        font-size: 24px !important;
    }
    #carousel .item {
        min-height: 280px !important;
    }
    #carousel .text h2 {
        font-size: 18px !important;
    }
    .dynamic-section h2 {
        font-size: 20px !important;
    }
    .dynamic-section h3 {
        font-size: 17px !important;
    }
    .feature-icon-wrap,
    .service-icon-box {
        width: 42px !important;
        height: 42px !important;
    }
    .feature-icon-wrap svg,
    .service-icon-box svg {
        width: 20px !important;
        height: 20px !important;
    }
    .contact-card-box,
    .feature-box,
    .modern-service-card {
        padding: 16px 14px !important;
    }
}
