/* ===== VARIABLES ===== */
:root {
    --primary-color: #1e293b;
    --primary-dark: #0f172a;
    --primary-light: #334155;
    --accent-color: #475569;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-dark: #0a0a0a;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0;
}

.navbar.scrolled .nav-content {
    padding: 8px 0;
}

.navbar.scrolled .logo {
    font-size: 18px;
}

.navbar.scrolled .logo-image {
    height: 45px;
}

.navbar.scrolled .logo-text {
    font-size: 16px;
}

.navbar.scrolled .logo-sub {
    font-size: 11px;
}

.navbar.scrolled .nav-menu a {
    font-size: 13px;
    line-height: 1.5;
}

.navbar.scrolled .btn-contact {
    padding: 6px 16px;
    font-size: 13px;
}

.navbar.scrolled .btn-contact span {
    transform: translateY(1px);
}

.navbar.scrolled .lang-btn {
    padding: 4px 10px;
    font-size: 11px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 900;
    font-size: 28px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: 65px;
    width: auto;
    transition: var(--transition);
}

.logo-text {
    color: var(--primary-color);
    letter-spacing: -0.5px;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    font-family: 'Libre Baskerville', serif;
    padding-left: 16px;
    border-left: 2px solid var(--primary-color);
}

.logo-sub {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 400;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
}

.nav-menu li:nth-child(1) a {
    min-width: 80px;
}

.nav-menu li:nth-child(2) a {
    min-width: 90px;
}

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

.nav-menu a:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:not(.btn-contact):hover::after {
    width: 100%;
}

.btn-contact {
    padding: 10px 24px;
    background: var(--primary-color);
    color: var(--text-white) !important;
    border-radius: 8px;
    transition: var(--transition);
    min-width: 140px;
    text-align: center;
}

.btn-contact span {
    display: inline-block;
    transform: translateY(1px);
}

.btn-contact:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-contact::after {
    display: none;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    color: var(--text-dark);
    position: relative;
    min-width: 45px;
    text-align: center;
}

.lang-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-color);
}

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

.lang-btn.active {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 2px 4px rgba(30, 41, 59, 0.2);
}

.lang-btn.active::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #e8eef7 100%);
    z-index: -1;
}

.hero-image-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    background-image: url('../images/business.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 15%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,1) 50%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 15%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,1) 50%);
}

/* Fallback for browsers that don't support WebP */
.no-webp .hero-image-bg {
    background-image: url('../images/business.jpg');
}

.hero-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 0;
    min-height: 600px;
    position: relative;
}

.hero-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    text-align: left;
    align-items: flex-start;
}

.hero-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-color);
    font-style: italic;
    line-height: 1.4;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
    min-height: 140px;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(255, 255, 255, 0.7);
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1.8;
    min-height: 110px;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8), 0 2px 8px rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* ===== SECTION COMMON ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(30, 41, 59, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    min-height: 35px;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

/* Each card spans 2 columns (3 cards × 2 = 6 columns) */
.service-card {
    grid-column: span 2;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(30, 41, 59, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.1);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    min-height: 35px;
}

.service-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.95rem;
    min-height: 65px;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li::before {
    content: '→';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-gray);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-top: 30px;
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose {
    background: var(--bg-white);
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-gray);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    min-height: 30px;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    min-height: 70px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: rgba(30, 41, 59, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    gap: 20px;
}

/* Prénom - Nom : 50-50 */
.form-row:nth-of-type(1) {
    grid-template-columns: 1fr 1fr;
}

/* Company - Nombre d'employés : 60-40 */
.form-row:nth-of-type(2) {
    grid-template-columns: 63fr 37fr;
}

/* Email - Phone : 60-40 */
.form-row:nth-of-type(3) {
    grid-template-columns: 55fr 45fr;
}

/* Responsive: passe à la ligne sur écrans moyens pour éviter débordement placeholder */
@media (max-width: 992px) {
    .form-row:nth-of-type(2),
    .form-row:nth-of-type(3) {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive mobile: tous les champs en pleine largeur */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr !important;
    }
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* reCAPTCHA v3 badge positioning (bottom right by default) */
/* You can hide it if you display the reCAPTCHA branding elsewhere */
.grecaptcha-badge {
    visibility: visible;
    opacity: 0.8;
}

.grecaptcha-badge:hover {
    opacity: 1;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-white);
    padding: 48px 40px;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s ease;
    position: relative;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
}

.modal-icon.success {
    background: rgba(30, 41, 59, 0.1);
    color: var(--primary-color);
}

.modal-icon.success::before {
    content: '✓';
    animation: checkmark 0.5s ease 0.2s both;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-icon.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-icon.error::before {
    content: '✕';
    animation: checkmark 0.5s ease 0.2s both;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.modal-message {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

.modal-close-btn {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 14px 40px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: block;
    margin: 0 auto;
}

.modal-close-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.modal-close-btn:active {
    transform: translateY(0);
}

/* Loading spinner */
.loader {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== ABOUT PAGE ===== */
.about-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.7)), url('../images/business2.webp');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    padding-top: 120px;
    padding-bottom: 80px;
    text-align: center;
}

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 24px;
    min-height: 60px;
}

.about-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-white);
    font-style: italic;
    font-weight: 600;
    line-height: 1.6;
    min-height: 55px;
}

