:root {
    /* Colors */
    --primary-color: #137fec;
    --primary-dark: #0b5cb6;
    --placeholder-bg: #e2e8f0;

    --secondary-color: #101922;
    /* Navy / Dark Blue */
    --accent-color: #e0f2fe;
    /* Light Blue highlight */

    --text-main: #0d141b;
    --text-muted: #4c739a;
    --text-light: #ffffff;

    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #101922;

    /* Spacing */
    --container-width: 1280px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 10px 25px -5px rgba(19, 127, 236, 0.3);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    /* Enforce no horizontal scroll */
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

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

.text-primary {
    color: var(--primary-color);
}

.text-white {
    color: var(--text-light);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.grid {
    display: grid;
}

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

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

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Components */

/* Header */
/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    backdrop-filter: none;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    /* Default white for transparent header */
    transition: color 0.3s ease;
}

.header.scrolled .logo {
    color: var(--secondary-color);
}

.logo img {
    transition: filter 0.3s ease;
    filter: brightness(0) invert(1);
    /* White logo on transparent bg */
}

.header.scrolled .logo img {
    filter: none;
    /* Original logo on white bg */
}

.logo svg {
    height: 32px;
    width: 32px;
    fill: var(--primary-color);
}

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

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    /* Default lighter text */
    transition: color 0.3s ease;
}

.header.scrolled .nav-link {
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--primary-color);
    /* Hover state might need adjustment */
}

.header:not(.scrolled) .nav-link:hover {
    color: white;
    /* Keep white on dark bg hover, or maybe accent color? */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-color);
}

/* Mobile Menu Button - Ensure visibility */
.mobile-menu-btn {
    color: white;
}

.header.scrolled .mobile-menu-btn {
    color: var(--text-main);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section with Video Background */
.hero {
    position: relative;
    padding-top: var(--header-height);
    /* Prevent overlap */
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    overflow: hidden;
}

/* Video Container */
.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Individual Video Elements */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    will-change: opacity;
}

/* Active video is visible */
.hero-video.active {
    opacity: 1;
    z-index: 1;
}

/* Video overlay for better text readability */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(16, 25, 34, 0.85), rgba(16, 25, 34, 0.5), rgba(16, 25, 34, 0.3));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    color: white;
}

.hero-subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* About Section */
.about-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--placeholder-bg);
}

.about-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    color: var(--secondary-color);
}

.about-card span.material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.about-video {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
}

/* Vitrine Section */
.vitrine-wrapper {
    position: relative;
    width: 100%;
    height: 800px;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--placeholder-bg);
    overflow: hidden;
}

.vitrine-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Services Section */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--placeholder-bg);
}

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

.service-image {
    height: 220px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 2rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 1rem;
}

.service-link:hover {
    gap: 0.75rem;
}

/* Contact Details */
.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Map Simulation */
.map-container {
    width: 100%;
    height: 100%;
    min-height: 450px;
    /* Slightly taller */
    background-color: var(--placeholder-bg);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

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

.footer h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: white;
}

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

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

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

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: white;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-desktop.active {
        display: flex;
    }

    .nav-desktop.active .nav-link {
        color: var(--text-main);
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Parallax Section */
.parallax-section {
    background-image: url('../images/portfolio-1.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Optional: Ensure text remains visible */
    z-index: 10;
}

@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

.parallax-overlay {
    background-color: rgba(16, 25, 34, 0.6);
    /* Blue/Dark overlay compatible with theme */
    width: 100%;
    height: 400px;
    /* Force match section height */
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.zoomable {
    cursor: zoom-in;
}