/* Fonts */
body,
input,
textarea,
button {
    font-family: 'Cairo', Arial, sans-serif;
}

:root {
    --primary: #7494ec;
    --yellow: #7494ec;
    --orange: #7494ec;
    --glass-bg: rgba(116, 148, 236, 0.10);
    --glass-blur: 16px;
    --glass-border: rgba(116, 148, 236, 0.25);
    --dark-bg: #181818;
    --light-bg: #FAFAFA;
    --glow: 0 0 16px var(--primary), 0 0 32px var(--primary);
    --transition: 0.3s cubic-bezier(.4, 2, .3, 1);
}

body {
    margin: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    min-height: 100vh;
    color: #222;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark {
    background: linear-gradient(135deg, #222 0%, #444 100%);
    color: #fff;
}

/* Loader - Light mode white background */
body:not(.dark) #loader {
    background: transparent !important;
}

/* Main content - Light mode white background */
body:not(.dark) {
    background: var(--light-bg);
    color: #222;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loader */
#loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    transition: opacity 0.7s;
}

.loader-bg-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: none !important;
    animation: none !important;
}

.loader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
}

.loader-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: none !important;
    background: none !important;
    padding: 12px;
    animation: none !important;
}

.loader-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    text-shadow: 0 2px 16px #a6bff7;
    line-height: 1.2;
}

.loader-title span {
    display: block;
    font-size: 0.7em;
    color: #a6bff7;
    font-family: 'Cairo', sans-serif;
    margin-top: 0.2em;
}

.loader-slogan {
    color: #fff;
    font-size: 1.1em;
    opacity: 0.85;
    margin-bottom: 0.5em;
    text-align: center;
    font-family: 'Cairo', sans-serif;
}

.loader-progress-bar {
    width: 180px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1em;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #a6bff7);
    border-radius: 8px;
    animation: loader-progress-anim 2.2s cubic-bezier(.4, 2, .3, 1) infinite;
}

@keyframes loader-progress-anim {
    0% {
        width: 0%;
    }

    60% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    background: var(--glass-bg);
    border-radius: 50%;
    box-shadow: var(--glow);
    padding: 12px;
    backdrop-filter: blur(var(--glass-blur));
    border: 1.5px solid var(--glass-border);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-btn img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 6px var(--yellow));
}

.whatsapp-btn:hover {
    background: var(--yellow);
}

/* Navbar */
.navbar {
    position: fixed;
    bottom: 16px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 48px);
    max-width: 900px;
    border-radius: 999px !important;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5em 2em;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-top: 1.5px solid var(--glass-border);
    border-bottom: none;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.logo-3d {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    border-radius: 30% 60% 40% 70%/60% 40% 60% 40%;
    box-shadow: var(--glow);
    margin-right: 8px;
}

.brand {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2em;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 1.1em;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    border-radius: 2px;
    margin-top: 2px;
}

.nav-actions {
    display: flex;
    gap: 1em;
}

#lang-switch,
#theme-switch {
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.4em 1em;
    font-size: 1em;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 8px var(--yellow);
    transition: var(--transition);
}

#lang-switch:hover,
#theme-switch:hover {
    background: var(--yellow);
    color: #fff;
}

#lang-switch {
    display: none !important;
}

#theme-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    padding: 0.4em 1.5em;
}

#theme-switch:hover .theme-icon {
    filter: brightness(0) invert(1);
}

