/*!
 * TUM Corporation — Interface
 * Anonyme C&D · Codes & Design
 * © 2026
 */

:root {
    --primary: #4361EE;
    --primary-dark: #3A56D4;
    --primary-light: #6B8AFF;
    --secondary: #1A1A2E;
    --accent: #F72585;
    --white: #FFFFFF;
    --light: #F8F9FA;
    --gray: #6C757D;
    --gray-light: #E9ECEF;
    --dark: #0D0D1A;
    --success: #25D366;
    --shadow: 0 4px 30px rgba(67, 97, 238, 0.15);
    --shadow-lg: 0 20px 60px rgba(67, 97, 238, 0.2);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

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

/* nav */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; padding: 16px 0;
    transition: var(--transition); background: transparent;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.nav-logo { display: flex; align-items: center; gap: 12px; z-index: 1001; }
.nav-logo img { height: 45px; width: auto; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.nav-logo span {
    font-family: 'Poppins', sans-serif; font-weight: 800;
    font-size: 1.1rem; color: var(--white); transition: var(--transition);
}
.navbar.scrolled .nav-logo span { color: var(--secondary); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
    font-size: 0.95rem; font-weight: 500;
    color: rgba(255, 255, 255, 0.9); position: relative; padding: 4px 0;
}
.navbar.scrolled .nav-links a { color: var(--secondary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px; background: var(--primary); transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--primary-light); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }

.nav-cta {
    background: var(--primary) !important; color: var(--white) !important;
    padding: 10px 24px !important; border-radius: 50px !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-2px); box-shadow: var(--shadow); }
.nav-cta::after { display: none !important; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; z-index: 1001; background: none; border: none; padding: 4px;
}
.nav-toggle span { width: 28px; height: 3px; background: var(--white); border-radius: 3px; transition: var(--transition); }
.navbar.scrolled .nav-toggle span { background: var(--secondary); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.lang-switch { display: flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, 0.15); border-radius: 50px; padding: 4px; }
.navbar.scrolled .lang-switch { background: var(--gray-light); }
.lang-switch button {
    border: none; background: transparent; padding: 6px 12px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; cursor: pointer;
    color: rgba(255, 255, 255, 0.7); transition: var(--transition);
}
.navbar.scrolled .lang-switch button { color: var(--gray); }
.lang-switch button.active { background: var(--white); color: var(--primary); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.navbar.scrolled .lang-switch button.active { background: var(--primary); color: var(--white); }

/* hero */
.hero {
    min-height: 100vh; display: flex; align-items: center; position: relative;
    background: linear-gradient(135deg, var(--secondary) 0%, #16213E 50%, var(--primary) 100%);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.3) 0%, transparent 70%);
    border-radius: 50%; animation: pulse 8s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(247, 37, 133, 0.15) 0%, transparent 70%);
    border-radius: 50%; animation: pulse 10s ease-in-out infinite reverse;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0.8; } }

.hero .container {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-content { color: var(--white); }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 500; margin-bottom: 24px; color: var(--primary-light);
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 36px; max-width: 500px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; border-radius: 50px;
    font-size: 1rem; font-weight: 600; font-family: 'Inter', sans-serif;
    border: none; cursor: pointer; transition: var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 20px rgba(67, 97, 238, 0.4); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(67, 97, 238, 0.5); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.3); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-3px); }
.btn-whatsapp { background: var(--success); color: var(--white); box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { background: #20bd5a; transform: translateY(-3px); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-card {
    background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px; padding: 40px; width: 100%; max-width: 450px;
}
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-item {
    text-align: center; padding: 20px 10px;
    background: rgba(255, 255, 255, 0.05); border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.stat-number {
    font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 800;
    color: var(--primary-light); display: block; line-height: 1;
}
.stat-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-top: 6px; }
.hero-stats-caption {
    text-align: center; margin-top: 16px;
    font-size: 0.8rem; color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* sections */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(67, 97, 238, 0.08); color: var(--primary);
    padding: 8px 20px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 16px;
}
.section-header h2 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; color: var(--gray); max-width: 700px; margin: 0 auto; }

/* about */
.about { background: var(--light); }

