:root {
    --primary-orange: #ff914d;
    --secondary-orange: #e36b20;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-light: #ffffff;
    --text-gray: #e2e2e2;
    --text-muted: #a0a0a0;
    --card-bg: #1a1a1a;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-orange);
    color: var(--text-light);
    font-weight: 600;
    border-radius: 5px;
    border: 2px solid var(--primary-orange);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--secondary-orange);
    border-color: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 145, 77, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: var(--text-light);
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--text-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title span {
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: flex-start;
    /* Was space-between */
    align-items: center;
    position: relative;
    /* Ensure stable context */
}

.logo img {
    height: 45px;
    width: auto;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
    margin-left: auto;
    /* Push to the right */
    margin-right: 20px;
    /* Space between nav and lang selector */
}

.nav-links li {
    position: relative;
    /* Essential for submenu positioning */
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    display: flex;
    align-items: center;
}

/* Underline effect */
.nav-links>li>a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-orange);
    transition: var(--transition);
}

.nav-links>li>a:hover::after,
.nav-links>li>a.active::after {
    width: 100%;
}

.nav-links>li>a:hover {
    color: var(--primary-orange);
}

.nav-links .btn {
    padding: 12px 30px;
    /* Reset padding for button */
}

.nav-links .btn::after {
    display: none;
    /* No underline for button */
}

.nav-links .btn:hover {
    color: var(--text-light);
    /* Reset color for button */
}

/* Submenu / Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
    /* Small Gap */
}