.theme-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: url('data:image/svg+xml;utf8,<svg fill="%237494ec" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="6"/><g><circle cx="12" cy="3" r="1.5"/><circle cx="12" cy="21" r="1.5"/><circle cx="21" cy="12" r="1.5"/><circle cx="3" cy="12" r="1.5"/><circle cx="18.36" cy="5.64" r="1.5"/><circle cx="5.64" cy="18.36" r="1.5"/><circle cx="18.36" cy="18.36" r="1.5"/><circle cx="5.64" cy="5.64" r="1.5"/></g></svg>') center/cover no-repeat;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark .theme-icon {
    width: 36px;
    height: 36px;
    margin-left: -6px;
    background: url('data:image/svg+xml;utf8,<svg fill="%237494ec" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 12.79A9 9 0 0 1 12.79 3a7 7 0 1 0 8.21 9.79z"/></svg>') center/cover no-repeat;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.wavy-hero {
    width: 100vw;
    height: 320px;
    display: block;
    margin-top: 300px;
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-top: 3em;
}

.hero-logo-3d {
    width: 120px;
    height: 120px;
    margin: 0 auto 1em auto;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    border-radius: 30% 60% 40% 70%/60% 40% 60% 40%;
    box-shadow: var(--glow);
    animation: hexa-rotate 3s infinite linear;
}

.hero h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5em 0 0.2em 0;
    text-shadow: 0 2px 8px var(--yellow);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero h1 span {
    display: block;
    font-family: 'Cairo', sans-serif;
    color: var(--yellow);
    font-size: 1.1em;
}

.hero p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 1.5em;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-btn {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 0.8em 2em;
    border: none;
    border-radius: 32px;
    font-size: 1.1em;
    font-weight: 700;
    box-shadow: var(--glow);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.cta-btn.glow:hover {
    background: #4a6ed1 !important;
    color: #fff !important;
    box-shadow: 0 0 32px #7494ec;
}

.cta-btn.facebook-btn {
    background: #1877f3;
    color: #fff;
    transition: background 0.3s, box-shadow 0.3s;
}

.cta-btn.facebook-btn:hover {
    background: #145db2;
    color: #fff;
    animation: slow-flash 2s ease-in-out infinite;
}

.cta-btn.instagram-btn {
    background: linear-gradient(45deg, #fd5949 0%, #d6249f 50%, #285AEB 100%);
    color: #fff;
    transition: background 0.3s, box-shadow 0.3s;
}

.cta-btn.instagram-btn:hover {
    background: linear-gradient(45deg, #c13584 0%, #833ab4 100%);
    color: #fff;
    animation: slow-flash-instagram 2s ease-in-out infinite;
}

.cta-btn.tiktok-btn {
    background: #000000;
    color: #fff;
    transition: background 0.3s, box-shadow 0.3s;
}

.cta-btn.tiktok-btn:hover {
    background: #1a1a1a;
    color: #fff;
    animation: slow-flash-tiktok 2s ease-in-out infinite;
}

/* Glassmorphism Card */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1.5px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(255, 209, 0, 0.04);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Team Section */
.team-section {
    padding: 4em 1em 2em 1em;
    text-align: center;
    margin-top: 2em;
}

.team-section h2 {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 2em;
}

.team-section h2 span {
    display: block;
    font-family: 'Cairo', sans-serif;
    color: var(--yellow);
    font-size: 1em;
}

.team-cards {
    display: flex;
    gap: 2em;
    justify-content: center;
    flex-wrap: wrap;
}

.team-card {
    width: 260px;
    padding: 2em 1em 1.5em 1em;
    margin-bottom: 2em;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 1em;
    border: 4px solid var(--yellow);
    box-shadow: 0 0 16px var(--orange);
}

.team-card h3 {
    margin: 0.5em 0 0.2em 0;
    font-size: 1.2em;
    color: var(--primary);
}

.team-card h3 span {
    display: block;
    font-family: 'Cairo', sans-serif;
    color: var(--yellow);
    font-size: 1em;
}

.team-card p {
    color: #333;
    font-size: 1em;
}

.team-card:hover {
    transform: translateY(-10px) scale(1.04) rotate(-2deg);
    box-shadow: 0 8px 32px var(--yellow);
    background: rgba(255, 255, 255, 0.28);
}

/* Portfolio Section */
.portfolio-section {
    padding: 4em 1em 2em 1em;
    text-align: center;
}

.portfolio-section h2 {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 2em;
}

.portfolio-section h2 span {
    display: block;
    font-family: 'Cairo', sans-serif;
    color: var(--yellow);
    font-size: 1em;
}

.portfolio-slider {
    display: flex;
    gap: 2em;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-card {
    width: 300px;
    padding: 1em;
    margin-bottom: 2em;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.portfolio-card img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 1em;
    box-shadow: 0 0 16px var(--yellow);
}

.portfolio-card h3 {
    color: var(--primary);
    font-size: 1.1em;
}

.portfolio-card:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 8px 32px var(--orange);
    background: rgba(255, 255, 255, 0.28);
}

/* Testimonials Section */
.testimonials-section {
    padding: 4em 1em 2em 1em;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 2em;
}

.testimonials-section h2 span {
    display: block;
    font-family: 'Cairo', sans-serif;
    color: var(--yellow);
    font-size: 1em;
}

.testimonials-carousel {
    display: flex;
    gap: 2em;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2em;
}

.testimonial {
    width: 320px;
    padding: 2em 1em 1.5em 1em;
    margin-bottom: 2em;
    text-align: center;
    font-size: 1.1em;
    color: #333;
    position: relative;
    transition: box-shadow 0.4s, background 0.4s;
}

.testimonial span {
    display: block;
    margin-top: 1em;
    color: var(--primary);
    font-weight: 700;
}

.testimonial:hover {
    box-shadow: 0 8px 32px var(--yellow);
    background: rgba(255, 255, 255, 0.28);
}

.client-logos {
    display: flex;
    gap: 2em;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.client-logos img {
    width: 100px;
    height: 50px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.2);
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}

.client-logos img:hover {
    filter: none;
    opacity: 1;
}

/* Services Section */
.services-section {
    padding: 4em 1em 2em 1em;
    text-align: center;
}

.services-section h2 {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 2em;
}

.services-section h2 span {
    display: block;
    font-family: 'Cairo', sans-serif;
    color: var(--yellow);
    font-size: 1em;
}

.services-cards {
    display: flex;
    gap: 2em;
    justify-content: center;
    flex-wrap: wrap;
}

.service-card {
    width: 220px;
    padding: 2em 1em 1.5em 1em;
    margin-bottom: 2em;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-icon {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    display: block;
    color: var(--yellow);
    text-shadow: 0 0 8px var(--orange);
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.1em;
}

.service-card h3 span {
    display: block;
    font-family: 'Cairo', sans-serif;
    color: var(--yellow);
    font-size: 1em;
}

.service-card:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 8px 32px var(--orange);
    background: rgba(255, 255, 255, 0.28);
}

/* Contact Section */
.contact-section {
    padding: 4em 1em 2em 1em;
    text-align: center;
}

.contact-section h2 {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 2em;
}

.contact-section h2 span {
    display: block;
    font-family: 'Cairo', sans-serif;
    color: var(--yellow);
    font-size: 1em;
}

.contact-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 2em 1em;
}

.contact-form input,
.contact-form textarea {
    padding: 1em;
    border-radius: 12px;
    border: 1.5px solid var(--glass-border);
    background: var(--glass-bg);
    font-size: 1em;
    color: inherit;
    outline: none;
    transition: border 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border: 1.5px solid var(--orange);
}

.contact-form button {
    background: var(--primary);
    color: #fff;
    padding: 0.8em 2em;
    border: none;
    border-radius: 32px;
    font-size: 1.1em;
    font-weight: 700;
    box-shadow: var(--glow);
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button.glow:hover {
    background: #4a6ed1;
    color: #fff;
    box-shadow: 0 0 32px #7494ec;
}

/* Footer */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-top: 1.5px solid var(--glass-border);
    padding: 1.5em 1em 3em 1em;
    text-align: center;
    color: #333;
    margin-top: 2em;
    margin-bottom: 48px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.footer-social {
    display: flex;
    gap: 1.5em;
}

.footer-social img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 6px var(--yellow));
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-social img:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 900px) {
    .navbar {
        width: 98vw;
        max-width: 98vw;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 0.5em 0.5em;
        border-radius: 999px !important;
    }

    .nav-links {
        gap: 0.7em;
    }

    .hero-flex {
        flex-direction: column;
        gap: 1.5em;
        text-align: center;
    }

    .hero-large-logo {
        width: 160px;
    }

    .cta-btn,
    .cta-btn.facebook-btn,
    .cta-btn.instagram-btn {
        font-size: 1em;
        padding: 0.7em 1.2em;
    }

    .service-card,
    .portfolio-card,
    .team-card {
        width: 95vw;
        min-width: 0;
        max-width: 100%;
    }

    .footer {
        padding: 1.5em 0.5em 3em 0.5em;
    }
}

@media (max-width: 600px) {
    .navbar {
        display: none !important;
    }

    /* Remove hiding of logo and brand in phone mode */
    /* .nav-logo, .brand, .main-logo { display: none !important; } */
    .nav-links {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        align-items: center;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .nav-link {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 1.2em;
        color: #fff;
        padding: 0.2em 0 0.1em 0;
        min-width: 0;
        min-height: 0;
        border-radius: 0;
        background: none;
        transition: color 0.2s;
    }

    .nav-link.active,
    .nav-link:hover {
        color: var(--primary);
    }

    .nav-link-icon {
        font-size: 1.7em;
        margin-bottom: 0;
        display: block;
    }

    .nav-link-label {
        display: none;
    }

    .main-logo,
    .hero-large-logo {
        width: 90px !important;
        height: auto !important;
    }

    .hero-title {
        font-size: 1em;
    }

    .hero h1 {
        font-size: 1.3em;
    }

    .hero p {
        font-size: 0.95em;
    }

    .cta-btn,
    .cta-btn.facebook-btn,
    .cta-btn.instagram-btn {
        font-size: 0.85em;
        padding: 0.5em 0.8em;
    }

    .service-card,
    .portfolio-card,
    .team-card {
        width: 99vw;
        min-width: 0;
        max-width: 100%;
    }

    .footer {
        padding: 1.5em 0.2em 3em 0.2em;
    }

    .loader-logo-img {
        width: 60px;
        height: 60px;
    }

    .loader-title {
        font-size: 0.95em;
    }

    .loader-progress-bar {
        width: 80px;
    }

    .cta-btn.facebook-btn,
    .cta-btn.instagram-btn {
        box-shadow: 0 8px 32px 0 var(--primary), 0 0 32px #7494ec !important;
        margin-bottom: 1.2em;
        z-index: 10;
        position: relative;
    }

    #theme-switch {
        display: flex !important;
        position: fixed !important;
        left: 18px;
        bottom: 18px;
        top: auto;
        right: auto;
        margin: 0;
        z-index: 1200;
        justify-content: center;
        align-items: center;
        width: 54px;
        height: 54px;
        border-radius: 50% !important;
        box-shadow: 0 4px 24px 0 rgba(40, 50, 80, 0.18);
        background: rgba(40, 50, 80, 0.18);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        padding: 0;
    }

    #theme-switch .theme-icon {
        width: 32px;
        height: 32px;
    }

    .hero-social-buttons .btn-label {
        display: none !important;
    }

    .hero-social-buttons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.2em !important;
        width: 100%;
        margin: 0 auto;
    }

    .hero-social-buttons .cta-btn.facebook-btn,
    .hero-social-buttons .cta-btn.instagram-btn,
    .hero-social-buttons .cta-btn.email-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        max-width: 44px;
        max-height: 44px;
        border-radius: 50% !important;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1em;
        box-shadow: 0 4px 16px 0 var(--primary), 0 0 16px #7494ec !important;
        margin: 0;
        vertical-align: middle;
    }

    .hero-social-buttons .cta-btn.facebook-btn svg,
    .hero-social-buttons .cta-btn.instagram-btn svg,
    .hero-social-buttons .cta-btn.email-btn svg {
        margin: 0;
    }
}

