:root {
    --bg-color: #fafcff; /* Pristine light theme base */
    --bg-surface: #ffffff;
    --text-color: #2d3748;
    --text-muted: #718096;
    --accent-primary: #3182ce;
    --accent-secondary: #00b5d8;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(49, 130, 206, 0.15);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(49, 130, 206, 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.7;
    width: 100vw;
    display: flex; /* prevents wrapper bugs */
    flex-direction: column;
}

main {
    width: 100%;
}

/* Background elements */
.light-bg {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
    animation: drift 20s infinite alternate ease-in-out;
}

.light-bg-1 {
    top: -150px;
    left: -200px;
    background: #e6fffa;
}

.light-bg-2 {
    bottom: -200px;
    right: -100px;
    background: #ebf8ff;
    animation-delay: -5s;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* Layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 160px; /* Accommodate new logo dimensions */
    height: auto;
}

.company-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-color);
    display: none; /* Hide text to prioritize the new text logo visually, or keep if you like */
}

@media (min-width: 1200px) {
    .company-name {
        display: none; /* the new logo is wide enough, text is redundant */
    }
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7fafc;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: bold;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    padding: 2px 5px;
}

.lang-switch button.active {
    color: var(--accent-primary);
}

.switch-track {
    width: 30px;
    height: 14px;
    background: #e2e8f0;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.switch-slider {
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: 0.3s ease;
}

nav[data-lang="en"] .switch-slider {
    left: 18px;
    background: var(--accent-secondary);
}

/* Sections */
main {
    display: flex;
    flex-direction: column;
}

section {
    padding: 100px 10vw;
    position: relative;
}

.section-bg {
    background: #ffffff;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    color: #2d3748;
}

.section-title.center-align {
    text-align: center;
    display: block;
}

.section-title.left-align {
    text-align: left;
}

.section-title.center-align::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 45%;
    width: 10%;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.section-title.left-align::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}


/* Hero & Overview Splits */
.hero, .overview {
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-split, .overview-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text-col, .overview-text-col {
    flex: 1;
    z-index: 10;
}

.hero-image-col, .overview-image-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.featured-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-maintitle {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
    color: #1a202c;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.sub-text {
    font-size: 1.1rem;
    color: var(--text-muted);
}


/* Typography animations */
.typing-container {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-size: 1.5rem;
    min-height: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.9rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.5);
    color: white;
}

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

.outline-btn:hover {
    background: rgba(49, 130, 206, 0.05);
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 30px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-align: left;
    box-shadow: var(--shadow-soft);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(49, 130, 206, 0.3);
}

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

.service-card h4 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: #2d3748;
    font-weight: 700;
}

/* 3D Flip Cards */
.flip-card {
    background: transparent;
    perspective: 1000px;
    padding: 0; /* overridden since inner handles padding */
    min-height: 320px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: var(--shadow-soft);
}

