:root {
    --footer-wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23fff' d='M0,224L30,229.3C60,235,120,245,180,250.7C240,256,300,256,360,229.3C420,203,480,149,540,154.7C600,160,660,224,720,261.3C780,299,840,309,900,293.3C960,277,1020,235,1080,208C1140,181,1200,171,1260,165.3C1320,160,1380,160,1410,160L1440,160L1440,320L1410,320C1380,320,1320,320,1260,320C1200,320,1140,320,1080,320C1020,320,960,320,900,320C840,320,780,320,720,320C660,320,600,320,540,320C480,320,420,320,360,320C300,320,240,320,180,320C120,320,60,320,30,320L0,320Z'/%3E%3C/svg%3E");
}

/* Design System Variables */
:root {
    --bg: #0b0d11;
    --text: #e8eef9;
    --muted: #b7c0d8;
    --accent: #7c5cff;
    --accent-2: #00e0d1;
    --card: #121621;
    --glass: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --radius: 20px;
}

/* Light theme vars */
.light {
    --bg: #f6f7fb;
    --text: #12141a;
    --muted: #4a5568;
    --accent: #6a5cff;
    --accent-2: #00bfb2;
    --card: #ffffff;
    --glass: rgba(0, 0, 0, 0.04);
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Reset */
* {
    box-sizing: border-box;
}

/* ===== FOOTER MODERN ===== */
.footer-modern {
    position: relative;
    background: #2563eb;
    color: #ffffff;
    padding: 0;
    overflow: hidden;
}

.footer-content {
    padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(2rem, 3vw, 3rem);
    position: relative;
    z-index: 1;
}

.footer-dark-mode::before {
    content: "PRODUCTION";
    position: absolute;
    inset: 0;
    font-size: clamp(5rem, 12vw, 14rem);
    text-transform: uppercase;
    letter-spacing: clamp(0.5rem, 2vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    mix-blend-mode: normal;
    transform: translateY(20px);
    z-index: 0;
}

.footer-dark-mode::after {
    content: "";
    position: absolute;
    inset: -15% -10%;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(147, 51, 234, 0.4),
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 30%,
            rgba(168, 85, 247, 0.3),
            transparent 55%
        ),
        radial-gradient(
            circle at 50% 70%,
            rgba(16, 185, 129, 0.25),
            transparent 60%
        ),
        linear-gradient(180deg, rgba(26, 13, 58, 0.3), transparent 40%);
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.footer-name-hero {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(0.25rem, 0.9vw, 0.85rem);
    padding: clamp(0.5rem, 2.5vw, 3rem);
    font-size: clamp(2.4rem, 6vw, 7.5rem);
    font-weight: 800;
    letter-spacing: clamp(0.35rem, 1.5vw, 1.2rem);
    text-transform: uppercase;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.7;
    z-index: 0;
}

.footer-name-hero span {
    display: inline-block;
    color: transparent;
    background: linear-gradient(
        120deg,
        rgba(124, 92, 255, 0.4),
        rgba(14, 165, 233, 0.6),
        rgba(15, 23, 42, 0.25)
    );
    -webkit-background-clip: text;
    background-clip: text;
    animation: footerNameReveal 10s ease-in-out infinite;
    animation-delay: calc(var(--char-index) * 0.12s);
    opacity: 0;
    transform: translateY(25px) scale(0.92);
    filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.25));
}

@keyframes footerNameReveal {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.92);
    }

    20% {
        opacity: 0.7;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.85;
        transform: translateY(-6px) scale(1.02);
    }

    80% {
        opacity: 0;
        transform: translateY(15px) scale(0.96);
    }

    100% {
        opacity: 0;
        transform: translateY(25px) scale(0.92);
    }
}

body.light-mode .footer-name-hero {
    mix-blend-mode: multiply;
    opacity: 0.65;
}

body.light-mode .footer-name-hero span {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.35),
        rgba(99, 102, 241, 0.65),
        rgba(14, 165, 233, 0.5)
    );
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.15));
}

@media (max-width: 991.98px) {
    .footer-name-hero {
        font-size: clamp(1.8rem, 10vw, 4.6rem);
        letter-spacing: 0.6rem;
        padding: 1rem;
        opacity: 0.55;
    }
}

@media (max-width: 575.98px) {
    .footer-name-hero {
        font-size: clamp(1.2rem, 12vw, 3rem);
        letter-spacing: 0.3rem;
        justify-content: flex-start;
        padding: 1rem 0.5rem;
        opacity: 0.4;
    }

    .footer-name-hero span {
        filter: drop-shadow(0 10px 15px rgba(15, 23, 42, 0.2));
    }
}

/* Footer Wavy Transition */
.footer-wave-transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-100%);
    z-index: 0;
    pointer-events: none;
}

.footer-wave-svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: clamp(100px, 12vw, 150px);
}

.footer-wave-svg .wave-layer-1 {
    fill: #1e40af;
    opacity: 0.8;
}

.footer-wave-svg .wave-layer-2 {
    fill: #2563eb;
    opacity: 1;
}

/* Footer Modern Styling */
.footer-modern .footer-section {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.footer-modern .footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-modern .footer-title {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem) !important;
    letter-spacing: 0.03em !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0;
}

.footer-modern .footer-title::after {
    display: none;
}

.footer-modern .footer-text {
    color: #000000 !important;
    line-height: 1.7 !important;
    font-size: clamp(0.85rem, 1vw, 0.9rem) !important;
    margin: 0;
}

.footer-modern .footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-modern .footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.footer-modern .footer-contact-list li:hover {
    transform: translateX(2px);
}

.footer-modern .footer-contact-list i {
    color: #000000 !important;
    font-size: 1rem !important;
    width: 18px;
    text-align: center;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-modern .footer-contact-list .fa-whatsapp {
    color: #25d366 !important;
}

.footer-modern .footer-contact-list span {
    color: #000000 !important;
    font-size: clamp(0.85rem, 1vw, 0.9rem) !important;
    line-height: 1.6 !important;
    flex: 1;
}

.footer-modern .footer-social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-modern .footer-social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border: none;
}

.footer-modern .footer-social-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #000000 !important;
    text-decoration: none;
    font-size: clamp(0.85rem, 1vw, 0.9rem) !important;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #000000 !important;
    transform: translateX(3px);
    opacity: 0.8 !important;
}

.footer-about-me {
    color: #000000 !important;
}

.footer-about-me p,
.footer-about-me .footer-text {
    color: #000000 !important;
}

.footer-subtitle {
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: clamp(0.9rem, 1vw, 1rem) !important;
    margin-bottom: 0.75rem !important;
}

.footer-about-image img {
    max-width: 100%;
    height: auto;
}

