/* ========================================
   GLODDIA MEDIA - RAINBOW GRADIENT THEME
   ======================================== */

:root {
    --primary-blue: #3B82F6;
    --primary-purple: #8B5CF6;
    --primary-pink: #EC4899;
    --primary-cyan: #06B6D4;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;

    /* Rainbow Gradient */
    --rainbow-gradient: linear-gradient(135deg, #3B82F6, #8B5CF6, #EC4899, #06B6D4);
    --rainbow-text: linear-gradient(135deg, #3B82F6, #8B5CF6, #EC4899);
    --soft-glow: 0 0 20px rgba(139, 92, 246, 0.3);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
}

/* ========================================
   UTILITIES
   ======================================== */
.gradient-text-main {
    background: var(--rainbow-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-gradient {
    background: var(--rainbow-gradient);
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    background-size: 200% auto;
}

.btn-gradient:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-outline-gradient {
    background: white;
    color: var(--text-dark);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--rainbow-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

.btn-xl {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-brand .logo-img {
    height: 45px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    letter-spacing: 0.5px;
    overflow: hidden;
    border-radius: 12px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(139, 92, 246, 0.1),
            rgba(59, 130, 246, 0.1),
            transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: transparent !important;
    background: var(--rainbow-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-3px) scale(1.05);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--rainbow-gradient);
    background-size: 200% 100%;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.nav-link:hover::after {
    width: 100%;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8),
        0 0 30px rgba(59, 130, 246, 0.4);
}

/* Dropdown & Mega Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 0 20px rgba(139, 92, 246, 0.08);
    padding: 1.2rem;
    margin-top: 1rem;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 240px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.nav-item.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-light);
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--rainbow-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.05));
    color: var(--primary-purple);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.dropdown-item i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
    background: var(--rainbow-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.dropdown-item:hover i {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
}

/* Mega Menu Specific */
.mega-menu {
    position: absolute;
    width: 900px;
    max-width: 95vw;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 30px rgba(139, 92, 246, 0.1);
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
    z-index: 1000;
}

.nav-item.dropdown:hover .mega-menu,
.mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-list a {
    color: var(--text-light);
    display: block;
    padding: 6px 10px;
    font-size: 0.9rem;
    border-radius: 8px;
    position: relative;
    transition: 0.25s ease;
}

.mega-menu-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0%;
    background: var(--rainbow-gradient);
    border-radius: 8px;
    transform: translateY(-50%);
    transition: height 0.25s ease;
}

.mega-menu-list a:hover {
    color: #fff;
    background: linear-gradient(90deg,
            #a855f7,
            #ec4899,
            #60a5fa,
            #3b82f6);
    background-size: 400% 400%;
    animation: rainbowMove 2.5s ease infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    border-radius: 8px;
}

@keyframes rainbowMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   SERVICE LINKS
   ======================================== */
.service-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--rainbow-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-link-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
}

.service-link-card span {
    font-weight: 600;
    color: var(--text-dark);
}

.icon-wrapper {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--rainbow-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--rainbow-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--rainbow-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.service-list li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.showcase-section {
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

#showcase-3d-container {
    width: 100%;
    height: 400px;
}

.stats-row {
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* ========================================
   PORTFOLIO
   ======================================== */
.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: white;
    margin-bottom: 1rem;
}

/* ========================================
   WHY US
   ======================================== */
.why-us-card {
    background: white;
    padding: 4rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.why-us-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--rainbow-gradient);
}

.feature-box {
    text-align: center;
    padding: 1.5rem;
}

.gradient-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--rainbow-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   REFERENCES
   ======================================== */
.ref-logo {
    opacity: 0.5;
    transition: var(--transition);
    filter: grayscale(100%);
    text-align: center;
}

.ref-logo img {
    max-width: 100%;
    height: auto;
}

.ref-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ========================================
   CTA
   ======================================== */
.cta-section {
    padding: 6rem 0;
}

.cta-box {
    background: var(--rainbow-gradient);
    padding: 4rem;
    border-radius: 24px;
    color: white;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */
.footer-section {
    background: #ffffff;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-gradient-line {
    height: 4px;
    background: var(--rainbow-gradient);
    width: 100%;
}

/* Newsletter Section */
.footer-newsletter {
    padding: 60px 0;
    position: relative;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: var(--rainbow-gradient);
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.newsletter-form .newsletter-input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    padding: 15px 20px;
    border-radius: 50px 0 0 50px;
}

.newsletter-form .newsletter-input::placeholder {
    color: var(--text-light);
}

.newsletter-form .newsletter-input:focus {
    background: white;
    border-color: var(--primary-purple);
    box-shadow: none;
    color: var(--text-dark);
}

.btn-newsletter {
    background: var(--rainbow-gradient);
    border: none;
    padding: 15px 30px;
    border-radius: 0 50px 50px 0;
    color: white;
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

/* Footer Widget */
.footer-widget {
    margin-bottom: 30px;
}

.footer-logo {
    max-width: 330px;
    height: auto;
}

.footer-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 15px;
}

.footer-title {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}

.footer-title .title-line {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--rainbow-gradient);
    border-radius: 10px;
}

/* Working Hours */
.working-hours {
    background: rgba(0, 0, 0, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.working-hours h6 {
    font-size: 0.9rem;
    font-weight: 600;
}

.working-hours span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: var(--rainbow-gradient);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
    color: white;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-purple);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Contact Info */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-purple);
    transition: all 0.3s ease;
}

.footer-contact li:hover .contact-icon {
    background: var(--rainbow-gradient);
    transform: scale(1.1);
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--primary-purple);
}

/* Footer Bottom */
.footer-bottom {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.footer-legal li {
    display: inline;
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: var(--primary-purple);
}

.text-gradient {
    background: var(--rainbow-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientPulse 2s ease-in-out infinite;
}

@keyframes gradientPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--rainbow-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: bounce 2s infinite;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   GLOW ON HOVER BUTTONS
   ======================================== */
.btn-space-1,
.btn-space-2 {
    width: 260px;
    height: 60px;
    border: none;
    outline: none;
    color: #fff !important;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 10;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-space-1:before,
.btn-space-2:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(4px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0.4;
    transition: all 0.3s ease-in-out;
    border-radius: 50px;
}

.btn-space-1:before {
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
}

.btn-space-2:before {
    background: linear-gradient(45deg, #06b6d4, #00ff9d, #00f2ff, #006aff, #06b6d4, #00ff9d);
}

.btn-space-1:after,
.btn-space-2:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #050505;
    left: 0;
    top: 0;
    border-radius: 50px;
}

.btn-space-1:active,
.btn-space-2:active {
    color: #fff;
}

.btn-space-1:active:after,
.btn-space-2:active:after {
    background: transparent;
}

.btn-space-1:hover:before,
.btn-space-2:hover:before {
    opacity: 1;
    filter: blur(8px);
}

.btn-space-1:hover,
.btn-space-2:hover {
    transform: scale(1.05);
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* ========================================
   HERO SECTION FIXES
   ======================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title-large {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #ffffff 20%, #a5f3fc 50%, #c084fc 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: white;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.4));
    animation: titleFloat 6s ease-in-out infinite;
}

@keyframes titleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .hero-title-large {
        font-size: 3rem;
    }

    .why-us-card {
        padding: 2rem;
    }

    .btn-space-1,
    .btn-space-2 {
        width: 100% !important;
        margin-bottom: 1rem;
    }

    .d-flex.gap-4 {
        flex-direction: column;
        gap: 1rem !important;
    }

    .mega-menu {
        position: static;
        width: 100%;
        max-width: 100%;
        transform: none !important;
        margin-top: 0;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0 1rem;
        display: none;
        opacity: 1;
        visibility: visible;
    }

    .mega-menu.show {
        display: block;
        transform: none !important;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        display: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0;
    }

    .dropdown-menu.show {
        display: block;
    }
}

@media (max-width: 768px) {
    .newsletter-card {
        padding: 30px 20px;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .footer-legal {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}