.facebook-section {
    padding: 4em 1em 2em 1em;
    text-align: center;
}

.facebook-section h2 {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 2em;
}

.facebook-section h2 span {
    display: block;
    font-family: 'Cairo', sans-serif;
    color: var(--yellow);
    font-size: 1em;
}

.facebook-section .cta-btn {
    margin-top: 2em;
}

body.dark .navbar {
    position: fixed;
    bottom: 16px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 48px);
    max-width: 900px;
    border-radius: 999px !important;
    background: linear-gradient(120deg, rgba(116, 148, 236, 0.13) 60%, rgba(255, 255, 255, 0.08) 100%) !important;
    backdrop-filter: blur(80px) saturate(350%);
    -webkit-backdrop-filter: blur(80px) saturate(350%);
    border-top: 1.5px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: 0 4px 32px 0 rgba(116, 148, 236, 0.10) inset, 0 1.5px 16px 0 rgba(255, 255, 255, 0.08) inset;
    overflow: hidden;
}

body.dark .navbar .brand {
    color: var(--yellow);
}

body.dark .nav-link {
    color: #fff;
}

body.dark .nav-link.active,
body.dark .nav-link:hover {
    color: var(--yellow);
}

body.dark .glass,
body.dark .team-card,
body.dark .portfolio-card,
body.dark .service-card,
body.dark .testimonial,
body.dark .footer,
body.dark .facebook-section {
    background: rgba(34, 34, 34, 0.92) !important;
    border-color: rgba(80, 80, 80, 0.5) !important;
    color: #fff !important;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.30);
}