.about-intro-grid {
    display: grid; grid-template-columns: 0.8fr 1.2fr;
    gap: 60px; align-items: center; margin-bottom: 64px;
}

.about-mascotte-side {
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.mascotte-img {
    width: 100%; max-width: 340px;
    object-fit: contain; filter: drop-shadow(0 10px 30px rgba(67, 97, 238, 0.2));
}

.about-floating {
    background: var(--white); border-radius: 16px; padding: 14px 24px;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
    margin-top: 24px;
}
.about-floating .icon {
    width: 44px; height: 44px; min-width: 44px; background: rgba(67, 97, 238, 0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}
.about-floating .text strong { display: block; font-size: 1rem; }
.about-floating .text span { font-size: 0.82rem; color: var(--gray); }

.about-text-side { display: flex; flex-direction: column; gap: 0; }
.about-lead {
    font-size: 1.08rem; color: var(--secondary); line-height: 1.8;
    margin-bottom: 16px; font-weight: 500;
}
.about-body {
    font-size: 0.95rem; color: var(--gray); line-height: 1.85;
    margin-bottom: 16px;
}
.about-body strong { color: var(--secondary); }

.about-slogan-banner {
    margin-top: 8px; padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px; color: var(--white);
}
.about-slogan-banner span {
    font-family: 'Poppins', sans-serif; font-weight: 700;
    font-size: 0.9rem; letter-spacing: 0.5px; line-height: 1.5;
}

.about-pillars {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.about-pillar {
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius); padding: 36px 28px; text-align: center;
    transition: var(--transition); position: relative; overflow: hidden;
}
.about-pillar::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0); transition: var(--transition);
}
.about-pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.about-pillar:hover::before { transform: scaleX(1); }

.pillar-icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(67, 97, 238, 0.05));
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    color: var(--primary); transition: var(--transition);
}
.about-pillar:hover .pillar-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}
.about-pillar h4 { font-size: 1.1rem; margin-bottom: 12px; color: var(--secondary); }
.about-pillar p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

/* services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.service-card {
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius); overflow: hidden;
    transition: var(--transition); position: relative; cursor: pointer;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0); transition: var(--transition); z-index: 2;
}
.service-card:hover { border-color: var(--primary); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

.service-card-preview { padding: 0; }
.service-img-wrapper {
    width: 100%; height: 200px; overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}
.service-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card:hover .service-img-wrapper img { transform: scale(1.08); }

.service-card-preview h3 {
    font-size: 1.05rem; color: var(--secondary);
    padding: 16px 20px 6px; margin: 0;
}
.service-toggle-hint {
    display: block; padding: 0 20px 16px;
    font-size: 0.8rem; color: var(--primary); font-weight: 500;
    opacity: 0; transition: var(--transition);
}
.service-card:hover .service-toggle-hint { opacity: 1; }

.service-card-detail {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
    justify-content: center; align-items: center; padding: 40px 20px;
}
.service-card-detail.active { display: flex; flex-direction: column; }

.service-card-detail h3 {
    font-size: 1.8rem; color: var(--white); margin-bottom: 24px; text-align: center;
}
.service-card-detail p {
    font-size: 1rem; color: rgba(255, 255, 255, 0.85);
    line-height: 1.9; max-width: 700px; margin-bottom: 16px; text-align: justify;
}
.service-close-btn {
    margin-top: 20px; padding: 12px 36px; border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.4); background: transparent;
    color: var(--white); font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif;
}
.service-close-btn:hover { background: var(--white); color: var(--secondary); }

/* why-us */
.why-us {
    background: linear-gradient(135deg, var(--secondary) 0%, #16213E 100%);
    color: var(--white); position: relative; overflow: hidden;
}
.why-us::before {
    content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(67, 97, 238, 0.2) 0%, transparent 60%);
}
.why-us .section-tag { background: rgba(255, 255, 255, 0.1); color: var(--primary-light); }
.why-us .section-header h2 { color: var(--white); }
.why-us .section-header p { color: rgba(255, 255, 255, 0.6); }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; z-index: 1; }
.why-card {
    background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius);
    padding: 36px 24px; text-align: center; transition: var(--transition);
}
.why-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-6px); border-color: rgba(67, 97, 238, 0.4); }
.why-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin: 0 auto 20px; color: var(--white);
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why-card p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); line-height: 1.7; }

