/* Base Styles - Dark Mode Only */
:root {
    /* Brand Colors */
    --primary: #7500b0;
    --secondary: #dbd944;
    --accent: #5b21b6;

    /* Backgrounds */
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-navbar: rgba(26, 32, 44, 0.95);
    --bg-footer: #0f1419;
    --bg-card: black;
    --bg-benefit: #2d3748;
    --bg-hero: #000000;

    /* Text */
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --text-gray: #cbd5e0;
    --text-black: #000000;

    /* UI */
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.05);

    /* Gradients */
    --gradient-bg: linear-gradient(135deg,
            rgba(203, 99, 255, 0.35),
            rgba(135, 0, 202, 0.4));
    --gradient-section: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);

    /* Interactive States */
    --hover-overlay: rgba(203, 99, 255, 0.05);
    --active-overlay: rgba(203, 99, 255, 0.1);

    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container__navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: -2;
}

.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="none" stroke="rgba(108, 99, 255, 0.1)" stroke-width="0.5" d="M0,0 L100,100 M100,0 L0,100"></path></svg>');
    background-size: 30px 30px;
    opacity: 0.5;
    animation: bgMove 60s linear infinite;
}

@keyframes bgMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1000px 1000px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: var(--bg-navbar);
    box-shadow: 0 5px 20px var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo__img {
    width: 64px;
    height: 65px;
    object-fit: contain;
}

.logo__name {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo__name span2 {
    color: #8700ca;
    text-shadow:
        1px 1px 0 black,
        -1px 1px 0 black,
        1px -1px 0 black,
        -1px -1px 0 black;
}

.logo__name span1 {
    color: #fffb00;
    text-shadow:
        1px 1px 0 black,
        -1px 1px 0 black,
        1px -1px 0 black,
        -1px -1px 0 black;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 10px 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background-color: var(--bg-primary);
    border-radius: 5px;
    box-shadow: 0 10px 30px var(--shadow);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-content a:hover {
    color: var(--primary);
    background-color: var(--hover-overlay);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 10px;
    z-index: 1001;
    transition: var(--transition);
}

.mobile-menu:hover {
    color: var(--primary);
}

.mobile-menu:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background-color: rgba(26, 32, 44, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 100px 20px 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: all 0.3s ease-in-out;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mobile-nav.closing {
    opacity: 0;
    transform: translateX(-20%);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: block;
}

.mobile-nav-link:hover {
    color: var(--primary);
    background-color: var(--hover-overlay);
    padding-left: 30px;
}

.mobile-nav-link.active {
    color: var(--primary);
    font-weight: 600;
    background-color: var(--active-overlay);
    border-left: 4px solid var(--primary);
}

.mobile-nav-link--submenu {
    padding-left: 40px;
    font-size: 1rem;
    color: var(--text-gray);
}

.mobile-nav-link--submenu:hover {
    padding-left: 50px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-hero);
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-title-main {
    color: var(--text-primary);
}

.hero-title-accent {
    color: var(--primary);
    position: relative;
}

.hero-title-accent::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(203, 99, 255, 0.2);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn.primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(203, 99, 255, 0.3);
}

.btn.primary:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(203, 99, 255, 0.4);
}

.btn.secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn.secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: white;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: var(--text-primary);
}

