/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --primary-color: #b0b8c4; /* Cinza Grafite Claro */
    --primary-hover: #d1d5db;
    --secondary-color: #00d2ff;
    --bg-dark: #0a192f;       /* Deep Navy */
    --bg-darker: #020c1b;
    --bg-card: #112240;
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.center {
    text-align: center;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-darker);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(176, 184, 196, 0.2);
}

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

.btn-secondary:hover {
    background-color: rgba(176, 184, 196, 0.1);
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    padding: 1.5rem 0;
}

.header.scrolled {
    background: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

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

.logo img {
    height: 70px;
    max-width: 100%;
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 45px;
}

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.btn-contato {
    background: var(--primary-color);
    color: var(--bg-darker);
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.nav-link.btn-contato::after {
    display: none;
}
.nav-link.btn-contato:hover {
    background: var(--primary-hover);
    color: var(--bg-darker);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    /* Use a dark radial gradient for default background if image is missing */
    background: linear-gradient(135deg, var(--bg-darker) 0%, #112240 100%);
    background-image: url('assets/images/hero-bg.png'); /* Expected user image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 12, 27, 0.75);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 5rem; /* Account for header */
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(176, 184, 196, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(176, 184, 196, 0.5);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: var(--bg-darker);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(176, 184, 196, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-darker);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.experience-badge .text {
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.director-profile {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(204, 214, 246, 0.1);
    display: flex;
    gap: 1.5rem;
}

.director-profile .director-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
}

.director-profile h3 {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.director-profile span {
    color: var(--primary-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.8rem;
}

.director-profile .small-text {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(176, 184, 196, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-icon {
    font-size: 2.5rem;
    color: #8892b0; /* Cor cinza conforme solicitado */
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: translateY(-5px) scale(1.1);
    color: var(--text-main); /* Dá um leve destaque ao passar o mouse */
}

.service-card h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 0;
    font-size: 1.3rem;
    transition: var(--transition);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: all 0.4s ease;
}

.service-card:hover p {
    max-height: 150px;
    opacity: 1;
    margin-top: 1rem;
}

/* ==========================================================================
   Projects / Clients Section
   ========================================================================== */
.projects {
    background-color: #ffffff;
    color: #333333;
}

.projects .section-title {
    color: #0a192f;
}

.projects p {
    color: #555555;
}

.certification-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(10, 25, 47, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(176, 184, 196, 0.2);
    width: fit-content;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 3rem;
}

.client-logo img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    transition: var(--transition);
}

.client-logo img:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    position: relative;
    background-image: url('assets/images/hero-bg.png'); /* Reuse hero bg or projects bg */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
}

.cta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 25, 47, 0.85);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--white);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(176, 184, 196, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.info-item p, .info-item a {
    color: var(--text-muted);
}
.info-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(204, 214, 246, 0.1);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    background: rgba(10, 25, 47, 0.8);
}

.map-container {
    width: 100%;
    height: auto;
    margin-top: 4rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(176, 184, 196, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(85%); /* Makes map dark theme compatible */
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-darker);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
}

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

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

.footer h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(204, 214, 246, 0.1);
    color: var(--text-main);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--bg-darker);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #010813;
    padding: 1.5rem 0;
    text-align: center;
}
.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Subpages (Services)
   ========================================================================== */
.page-header {
    height: 40vh;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--bg-darker);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    margin-top: 80px; /* offset for fixed header */
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 3rem;
    position: relative;
    z-index: 2;
}

.page-content {
    padding: 80px 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-card-link {
    display: block;
    border-radius: 8px;
}

.service-card-link:hover {
    transform: none; /* Let the inner card handle the transform */
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
/* Initial states for intersection observer animations */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }

/* Active states */
.fade-in-up.active { opacity: 1; transform: translateY(0); }
.fade-in-left.active { opacity: 1; transform: translateX(0); }
.fade-in-right.active { opacity: 1; transform: translateX(0); }

/* Media Queries */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .about-grid, .contact-grid, .footer-content { grid-template-columns: 1fr; gap: 3rem; }
    .about-image { margin-bottom: 2rem; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-darker);
        width: 80%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 0 10px rgba(0,0,0,0.5);
        padding-top: 8rem;
        z-index: -1;
    }
    
    .nav-menu.active { left: 0; }
    
    .nav-item { margin: 1.5rem 0; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    
    .contact-form { padding: 2rem 1.5rem; }
}

/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(176, 184, 196, 0.2);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.blog-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.4;
}