/* careers */
.careers { background: var(--light); padding: 0; min-height: 0; overflow: hidden; }
.careers-content { animation: fadeSlide 0.5s ease forwards; }
.careers-content[style*="display: none"] + .careers-placeholder { display: block; }

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

.careers-content .section-header { padding-top: 60px; }

.careers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.career-card {
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius); padding: 32px; transition: var(--transition);
}
.career-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.career-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.career-header h3 { font-size: 1.1rem; }
.career-badge {
    background: rgba(67, 97, 238, 0.08); color: var(--primary);
    padding: 4px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; white-space: nowrap;
}
.career-card p { color: var(--gray); font-size: 0.92rem; margin-bottom: 20px; }
.career-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.career-meta span { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--gray); }
.career-meta svg { width: 16px; height: 16px; color: var(--primary); }

.career-form-section {
    margin-top: 48px; background: var(--white);
    border: 1px solid var(--gray-light); border-radius: var(--radius);
    padding: 40px;
}
.career-form-section h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--secondary); }
.career-form-section > p { color: var(--gray); margin-bottom: 28px; }
.career-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.career-form .btn { width: 100%; justify-content: center; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info { padding-right: 20px; }
.contact-info h2 { font-size: 2.2rem; margin-bottom: 16px; }
.contact-info > p { color: var(--gray); margin-bottom: 36px; font-size: 1.05rem; }

.contact-details { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.contact-item { display: flex; gap: 16px; align-items: center; }
.contact-item .icon {
    width: 52px; height: 52px; min-width: 52px;
    background: rgba(67, 97, 238, 0.1); border-radius: 14px;
    display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: 0.9rem; color: var(--gray); }
.contact-item a:hover { color: var(--primary); }

.contact-socials { display: flex; gap: 12px; }
.contact-socials a {
    width: 44px; height: 44px; background: var(--gray-light);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--gray); transition: var(--transition);
}
.contact-socials a:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }

.contact-form-card {
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius); padding: 40px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { position: relative; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; color: var(--secondary); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px 18px; border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm); font-size: 0.95rem; font-family: 'Inter', sans-serif;
    color: var(--secondary); background: var(--white); transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}
.form-group textarea { height: 130px; resize: vertical; }
.form-submit { grid-column: 1 / -1; display: flex; gap: 12px; margin-top: 8px; }
.form-submit .btn { flex: 1; justify-content: center; }

/* footer */
.footer { background: var(--dark); color: rgba(255, 255, 255, 0.7); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand .logo img { height: 40px; border-radius: 8px; }
.footer-brand .logo span { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--white); }
.footer-brand > p { font-size: 0.92rem; line-height: 1.8; margin-bottom: 24px; }
.footer h4 {
    color: var(--white); font-size: 1rem; margin-bottom: 20px;
    position: relative; padding-bottom: 12px;
}
.footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 3px; background: var(--primary); border-radius: 3px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.9rem; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--primary-light); transform: translateX(4px); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 24px 0;
    display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--primary-light); }

/* float */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 60px; height: 60px; background: var(--success); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition); animation: whatsappBounce 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5); }
@keyframes whatsappBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.whatsapp-float svg { width: 30px; height: 30px; }

/* top */
.scroll-top {
    position: fixed; bottom: 30px; right: 100px; z-index: 998;
    width: 46px; height: 46px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--white);
    box-shadow: var(--shadow); opacity: 0; visibility: hidden;
    transition: var(--transition); cursor: pointer; border: none;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* modal */