.section-title span {
    color: var(--secondary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

/* Desktop Grid - Flipping Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Flipping Service Card for Desktop */
.services-grid .service-card {
    background-color: transparent;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 30px var(--shadow-light);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border: none;
    position: relative;
    width: 100%;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.services-grid .service-card:hover {
    transform: rotateY(180deg);
}

/* Card Faces */
.services-grid .card-front,
.services-grid .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Front Face - Icon Only */
.services-grid .card-front {
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a1a 100%);
    border: 2px solid rgba(117, 0, 176, 0.3);
    transition: all 0.3s ease;
}

.services-grid .service-card:hover .card-front {
    border-color: rgba(117, 0, 176, 0.6);
    box-shadow: 0 15px 40px rgba(117, 0, 176, 0.2);
}

.services-grid .service-icon-front {
    font-size: 70px;
    color: var(--secondary);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.services-grid .service-card:hover .service-icon-front {
    transform: scale(1.1);
    color: var(--secondary);
}

/* Back Face - Content */
.services-grid .card-back {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    transform: rotateY(180deg);
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.services-grid .card-back h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

.services-grid .card-back p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Mobile Carousel Cards - Keep original non-flipping style */
.services-carousel .service-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 5px 30px var(--shadow-light);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
    min-width: 100%;
    flex-shrink: 0;
    flex: 0 0 100%;
    box-sizing: border-box;
    height: auto;
    perspective: none;
    transform: none !important;
    position: static;
}

.services-carousel .service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(203, 99, 255, 0.2);
}

.services-carousel .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(203, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}

.services-carousel .service-card:hover .service-icon {
    background-color: var(--primary);
    color: white;
}

.services-carousel .card-front,
.services-carousel .card-back {
    display: none;
}

.services-carousel {
    display: none;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.carousel-container {
    display: flex;
    gap: 0px;
    width: 100%;
    transition: transform 0.4s ease-in-out;
}

.service-card {
    background-color: transparent;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 30px var(--shadow-light);
    transition: transform 0.8s ease;
    text-align: center;
    border: none;
    position: relative;
    width: 100%;
    height: 300px;
    perspective: 1000px;
}

.service-card:hover {
    transform: rotateY(180deg);
}

/* Card Faces */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Front Face - Icon Only */
.card-front {
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a1a 100%);
    border: 2px solid rgba(117, 0, 176, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .card-front {
    border-color: rgba(117, 0, 176, 0.6);
    box-shadow: 0 15px 40px rgba(117, 0, 176, 0.2);
}

.service-icon-front {
    font-size: 70px;
    color: var(--primary);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.service-card:hover .service-icon-front {
    transform: scale(1.1);
    color: var(--secondary);
}

/* Back Face - Content */
.card-back {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    transform: rotateY(180deg);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-back h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

.card-back p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}


.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(203, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 0;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(203, 99, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(203, 99, 255, 0.6);
    transform: scale(1.1);
}

.carousel-dot.active {
    background-color: var(--primary);
    transform: scale(1.3);
}

.carousel-dot:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(203, 99, 255, 0.9);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(203, 99, 255, 0.4);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 100px 0;
    background: var(--gradient-section);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-benefit);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.benefit-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Page Header */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: var(--gradient-bg);
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.page-header h1 span {
    color: var(--primary);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb li::after {
    content: '›';
    margin-left: 10px;
    color: var(--text-gray);
}

.breadcrumb li:last-child::after {
    content: '';
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* =============================================
   FOOTER — Desktop + Mobile Friendly
   ============================================= */
.footer {
    background-color: var(--bg-footer);
    color: white;
    padding: 60px 0 0;
}

/* ── Desktop grid layout ── */
.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    align-items: start;
}

/* Brand column */
.footer-brand .logo__name {
    color: rgb(255, 251, 0);
    font-size: 24px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Section headings — shared styles */
.footer-col-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    cursor: default;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

/* Chevron icon — hidden on desktop */
.footer-col-title .footer-chevron {
    display: none;
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Quick Links */
.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 9px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links ul li a::before {
    content: '›';
    color: var(--primary);
    font-size: 1rem;
    line-height: 1;
    opacity: 0;
    transform: translateX(-4px);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-links ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: white;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

/* Contact */
.footer-contact p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact p i {
    color: var(--primary);
    font-size: 14px;
    width: 16px;
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary);
}

/* Social */
.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 15px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(117, 0, 176, 0.35);
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* ── Collapsible body wrapper (mobile only, desktop always visible) ── */
.footer-col-body {
    overflow: hidden;
}

/* =============================================
   FOOTER — Tablet  (≤ 900px)
   ============================================= */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        /* full width on first row */
    }
}

/* =============================================
   FOOTER — Mobile  (≤ 600px)
   ============================================= */
@media (max-width: 600px) {
    .footer {
        padding: 40px 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    /* Brand stays expanded, no accordion */
    /* .footer-brand {
        padding-bottom: 28px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        margin-bottom: 0;
    } */

    /* Accordion sections */
    /* .footer-links,
    .footer-contact,
    .footer-social {
        border-bottom: 1px solid rgba(255,255,255,0.07);
    } */

    .footer-col-title {
        cursor: pointer;
        padding: 16px 0;
        margin-bottom: 0;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Hide the underline accent on mobile — chevron takes over */
    .footer-col-title::after {
        display: none;
    }

    .footer-col-title .footer-chevron {
        display: block;
    }

    /* Collapsed state */
    .footer-col-body {
        max-height: 0;
        transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
        opacity: 0;
        padding-bottom: 0;
    }

    /* Expanded state — toggled by JS */
    .footer-section.open .footer-col-body {
        max-height: 300px;
        opacity: 1;
        padding-bottom: 20px;
    }

    .footer-section.open .footer-chevron {
        transform: rotate(180deg);
    }

    /* Accent line reappears next to title text when open */
    .footer-section.open .footer-col-title {
        color: var(--primary);
    }

    /* Social icons — bigger tap targets */
    .social-icons a {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    /* Bottom bar stacks nicely */
    .footer-bottom {
        margin-top: 28px;
        padding: 16px 0 20px;
        font-size: 0.78rem;
    }

    .footer-content {
        padding-bottom: 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotateIcon {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(0.8);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Mobile menu animation */
.mobile-nav.active .mobile-nav-link {
    animation: slideInFromLeft 0.3s ease forwards;
    opacity: 0;
}

.mobile-nav.active .mobile-nav-link:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav.active .mobile-nav-link:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-nav.active .mobile-nav-link:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-nav.active .mobile-nav-link:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-nav.active .mobile-nav-link:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-nav.active .mobile-nav-link:nth-child(6) {
    animation-delay: 0.35s;
}

.mobile-nav.active .mobile-nav-link:nth-child(7) {
    animation-delay: 0.4s;
}

.mobile-nav.active .mobile-nav-link:nth-child(8) {
    animation-delay: 0.45s;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ========== LANGUAGE SWITCHER ========== */
/* Language Toggle Button */
.lang-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(203, 99, 255, 0.1) 0%, rgba(9, 0, 137, 0.1) 100%);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    user-select: none;
}

.lang-toggle:hover {
    background: linear-gradient(135deg, rgba(203, 99, 255, 0.2) 0%, rgba(9, 0, 137, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(203, 99, 255, 0.3);
}

.lang-toggle i {
    font-size: 14px;
    color: var(--primary);
}

.current-lang {
    font-size: 14px;
    min-width: 28px;
    text-align: center;
}

/* Language Switcher Container - MUST have position: relative */
.lang-switcher {
    position: relative;
    display: inline-block;
}

/* Language Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    background: var(--bg-primary);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    padding: 10px 0;
    min-width: 140px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.lang-option:hover {
    background: linear-gradient(135deg, rgba(203, 99, 255, 0.1) 0%, rgba(9, 0, 137, 0.1) 100%);
    color: var(--primary);
    padding-left: 25px;
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(203, 99, 255, 0.15) 0%, rgba(9, 0, 137, 0.15) 100%);
    color: var(--primary);
    font-weight: 600;
}

.lang-option i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Flags/Icons for languages */
.lang-option[data-lang="en"] i::before {
    content: "🇬🇧";
}

.lang-option[data-lang="fr"] i::before {
    content: "🇫🇷";
}

.lang-option[data-lang="ar"] i::before {
    content: "🇹🇳";
}

/* ========== NAVBAR CONTROLS CONTAINER ========== */
.navbar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

/* ========== RTL SUPPORT FOR ARABIC ========== */
[dir="rtl"] .navbar-controls {
    margin-left: 0;
    margin-right: 20px;
}

[dir="rtl"] .lang-dropdown {
    left: 0;
    right: auto;
}

[dir="rtl"] .lang-option:hover {
    padding-left: 20px;
    padding-right: 25px;
}

[dir="rtl"] .dropdown-content {
    left: 0;
    right: auto;
}

[dir="rtl"] .mobile-nav-link:hover {
    padding-left: 20px;
    padding-right: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        display: none;
    }

    .services-carousel {
        display: block;
    }

    .navbar-controls {
        margin-left: auto;
        margin-right: 15px;
    }

    .lang-toggle {
        padding: 6px 12px;
        font-size: 13px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-item,
    .service-card {
        padding: 25px 20px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }

    .mobile-nav {
        padding: 90px 15px 15px;
    }

    .mobile-nav-link {
        font-size: 1rem;
        padding: 16px 15px;
    }

    .navbar-controls {
        gap: 10px;
        margin-right: 10px;
    }

    .lang-toggle {
        padding: 6px 10px;
    }

    .current-lang {
        font-size: 12px;
        min-width: 24px;
    }

    .lang-dropdown {
        right: -10px;
        min-width: 130px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .logo__name {
        font-size: 24px;
    }

    .logo__img {
        width: 50px;
        height: 51px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .mobile-nav {
        padding: 80px 10px 10px;
    }

    .mobile-nav-link {
        font-size: 0.95rem;
        padding: 14px 12px;
    }

    .mobile-nav-link--submenu {
        padding-left: 30px;
        font-size: 0.9rem;
    }

    .navbar-controls {
        gap: 8px;
        margin-right: 8px;
    }

    .lang-toggle {
        padding: 5px 8px;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* Add to main.css */
#home.hero {
    position: relative;
    overflow: hidden;
}

#rocket-container {
    pointer-events: none;
    z-index: 1;
}

#rocket-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Ensure hero content stays above rocket */
.hero .container {
    position: relative;
    z-index: 2;
}

/* Hide rocket on mobile menu open */
body.mobile-menu-open #rocket-container {
    display: none;
}

/* Performance optimization */
#rocket-container canvas {
    image-rendering: optimizeSpeed;
}

/* Additional rocket containers */
.services {
    position: relative;
    overflow: hidden;
}

#services-rocket-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 1;
}

#services-rocket-container canvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: optimizeSpeed;
}

.why-choose-us {
    position: relative;
    overflow: hidden;
}

#landing-rocket-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#landing-rocket-container canvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: optimizeSpeed;
}

.services .container,
.why-choose-us .container,
.footer .container {
    position: relative;
    z-index: 2;
}

body.mobile-menu-open #services-rocket-container,
body.mobile-menu-open #landing-rocket-container {
    display: none;
}

.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn.primary {
    background: var(--secondary);
    color: var(--text-black);
    border: 2px solid var(--secondary);
}

.cta-section .btn.primary:hover {
    background: transparent;
    color: var(--secondary);
    transform: translateY(-3px);
}