body.dark .cta-btn {
    background: var(--yellow) !important;
    color: #222 !important;
    box-shadow: 0 0 16px var(--yellow), 0 0 32px var(--orange);
}

body.dark .cta-btn.glow:hover {
    background: var(--orange) !important;
    color: #fff !important;
}

body.dark .footer {
    color: #fff;
}

body.dark .hero p,
body.dark .team-card p,
body.dark .portfolio-card h3,
body.dark .service-card h3,
body.dark .testimonial {
    color: #eee !important;
}

.hero-flex {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 3em;
    text-align: right;
}

.hero-large-logo {
    width: 400px;
    height: auto;
    max-width: 80vw;
    flex-shrink: 0;
}

.hero-title {
    flex: 1;
}

@media (max-width: 900px) {
    .hero-flex {
        flex-direction: column;
        gap: 1.5em;
        text-align: center;
    }

    .hero-large-logo {
        width: 220px;
    }
}

.facebook-btn.glow:hover {
    background: #145db2 !important;
    color: #fff !important;
    box-shadow: 0 0 24px #1877f3;
}

/* Theme Switch Button - Floating, separate from navbar */
#theme-switch {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1200;
    width: 54px;
    height: 54px;
    border-radius: 50% !important;
    background: var(--glass-bg);
    box-shadow: 0 4px 24px 0 rgba(40, 50, 80, 0.18);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1.5px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-switch .theme-icon {
    width: 32px;
    height: 32px;
}

