/* =========================================
   Variables & Reset
   ========================================= */
:root {
    --primary: #111111;
    --primary-light: #333333;
    --accent: #0056b3; /* Used sparingly */
    --bg-color: #FFFFFF;
    --bg-light: #F7F7F7;
    --text-color: #1A1A1A;
    --text-muted: #595959;
    --border-color: #E5E5E5;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-pill: 9999px;
    --radius-box: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 120px 0;
}

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

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

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary);
    line-height: 1.1;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.tagline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: scale(1.02);
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--primary);
    border-color: #fff;
    transform: scale(1.02);
}

.btn-outline-dark {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--primary);
}

.btn-outline-dark:hover {
    border-color: var(--primary);
    background-color: var(--bg-light);
}

.btn-full {
    width: 100%;
}

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

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

/* Default colors on transparent header (over dark hero) */
.header .logo,
.header .desktop-nav a,
.header .header-phone {
    color: #fff;
}

/* Scrolled/Solid colors */
.header.scrolled .logo,
.header.header-solid .logo,
.header.scrolled .header-phone,
.header.header-solid .header-phone {
    color: var(--primary);
}
.header.scrolled .desktop-nav a,
.header.header-solid .desktop-nav a {
    color: var(--text-muted);
}
.header.scrolled .desktop-nav a:hover,
.header.header-solid .desktop-nav a:hover {
    color: var(--primary);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.logo-black {
    display: none;
    height: 48px;
    width: auto;
}
.logo-white {
    display: block;
    height: 48px;
    width: auto;
}

.header.scrolled .logo-white,
.header.header-solid .logo-white {
    display: none;
}

.header.scrolled .logo-black,
.header.header-solid .logo-black {
    display: block;
}

.desktop-nav {
    display: flex;
    gap: 40px;
}

.desktop-nav a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* =========================================
   Header Specifics & Language Dropdown
   ========================================= */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    transition: var(--transition);
}

.header.scrolled .lang-dropdown-toggle,
.header.header-solid .lang-dropdown-toggle {
    color: var(--text-muted);
}
.header.scrolled .lang-dropdown-toggle:hover,
.header.header-solid .lang-dropdown-toggle:hover {
    color: var(--primary);
}

.lang-dropdown-toggle .chevron {
    transition: transform 0.3s ease;
}

.lang-dropdown:hover .chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
}

.lang-dropdown:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-dropdown-menu a:hover,
.lang-dropdown-menu a.active {
    background-color: var(--bg-light);
    color: var(--primary);
}

.header-phone {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: var(--transition);
}

.header.scrolled .header-phone {
    color: var(--primary);
}
.header.scrolled .header-phone:hover {
    color: var(--accent);
}

.btn-header {
    padding: 12px 24px;
    font-size: 0.875rem;
    background-color: #fff;
    color: var(--primary);
}
.btn-header:hover {
    background-color: rgba(255,255,255,0.9);
}

.header.scrolled .btn-header {
    background-color: var(--primary);
    color: #fff;
}
.header.scrolled .btn-header:hover {
    background-color: var(--primary-light);
}

/* Mobile Menu Variables */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: var(--transition);
    border-radius: var(--radius-pill);
}

.header.scrolled .mobile-menu-toggle span {
    background-color: var(--primary);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 20px 5%;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
}

.mobile-nav a {
    display: block;
    padding: 16px 0;
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}


.mobile-phone {
    display: block;
    margin-top: 20px;
    padding: 16px 0;
    font-weight: 600;
    color: var(--primary) !important;
    border-top: 2px solid var(--border-color);
}


/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: max(100vh, 700px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 20px 60px 20px; /* Add padding to prevent text hitting edges */
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Darker overlay to improve text contrast */
.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 900px;
    text-align: center;
    margin-top: 0; /* Reduced to bring text up */
}

.hero-content .tagline {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    display: block;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero-content p {
    font-size: clamp(1.125rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

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

/* =========================================
   Split Sections (Image + Text layout)
   ========================================= */
.split-section {
    padding: 120px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-layout.reverse .split-text {
    order: -1;
}

.split-image {
    position: relative;
    border-radius: var(--radius-box);
    overflow: hidden;
    width: 100%;
}

.split-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.split-text h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.split-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Benefits List Styling inside Split Layout */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.benefit-item p {
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* =========================================
   Technical Details (Split layout)
   ========================================= */
.tech-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tech-image img {
    border-radius: var(--radius-box);
    width: 100%;
}

.tech-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.tech-info > p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.tech-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.spec-item h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.spec-item p {
    font-size: 1rem;
}

/* =========================================
   Gallery
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    border-radius: var(--radius-box);
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* =========================================
/* =========================================
   WhatsApp Sticky Button
   ========================================= */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    color: white;
}

.whatsapp-sticky svg {
    width: 35px;
    height: 35px;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-section {
    padding: 120px 0;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    width: fit-content;
}

.contact-link:hover {
    border-color: var(--primary);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-box);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-light);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-box);
    margin-bottom: 24px;
    font-weight: 500;
}

.alert.success {
    background-color: #F0FDF4;
    color: #166534;
    border: 1px solid #DCFCE7;
}

.alert.error {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FEE2E2;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    padding: 80px 0 40px;
    background-color: #312f31;
    color: #ffffff;
}

.footer .logo {
    color: #ffffff !important;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr;
        justify-content: space-between;
    }
    .footer-top .social-links {
        justify-self: end;
    }
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 24px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
    }
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-lang {
    position: relative;
    display: inline-block;
}

.footer-lang-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    transition: var(--transition);
}

.footer-lang-toggle:hover {
    color: #ffffff;
}

.footer-lang-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 140px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    margin-bottom: 8px;
}

.footer-lang:hover .footer-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-lang-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #111111;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.footer-lang-menu a:hover,
.footer-lang-menu a.active {
    background-color: #f5f5f5;
    color: var(--primary);
}

/* =========================================
   Animations
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-visible {
    opacity: 1;
    transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {
    .split-layout,
    .tech-split,
    .contact-split {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .tech-image,
    .split-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .desktop-nav, .header-actions .btn-header, .lang-dropdown {
        display: none;
    }
    
    .header-phone span {
        display: none;
    }
    .header-phone {
        margin-right: 16px;
    }
    .header-phone svg {
        margin: 0 !important;
        width: 24px;
        height: 24px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero {
        min-height: auto;
        padding-top: 100px;
    }
    
    .hero-content {
        margin-top: 20px;
    }
    
    .hero-content h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
        line-height: 1.15;
    }
    
    .footer-top, .footer-bottom {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 32px;
    }
}

/* =========================================
   Benefits Grid Section
   ========================================= */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

.benefit-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-box);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.benefit-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--primary);
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background: var(--primary);
    color: #fff;
}

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

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.benefit-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* =========================================
   Contact Modal
   ========================================= */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-content {
    background: #fff;
    padding: 48px 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 24px 48px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-modal.active .contact-modal-content {
    transform: translateY(0) scale(1);
}

.contact-modal-title {
    margin-bottom: 32px;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.contact-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.contact-modal-close:hover {
    opacity: 1;
}

.contact-modal-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.contact-btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

.contact-btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

.contact-btn-phone {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(10, 21, 46, 0.2);
}

.contact-btn-phone:hover {
    background-color: #0d1b38;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(10, 21, 46, 0.3);
}

.contact-modal-btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.contact-modal-btn-close:hover {
    color: var(--primary);
}