.blog-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Individual Blog Post */
.blog-post-header {
    padding: 120px 0 60px;
    background-color: var(--bg-card);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.blog-post-header h1 {
    font-size: 2.5rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.3;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-to-blog:hover {
    color: var(--primary-hover);
    transform: translateX(-5px);
}

.blog-post-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2 {
    color: var(--text-main);
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
}

.post-body h3 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

.post-body ul {
    margin: 0 0 2rem 2rem;
    list-style-type: disc;
}

.post-body ul li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

.post-image {
    margin: 3rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.image-caption {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    font-style: italic;
}

/* Author Meta */
.author-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--bg-darker);
    font-size: 1.2rem;
    overflow: hidden;
    padding: 0;
}
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-info h4 {
    color: var(--text-main);
    margin: 0 0 0.2rem 0;
    font-size: 1.1rem;
}
.author-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* ==========================================================================
   Divisions Tabs
   ========================================================================== */
.divisions-tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    background-color: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid rgba(176, 184, 196, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-main);
    border-color: rgba(176, 184, 196, 0.5);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-darker);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(176, 184, 196, 0.3);
}

.tabs-content {
    background-color: var(--bg-card);
    border: 1px solid rgba(176, 184, 196, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.5);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
    display: block;
}

.division-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(176, 184, 196, 0.2);
    padding-bottom: 0.5rem;
}

.division-sub {
    margin-bottom: 1.5rem;
}

.division-sub h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.division-sub ul {
    list-style-type: none;
    padding-left: 0;
}

.division-sub ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.division-sub ul li::before {
    content: '\f101'; /* FontAwesome angle-double-right */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .tabs-header {
        flex-direction: column;
    }
    .tab-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Dropdown Menu & Language Switch
   ========================================================================== */

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

/* Dropdown Content (Hidden by Default) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(2, 12, 27, 0.7);
    border-radius: 8px;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    border: 1px solid rgba(176, 184, 196, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown Links */
.dropdown-menu li {
    padding: 0;
    border-bottom: 1px solid rgba(176, 184, 196, 0.05);
}

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

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--secondary-color);
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    background: rgba(176, 184, 196, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
}

.lang-switch a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.lang-switch a:hover {
    color: var(--secondary-color);
}

.lang-switch a.active {
    color: var(--text-main);
}

.lang-separator {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile Dropdown Fix */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: rgba(255,255,255,0.02);
        display: none;
        opacity: 1;
        transform: none;
        margin-left: 1rem;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
}
/* ==========================================================================
   Mega Menu Overrides
   ========================================================================== */

.nav-item.dropdown {
    position: static; /* Allows mega menu to span width */
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 90vw;
    max-width: 1200px;
    background-color: var(--bg-card);
    box-shadow: 0 15px 35px rgba(2, 12, 27, 0.9);
    border-radius: 12px;
    z-index: 1000;
    padding: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

..dropdown-menu::before {
    content: '';
    position: absolute;
    top: -75px; 
    left: 10;
    right: 10;
    height: 75px; 
    background: transparent;
}

    .dropdown.active .dropdown-menu {
        display: flex;
        justify-content: space-between;
        gap: 2rem;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

.dropdown:hover .dropdown-menu {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-column {
    flex: 1;
}

.mega-menu-column h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(176, 184, 196, 0.1);
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column li {
    border: none !important; /* Override previous */
    padding: 0 !important;
}

.mega-menu-column a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0 !important;
    color: var(--text-main) !important;
    font-size: 0.9rem !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.mega-menu-column a i {
    font-size: 0.7rem;
    color: var(--secondary-color);
    margin-right: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.mega-menu-column a:hover {
    background-color: transparent !important;
    color: var(--secondary-color) !important;
    transform: translateX(5px) !important;
}

.mega-menu-column a:hover i {
    opacity: 1;
}

/* Mobile Fixes for Mega Menu */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        transform: none;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    
    .dropdown:hover .dropdown-menu {
        transform: none;
    }
    
    .mega-menu-column h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* ================= Mobile Responsive Styles ================= */
@media (max-width: 992px) {
    /* Show hamburger, hide desktop menu */
    .hamburger {
        display: block;
    }
    .nav-menu {
        display: none;
    }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background: var(--bg-card);
        padding: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-shadow: 0 10px 20px rgba(2,12,27,0.5);
    }
    .logo img {
        height: 40px;
    }
    .header.scrolled .logo img {
        height: 34px;
    }
    .map-container img {
        max-width: 777px;
        width: 100%;
        height: auto;
        margin: auto;
        display: block;
    }
}