#theme-switch:hover {
    background: var(--primary);
    color: #fff;
}

#theme-switch:hover .theme-icon {
    filter: brightness(0) invert(1);
}

/* Remove old navbar-specific theme-switch styles */
.navbar #theme-switch,
.navbar .nav-actions {
    display: none !important;
}

@media (max-width: 600px) {
    #theme-switch {
        left: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }

    #theme-switch .theme-icon {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 901px) {
    .whatsapp-btn {
        right: 40px;
        left: auto;
    }

    #theme-switch {
        left: 40px;
        right: auto;
    }

    .hero-content.hero-flex {
        margin-right: 40px;
    }
}

@media (max-width: 900px) and (min-width: 601px) {
    .whatsapp-btn {
        top: 24px;
        bottom: auto;
        right: 24px;
        left: auto;
    }

    #theme-switch {
        top: 24px;
        bottom: auto;
        left: 24px;
        right: auto;
    }

    .team-section {
        margin-top: 4em;
    }

    .hero-social-buttons {
        margin-bottom: 3em;
    }

    .navbar {
        width: 90vw;
        max-width: 700px;
    }
}

.hero-social-buttons {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 2em;
    margin-top: 0.5em;
    margin-bottom: 2em;
}

.hero-social-buttons .cta-btn {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s, transform 0.5s;
}

body.show-hero-icons .hero-social-buttons .cta-btn {
    opacity: 1;
    transform: translateY(0);
}

body.show-hero-icons .hero-social-buttons .cta-btn:nth-child(1) {
    transition-delay: 0.2s;
}

body.show-hero-icons .hero-social-buttons .cta-btn:nth-child(2) {
    transition-delay: 0.4s;
}

body.show-hero-icons .hero-social-buttons .cta-btn:nth-child(3) {
    transition-delay: 0.6s;
}

body.show-hero-icons .hero-social-buttons .cta-btn:nth-child(4) {
    transition-delay: 0.8s;
}

.hero-social-buttons .cta-btn.email-btn:hover {
    background: #fffbe6;
    transition: background 0.3s;
    transition-delay: 0s !important;
    animation: slow-flash-email 2s ease-in-out infinite;
}

.find-us-buttons .facebook-btn:hover {
    background: #eaf3ff;
    transition: background 0.3s;
    animation: slow-flash 2s ease-in-out infinite;
}

.find-us-buttons .instagram-btn:hover {
    background: #fff0f6;
    transition: background 0.3s;
    animation: slow-flash-instagram 2s ease-in-out infinite;
}

.find-us-buttons .tiktok-btn:hover {
    background: #1a1a1a;
    transition: background 0.3s;
    animation: slow-flash-tiktok 2s ease-in-out infinite;
}

.modern-loader-ring {
    width: 120px;
    height: 120px;
    border: 6px solid rgba(116, 148, 236, 0.18);
    border-top: 6px solid #7494ec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2em auto;
    animation: modern-loader-spin 1.1s linear infinite;
    box-sizing: border-box;
    background: transparent;
}