.service-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(10px);
    justify-content: center; align-items: center; padding: 40px 20px;
    opacity: 0; transition: opacity 0.3s ease;
}
.service-overlay.active { display: flex; opacity: 1; }
.service-overlay-content {
    background: var(--white); border-radius: 20px; max-width: 750px; width: 100%;
    max-height: 85vh; overflow-y: auto; padding: 48px 40px; position: relative;
    animation: modalIn 0.4s ease forwards;
}
@keyframes modalIn { from { transform: translateY(30px) scale(0.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

.service-overlay-content h3 {
    font-size: 1.6rem; color: var(--secondary); margin-bottom: 24px;
    padding-bottom: 16px; border-bottom: 3px solid var(--primary);
}
.service-overlay-content p {
    font-size: 0.95rem; color: var(--gray); line-height: 1.9; margin-bottom: 16px; text-align: justify;
}
.service-overlay-close {
    position: absolute; top: 16px; right: 16px;
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: var(--gray-light); cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: var(--transition);
    font-size: 1.2rem; color: var(--gray);
}
.service-overlay-close:hover { background: var(--primary); color: var(--white); }

/* responsive */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { order: 1; }
    .hero-visual { order: 2; }
    .hero p { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .about-intro-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-pillars { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* navbar toujours opaque et visible en mobile */
    .navbar {
        background: #1A1A2E !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 12px 0;
    }
    .navbar.scrolled {
        background: #1A1A2E !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 2px 20px rgba(0,0,0,0.4);
        padding: 12px 0 !important;
    }
    /* quand le menu est ouvert, la navbar passe au dessus de l overlay */
    .navbar.menu-open { z-index: 10001 !important; }

    .nav-logo span { color: #ffffff !important; }
    .navbar.scrolled .nav-logo span { color: #ffffff !important; }
    .nav-toggle span { background: #ffffff !important; }
    .nav-toggle { display: flex; }

    /* overlay menu plein ecran iOS/Android */
    .nav-links {
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        z-index: 9999;
        background: #1A1A2E;
        flex-direction: column; justify-content: center; align-items: center;
        gap: 28px;
        opacity: 0; visibility: hidden; pointer-events: none;
        transform: translateX(100%);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.35s ease;
        list-style: none;
    }
    .nav-links.active {
        opacity: 1; visibility: visible; pointer-events: auto;
        transform: translateX(0);
    }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { font-size: 1.3rem; color: rgba(255,255,255,0.9) !important; display: block; padding: 12px 0; }
    .nav-links a:hover { color: #6B8AFF !important; }
    .nav-links .nav-cta { display: inline-block; padding: 12px 32px !important; margin-top: 8px; }
    .lang-switch { background: rgba(255,255,255,0.1); }
    .lang-switch button { color: rgba(255,255,255,0.7); }
    .lang-switch button.active { background: #ffffff; color: #4361EE; }

    /* typographie mobile */
    .hero h1 { font-size: 1.8rem; }
    section { padding: 60px 0; }
    .section-header h2 { font-size: 1.65rem; }
    .section-header { margin-bottom: 40px; }
    .section-header p { font-size: 0.95rem; }

    /* grilles 2 colonnes sur tous les mobiles */
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .about-pillars { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .contact-grid { grid-template-columns: 1fr; }
    .careers-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .career-form .form-grid { grid-template-columns: 1fr; }

    .hero-card { padding: 24px 16px; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.75rem; }

    /* cards compactes */
    .why-card { padding: 20px 14px; }
    .why-icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 14px; }
    .why-card h3 { font-size: 0.9rem; margin-bottom: 6px; }
    .why-card p { font-size: 0.78rem; line-height: 1.5; }

    .about-pillar { padding: 20px 14px; }
    .about-pillar h4 { font-size: 0.9rem; margin-bottom: 8px; }
    .about-pillar p { font-size: 0.78rem; line-height: 1.6; }
    .pillar-icon { width: 48px; height: 48px; margin-bottom: 14px; }

    .service-img-wrapper { height: 120px; }
    .service-card-preview h3 { font-size: 0.82rem; padding: 10px 12px 4px; line-height: 1.3; }
    .service-toggle-hint { padding: 0 12px 10px; font-size: 0.72rem; }

    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .service-overlay-content { padding: 28px 20px; margin: 16px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .section-header h2 { font-size: 1.4rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .contact-form-card { padding: 20px; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-number { font-size: 1.4rem; }
    .form-submit { flex-direction: column; }
}

@media (max-width: 360px) {
    .services-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.3rem; }
    .section-header h2 { font-size: 1.25rem; }
}