.flip-card-front {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.service-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.flip-card-back {
    background: linear-gradient(135deg, #ffffff, #f7fafc);
    color: var(--text-color);
    transform: rotateY(180deg);
    border: 1px solid var(--glass-border);
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Service Card Colored Variants Front/Back matching */
.color-blue:hover .flip-card-front, .color-blue:hover .flip-card-back { border-color: #3182ce; box-shadow: 0 20px 40px rgba(49, 130, 206, 0.2); }
.color-purple:hover .flip-card-front, .color-purple:hover .flip-card-back { border-color: #805ad5; box-shadow: 0 20px 40px rgba(128, 90, 213, 0.2); }
.color-orange:hover .flip-card-front, .color-orange:hover .flip-card-back { border-color: #ed8936; box-shadow: 0 20px 40px rgba(237, 137, 54, 0.2); }
.color-green:hover .flip-card-front, .color-green:hover .flip-card-back { border-color: #38a169; box-shadow: 0 20px 40px rgba(56, 161, 105, 0.2); }
.color-pink:hover .flip-card-front, .color-pink:hover .flip-card-back { border-color: #d53f8c; box-shadow: 0 20px 40px rgba(213, 63, 140, 0.2); }
.color-yellow:hover .flip-card-front, .color-yellow:hover .flip-card-back { border-color: #ecc94b; box-shadow: 0 20px 40px rgba(236, 201, 75, 0.2); }
.color-cyan:hover .flip-card-front, .color-cyan:hover .flip-card-back { border-color: #00b5d8; box-shadow: 0 20px 40px rgba(0, 181, 216, 0.2); }
.color-red:hover .flip-card-front, .color-red:hover .flip-card-back { border-color: #e53e3e; box-shadow: 0 20px 40px rgba(229, 62, 62, 0.2); }

/* Locations */
.locations {
    background: #fafcff;
}

.locations-flex {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.location-card {
    min-width: 300px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-top: 4px solid var(--accent-primary);
}

.location-card h4 {
    color: var(--accent-primary);
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.city {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 15px 0;
    color: #2d3748;
    letter-spacing: -1px;
}

.country {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.phone {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1.1rem;
    background: rgba(49, 130, 206, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
}

.location-status {
    width: 12px;
    height: 12px;
    background: #38a169; /* refined green */
    border-radius: 50%;
    position: absolute;
    top: 25px;
    right: 25px;
}

.location-status.pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(56, 161, 105, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 161, 105, 0); }
}

/* Contact Form */
.cta {
    padding: 100px 10vw;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.cta-inner {
    text-align: left;
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    border: 1px solid #e2e8f0;
    padding: 60px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-inner h2 {
    font-size: 2.5rem;
    margin-top: 0;
    color: #2d3748;
}

.cta-inner p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    color: #2d3748;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
    background: #ffffff;
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Footer */
footer {
    background: #ffffff;
    padding: 60px 10vw 20px;
    border-top: 1px solid #edf2f7;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 30px;
}

.footer-col {
    max-width: 350px;
}

.footer-col p {
    color: var(--text-muted);
}

.contact-info p {
    font-family: var(--font-mono);
    color: #4a5568;
    margin: 5px 0;
}

.contact-info h5 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Academy Banner */
.academy-section {
    padding: 60px 5vw;
    background: #ffffff;
}

.academy-banner {
    background: linear-gradient(135deg, #fcebaf, #ffc9a8, #f5a3b7);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(245, 163, 183, 0.2);
}

.academy-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 60%);
    animation: rotateGradient 20s linear infinite;
    z-index: 1;
}

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

.academy-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.academy-title {
    font-size: 3rem;
    font-weight: 900;
    color: #e53e3e;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

.academy-subtitle {
    font-size: 1.5rem;
    color: #c53030;
    margin: 0 0 20px 0;
}

.academy-content p {
    color: #2d3748;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

.vibrant-btn {
    background: linear-gradient(90deg, #e53e3e, #dd6b20);
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(229, 62, 62, 0.4);
    font-size: 1.1rem;
    padding: 16px 40px;
}

.vibrant-btn:hover {
    box-shadow: 0 15px 35px rgba(229, 62, 62, 0.6);
    transform: translateY(-3px);
    color: white;
}

.academy-link {
    color: #e53e3e !important;
    font-weight: 800 !important;
    position: relative;
}

.academy-link::after {
    content: '★';
    position: absolute;
    top: -8px;
    right: -15px;
    font-size: 0.8rem;
    color: #ecc94b;
    animation: pulse-green 1.5s infinite;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    left: 30px;
    background-color: transparent; /* SVG handles the brand color */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    border-radius: 50%;
}

@media (max-width: 968px) {
    .hero-split, .overview-split {
        flex-direction: column;
        text-align: center;
    }
    .hero-text-col, .overview-text-col {
        order: 1;
    }
    .hero-image-col, .overview-image-col {
        order: 2;
        width: 100%;
    }
    .overview-split {
        flex-direction: column-reverse;
    }
    .hero-buttons {
        justify-content: center;
    }
    .section-title.left-align {
        text-align: center;
    }
    .section-title.left-align::after {
        left: 45%;
        width: 10%;
    }
    .academy-banner {
        padding: 40px 20px; /* Reduce padding to prevent overflow */
    }
    .academy-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    nav {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        overflow: hidden;
    }
    /* Make nav links a horizontal swipeable list to guarantee no overflow */
    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    .nav-links::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    .nav-links li {
        flex: 0 0 auto;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .logo {
        width: 140px;
    }
    section {
        padding: 60px 20px; /* Crucial: Reduce horizontal padding on mobile */
    }
    .cta {
        padding: 60px 20px; /* Target CTA padding */
    }
    .hero-maintitle { 
        font-size: 2.2rem; 
    }
    .academy-title { 
        font-size: 2rem; 
    }
    .academy-subtitle {
        font-size: 1.2rem;
    }
    .academy-banner {
        padding: 30px 15px;
        border-radius: 16px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-col {
        width: 100%;
    }
    .location-card {
        min-width: 100%; /* Prevents 300px min-width from breaking layout */
        width: 100%;
    }
    .services-grid {
        grid-template-columns: 1fr; /* Force 1 column on very small screens */
    }
    .flip-card-front, .flip-card-back {
        padding: 20px; /* Smaller padding on small cards */
    }
    .vibrant-btn {
        padding: 12px 25px; /* Optimize button sizes */
        width: 100%;
        display: block;
        text-align: center;
        box-sizing: border-box;
    }
    .whatsapp-float {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-maintitle { 
        font-size: 1.8rem; 
    }
    .section-title {
        font-size: 1.8rem;
    }
    .city {
        font-size: 1.8rem;
    }
}