@keyframes modern-loader-spin {
    0% {
        transform: rotate(0deg);
    }

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

.modern-loader-text {
    color: #7494ec;
    font-size: 1.2em;
    font-weight: 700;
    text-align: center;
    margin-top: 0.5em;
    letter-spacing: 1px;
}

.animated-bg-flash {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    opacity: 0.5;
    animation: flash-bg 3.5s linear infinite alternate;
    pointer-events: none;
}

@keyframes move-shape {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.45;
    }

    50% {
        transform: translateY(-40px) scale(1.08);
        opacity: 0.65;
    }

    100% {
        transform: translateY(40px) scale(0.95);
        opacity: 0.35;
    }
}

@keyframes flash-bg {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.55;
    }

    100% {
        opacity: 0.2;
    }
}

body.dark .animated-bg-shape1 {
    background: radial-gradient(circle at 30% 30%, #2a2a44 0%, #3a3a5a 60%, transparent 100%);
}

body.dark .animated-bg-shape2 {
    background: radial-gradient(circle at 70% 70%, #2e3a5a 0%, #1a1a2a 80%, transparent 100%);
}

body.dark .animated-bg-shape3 {
    background: radial-gradient(circle at 50% 50%, #3a2a4a 0%, #2a2a3a 80%, transparent 100%);
}

body.dark .animated-bg-flash {
    background: radial-gradient(circle at 60% 20%, rgba(116, 148, 236, 0.10) 0%, transparent 70%);
}

.hero-title h1,
.hero-title p,
.hero-social-buttons .cta-btn {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s, transform 0.5s;
}

body.show-hero-icons .hero-title h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

body.show-hero-icons .hero-title p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

body.show-hero-icons .hero-social-buttons .cta-btn:nth-child(1) {
    transition-delay: 0.4s;
}

body.show-hero-icons .hero-social-buttons .cta-btn:nth-child(2) {
    transition-delay: 0.6s;
}

body.show-hero-icons .hero-social-buttons .cta-btn:nth-child(3) {
    transition-delay: 0.8s;
}

body.show-hero-icons .hero-social-buttons .cta-btn:nth-child(4) {
    transition-delay: 1s;
}

/* Slow flashing animation for social buttons */
@keyframes slow-flash {
    0% {
        box-shadow: 0 0 24px #1877f3;
    }

    50% {
        box-shadow: 0 0 40px #1877f3, 0 0 60px #1877f3;
    }

    100% {
        box-shadow: 0 0 24px #1877f3;
    }
}

@keyframes slow-flash-instagram {
    0% {
        box-shadow: 0 0 24px #d6249f;
    }

    50% {
        box-shadow: 0 0 40px #d6249f, 0 0 60px #d6249f;
    }

    100% {
        box-shadow: 0 0 24px #d6249f;
    }
}

@keyframes slow-flash-email {
    0% {
        box-shadow: 0 0 24px #ffd700, 0 0 32px #7494ec;
    }

    50% {
        box-shadow: 0 0 40px #ffd700, 0 0 60px #7494ec, 0 0 80px #ffd700;
    }

    100% {
        box-shadow: 0 0 24px #ffd700, 0 0 32px #7494ec;
    }
}

@keyframes slow-flash-tiktok {
    0% {
        box-shadow: 0 0 24px #000000, 0 0 32px #25f4ee;
    }

    50% {
        box-shadow: 0 0 40px #000000, 0 0 60px #25f4ee, 0 0 80px #fe2c55;
    }

    100% {
        box-shadow: 0 0 24px #000000, 0 0 32px #25f4ee;
    }
}

/* Mouse-following tired effect */
.mouse-tired-effect {
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(116, 148, 236, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transition: all 0.3s ease-out;
    opacity: 0;
    transform: scale(0.5);
}

.mouse-tired-effect.active {
    opacity: 1;
    transform: scale(1);
}

/* Tired background shapes - they slow down when mouse moves */
.animated-bg-shape.tired {
    animation-duration: 20s !important;
    opacity: 0.2 !important;
    filter: blur(48px) !important;
}

.animated-bg-shape.very-tired {
    animation-duration: 30s !important;
    opacity: 0.1 !important;
    filter: blur(64px) !important;
}