.footer-social-copyright {
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
    padding-top: clamp(1.5rem, 2.5vw, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-social-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-icon:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.footer-copyright-text {
    color: #000000 !important;
    font-size: clamp(0.8rem, 1vw, 0.85rem) !important;
    margin: 0;
}

.footer-copyright-text p {
    margin: 0;
    color: #000000 !important;
}

body.light-mode .footer-section {
    background: transparent;
    border: none;
}

body.light-mode .footer-section:hover {
    background: transparent;
    border: none;
}

body.light-mode .footer-title {
    color: #ffffff !important;
}

body.light-mode .footer-title::after {
    background: linear-gradient(90deg, #7c5cff, #00e0d1);
}

body.light-mode .footer-text {
    color: rgba(239, 242, 255, 0.9) !important;
}

body.light-mode .footer-contact-list li:hover {
    background: rgba(124, 92, 255, 0.12);
}

body.light-mode .footer-contact-list span {
    color: rgba(239, 242, 255, 0.9) !important;
}

body.light-mode .footer-social-link {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12);
}

body.light-mode .footer-map {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(6, 9, 20, 0.95) !important;
}

body.light-mode .footer-map:hover {
    border-color: rgba(124, 92, 255, 0.5) !important;
}

body.light-mode .footer-map-btn {
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(239, 242, 255, 0.95) !important;
}

body.light-mode .footer-copyright {
    color: rgba(239, 242, 255, 0.8) !important;
}

/* Footer Content Container */
.footer-dark-mode .container,
.footer-modern .container {
    padding-top: clamp(3.5rem, 5vw, 5rem);
    padding-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
    position: relative;
    z-index: 1;
}

.footer-section {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}

.footer-section:hover {
    transform: none;
}

.footer-logo {
    max-height: 65px;
    max-width: 220px;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: clamp(0.9rem, 1.1vw, 1rem) !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 1rem !important;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 1.5px;
    background: #60a5fa;
    border-radius: 1px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7 !important;
    font-size: clamp(0.85rem, 1vw, 0.9rem) !important;
    margin: 0;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 0;
}

.footer-contact-list li:hover {
    transform: translateX(2px);
}

.footer-contact-list i,
.footer-contact-list .fas,
.footer-contact-list .fab {
    color: #9333ea !important;
    font-size: 1rem !important;
    width: 18px;
    text-align: center;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-contact-list .fa-whatsapp,
.footer-contact-list .fab.fa-whatsapp {
    color: #25d366 !important;
}

.footer-contact-list .fa-map-marker-alt,
.footer-contact-list .fas.fa-map-marker-alt {
    color: #9333ea !important;
}

.footer-contact-list .fa-envelope,
.footer-contact-list .fas.fa-envelope {
    color: #9333ea !important;
}

.footer-contact-list .fa-phone,
.footer-contact-list .fas.fa-phone {
    color: #9333ea !important;
}

.footer-contact-list .text-primary {
    color: #9333ea !important;
}

.footer-contact-list .text-success {
    color: #25d366 !important;
}

.footer-contact-list span {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: clamp(0.85rem, 1vw, 0.9rem) !important;
    line-height: 1.6 !important;
    flex: 1;
}

.footer-contact-list span {
    color: rgba(239, 242, 255, 0.9) !important;
    font-size: clamp(0.875rem, 1vw, 0.95rem) !important;
    line-height: 1.6 !important;
    flex: 1;
}

.footer-contact-list li:hover span {
    color: #ffffff !important;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border: none;
}

.footer-social-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

.footer-social-link:active {
    transform: translateY(-2px) scale(1.02) !important;
}

.footer-map-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: clamp(0.9rem, 1.1vw, 1rem) !important;
    margin-bottom: 0.75rem !important;
}

.footer-map-description {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: clamp(0.85rem, 1vw, 0.9rem) !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

.footer-map {
    height: 180px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none;
    transition: all 0.2s ease;
}

.footer-modern .footer-map {
    background: rgba(255, 255, 255, 0.15) !important;
}

.footer-map:hover {
    opacity: 0.9;
}

.footer-map iframe {
    filter: grayscale(0.2) brightness(0.95);
    transition: filter 0.3s ease;
}

.footer-map:hover iframe {
    filter: grayscale(0) brightness(1);
}

.footer-dark-mode .text-secondary,
.footer-dark-mode .text-muted {
    color: rgba(239, 242, 255, 0.85) !important;
}

body.light-mode .footer-dark-mode .text-secondary,
body.light-mode .footer-dark-mode .text-muted {
    color: rgba(15, 23, 42, 0.7) !important;
}

.map-placeholder {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(6, 9, 20, 0.6) !important;
    color: rgba(239, 242, 255, 0.6) !important;
    border: 2px dashed rgba(255, 255, 255, 0.15) !important;
    height: 100%;
}

.map-placeholder i {
    font-size: 2.5rem !important;
    margin-bottom: 0.75rem !important;
    color: rgba(124, 92, 255, 0.5) !important;
}

.map-placeholder p {
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: rgba(239, 242, 255, 0.7) !important;
}

.footer-map-btn {
    border: none !important;
    color: #ffffff !important;
    background: rgba(16, 185, 129, 0.8) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
}

.footer-modern .footer-map-btn {
    background: rgba(16, 185, 129, 0.9) !important;
}

.footer-map-btn:hover {
    background: rgba(16, 185, 129, 1) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.footer-map-btn:active {
    transform: translateY(0) !important;
}

.footer-divider {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    ) !important;
    margin: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(1.5rem, 2.5vw, 2rem) 0 !important;
    opacity: 1 !important;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: clamp(0.8rem, 1vw, 0.85rem) !important;
    margin: 0 !important;
    letter-spacing: 0.01em;
    text-align: center;
    padding-top: 2rem;
}

/* Responsive footer */
@media (max-width: 991.98px) {
    .footer-section {
        margin-bottom: 1.5rem;
    }

    .footer-modern .footer-section {
        margin-bottom: 2rem;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-modern .footer-title::after {
        display: none;
    }

    .footer-modern .footer-links {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .footer-dark-mode {
        padding: clamp(3rem, 5vw, 4rem) 0 clamp(1.5rem, 2.5vw, 2rem) !important;
    }

    .footer-modern .footer-content {
        padding: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(1.5rem, 2.5vw, 2rem);
    }

    .footer-dark-mode .container,
    .footer-modern .container {
        padding-top: clamp(2rem, 3vw, 2.5rem);
        padding-bottom: clamp(1rem, 1.5vw, 1.5rem);
    }

    .footer-section {
        margin-bottom: 1.5rem !important;
        text-align: center;
        padding: 0;
    }

    .footer-modern .footer-section {
        text-align: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

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

    .footer-contact-list li {
        justify-content: center;
        text-align: center;
        margin-left: 0;
    }

    .footer-contact-list i {
        margin-top: 0.2rem;
    }

    .footer-map-btn {
        margin-left: auto;
        margin-right: auto;
        display: inline-flex !important;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .footer-dark-mode .container {
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .footer-section {
        padding: 0;
        margin-bottom: 1.25rem;
    }

    .footer-social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem !important;
    }

    .footer-map {
        height: 140px !important;
    }

    .footer-copyright {
        font-size: 0.8rem !important;
    }
}

html,
body {
    padding: 0;
    margin: 0;
}

body {
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        "Helvetica Neue",
        Arial,
        "Noto Sans",
        "Apple Color Emoji",
        "Segoe UI Emoji";
    background:
        radial-gradient(
            1200px 800px at 80% -10%,
            rgba(124, 92, 255, 0.25),
            transparent 60%
        ),
        radial-gradient(
            1000px 700px at -10% 10%,
            rgba(0, 224, 209, 0.2),
            transparent 55%
        ),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-top: 0;
    min-height: 100vh;
}

body.light-mode {
    background: linear-gradient(180deg, #fafbff 0%, #edf3ff 40%, #e3f4ff 100%);
    color: #111827;
}

body.light-mode .footer-dark-mode {
    background: #ffffff !important;
    color: #0f172a !important;
    border-top: none !important;
}

body.light-mode .footer-dark-mode::before {
    color: rgba(15, 23, 42, 0.02);
    mix-blend-mode: normal;
}

body.light-mode .footer-dark-mode::after {
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(124, 92, 255, 0.08),
            transparent 55%
        ),
        radial-gradient(
            circle at 75% 65%,
            rgba(16, 185, 129, 0.06),
            transparent 60%
        );
    opacity: 0.35;
}

body.light-mode .footer-title,
body.light-mode .footer-map-title {
    color: #0f172a !important;
}

body.light-mode .footer-text,
body.light-mode .footer-contact-item,
body.light-mode .footer-map-description {
    color: rgba(15, 23, 42, 0.75) !important;
}

body.light-mode .footer-social-link {
    color: rgba(15, 23, 42, 0.65) !important;
}

body.light-mode .footer-social-link:hover {
    color: #111827 !important;
}

body.light-mode .footer-map {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    width: min(1200px, 92%);
    margin-inline: auto;
    padding: 0 15px;
}

/* Navbar */
header {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: saturate(140%) blur(8px);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent);
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    background: transparent !important;
    border: none;
    box-shadow: none;
    padding: 0;
}

.navbar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text) !important;
    font-weight: 700;
    text-decoration: none;
    min-width: 200px;
    flex-shrink: 0;
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: var(--shadow);
    font-weight: 700;
    color: white;
    font-size: 14px;
}

.navbar-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.navbar-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    opacity: 0.8;
    padding: 10px 12px !important;
    border-radius: 12px;
    color: var(--text) !important;
    font-weight: 500;
    transition: all 0.3s ease;

    text-decoration: none;
}

.nav-link:hover {
    opacity: 1;
    background: var(--glass);
    color: var(--text) !important;
}

.nav-link.active {
    opacity: 1;
    background: var(--glass);
    color: var(--accent) !important;
}

.navbar-toggler {
    display: none;
    appearance: none;
    border: 1px solid var(--border);
    background: var(--glass);
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.btn-outline-primary {
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text);
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.theme-toggle:hover {
    background: var(--accent);
    color: white;
}

/* Dropdown Menu */
.dropdown-menu {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px 0;
}

.dropdown-item {
    color: var(--text);
    padding: 8px 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.dropdown-item:hover {
    background: var(--glass);
    color: var(--accent);
    text-decoration: none;
}

.dropdown-toggle {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: var(--glass);
    color: var(--text);
    text-decoration: none;
}

@media (max-width: 880px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        position: fixed;
        inset: 68px 0 auto auto;
        right: 12px;
        width: min(260px, 90vw);
        background: color-mix(in lab, var(--card) 86%, transparent);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: 0.2s ease;
    }

    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Hero Section */

.hero-section {
    position: relative;
    padding: 96px 0 72px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Hero Content Responsive Base */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: transparent;
}

.eyebrow {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--glass);
    font-size: 14px;
    margin-bottom: 16px;
}

.glow-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-2);
    box-shadow: 0 0 18px var(--accent-2);
}

.display-4 {
    font-size: clamp(34px, 4.5vw, 64px);
    line-height: 1.05;
    margin: 12px 0 8px;
    color: var(--text);
    font-weight: 700;
}

.lead {
    font-size: clamp(16px, 1.25vw, 20px);
    opacity: 0.92;
    margin-bottom: 24px;
    color: var(--muted);
}

.cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--glass);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 25px rgba(124, 92, 255, 0.35);
}

