:root {
    --primary: #ff5252;
    --whatsapp: #25d366;
    --dark: #0a0a12;
    --dark-accent: #151525;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
}

/* 1. CRITICAL: Global Box Sizing */
* {
    box-sizing: border-box; /* Prevents padding from breaking width */
}

body { 
    margin: 0; 
    font-family: 'Montserrat', sans-serif; 
    background: var(--dark); 
    color: var(--text); 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

/* --- LOGO OPTIMISÉ (Force Compression) --- */
.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 50px; /* Reduced slightly for a sleeker look */
    width: auto;  
    max-width: 100%; /* Ensures it never overflows container */
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

/* --- HEADER --- */
.main-header { 
    padding: 10px 0;
    background: rgba(10, 10, 18, 0.95); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* --- WHATSAPP --- */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background: var(--whatsapp);
    color: white; padding: 12px 20px; border-radius: 50px; text-decoration: none;
    display: flex; align-items: center; gap: 10px; z-index: 1000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); transition: 0.3s;
}
.whatsapp-float:hover { transform: translateY(-5px); }

/* --- HERO SECTION --- */
#hero {
    position: relative; height: 80vh; overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
#drone-video {
    position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%;
    z-index: -1; transform: translate(-50%, -50%); object-fit: cover;
}
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.7); }
.hero-content { position: relative; z-index: 5; padding: 0 20px; }
.hero-title { font-family: 'Orbitron'; font-size: clamp(1.8rem, 5vw, 3.5rem); margin-bottom: 10px; color: #fff; }

/* --- NEWSLETTER --- */
.newsletter-box {
    margin-top: 25px; display: inline-flex; background: rgba(255,255,255,0.1);
    padding: 5px; border-radius: 50px; border: 1px solid var(--glass); backdrop-filter: blur(8px);
}
.newsletter-box input { background: transparent; border: none; padding: 10px 20px; color: white; outline: none; width: 220px; }

/* --- SERVICES --- */
.section-heading { font-family: 'Orbitron'; text-align: center; color: var(--primary); margin-bottom: 50px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; padding: 0 5%; }
.service-card { background: var(--dark-accent); padding: 40px; border-radius: 15px; text-align: center; border: 1px solid var(--glass); transition: 0.3s; }
.service-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.service-card .icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }

/* --- PORTAILS --- */
.portals-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; padding: 80px 5%; background: #08080f;
}
.portal-box {
    background: var(--dark-accent); padding: 30px; border-radius: 20px;
    border-bottom: 3px solid var(--primary); transition: 0.3s;
    display: flex; flex-direction: column;
}
.portal-title { font-family: 'Orbitron'; color: var(--primary); margin-bottom: 20px; font-size: 1.2rem; }

/* 2. FIX: Portal Input widths */
.portal-form { width: 100%; }
.portal-form input, .portal-form textarea {
    width: 100%; /* Now works because of box-sizing: border-box */
    padding: 14px; margin: 8px 0; background: #0a0a12;
    border: 1px solid var(--glass); color: white; border-radius: 8px;
    font-family: inherit;
}

/* --- BOUTONS --- */
.btn { padding: 12px 25px; border-radius: 50px; font-weight: bold; cursor: pointer; border: none; transition: 0.3s; display: inline-block; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: #3498db; color: white; width: 100%; }
.btn-track { background: #f39c12; color: white; width: 100%; }

/* --- NAVIGATION --- */
.main-nav ul { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; }
.main-nav a { color: white; text-decoration: none; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.main-nav a:hover { color: var(--primary); }

/* --- ANIMATIONS & FOOTER --- */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s all; }
.reveal.active { opacity: 1; transform: translateY(0); }
.main-footer { text-align: center; padding: 40px; opacity: 0.4; font-size: 0.8rem; border-top: 1px solid var(--glass); }

/* 3. Responsive Fix for Mobile Menu */
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 15px; }
    .main-nav ul { gap: 10px; }
    .newsletter-box { display: flex; flex-direction: column; border-radius: 15px; }
    .newsletter-box input { width: 100%; text-align: center; }
}