.company-intro {
    padding: 100px 0;
    background: var(--bg-white);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-content .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.intro-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.intro-highlight {
    font-size: 1.25rem !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    font-style: italic;
    margin-top: 20px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.services-detail {
    padding: 100px 0;
    background: var(--bg-gray);
}

.service-detail-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.service-detail-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: rgba(30, 41, 59, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.service-detail-icon svg {
    width: 40px;
    height: 40px;
}

.service-detail-content {
    flex: 1;
}

.service-detail-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-detail-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-detail-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.service-detail-content p:last-child {
    margin-bottom: 0;
}

.cta-section {
    padding: 80px 0;
    background: var(--primary-color);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-white);
    margin-bottom: 32px;
    font-weight: 600;
    line-height: 1.5;
}

.cta-content .btn {
    background: var(--text-white);
    color: var(--primary-color);
}

.cta-content .btn:hover {
    background: var(--bg-gray);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-left {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 900;
    font-size: 24px;
    flex-shrink: 0;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-text {
    color: var(--text-white);
    font-family: 'Libre Baskerville', serif;
    padding-left: 16px;
    border-left: 2px solid var(--text-white);
}

.footer-logo .logo-sub {
    color: rgba(255, 255, 255, 0.7);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 14px;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--text-white);
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-image-bg {
        width: 60%;
        mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,1) 55%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,1) 55%);
    }

    .hero-wrapper {
        padding: 60px 0;
        min-height: 500px;
    }

    .hero-content {
        max-width: 550px;
    }

    .hero-title {
        min-height: 120px;
    }

    .hero-description {
        min-height: 95px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reset grid positioning on tablets */
    .service-card {
        grid-column: auto !important;
    }

    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
    }

    .navbar.scrolled {
        padding: 0;
    }

    .navbar.scrolled .nav-content {
        padding: 12px 0;
    }

    .navbar.scrolled .logo {
        font-size: 18px;
    }

    .navbar.scrolled .logo-sub {
        font-size: 11px;
    }

    .nav-content {
        padding: 25px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        width: 70%;
        max-width: 280px;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 24px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 999;
        gap: 20px;
    }

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

    .navbar.scrolled .nav-menu {
        width: 30%;
        max-width: 220px;
        padding: 20px 12px;
        gap: 12px;
    }

    .navbar.scrolled .nav-menu a {
        font-size: 12px;
        min-width: auto !important;
    }

    .navbar.scrolled .language-switcher {
        padding: 3px;
        margin-top: 12px;
    }

    .navbar.scrolled .lang-btn {
        padding: 4px 8px;
        font-size: 10px;
        min-width: 32px;
    }

    .language-switcher {
        width: fit-content;
        margin: 20px auto 0;
        justify-content: center;
        padding: 4px;
        border-top: 1px solid var(--border-color);
    }

    .hamburger {
        display: flex;
        order: -1;
        margin-right: auto;
        margin-left: 0;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-image {
        height: 50px;
    }

    .logo-text {
        font-size: 16px;
    }

    .navbar.scrolled .logo-image {
        height: 35px;
    }

    .navbar.scrolled .logo-text {
        font-size: 13px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-image-bg {
        width: 70%;
        opacity: 0.4;
        mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,1) 65%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,1) 65%);
    }

    .hero-wrapper {
        padding: 40px 0;
        min-height: 400px;
    }

    .hero-title {
        min-height: 110px;
        font-size: 1.6rem;
    }

    .hero-description {
        min-height: 120px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-left {
        max-width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .footer-copyright {
        text-align: center;
    }

    section {
        padding: 60px 0;
    }

    .service-detail-card {
        flex-direction: column;
        padding: 32px;
    }

    .service-detail-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .service-detail-icon svg {
        width: 30px;
        height: 30px;
    }

    .service-detail-content h3 {
        font-size: 1.5rem;
    }

    .service-detail-content h4 {
        font-size: 1.1rem;
    }

    .company-intro,
    .services-detail {
        padding: 60px 0;
    }

    .about-hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .logo {
        font-size: 22px;
    }

    .logo-text {
        font-size: 14px;
    }

    .logo-sub {
        font-size: 14px;
    }
}

/* ===== KSB CONSULTING SPARKLE EFFECT ===== */
.ksb-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ksb-link:hover {
    opacity: 1 !important;
}

.ksb-particles-container {
    overflow: visible !important;
}

.ksb-particle {
    will-change: transform, opacity;
}
