/* Main Global Styles - White and Gray Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #6b6b6b;
    --text-dark: #333333;
    --accent-gray: #9e9e9e;
}

body {
    font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Tahoma, sans-serif;
    background-color: var(--primary-white);
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 0;
}

/* Headings Font */
h1, h2, h3, h4, h5, h6 {
    font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Tahoma, sans-serif;
}

/* Chinese Language Font */
html[lang="zh-CN"] body,
html[lang="zh-CN"] * {
    font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Tahoma, sans-serif;
    font-size: 0.98em;
}

/* Header Styles */
.header {
    background-color: var(--primary-white);
    border-bottom: 1px solid var(--medium-gray);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Global responsive media */
img, video {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1200px) {
    .container { padding: 0 1.5rem; }
}

@media (max-width: 992px) {
    .container { padding: 0 1.25rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 0.75rem; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-lang-switch {
    display: none;
}

.desktop-lang-switch {
    display: block;
}

/* Responsive container padding */
@media (max-width: 1200px) { .container { padding: 0 1.5rem; } }
@media (max-width: 992px) { .container { padding: 0 1.25rem; } }
@media (max-width: 768px) { .container { padding: 0 1rem; } }
@media (max-width: 480px) { .container { padding: 0 0.75rem; } }

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.logo img {
    height: 36px;
    display: block;
    object-fit: contain;
    filter: brightness(0);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.logo-text-main {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1.2;
}

.logo-text-sub {
    color: var(--dark-gray);
    font-size: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.05px;
    white-space: nowrap;
    line-height: 1.1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Ensure media is responsive */
img, video { max-width: 100%; height: auto; }

.nav-menu a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-dark);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-white);
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 0.75rem 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--primary-white);
}

.dropdown-menu li {
    list-style: none;
    border: none;
    padding: 0 0.5rem;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 0.95rem;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: var(--light-gray);
    color: var(--text-dark);
    transform: translateX(4px);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: var(--light-gray);
    border: 2px solid var(--medium-gray);
    padding: 0.6rem;
    z-index: 1001;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background-color: var(--text-dark);
}

.hamburger:hover span {
    background-color: var(--primary-white);
}

.hamburger span {
    width: 22px;
    height: 2.5px;
    background-color: var(--text-dark);
    margin: 2.5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active {
    background-color: var(--text-dark);
}

.hamburger.active span {
    background-color: var(--primary-white);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.lang-switch {
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    color: #2f2f2f !important; /* dark gray text */
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-switch:hover {
    background-color: var(--medium-gray);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--primary-white) 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Hero with Background Image */
.hero-image {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 5rem 2rem;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

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

.hero-image h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.hero-image p {
    font-size: 1.2rem;
    color: var(--primary-white);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    /* Stack logo text under the logo image on mobile */
    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .logo-text {
        white-space: normal; /* allow wrapping */
        line-height: 1.2;
        font-size: 0.95rem;
        max-width: 220px; /* prevent overflow */
    }
    .hero-image {
        min-height: 300px;
        padding: 3rem 1.5rem;
    }
    
    .hero-image h1 {
        font-size: 2rem;
    }
    
    .hero-image p {
        font-size: 1rem;
    }
}

/* Carousel Styles */
.carousel-wrapper {
    padding: 2rem 0;
    background-color: var(--primary-white);
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--light-gray);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 480px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
    border-radius: 16px;
}

.carousel-slide .container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.carousel-slide h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.carousel-slide p {
    font-size: 1.2rem;
    color: var(--primary-white);
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.carousel-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background-color: var(--primary-white);
    transform: scale(1.2);
}

/* Portfolio Section */
.portfolio-section {
    padding: 4rem 0;
    background-color: var(--primary-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    background-color: var(--primary-white);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}

.portfolio-content {
    padding: 1rem 1.25rem 1.25rem;
}

.portfolio-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.portfolio-content p {
    margin: 0;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-dark);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-arrow:hover {
    background-color: var(--primary-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.carousel-arrow.prev {
    left: 2rem;
}

.carousel-arrow.next {
    right: 2rem;
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--medium-gray);
    padding-bottom: 0.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--medium-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-card p {
    color: var(--dark-gray);
    line-height: 1.8;
}

/* What We Offer Section - New Structure */
.offer-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.offer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.offer-item {
    background-color: var(--primary-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.offer-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.offer-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.offer-content {
    padding: 2rem;
    background-color: var(--primary-white);
}

.offer-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.offer-content p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.offer-link {
    display: inline-block;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 2px;
}

.offer-link:hover {
    color: var(--dark-gray);
    border-bottom-color: var(--dark-gray);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .offer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .offer-image {
        height: 220px;
    }
    
    .offer-content {
        padding: 1.5rem;
    }
    
    .offer-content h3 {
        font-size: 1.5rem;
    }
}

/* Innovation Section - New Structure */
.innovation-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--light-gray) 100%);
    position: relative;
}

.innovation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.innovation-text {
    padding-right: 2rem;
}

.innovation-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.innovation-lead {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.innovation-description {
    font-size: 1.05rem;
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.innovation-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--text-dark);
    color: var(--primary-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.innovation-btn:hover {
    background-color: var(--dark-gray);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.innovation-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.highlight-item {
    background-color: var(--primary-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.highlight-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.highlight-label {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

@media (max-width: 968px) {
    .innovation-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .innovation-text {
        padding-right: 0;
        text-align: center;
    }
    
    .innovation-highlights {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .innovation-title {
        font-size: 2rem;
    }
    
    .innovation-lead {
        font-size: 1.05rem;
    }
    
    .innovation-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .highlight-number {
        font-size: 2.5rem;
    }
    
    .highlight-label {
        font-size: 1rem;
    }
}

/* API Excellence Section */
.api-excellence-section {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.api-excellence-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.excellence-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.excellence-content {
    background-color: var(--primary-white);
    padding: 3rem;
    border-left: 4px solid var(--text-dark);
    text-align: left;
}

.excellence-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.excellence-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

@media (max-width: 768px) {
    .api-excellence-section {
        padding: 4rem 0;
    }
    
    .excellence-title {
        font-size: 2rem;
    }
    
    .excellence-content {
        padding: 2rem;
    }
    
    .excellence-lead {
        font-size: 1.1rem;
    }
    
    .excellence-text {
        font-size: 1rem;
    }
}

/* Global Excellence Background */
.global-excellence-bg {
    background-image: url('../images/bg-trading.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.global-excellence-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.global-excellence-bg .container {
    position: relative;
    z-index: 2;
}

/* Tailored API Development Background */
.tailored-api-bg {
    background-image: url('../images/slide1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.tailored-api-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.tailored-api-bg .container {
    position: relative;
    z-index: 2;
}

/* Comprehensive Solutions Section */
.comprehensive-solutions-section {
    padding: 5rem 0;
    background-color: var(--primary-white);
}

.solutions-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.solutions-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.solutions-subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-item {
    background-color: var(--light-gray);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.solution-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--text-dark);
    background-color: var(--primary-white);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.solution-icon svg {
    width: 3rem;
    height: 3rem;
    display: inline-block;
    fill: currentColor;
}

.solution-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.solution-description {
    font-size: 1.05rem;
    color: var(--dark-gray);
    line-height: 1.7;
}

@media (max-width: 968px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .comprehensive-solutions-section {
        padding: 3rem 0;
    }
    
    .solutions-title {
        font-size: 2rem;
    }
    
    .solutions-subtitle {
        font-size: 1.05rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .solution-item {
        padding: 2rem 1.5rem;
    }
    
    .solution-icon {
        font-size: 2.5rem;
    }
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.map-container iframe {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .map-section {
        padding: 3rem 0;
    }
    
    .map-container iframe {
        height: 350px !important;
    }
}

/* Footer */
.footer {
    background-color: var(--light-gray);
    border-top: 1px solid var(--medium-gray);
    padding: 2rem 0;
    margin-bottom: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-section p,
.footer-section a {
    color: var(--dark-gray);
    line-height: 1.8;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--text-dark);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        background: var(--primary-white) !important;
        border: 2px solid var(--medium-gray);
        padding: 0.5rem;
        z-index: 2000;
        border-radius: 8px;
        width: 42px;
        height: 42px;
        justify-content: center;
        align-items: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
        background-color: var(--text-dark) !important;
        margin: 3px 0;
        border-radius: 2px;
    }
    
    .hamburger:hover,
    .hamburger.active {
        background-color: var(--primary-white) !important;
    }
    
    .hamburger:hover span,
    .hamburger.active span {
        background-color: var(--text-dark) !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--primary-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0.75rem;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1500;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border: none;
        margin: 0;
    }
    
    .nav-menu a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1.1rem 1.25rem;
        width: 100%;
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--text-dark);
        background-color: var(--light-gray);
        border: 1px solid var(--medium-gray);
        border-radius: 12px;
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: var(--primary-white);
        border-color: var(--text-dark);
        color: var(--text-dark);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transform: translateX(4px);
    }
    
    /* Mobile Dropdown Styles */
    .dropdown {
        width: 100%;
    }
    
    /* Disable hover on mobile */
    .dropdown:hover .dropdown-menu {
        display: none !important;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background-color: transparent;
        border-radius: 8px;
        padding: 0.5rem 0 0 1rem;
        margin: 0;
        width: 100%;
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-menu li {
        width: 100%;
        padding: 0;
    }
    
    .dropdown-menu a {
        background-color: var(--light-gray) !important;
        border: 1px solid var(--medium-gray) !important;
        border-radius: 10px !important;
        margin-bottom: 0.5rem;
        padding: 0.9rem 1.15rem;
        font-size: 0.95rem;
        font-weight: 400;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        background-color: var(--primary-white) !important;
        border-color: var(--text-dark) !important;
        transform: translateX(2px);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .header-right {
        position: relative;
        right: -75px;
    }
    
    .mobile-lang-switch {
        display: flex !important;
        margin: 0;
        width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .desktop-lang-switch {
        display: none !important;
    }
    
    .lang-switch {
        margin-top: 0.5rem;
        width: 100%;
        padding: 1.1rem 1.25rem;
        text-align: center;
        background-color: var(--light-gray);
        border: 1px solid var(--medium-gray);
        border-radius: 12px;
    }
    
    .lang-switch:hover {
        background-color: var(--primary-white);
        border-color: var(--text-dark);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    /* Make sure overlay works properly */
    .menu-overlay.active {
        display: block !important;
        opacity: 1;
        z-index: 1000;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-wrapper {
        padding: 1rem 0;
    }
    
    .carousel {
        border-radius: 12px;
    }
    
    .carousel-slide {
        height: 450px;
        border-radius: 12px;
    }
    
    .carousel-slide h2 {
        font-size: 1.8rem;
    }
    
    .carousel-slide p {
        font-size: 1rem;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-arrow.prev {
        left: 0.5rem;
    }
    
    .carousel-arrow.next {
        right: 0.5rem;
    }
    
    /* Stack logo text under the logo image on mobile */
    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .logo-text-wrapper {
        max-width: 200px;
    }
    
    .logo-text-main {
        white-space: normal;
        font-size: 0.9rem;
    }
    
    .logo-text-sub {
        white-space: normal;
        font-size: 0.45rem;
    }
    
    .header-content {
        gap: 0.5rem;
        justify-content: space-between;
    }
}

/* Overlay for mobile menu */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.menu-overlay.active {
    display: none;
    opacity: 1;
}

@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
    
    .mobile-lang-switch {
        display: none !important;
    }
    
    .desktop-lang-switch {
        display: block !important;
    }
}

