:root {
    /* Color Palette based on the CyberSafra logo */
    --primary-color: #2da15f; /* Green from the leaf/drone */
    --primary-hover: #228b4d;
    --secondary-color: #126383; /* Deep Teal/Blue from text and borders */
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-darker: #020617; /* Slate 950 */
    --bg-card: #1e293b; /* Slate 800 */
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.75);
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: fadeInPage 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ====================
   HEADER STYLES
   ==================== */
.site-header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 65px; /* Adjusted to fit the logo nicely */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(45, 161, 95, 0.3)); /* Subtle glow matching logo */
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.btn-login {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(45, 161, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 161, 95, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ====================
   MAIN CONTENT (Placeholder)
   ==================== */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
}

.placeholder-container {
    text-align: center;
}

.placeholder-container h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.placeholder-container p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto;
}

/* ====================
   FOOTER STYLES
   ==================== */
.site-footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.site-logo-footer {
    height: 70px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(45, 161, 95, 0.2));
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(45, 161, 95, 0.3);
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    background-color: var(--bg-darker);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ====================
   NEW PAGES STYLES
   ==================== */
.presentation-container {
    padding: 2rem 0;
}

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Solutions Page */
.solutions-header {
    text-align: center;
    margin-bottom: 4rem;
}
.solutions-header h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}
.solutions-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}
.solutions-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.solution-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.solution-icon-wrap {
    font-size: 3rem;
    color: var(--primary-color);
    background-color: rgba(0,0,0,0.2);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}
.solution-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}
.solution-text p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem 0;
        display: flex; /* Keep flex to allow transition */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
        z-index: 9999;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .header-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .solution-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ====================
   DASHBOARD STYLES
   ==================== */
:root {
    --bg-panel: #161618;
    --color-praga: #ef4444;
    --color-daninha: #eab308;
    --color-nutricao: #f97316;
    --color-clear: #4b5563;
    --color-accent: #3b82f6;
    --color-success: #22c55e;
}
        /* Dashboard Layout */
        .dashboard-container {
            display: flex;
            min-height: 85vh;
            width: 100%;
            flex-grow: 1;
        }

        .panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 1rem;
            height: 100%;
        }

        .panel-left {
            border-right: 1px solid var(--border-color);
        }

        /* Headers */
        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }

        .panel-header h2 {
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .status-indicator {
            font-size: 0.75rem;
            font-weight: bold;
            padding: 0.2rem 0.6rem;
            border-radius: 12px;
            letter-spacing: 0.5px;
        }

        .status-indicator.live {
            background-color: rgba(239, 68, 68, 0.2);
            color: var(--color-praga);
            animation: pulse 2s infinite;
        }

        .status-indicator.sync {
            background-color: rgba(34, 197, 94, 0.2);
            color: var(--color-success);
        }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.6; }
            100% { opacity: 1; }
        }

        /* Video Container (Left Panel) */
        .video-container {
            position: relative;
            flex-grow: 1;
            background-color: #000;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 1rem;
            display: flex;
            justify-content: center;
            align-items: center;
            border: 1px solid var(--border-color);
        }

        .video-feed-img {
            width: 100%;
            height: 100%;
            object-fit: contain; /* Simulates a full drone camera view */
            opacity: 0.85; /* Slightly dark for tech feel */
        }

        #bounding-boxes-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none; /* Let clicks pass through if needed */
        }

        /* Bounding Box Styling */
        .bounding-box {
            position: absolute;
            border: 2px solid;
            background-color: rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            animation: fadeIn 0.4s ease-out;
        }

        .bbox-label {
            position: absolute;
            top: -24px;
            left: -2px;
            background-color: inherit; /* will be set via JS */
            color: #fff;
            font-size: 0.75rem;
            font-weight: bold;
            padding: 2px 6px;
            white-space: nowrap;
            border-radius: 4px 4px 0 0;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

        /* Controls (Left Panel) */
        .controls-container {
            background-color: var(--bg-panel);
            padding: 1rem;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }

        .controls-container h3 {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .buttons-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.8rem;
        }

        .btn {
            padding: 0.8rem 1rem;
            border: none;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            color: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .btn:active {
            transform: translateY(2px);
        }

        .btn.active {
            outline: 2px solid #fff;
            outline-offset: 2px;
        }

        .btn-praga { background-color: rgba(239, 68, 68, 0.8); border: 1px solid var(--color-praga); }
        .btn-praga:hover { background-color: var(--color-praga); }

        .btn-daninha { background-color: rgba(234, 179, 8, 0.8); border: 1px solid var(--color-daninha); color: #000; }
        .btn-daninha:hover { background-color: var(--color-daninha); }

        .btn-nutricao { background-color: rgba(249, 115, 22, 0.8); border: 1px solid var(--color-nutricao); }
        .btn-nutricao:hover { background-color: var(--color-nutricao); }

        .btn-clear { background-color: rgba(75, 85, 99, 0.8); border: 1px solid var(--color-clear); }
        .btn-clear:hover { background-color: var(--color-clear); }

        /* 3D Container (Right Panel) */
        #3d-container {
            flex-grow: 1;
            background-color: #050505;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            border: 1px solid var(--border-color);
        }
        
        #3d-container canvas {
            display: block;
            outline: none;
        }

        .map-stats {
            position: absolute;
            bottom: 2rem;
            right: 2rem;
            background-color: rgba(22, 22, 24, 0.8);
            backdrop-filter: blur(8px);
            padding: 0.8rem 1.2rem;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            font-size: 0.85rem;
            display: flex;
            gap: 1.5rem;
            color: var(--text-secondary);
        }

        .map-stats span {
            font-weight: bold;
            color: var(--text-primary);
        }

        /* HUD Modal / Tooltip */
        .hud-modal {
            position: absolute;
            z-index: 1000;
            background: rgba(30, 30, 30, 0.85);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1rem;
            width: 260px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            color: #fff;
            transform: translate(-50%, -100%); /* Center above click */
            pointer-events: auto;
            transition: opacity 0.2s, transform 0.2s;
        }

        .hud-modal.hidden {
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, -90%) scale(0.9);
        }

        .close-hud {
            position: absolute;
            top: 8px;
            right: 8px;
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 1.2rem;
            cursor: pointer;
        }

        .close-hud:hover {
            color: #fff;
        }

        .hud-content {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
        }

        .hud-crop-img {
            width: 100%;
            height: 120px;
            object-fit: cover;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .hud-info h4 {
            margin-bottom: 0.5rem;
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .hud-info p {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 0.2rem;
        }

        .hud-info span {
            color: var(--text-primary);
        }

        /* Decorative dot for HUD title */
        .hud-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
        }

@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    .panel {
        min-height: 50vh;
    }
}

/* ====================
   CONTACT PAGE STYLES
   ==================== */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-container {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(45, 161, 95, 0.2);
}

.form-submit-btn {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

/* ====================
   SUCCESS ALERT STYLES
   ==================== */
.success-alert {
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid var(--color-success, #22c55e);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #fff;
    animation: fadeIn 0.5s ease-out;
}

.success-alert i {
    color: var(--color-success, #22c55e);
    font-size: 1.5rem;
    margin-top: 2px;
}

.success-alert strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.success-alert p {
    color: var(--text-secondary);
    margin: 0;
}