.btn:hover {
    transform: translateY(-2px);
    color: var(--text);
    text-decoration: none;
}

.btn.primary:hover {
    color: white;
    text-decoration: none;
}

.btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-light {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    text-decoration: none;
}

.btn-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.btn-link:hover {
    color: var(--accent-2);
    text-decoration: none;
}

/* Floating avatar card */
.avatar-card {
    position: relative;

    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.avatar {
    border-radius: 16px;
    aspect-ratio: 1/1;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
}

.rings {
    position: absolute;
    inset: -40% -25% -25% -40%;
    z-index: -1;
    opacity: 0.6;
}

.rings::before,
.rings::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(124, 92, 255, 0.25),
            transparent 50%
        ),
        radial-gradient(
            circle at 60% 40%,
            rgba(0, 224, 209, 0.25),
            transparent 55%
        );
    filter: blur(40px);
    animation: float 8s ease-in-out infinite alternate;
    opacity: 0.9;
}

@keyframes float {
    to {
        transform: translateY(10px) scale(1.03) rotate(1deg);
    }
}

/* Section base */
.section-padding {
    padding: 72px 0;
}

.section-title {
    font-size: clamp(24px, 3.2vw, 36px);
    margin: 0 0 18px;
    color: var(--text);
    font-weight: 700;
}

/* Ensure section title is visible in services section */
#services .section-title {
    color: #000000 !important;
    font-weight: 800 !important;
}

.section-sub {
    color: var(--muted);
    margin: 0 0 28px;
    font-size: 1.1rem;
}

/* About */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.about .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
}

.about-content {
    color: var(--muted);
    margin-bottom: 28px;
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

/* Services */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-bottom: 2rem;
}

.service {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

.service::after {
    content: "";
    position: absolute;
    inset: auto -20% -20% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;

    background: radial-gradient(
        circle at 30% 30%,
        rgba(124, 92, 255, 0.26),
        transparent 60%
    );
}

.service:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.service h3 {
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 600;
}

.service p {
    color: var(--muted);
    margin-bottom: 0;
}

/* Portfolio */
.portfolio-filter {
    margin-bottom: 32px;
}

.portfolio-filter .btn {
    margin: 0 8px 8px 0;
    border-radius: 12px;
    padding: 8px 16px;
    font-weight: 500;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(
        180deg,
        color-mix(in lab, var(--card) 80%, transparent),
        color-mix(in lab, var(--card) 92%, transparent)
    );
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.card .thumb {
    aspect-ratio: 16/10;
    background: linear-gradient(
        135deg,
        rgba(124, 92, 255, 0.2),
        rgba(0, 224, 209, 0.18)
    );
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 0.5px;
    overflow: hidden;
}

/* Product Placeholder */
.product-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, var(--card) 0%, var(--border) 100%);
    color: var(--muted);
    text-align: center;
    padding: 20px;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}

/* Plan Pricing Styles */
.pricing-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plan-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.plan-badge .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.plan-badge .price {
    font-weight: 600;
    color: var(--primary);
}

.pricing-section {
    background: var(--card);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border);
}

.plan-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.plan-option {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.plan-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.plan-features i {
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .plan-options {
        grid-template-columns: 1fr;
    }

    .plan-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Plan Selection Styles */
.plan-selection-section {
    margin-bottom: 2rem;
}

.plan-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.plan-tab {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.plan-tab:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.plan-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.plan-tab .plan-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.plan-tab .plan-price {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.plan-content {
    position: relative;
}

.plan-details {
    display: none;
    animation: fadeIn 0.3s ease;
}

.plan-details.active {
    display: block;
}

.plan-details h5 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.plan-details ul {
    list-style: none;
    padding: 0;
}

.plan-details li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: var(--card);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.plan-details i {
    color: var(--success);
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .plan-tabs {
        flex-direction: column;
    }

    .plan-tab {
        margin-bottom: 0.5rem;
    }
}

.card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .content {
    padding: 16px;
}

.tag {
    display: inline-block;
    font-size: 12px;
    opacity: 0.8;
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--glass);
    margin-right: 8px;
    margin-bottom: 8px;
}

.card:hover {
    transform: translateY(-6px);
}

/* Premium Product Card Redesign */
.product-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.product-card .thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}

.product-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .thumb img {
    transform: scale(1.1);
}

.product-card .thumb .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.product-card:hover .thumb .overlay {
    opacity: 1;
}

.product-card .price-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.product-card .content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
    line-height: 1.4;
}

.product-card .description {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-card .plans-summary {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.product-card .plan-mini-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
}

.product-card .footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: auto;
}

.product-btn {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.product-btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}

.product-btn-outline:hover {
    background: var(--glass);
    border-color: var(--accent);
}

.product-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(124, 92, 255, 0.3);
}

.product-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(124, 92, 255, 0.4);
    color: white;
}

/* Glassmorphism specifically for dark mode */
.dark-mode .product-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .product-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(124, 92, 255, 0.4);
}

.dark-mode .product-card .price-badge {
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 8px;
}

.card-text {
    color: var(--muted);
}

.text-muted {
    color: var(--muted) !important;
}

/* Clean Responsive System */
@media (max-width: 880px) {
    .hero-section {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .section-padding {
        padding: 48px 0;
    }

    .hero-section {
        padding: 72px 0 48px;
    }
}

/* Contact */
.contact-info {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 1.1rem;
}

.info-item h5 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
}

.info-item p {
    color: var(--muted);
    margin-bottom: 0;
}

.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-control {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text);
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}

.form-control::placeholder {
    color: var(--muted);
}

textarea.form-control {
    grid-column: 1/-1;
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    justify-self: start;
}

@media (max-width: 700px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* Testimonials */
.testimonial-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.testimonial-content p {
    color: var(--muted);
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-author h5 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
}

.testimonial-author p {
    color: var(--muted);
    margin-bottom: 0;
}

/* Footer */
footer {
    background: var(--card) !important;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding: 48px 0 60px;
}

footer h5 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.5rem;
    color: var(--muted);
}

footer a {
    color: var(--muted);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;

    width: 50px;
    height: 50px;
    border-radius: 50%;

    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    color: white;
    text-align: center;

    line-height: 50px;
    z-index: 99;
    transition: all 0.3s ease;

    box-shadow: var(--shadow);
    cursor: pointer;
}

.back-to-top.show {
    display: block;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(124, 92, 255, 0.4);
}

/* Modal */
.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

.modal-header {
    border-bottom: 1px solid var(--border);
}

.modal-footer {
    border-top: 1px solid var(--border);
}

.modal-title {
    color: var(--text);
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--muted);
    color: var(--card);
}

/* Grid System Override */
.row {
    margin: 0;
}

.col-lg-6,
.col-lg-4,
.col-md-4,
.col-md-3,
.col-6 {
    padding: 0 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-section {
        text-align: center;
    }
}

@media (max-width: 720px) {
    .col-md-4,
    .col-md-3 {
        margin-bottom: 24px;
    }
}

@media (max-width: 640px) {
    .section-padding {
        padding: 48px 0;
    }

    .hero-section {
        padding: 72px 0 48px;
    }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.revealed {
    opacity: 1;
    transform: none;
}

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto;
    }
}

/* Essential Product Fixes */
.cta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}

/* Simple Modal Fixes */
.modal-dialog {
    max-width: 400px;
    margin: 1.75rem auto;
}

/* Additional fixes for better visibility */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
}

p {
    color: var(--text);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--muted) !important;
}

.card-title {
    color: var(--text);
}

.card-text {
    color: var(--muted);
}

/* Ensure proper spacing */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Fix for Bootstrap compatibility */
.bg-light {
    background-color: var(--card) !important;
}

.bg-dark {
    background-color: var(--card) !important;
}

.text-white {
    color: var(--text) !important;
}