/* Bridge to prevent closing when moving cursor */
.nav-links li:hover .dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown li {
    display: block;
    margin: 0;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.dropdown li a:last-child {
    border-bottom: none;
}

.dropdown li a:hover {
    background-color: rgba(255, 145, 77, 0.1);
    color: var(--primary-orange);
    padding-left: 25px;
}

.dropdown li a::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('assets/hero_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--primary-orange);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Features Strip */
.features-strip {
    background-color: var(--card-bg);
    padding: 40px 0;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0px 60px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 145, 77, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.feature-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* About Section */
.about {
    background-color: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    margin-top: 15px;
}

.service-list li {
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.service-list li::before {
    content: '→';
    color: var(--primary-orange);
    margin-right: 10px;
}

/* Stats */
.stats {
    background: linear-gradient(rgba(255, 145, 77, 0.9), rgba(227, 107, 32, 0.9)), url('assets/hero_background.png');
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    transition: var(--transition);
}

.step-item:hover .step-number {
    background: var(--primary-orange);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 145, 77, 0.4);
}

.step-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0 15px;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-overlay p {
    color: var(--primary-orange);
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Testimonials Carousel */
.testimonial-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.testimonial-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    /* min-width: calc(33.333% - 20px); */
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    box-sizing: border-box;
    /* Ensure padding doesn't add to width */
}

.testimonial-icon {
    font-size: 2rem;
    color: var(--primary-orange);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
}

.client-details h5 {
    font-size: 1rem;
    color: var(--text-light);
}

.client-details span {
    font-size: 0.85rem;
    color: var(--primary-orange);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-orange);
    color: #fff;
}

/* Technologies Section */
.technologies {
    background: linear-gradient(rgba(255, 145, 77, 0.95), rgba(227, 107, 32, 0.95)), url('assets/hero_background.png');
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.tech-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tech-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tech-card i {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
}

.tech-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    background: var(--card-bg);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-question {
    color: var(--primary-orange);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url('assets/hero_background.png');
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    padding: 100px 0;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 10px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info .contact-info-text {
    padding-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 145, 77, 0.1);
    color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-light);
    font-family: var(--font-main);
    transition: var(--transition);
}

.contact-form textarea {
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.success-message {
    background-color: green !important;
    color: white !important;
    padding: 10px !important;
    position: absolute !important;
    top: -20px !important;
    left: 0 !important;
    width: 100%;
}

/* Client Carousel */
.client-carousel-section {
    background-color: var(--card-bg);
    padding: 60px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.client-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.client-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.client-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: calc(100% / 6);
    padding: 0 20px;
    opacity: 0.5;
    transition: var(--transition);
}

.client-logo:hover {
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.client-logo:hover img {
    filter: none;
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    /* Back to 3 columns */
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    /* Anchor for absolute positioning */
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .testimonial-card {
        min-width: calc(50% - 15px);
    }

    .client-logo {
        width: calc(100% / 4);
    }

    .testimonial-card {
        padding: 25px;
        /* Reduce padding on mobile */
    }
}

/* Language Dropdown - Desktop */
.lang-dropdown {
    width: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 10px 0;
}

.nav-item:hover .lang-dropdown {
    transform: translateX(-50%) translateY(0);
}

.lang-dropdown li a {
    text-align: center;
    padding: 8px 0;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 2000;
        /* Higher than lang selector which is 1000 */
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 80px;
        z-index: 1500;
        /* Higher than lang (1000), lower than hamburger (2000) */
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
    }

    /* Mobile Language Dropdown */
    .lang-dropdown {
        width: 100%;
        left: 0;
        transform: none;
        text-align: left;
    }

    .lang-dropdown li a {
        text-align: left;
        padding-left: 0;
    }

    /* Mobile Dropdown - Accordion Style */
    .dropdown {
        position: static;
        width: 100%;
        background-color: transparent;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 0;
    }

    .nav-links li:hover .dropdown {
        display: block;
    }

    .dropdown li a {
        padding: 10px 0;
        color: var(--text-muted);
        font-size: 0.85rem;
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-btns {
        justify-content: center;
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
    }

    .process-steps::before {
        width: 4px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .step-item {
        background: var(--bg-dark);
        padding: 10px;
    }

    .about-content,
    .contact-container,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .logo img {
        height: 45px;
        margin-bottom: -8px;
    }

    .feature-item {
        padding: 0px 30px;
    }

    .testimonial-card {
        min-width: 100%;
    }

    .client-logo {
        width: calc(100% / 2);
    }
}

/* Language Selector Wrapper (Separate from Nav) */
.lang-selector-wrapper,
.footer-lang-selector-wrapper {
    height: 100%;
    display: flex;
}

.current-lang {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    z-index: 2;
}

.current-lang:hover {
    color: var(--primary-orange);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 60px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    list-style: none;
    /* Ensure no bullets */
}

/* Click state handled by JS */
.lang-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu li {
    display: block;
    margin: 0;
}

.lang-dropdown-menu li a {
    display: block;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-gray);
    width: 100%;
    text-align: center;
    transition: var(--transition);
}

.lang-dropdown-menu li a:hover {
    background-color: rgba(255, 145, 77, 0.1);
    color: var(--primary-orange);
}

.lang-selector-wrapper .lang-dropdown-menu {
    position: absolute;
    right: 10px;
    bottom: auto;
    left: auto;
    height: auto;
}

/* Footer Language Selector (Absolute) */
.footer-lang-absolute {
    position: absolute;
    right: 30px;
    bottom: 20px;
    height: auto;
    z-index: 9999;
}

/* Ensure the wrapper catches clicks */
.footer-lang-absolute .footer-lang-selector-wrapper {
    pointer-events: auto;
    align-items: center;
}

.footer-lang-absolute .lang-dropdown-menu {
    top: auto;
    bottom: 100%;
    left: -14px;
    right: auto;
    transform: translateY(10px);
}

.footer-lang-absolute .lang-dropdown-menu.active {
    transform: translateY(0);
    opacity: 1;
    /* Ensure these are applied */
    visibility: visible;
}

/* Mobile Adjustments for Lang Selector */
@media (max-width: 768px) {
    .footer-lang-absolute {
        position: absolute;
        right: 30px;
        bottom: 20px;
        /* Change from static to relative to anchor the dropdown */
        width: 100%;
        margin-top: 20px;
        pointer-events: auto;
        z-index: 1000;

    }

    .footer-lang-absolute .footer-lang-selector-wrapper {
        justify-content: flex-start;

        position: absolute;
        right: 0px;
        bottom: 0px;
    }

    .footer-lang-absolute .lang-dropdown-menu {
        top: auto;
        left: -14px;
        right: auto;
        bottom: 20px;
        z-index: 1000;
    }

    .navbar {
        justify-content: flex-start;
        /* Ensure standard flow */
    }

    .lang-selector-wrapper {
        order: 1;
        /* Lang First */
        margin-left: auto;
        /* Push to right */
        margin-right: 15px;
        /* Space between lang and hamburger */
    }

    .lang-selector-wrapper .lang-dropdown-menu {
        /* right: auto; */
        right: 50px;
        bottom: auto;
        left: auto;
        z-index: 1000;
    }

    .hamburger {
        order: 2;
        margin-left: 0;
        position: relative;
        z-index: 2000;
    }
}