.text-dark {
    color: var(--text) !important;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE SYSTEM
   ============================================ */

/* Extra Large Devices (Large Desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Devices (Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium Devices (Tablets, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

/* Small Devices (Landscape Phones, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 1rem;
    }

    /* Typography */
    h1,
    .h1 {
        font-size: 1.75rem !important;
    }

    h2,
    .h2 {
        font-size: 1.5rem !important;
    }

    h3,
    .h3 {
        font-size: 1.25rem !important;
    }

    h4,
    .h4 {
        font-size: 1.1rem !important;
    }

    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Grid adjustments */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 3rem 0 2rem !important;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Section Padding */
    .section-padding {
        padding: 2rem 0 !important;
    }

    /* Navbar */
    .navbar-brand {
        min-width: auto;
        font-size: 0.9rem;
    }

    .navbar-brand img,
    .logo {
        width: 32px;
        height: 32px;
    }

    /* Grid System */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* Services */
    .service {
        padding: 1rem;
    }

    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* Portfolio */
    .portfolio-filter .btn {
        margin: 0 0.25rem 0.5rem 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    /* Contact */
    .contact-info,
    .contact-form {
        padding: 1rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .info-item i {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1rem;
    }

    /* Footer */
    footer {
        padding: 2rem 0 !important;
    }

    .footer-dark-mode {
        padding: 2rem 0 1rem 0 !important;
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        line-height: 45px;
    }

    /* Modal */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    /* Display utilities */
    .d-none-mobile {
        display: none !important;
    }

    .d-block-mobile {
        display: block !important;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        flex: 1;
        min-width: 150px;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        padding: 4rem 0 3rem;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }

    .section-padding {
        padding: 2rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .btn,
    footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-banner-image,
    .avatar,
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .card {
        min-height: 44px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    /* Remove hover effects on touch devices */
    .card:hover,
    .service:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Specific Responsive */
@media (max-width: 768px) {
    .light .hero-section {
        background: var(--bg);
    }
}

/* Container Fluid Responsive */
.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 576px) {
    .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Utility Classes for Responsive */
.d-mobile-none {
    display: none;
}

@media (min-width: 768px) {
    .d-mobile-none {
        display: block;
    }
}

.d-desktop-none {
    display: block;
}

@media (min-width: 768px) {
    .d-desktop-none {
        display: none;
    }
}

/* Text Alignment Responsive */
@media (max-width: 767.98px) {
    .text-md-left {
        text-align: left !important;
    }

    .text-md-center {
        text-align: center !important;
    }

    .text-md-right {
        text-align: right !important;
    }
}

/* Spacing Responsive */
@media (max-width: 575.98px) {
    .mb-mobile-2 {
        margin-bottom: 0.5rem !important;
    }

    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }

    .mb-mobile-4 {
        margin-bottom: 1.5rem !important;
    }

    .py-mobile-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .py-mobile-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Additional Responsive Fixes for All Pages */

/* Hero Image Responsive */
@media (max-width: 991.98px) {
    .hero-image {
        margin-top: 2rem;
    }

    .hero-banner-image,
    .hero-video-container,
    .hero-3d-container {
        max-width: 100%;
        height: auto;
    }

    .hero-video-iframe {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .hero-video-iframe {
        height: 200px;
    }
}

/* Pricing Cards Responsive */
@media (max-width: 991.98px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-card-modern {
        max-width: 100%;
    }
}

/* Product Cards Responsive */
@media (max-width: 767.98px) {
    .card .content {
        padding: 1rem;
    }

    .card .cta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .card .cta .btn {
        width: 100%;
    }
}

/* Modal Responsive */
@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-lg {
        max-width: calc(100% - 1rem);
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* Table Responsive */
@media (max-width: 767.98px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* Form Responsive */
@media (max-width: 767.98px) {
    .form-row {
        flex-direction: column;
    }

    .form-row .col,
    .form-row [class*="col-"] {
        width: 100%;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group .form-control {
        border-radius: 12px;
        margin-bottom: 0.5rem;
    }

    .input-group-append,
    .input-group-prepend {
        width: 100%;
    }
}

/* Navigation Responsive Enhancements */
@media (max-width: 880px) {
    .navbar-nav {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .navbar-collapse {
        max-height: calc(100vh - 68px);
        overflow-y: auto;
    }
}

/* Image Responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Video Responsive */
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Text Responsive */
@media (max-width: 575.98px) {
    .lead {
        font-size: 1rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }
}

/* Badge and Tag Responsive */
@media (max-width: 575.98px) {
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Pricing Info Responsive */
@media (max-width: 575.98px) {
    .pricing-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .plan-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .plan-options {
        grid-template-columns: 1fr !important;
    }
}

/* CTA Buttons Responsive */
@media (max-width: 575.98px) {
    .cta {
        flex-direction: column;
    }

    .cta .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .cta .btn:last-child {
        margin-bottom: 0;
    }
}

/* Section Title Responsive */
@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .section-sub {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Avatar Card Responsive */
@media (max-width: 767.98px) {
    .avatar-card {
        padding: 1rem;
    }

    .avatar {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

/* Portfolio Filter Responsive */
@media (max-width: 575.98px) {
    .portfolio-filter {
        text-align: center;
    }

    .portfolio-filter .btn {
        display: inline-block;
        margin: 0.25rem;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Testimonial Carousel Responsive */
@media (max-width: 767.98px) {
    .testimonial-carousel {
        padding: 0 1rem;
    }

    .swiper-slide {
        padding: 0 0.5rem;
    }
}

/* Footer Responsive Enhancements */
@media (max-width: 767.98px) {
    .footer-dark-mode .row {
        text-align: center;
    }

    .footer-section {
        margin-bottom: 2rem;
    }

    .footer-map {
        height: 200px !important;
    }
}

/* Utility: Hide on Mobile */
@media (max-width: 767.98px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Utility: Show only on Mobile */
.show-mobile {
    display: none !important;
}

@media (max-width: 767.98px) {
    .show-mobile {
        display: block !important;
    }
}

/* Utility: Hide on Desktop */
@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Smooth Scrolling for Mobile */
@media (max-width: 767.98px) {
    html {
        scroll-padding-top: 80px;
    }
}

/* Fix for Viewport Units on Mobile */
@media (max-width: 767.98px) {
    .min-vh-100 {
        min-height: auto !important;
        padding: 2rem 0;
    }

    .vh-100 {
        height: auto !important;
        min-height: 100vh;
    }
}

/* Fix Overflow Issues */
@media (max-width: 767.98px) {
    body {
        overflow-x: hidden;
    }

    .container,
    .container-fluid {
        overflow-x: hidden;
    }
}

/* Fix for Fixed Elements on Mobile */
@media (max-width: 767.98px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Loading States Responsive */
@media (max-width: 767.98px) {
    .spinner-border,
    .spinner-grow {
        width: 2rem;
        height: 2rem;
    }
}

/* Alert Responsive */
@media (max-width: 575.98px) {
    .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .alert-dismissible .btn-close {
        padding: 0.75rem;
    }
}

/* ============================================
   FULL RESPONSIVE LANDING PAGE - COMPREHENSIVE
   Support: Desktop, Tablet, Mobile, Small Mobile
   ============================================ */

/* ===== EXTRA LARGE DESKTOP (1400px+) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* ===== LARGE DESKTOP (1200px - 1399px) ===== */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

/* ===== DESKTOP (992px - 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .pricing-card-modern {
        padding: 2rem 1.5rem;
    }
}

/* ===== TABLET (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    /* Hero Section */
    .hero-section {
        padding: 4rem 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .hero-buttons .btn {
        flex: 1;
        max-width: 200px;
    }

    .hero-image {
        margin-top: 2rem;
    }

    /* Section Padding */
    .section-padding {
        padding: 4rem 0;
    }

    /* Grid Layouts */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Pricing Cards */
    .pricing-card-modern {
        padding: 2rem 1.5rem;
    }

    .amount-modern {
        font-size: 2.5rem;
    }

    /* About Section */
    .about .card {
        padding: 1.5rem;
    }

    /* Contact Section */
    .contact-info {
        margin-bottom: 2rem;
    }

    .contact-form {
        margin-top: 0;
    }
}

/* ===== MOBILE LANDSCAPE & SMALL TABLET (576px - 767px) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-banner-image,
    .hero-video-iframe,
    .hero-placeholder {
        border-radius: 15px;
        max-height: 300px;
    }

    /* Section Padding */
    .section-padding {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .section-sub {
        font-size: 0.95rem;
    }

    /* Grid Layouts */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* Cards */
    .card {
        border-radius: 15px;
    }

    .card .thumb {
        height: 180px;
    }

    .card .content {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .card-text {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    /* Pricing Cards */
    .pricing-card-modern {
        padding: 1.75rem 1.25rem;
        margin-bottom: 1.5rem;
    }

    .plan-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .plan-title-modern {
        font-size: 1.5rem;
    }

    .amount-modern {
        font-size: 2.25rem;
    }

    .currency-modern {
        font-size: 1rem;
    }

    .period-modern {
        font-size: 0.9rem;
    }

    .feature-item-modern {
        padding: 0.625rem 0;
        font-size: 0.9rem;
    }

    .btn-modern {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* About Section */
    .about {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about .card {
        padding: 1.25rem;
    }

    .about .card h3 {
        font-size: 1.75rem;
    }

    /* Contact Section */
    .contact-info {
        margin-bottom: 2rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .info-item i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .contact-form {
        margin-top: 0;
    }

    .contact-form .form-control {
        padding: 0.875rem;
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    /* Testimonials */
    .testimonial-carousel {
        padding: 0 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    /* Modals */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .modal-content {
        border-radius: 15px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.25rem;
    }
}

/* ===== MOBILE PORTRAIT (max-width: 575.98px) ===== */
@media (max-width: 575.98px) {
    .container {
        padding: 0 1rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 2.5rem 0;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        padding: 0 0.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero-buttons .btn i {
        font-size: 0.85rem;
    }

    .hero-image {
        margin-top: 1.5rem;
    }

    .hero-banner-image,
    .hero-video-iframe,
    .hero-placeholder {
        border-radius: 12px;
        max-height: 250px;
    }

    .hero-placeholder {
        height: 250px;
        padding: 1.5rem;
    }

    .hero-placeholder i {
        font-size: 3rem;
    }

    .hero-placeholder h5 {
        font-size: 1rem;
    }

    .hero-placeholder p {
        font-size: 0.8rem;
    }

    /* Section Padding */
    .section-padding {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .section-sub {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    /* Grid Layouts - Single Column on Mobile */
    .grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Cards */
    .card {
        border-radius: 12px;
        margin-bottom: 1.25rem;
    }

    .card .thumb {
        height: 200px;
        border-radius: 12px 12px 0 0;
    }

    .card .thumb img {
        border-radius: 12px 12px 0 0;
    }

    .card .content {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .card-text {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .card .cta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .card .cta .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    /* Pricing Cards */
    .pricing-card-modern {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 20px;
    }

    .pricing-card-modern.popular {
        transform: scale(1);
        margin-top: 0;
    }

    .popular-badge-modern {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.65rem;
    }

    .plan-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .plan-title-modern {
        font-size: 1.35rem;
        margin-bottom: 0.875rem;
    }

    .price-modern {
        margin-bottom: 0.875rem;
    }

    .amount-modern {
        font-size: 2rem;
    }

    .currency-modern {
        font-size: 0.95rem;
    }

    .period-modern {
        font-size: 0.85rem;
    }

    .plan-description-modern {
        font-size: 0.875rem;
    }

    .pricing-features-modern {
        margin-bottom: 1.5rem;
    }

    .feature-item-modern {
        padding: 0.625rem 0;
        font-size: 0.875rem;
    }

    .feature-icon {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        margin-right: 0.75rem;
    }

    .feature-item-modern span {
        font-size: 0.875rem;
    }

    .btn-modern {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 40px;
    }

    .btn-modern i {
        font-size: 0.85rem;
    }

    /* About Section */
    .about {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about .card {
        padding: 1.25rem;
        text-align: center;
    }

    .about .card h3 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .about .card p {
        font-size: 0.875rem;
    }

    .about-content {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* Contact Section */
    .contact-info {
        margin-bottom: 2rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
        margin-bottom: 1.25rem;
        border-radius: 12px;
    }

    .info-item i {
        font-size: 2.5rem;
        margin-bottom: 0.875rem;
    }

    .info-item h5 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    .contact-form {
        margin-top: 0;
    }

    .contact-form .form-control {
        padding: 0.875rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
        border-radius: 10px;
    }

    .contact-form textarea.form-control {
        min-height: 120px;
    }

    .contact-form .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Testimonials */
    .testimonial-carousel {
        padding: 0 0.5rem;
    }

    .testimonial-card {
        padding: 1.5rem 1.25rem;
    }

    .testimonial-content p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .author-avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .author-info h5 {
        font-size: 1rem;
    }

    .author-info p {
        font-size: 0.85rem;
    }

    /* Modals - Full Width on Mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-dialog-centered {
        min-height: calc(100% - 1rem);
    }

    .modal-content {
        border-radius: 15px;
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
    }

    .modal-header {
        padding: 1rem;
        border-radius: 15px 15px 0 0;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1rem;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 1rem;
        border-radius: 0 0 15px 15px;
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }

    /* Order Modal Specific */
    .order-modal-custom {
        max-width: 100%;
    }

    .order-modal-custom .modal-body {
        padding: 1.25rem 1rem;
    }

    .payment-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }

    .payment-option {
        padding: 0.75rem 0.5rem !important;
    }

    .payment-option i {
        font-size: 1.1rem !important;
    }

    .payment-option .small {
        font-size: 0.7rem !important;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-sm {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }

    /* Typography */
    h1,
    .h1 {
        font-size: 1.75rem;
    }

    h2,
    .h2 {
        font-size: 1.5rem;
    }

    h3,
    .h3 {
        font-size: 1.25rem;
    }

    h4,
    .h4 {
        font-size: 1.1rem;
    }

    h5,
    .h5 {
        font-size: 1rem;
    }

    h6,
    .h6 {
        font-size: 0.9rem;
    }

    .lead {
        font-size: 1rem;
    }

    /* Forms */
    .form-control {
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Badges & Tags */
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    /* Pricing Info */
    .pricing-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .plan-badge {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
    }

    .plan-options {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* CTA Buttons */
    .cta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cta .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .cta .btn:last-child {
        margin-bottom: 0;
    }

    /* Reveal Animation - Disable on Mobile for Performance */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Vanta Background - Disable on Mobile */
    #vanta-halo {
        display: none;
    }

    .hero-section {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

/* ===== EXTRA SMALL MOBILE (max-width: 375px) ===== */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .pricing-card-modern {
        padding: 1.25rem 0.875rem;
    }

    .amount-modern {
        font-size: 1.75rem;
    }

    .card .content {
        padding: 1rem;
    }

    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 0.875rem;
    }
}

/* ===== LANDSCAPE ORIENTATION FIXES ===== */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        flex: 1;
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }

    .section-padding {
        padding: 2rem 0;
    }

    .modal-dialog {
        max-height: calc(100vh - 1rem);
    }

    .modal-body {
        max-height: calc(100vh - 150px);
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .card:hover,
    .pricing-card-modern:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .form-control {
        min-height: 44px;
    }

    .payment-option {
        min-height: 60px;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-banner-image,
    .card .thumb img,
    .testimonial-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== COMPREHENSIVE DARK MODE SUPPORT ===== */
/* Ensure all text is visible in dark mode */
body.dark-mode,
html.dark {
    background: var(--bg) !important;
    color: var(--text) !important;
}

/* All headings */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .h1,
body.dark-mode .h2,
body.dark-mode .h3,
body.dark-mode .h4,
body.dark-mode .h5,
body.dark-mode .h6,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6,
html.dark .h1,
html.dark .h2,
html.dark .h3,
html.dark .h4,
html.dark .h5,
html.dark .h6 {
    color: var(--text) !important;
}

/* All paragraphs and text elements */
body.dark-mode p,
body.dark-mode span,
body.dark-mode div,
body.dark-mode label,
body.dark-mode small,
body.dark-mode .text,
html.dark p,
html.dark span,
html.dark div,
html.dark label,
html.dark small,
html.dark .text {
    color: var(--text) !important;
}

/* Text muted should still be visible */
body.dark-mode .text-muted,
html.dark .text-muted {
    color: var(--muted) !important;
    opacity: 0.9 !important;
}

/* All links */
body.dark-mode a,
body.dark-mode .nav-link,
body.dark-mode .dropdown-item,
html.dark a,
html.dark .nav-link,
html.dark .dropdown-item {
    color: var(--accent) !important;
}

body.dark-mode a:hover,
body.dark-mode .nav-link:hover,
html.dark a:hover,
html.dark .nav-link:hover {
    color: var(--accent-2) !important;
}

/* Cards and containers */
body.dark-mode .card,
body.dark-mode .card-body,
body.dark-mode .card-header,
body.dark-mode .card-footer,
html.dark .card,
html.dark .card-body,
html.dark .card-header,
html.dark .card-footer {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

body.dark-mode .card-title,
body.dark-mode .card-text,
html.dark .card-title,
html.dark .card-text {
    color: var(--text) !important;
}

/* Buttons */
body.dark-mode .btn,
html.dark .btn {
    color: #ffffff !important;
}

body.dark-mode .btn-outline-primary,
html.dark .btn-outline-primary {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

body.dark-mode .btn-outline-primary:hover,
html.dark .btn-outline-primary:hover {
    background: var(--accent) !important;
    color: #ffffff !important;
}

body.dark-mode .btn-outline-light,
html.dark .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode .btn-outline-light:hover,
html.dark .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Section titles and subtitles */
body.dark-mode .section-title,
body.dark-mode .section-sub,
body.dark-mode .hero-title,
body.dark-mode .hero-subtitle,
html.dark .section-title,
html.dark .section-sub,
html.dark .hero-title,
html.dark .hero-subtitle {
    color: var(--text) !important;
}

/* About content */
body.dark-mode .about-content,
body.dark-mode .about .card h3,
body.dark-mode .about .card p,
html.dark .about-content,
html.dark .about .card h3,
html.dark .about .card p {
    color: var(--text) !important;
}

/* Service cards */
body.dark-mode .service h3,
body.dark-mode .service p,
html.dark .service h3,
html.dark .service p {
    color: var(--text) !important;
}

/* Product cards */
body.dark-mode .card-title,
body.dark-mode .card-text,
body.dark-mode .tag,
html.dark .card-title,
html.dark .card-text,
html.dark .tag {
    color: var(--text) !important;
}

/* Navbar */
body.dark-mode .navbar,
body.dark-mode .navbar-brand,
body.dark-mode .navbar-brand span,
body.dark-mode .nav-link,
html.dark .navbar,
html.dark .navbar-brand,
html.dark .navbar-brand span,
html.dark .nav-link {
    color: var(--text) !important;
}

body.dark-mode .nav-link.active,
html.dark .nav-link.active {
    color: var(--accent) !important;
}

/* Dropdown */
body.dark-mode .dropdown-menu,
body.dark-mode .dropdown-item,
html.dark .dropdown-menu,
html.dark .dropdown-item {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

body.dark-mode .dropdown-item:hover,
html.dark .dropdown-item:hover {
    background: rgba(124, 92, 255, 0.1) !important;
    color: var(--accent) !important;
}

/* Forms */
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
html.dark .form-control,
html.dark .form-select,
html.dark input,
html.dark textarea,
html.dark select {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

body.dark-mode .form-control::placeholder,
body.dark-mode .form-select::placeholder,
html.dark .form-control::placeholder,
html.dark .form-select::placeholder {
    color: var(--muted) !important;
    opacity: 0.7 !important;
}

/* Modals */
body.dark-mode .modal-content,
body.dark-mode .modal-header,
body.dark-mode .modal-body,
body.dark-mode .modal-footer,
html.dark .modal-content,
html.dark .modal-header,
html.dark .modal-body,
html.dark .modal-footer {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

body.dark-mode .modal-title,
html.dark .modal-title {
    color: var(--text) !important;
}

/* Tables */
body.dark-mode table,
body.dark-mode .table,
body.dark-mode .table th,
body.dark-mode .table td,
html.dark table,
html.dark .table,
html.dark .table th,
html.dark .table td {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

body.dark-mode .table thead th,
html.dark .table thead th {
    background: var(--card) !important;
    color: var(--text) !important;
}

/* Badges and tags */
body.dark-mode .badge,
body.dark-mode .tag,
html.dark .badge,
html.dark .tag {
    color: var(--text) !important;
    background: var(--card) !important;
    border-color: var(--border) !important;
}

/* Alerts */
body.dark-mode .alert,
html.dark .alert {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

/* Breadcrumbs */
body.dark-mode .breadcrumb,
body.dark-mode .breadcrumb-item,
html.dark .breadcrumb,
html.dark .breadcrumb-item {
    color: var(--text) !important;
}

body.dark-mode .breadcrumb-item.active,
html.dark .breadcrumb-item.active {
    color: var(--muted) !important;
}

/* Pagination */
body.dark-mode .pagination .page-link,
html.dark .pagination .page-link {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

body.dark-mode .pagination .page-item.active .page-link,
html.dark .pagination .page-item.active .page-link {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
}

/* List groups */
body.dark-mode .list-group-item,
html.dark .list-group-item {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

/* Progress bars */
body.dark-mode .progress,
html.dark .progress {
    background: var(--card) !important;
}

body.dark-mode .progress-bar,
html.dark .progress-bar {
    background: var(--accent) !important;
}

/* Tooltips */
body.dark-mode .tooltip .tooltip-inner,
html.dark .tooltip .tooltip-inner {
    background: var(--card) !important;
    color: var(--text) !important;
}

/* Popovers */
body.dark-mode .popover,
body.dark-mode .popover-header,
body.dark-mode .popover-body,
html.dark .popover,
html.dark .popover-header,
html.dark .popover-body {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

/* Hero Section Dark Mode */
body.dark-mode .hero-section,
body.dark-mode .hero-content,
html.dark .hero-section,
html.dark .hero-content {
    color: var(--text) !important;
}

body.dark-mode .hero-title,
body.dark-mode .hero-subtitle,
html.dark .hero-title,
html.dark .hero-subtitle {
    color: var(--text) !important;
}

body.dark-mode .text-gradient,
html.dark .text-gradient {
    background: linear-gradient(
        135deg,
        var(--accent),
        var(--accent-2)
    ) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* About Section Dark Mode */
body.dark-mode #about,
body.dark-mode #about .section-title,
body.dark-mode #about .section-sub,
html.dark #about,
html.dark #about .section-title,
html.dark #about .section-sub {
    color: var(--text) !important;
}

body.dark-mode .about-content,
body.dark-mode .about-content *,
html.dark .about-content,
html.dark .about-content * {
    color: var(--text) !important;
}

body.dark-mode .counter,
html.dark .counter {
    color: var(--accent) !important;
}

/* Portfolio/Products Section Dark Mode */
body.dark-mode #portfolio,
body.dark-mode #portfolio .section-title,
html.dark #portfolio,
html.dark #portfolio .section-title {
    color: var(--text) !important;
}

/* Testimonials Dark Mode */
body.dark-mode .testimonial-card,
body.dark-mode .testimonial-content,
body.dark-mode .testimonial-author,
html.dark .testimonial-card,
html.dark .testimonial-content,
html.dark .testimonial-author {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

body.dark-mode .testimonial-content p,
body.dark-mode .testimonial-author h5,
body.dark-mode .testimonial-author p,
html.dark .testimonial-content p,
html.dark .testimonial-author h5,
html.dark .testimonial-author p {
    color: var(--text) !important;
}

/* Contact Section Dark Mode */
body.dark-mode #contact,
body.dark-mode #contact .section-title,
body.dark-mode .contact-info,
body.dark-mode .info-item,
html.dark #contact,
html.dark #contact .section-title,
html.dark .contact-info,
html.dark .info-item {
    color: var(--text) !important;
}

body.dark-mode .info-item i,
html.dark .info-item i {
    color: var(--accent) !important;
}

/* Hero Placeholder Dark Mode */
body.dark-mode .hero-placeholder,
body.dark-mode .hero-placeholder h5,
body.dark-mode .hero-placeholder p,
html.dark .hero-placeholder,
html.dark .hero-placeholder h5,
html.dark .hero-placeholder p {
    color: var(--muted) !important;
}

/* Hero 3D and Link Placeholders */
body.dark-mode .hero-3d-placeholder h5,
body.dark-mode .hero-3d-placeholder p,
body.dark-mode .hero-link-placeholder h5,
body.dark-mode .hero-link-placeholder p,
html.dark .hero-3d-placeholder h5,
html.dark .hero-3d-placeholder p,
html.dark .hero-link-placeholder h5,
html.dark .hero-link-placeholder p {
    color: var(--text) !important;
}

/* Force visibility for all text elements - but allow specific overrides */
body.dark-mode
    *:not(script):not(style):not(noscript):not(meta):not(link):not(title):not(
        .pricing-card-modern *
    ):not(.plan-title-modern):not(.amount-modern):not(.currency-modern):not(
        .period-modern
    ):not(.plan-description-modern):not(.feature-item-modern span) {
    color: inherit !important;
}

/* Ensure pricing card text is always visible */
body.dark-mode .pricing-card-modern *,
html.dark .pricing-card-modern * {
    color: inherit !important;
}

/* Ensure minimum contrast for readability */
body.dark-mode,
html.dark {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Force all text in pricing cards to be visible */
body.dark-mode .pricing-card-modern .plan-title-modern,
body.dark-mode .pricing-card-modern .amount-modern,
body.dark-mode .pricing-card-modern .currency-modern,
body.dark-mode .pricing-card-modern .period-modern,
body.dark-mode .pricing-card-modern .plan-description-modern,
body.dark-mode .pricing-card-modern .feature-item-modern span,
html.dark .pricing-card-modern .plan-title-modern,
html.dark .pricing-card-modern .amount-modern,
html.dark .pricing-card-modern .currency-modern,
html.dark .pricing-card-modern .period-modern,
html.dark .pricing-card-modern .plan-description-modern,
html.dark .pricing-card-modern .feature-item-modern span {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure buttons text is visible */
body.dark-mode .btn-modern,
body.dark-mode .btn-modern span,
body.dark-mode .btn-modern i,
html.dark .btn-modern,
html.dark .btn-modern span,
html.dark .btn-modern i {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* ===== COMPREHENSIVE LANDING PAGES DARK MODE ===== */

/* Services Page Dark Mode */
body.dark-mode .services-section,
html.dark .services-section {
    background: var(--bg) !important;
}

body.dark-mode .services-content,
html.dark .services-content {
    background: rgba(30, 30, 40, 0.6) !important;
    border: 1px solid var(--border) !important;
}

body.dark-mode .service-card,
html.dark .service-card {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

body.dark-mode .service-card h4,
body.dark-mode .service-card p,
html.dark .service-card h4,
html.dark .service-card p {
    color: var(--text) !important;
}

body.dark-mode .services-section h1,
body.dark-mode .services-section .display-4,
body.dark-mode .services-section .lead,
html.dark .services-section h1,
html.dark .services-section .display-4,
html.dark .services-section .lead {
    color: var(--text) !important;
}

/* Services Page Pricing Cards */
body.dark-mode .pricing-card,
html.dark .pricing-card {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

body.dark-mode .pricing-card .plan-title,
body.dark-mode .pricing-card .amount,
body.dark-mode .pricing-card .currency,
body.dark-mode .pricing-card .period,
body.dark-mode .pricing-card .plan-description,
body.dark-mode .pricing-card .feature-item span,
html.dark .pricing-card .plan-title,
html.dark .pricing-card .amount,
html.dark .pricing-card .currency,
html.dark .pricing-card .period,
html.dark .pricing-card .plan-description,
html.dark .pricing-card .feature-item span {
    color: var(--text) !important;
}

body.dark-mode .pricing-card .feature-item,
html.dark .pricing-card .feature-item {
    border-bottom-color: var(--border) !important;
}

body.dark-mode .pricing-card.popular,
html.dark .pricing-card.popular {
    border-color: rgba(255, 193, 7, 0.5) !important;
}

body.dark-mode .popular-badge,
html.dark .popular-badge {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: #ffffff !important;
}

/* Products Page Dark Mode */
body.dark-mode .section-padding,
html.dark .section-padding {
    background: var(--bg) !important;
}

body.dark-mode .grid .card,
html.dark .grid .card {
    background: var(--card) !important;
    border-color: var(--border) !important;
}

body.dark-mode .card .content,
body.dark-mode .card .card-title,
body.dark-mode .card .card-text,
html.dark .card .content,
html.dark .card .card-title,
html.dark .card .card-text {
    color: var(--text) !important;
}

body.dark-mode .plan-badge,
body.dark-mode .plan-badge .price,
html.dark .plan-badge,
html.dark .plan-badge .price {
    color: var(--text) !important;
}

/* Berita/News Page Dark Mode */
body.dark-mode .news-section,
body.dark-mode .berita-section,
html.dark .news-section,
html.dark .berita-section {
    background: var(--bg) !important;
}

body.dark-mode .berita-card,
body.dark-mode .news-card,
html.dark .berita-card,
html.dark .news-card {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

body.dark-mode .berita-card h3,
body.dark-mode .berita-card p,
body.dark-mode .news-card h3,
body.dark-mode .news-card p,
html.dark .berita-card h3,
html.dark .berita-card p,
html.dark .news-card h3,
html.dark .news-card p {
    color: var(--text) !important;
}

/* About Page Dark Mode */
body.dark-mode .about-section,
html.dark .about-section {
    background: var(--bg) !important;
}

body.dark-mode .about-content,
body.dark-mode .about-content *,
html.dark .about-content,
html.dark .about-content * {
    color: var(--text) !important;
}

/* Contact Page Dark Mode */
body.dark-mode .contact-section,
html.dark .contact-section {
    background: var(--bg) !important;
}

body.dark-mode .contact-form,
body.dark-mode .contact-info,
html.dark .contact-form,
html.dark .contact-info {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

/* Page.blade.php (Dynamic Pages) Dark Mode */
body.dark-mode .page-content,
body.dark-mode .page-content *,
html.dark .page-content,
html.dark .page-content * {
    color: var(--text) !important;
}

body.dark-mode .page-content h1,
body.dark-mode .page-content h2,
body.dark-mode .page-content h3,
body.dark-mode .page-content h4,
body.dark-mode .page-content h5,
body.dark-mode .page-content h6,
html.dark .page-content h1,
html.dark .page-content h2,
html.dark .page-content h3,
html.dark .page-content h4,
html.dark .page-content h5,
html.dark .page-content h6 {
    color: var(--text) !important;
}

/* Testimonials Section Dark Mode */
body.dark-mode .testimonial-section,
html.dark .testimonial-section {
    background: var(--bg) !important;
}

body.dark-mode .testimonial-item,
body.dark-mode .testimonial-content,
html.dark .testimonial-item,
html.dark .testimonial-content {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

/* Portfolio Section Dark Mode */
body.dark-mode #portfolio,
html.dark #portfolio {
    background: var(--bg) !important;
}

/* All Display Classes */
body.dark-mode .display-1,
body.dark-mode .display-2,
body.dark-mode .display-3,
body.dark-mode .display-4,
body.dark-mode .display-5,
body.dark-mode .display-6,
html.dark .display-1,
html.dark .display-2,
html.dark .display-3,
html.dark .display-4,
html.dark .display-5,
html.dark .display-6 {
    color: var(--text) !important;
}

/* Lead Text */
body.dark-mode .lead,
html.dark .lead {
    color: var(--muted) !important;
    opacity: 0.95 !important;
}

/* All Bootstrap Text Utilities in Dark Mode */
body.dark-mode .text-primary,
html.dark .text-primary {
    color: var(--accent) !important;
}

body.dark-mode .text-secondary,
html.dark .text-secondary {
    color: var(--muted) !important;
}

body.dark-mode .text-success,
html.dark .text-success {
    color: #10b981 !important;
}

body.dark-mode .text-danger,
html.dark .text-danger {
    color: #ef4444 !important;
}

body.dark-mode .text-warning,
html.dark .text-warning {
    color: #f59e0b !important;
}

body.dark-mode .text-info,
html.dark .text-info {
    color: #06b6d4 !important;
}

/* Ensure all sections have proper background */
body.dark-mode section,
body.dark-mode .section,
html.dark section,
html.dark .section {
    background: var(--bg) !important;
}

/* Smooth transitions between modes */
body.dark-mode *,
html.dark * {
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease !important;
}

/* Force minimum contrast for all text elements */
body.dark-mode p,
body.dark-mode span,
body.dark-mode div,
body.dark-mode li,
body.dark-mode td,
body.dark-mode th,
html.dark p,
html.dark span,
html.dark div,
html.dark li,
html.dark td,
html.dark th {
    color: var(--text) !important;
    opacity: 1 !important;
}

/* Ensure all headings have proper color */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
    color: var(--text) !important;
    font-weight: 700 !important;
}

/* All list items */
body.dark-mode ul,
body.dark-mode ol,
body.dark-mode li,
html.dark ul,
html.dark ol,
html.dark li {
    color: var(--text) !important;
}

/* All blockquotes */
body.dark-mode blockquote,
html.dark blockquote {
    color: var(--text) !important;
    border-left-color: var(--accent) !important;
}

/* All code elements */
body.dark-mode code,
body.dark-mode pre,
html.dark code,
html.dark pre {
    background: var(--card) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

/* All mark/highlight */
body.dark-mode mark,
html.dark mark {
    background: rgba(124, 92, 255, 0.3) !important;
    color: var(--text) !important;
}

/* Ensure images maintain visibility */
body.dark-mode img,
html.dark img {
    opacity: 1 !important;
    filter: brightness(0.95) !important;
}

/* All container and wrapper elements */
body.dark-mode .container,
body.dark-mode .container-fluid,
body.dark-mode .row,
body.dark-mode .col,
html.dark .container,
html.dark .container-fluid,
html.dark .row,
html.dark .col {
    color: inherit !important;
}

/* Light Mode - Ensure text is visible on colored backgrounds */
body.light-mode .services-section,
html.light .services-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

body.light-mode .services-section h1,
body.light-mode .services-section .display-4,
body.light-mode .services-section .lead,
body.light-mode .services-section .section-title,
html.light .services-section h1,
html.light .services-section .display-4,
html.light .services-section .lead,
html.light .services-section .section-title {
    color: #ffffff !important;
}

body.light-mode .service-card,
html.light .service-card {
    background: #ffffff !important;
}

body.light-mode .service-card h4,
html.light .service-card h4 {
    color: #333333 !important;
}

body.light-mode .service-card p,
html.light .service-card p {
    color: #666666 !important;
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-section,
    .section-padding {
        page-break-inside: avoid;
    }

    .card,
    .pricing-card-modern {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .btn,
    .modal,
    .testimonial-carousel .swiper-pagination {
        display: none;
    }
}

/* Back to Top Button Modern */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    cursor: pointer;
}

.back-to-top i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-5px);
    border-color: transparent;
    color: #fff;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

/* Light Mode Support */
body.light-mode .back-to-top {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
    color: #1e293b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .back-to-top:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
}

/* ===== MOBILE 2-COLUMN GRID OPTIMIZATIONS ===== */
@media (max-width: 767px) {
    /* Shared Grid Layout */
    #services-grid,
    .grid,
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 2rem !important;
    }

    #services-grid .service-card-container,
    .section-padding div[class*="col-"] {
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
        max-width: none !important;
        flex: 0 0 100% !important;
    }

    /* Card Aesthetics - Premium Left Aligned */
    .pricing-card-modern,
    .card {
        padding: 12px !important;
        border-radius: 16px !important;
        height: 100% !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: left !important;
        justify-content: flex-start !important;
        background: rgba(30, 41, 59, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }

    /* Typography Visibility - Tightened & Precise */
    .plan-title-modern,
    .card-title,
    .content h4 {
        font-size: 11.5px !important;
        font-weight: 800 !important;
        margin: 0 0 2px 0 !important;
        line-height: 1.2 !important;
        color: #fff !important;
        text-align: left !important;
    }

    /* Grouping Labels & Prices */
    .pricing-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        width: 100% !important;
    }

    .plan-badge {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 1px 0 !important;
    }

    .amount-modern,
    .pricing-info .price,
    .plan-price {
        font-size: 13px !important;
        font-weight: 800 !important;
        margin: 0 !important;
        color: #fff !important;
    }

    .currency-modern,
    .period-modern {
        font-size: 8px !important;
        opacity: 0.8;
    }

    /* Labels - Compact & Professional */
    .pricing-info p.text-muted {
        font-size: 8px !important;
        text-align: left !important;
        margin: 2px 0 !important;
        opacity: 0.7;
    }

    .badge,
    .tag {
        font-size: 7.5px !important;
        font-weight: 700 !important;
        padding: 1px 4px !important;
        border-radius: 4px !important;
        text-transform: uppercase !important;
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    /* Content Visibility */
    .plan-description-modern,
    .card-text,
    .content p {
        font-size: 10px !important;
        line-height: 1.4 !important;
        opacity: 0.8 !important;
        margin-top: 4px !important;
        margin-bottom: 8px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-align: left !important;
    }

    /* Feature Lists - Very Compact */
    .pricing-features-modern {
        display: block !important;
        margin: 6px 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 6px;
    }

    .feature-item-modern {
        font-size: 9px !important;
        padding: 1px 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .feature-icon {
        width: 12px !important;
        height: 12px !important;
        font-size: 6px !important;
        margin-right: 4px !important;
    }

    /* Thumbnails */
    .thumb,
    .thumb img,
    .home-berita-image,
    .placeholder-image {
        height: 85px !important;
        border-radius: 12px !important;
        object-fit: cover !important;
        margin-bottom: 8px !important;
    }

    .plan-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
        margin: 0 0 6px 0 !important;
        text-align: left !important;
    }

    /* Popular Badge Fix */
    .popular-badge-modern {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        font-size: 7px !important;
        padding: 2px 5px !important;
        border-radius: 4px !important;
        margin-bottom: 6px !important;
        display: inline-block !important;
        width: fit-content !important;
        margin-left: 0 !important;
        background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    }

    /* Buttons - Center text in buttons for better balance */
    .btn-modern,
    .btn-sm,
    .cta .btn {
        padding: 7px 8px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        width: 100% !important;
        margin-top: 4px !important;
        display: block !important;
        text-align: center !important;
    }

    .cta {
        flex-direction: column !important;
        gap: 3px !important;
        margin-top: auto !important;
        padding-top: 10px;
    }

    /* Contact Us Mobile Optimization - Refined 2-Column (Match 2nd Image) */
    #contact .row {
        display: grid !important;
        grid-template-columns: 0.85fr 1.15fr !important;
        /* Slightly more room for the form */
        gap: 8px !important;
        margin: 0 !important;
    }

    #contact .col-lg-6 {
        padding: 0 !important;
        width: 100% !important;
    }

    .contact-info,
    .contact-form {
        padding: 10px !important;
        border-radius: 14px !important;
        height: 100% !important;
    }

    .info-item {
        flex-direction: row !important;
        text-align: left !important;
        gap: 8px !important;
        align-items: flex-start !important;
        margin-bottom: 8px !important;
    }

    .info-item i {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }

    .info-item h5 {
        font-size: 11px !important;
        margin-bottom: 0px !important;
        font-weight: 800 !important;
    }

    .info-item p {
        font-size: 9px !important;
        line-height: 1.3 !important;
        opacity: 0.7 !important;
    }

    .contact-form {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .contact-form .form-control {
        font-size: 10px !important;
        padding: 6px 8px !important;
        border-radius: 6px !important;
        margin: 0 !important;
        height: auto !important;
    }

    .contact-form input[name="subjek"],
    .contact-form textarea,
    .contact-form button {
        grid-column: 1 / -1 !important;
    }

    textarea.form-control {
        min-height: 50px !important;
    }

    .contact-form button {
        margin-top: 2px !important;
        padding: 8px !important;
        font-size: 10px !important;
        border-radius: 8px !important;
    }

    /* Footer Mobile Optimization - Premium & Organized */
    .footer-modern {
        padding: 30px 0 !important;
        text-align: left !important;
    }

    .footer-modern .row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
    }

    /* About Section - Top Full Width */
    .footer-modern .col-lg-4:first-child {
        width: 100% !important;
        margin-bottom: 25px !important;
    }

    /* Link Sections - 2 Columns side-by-side */
    .footer-modern .col-lg-2 {
        width: 50% !important;
        flex: 0 0 50% !important;
        margin-bottom: 20px !important;
    }

    /* Location/Contact Section - Bottom Full Width */
    .footer-modern .col-lg-4:last-child {
        width: 100% !important;
        margin-top: 10px !important;
    }

    .footer-modern h5 {
        font-size: 14px !important;
        margin-bottom: 12px !important;
        text-align: left !important;
        font-weight: 700 !important;
        color: #fff !important;
    }

    .footer-modern p,
    .footer-modern ul li,
    .footer-modern a {
        font-size: 11.5px !important;
        text-align: left !important;
        line-height: 1.6 !important;
        margin-bottom: 6px !important;
    }

    .footer-modern ul {
        padding: 0 !important;
        list-style: none !important;
    }

    .footer-logo {
        margin-bottom: 12px !important;
        justify-content: flex-start !important;
    }

    .footer-logo img {
        height: 35px !important;
    }

    .footer-bottom {
        margin-top: 20px !important;
        padding-top: 15px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .social-links {
        margin-bottom: 10px !important;
        justify-content: flex-start !important;
    }

    .copyright {
        font-size: 10px !important;
        opacity: 0.6 !important;
    }
}

/* ===== MODAL & PREMIUM UI STYLES (Moved from home.blade.php) ===== */
.glass-modal .modal-content {
    background: transparent;
    box-shadow: none;
}

.modal-backdrop.show {
    opacity: 0.6 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.glass-modal {
    z-index: 10055 !important;
}

.glass-card-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #333;
}

body.dark-mode .glass-card-wrapper {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

body.dark-mode .modal-header .modal-title {
    color: #f8fafc !important;
}

body.dark-mode .text-muted {
    color: #94a3b8 !important;
}

.text-shadow-sm {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.glass-modal .form-control,
.glass-modal .form-select {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 10px;
}

body.dark-mode .glass-modal .form-control,
body.dark-mode .glass-modal .form-select {
    background-color: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.glass-modal .form-control:focus {
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    border-color: #0066ff;
}

body.dark-mode .glass-modal .form-control:focus {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: #0066ff;
}

body.dark-mode .glass-modal .bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #f1f5f9 !important;
}

body.dark-mode .glass-modal .text-primary {
    color: #60a5fa !important;
}
