:root {
    /* Technical & Engineering Palette */
    --primary-color: #0f172a;
    /* Deep Slate (Base) */
    --secondary-color: #3b82f6;
    /* Tech Blue (Precision) */
    --accent-color: #f97316;
    /* Safety Orange (Topography/Gear) */
    --surface-dark: #1e293b;
    /* Lighter Slate for cards */
    --surface-light: #ffffff;
    --text-main: #334155;
    --text-light: #f1f5f9;
    --border-tech: rgba(59, 130, 246, 0.3);
    /* Subtle blue border */

    --nav-height: 80px;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    /* Used for tech specs */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.6;
    background-color: #f8fafc;
    /* Technical Grid Background Pattern */
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Add overflow protection */
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Header & Nav */
.site-header {
    background: rgba(15, 23, 42, 0.95);
    /* Deep slate */
    height: var(--nav-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.highlight {
    color: var(--accent-color);
    /* Orange highlight */
}

.main-nav ul {
    display: flex;
    gap: 35px;
    align-items: center;
    /* Ensure vertical alignment */
}

.main-nav a {
    color: #cbd5e1;
    /* Slate 300 */
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    border-bottom: 2px solid var(--accent-color);
}

.btn-contact {
    background: var(--accent-color);
    padding: 10px 24px;
    border-radius: 2px;
    /* Tech sharp corners */
    color: #fff !important;
    font-weight: 700;
}

.btn-contact:hover {
    background: #ea580c;
    /* Darker orange */
}

.btn-access {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    padding: 8px 20px;
    border-radius: 6px;
    color: #e2e8f0 !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.btn-access::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
}

.btn-access:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.95));
    border-color: rgba(56, 189, 248, 0.8);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.25), inset 0 0 12px rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

.btn-access:hover::after {
    left: 150%;
}

.btn-access i {
    font-size: 1.1rem;
    color: #38bdf8;
    transition: all 0.3s ease;
}

.btn-access:hover i {
    color: #fff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    /* professional rounded edges */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2563eb 100%);
    color: #fff;
    border: 1px solid rgba(59, 130, 246, 0.8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.section {
    padding: 100px 0;
    overflow: hidden;
    /* Prevent horizontal overflow */
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.divider {
    width: 120px;
    height: 2px;
    background: var(--accent-color);
    margin: 0 auto 20px;
    position: relative;
}

/* Tech Divider Pattern */
.divider::before,
.divider::after {
    content: '+';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    color: var(--secondary-color);
    font-size: 12px;
}

.divider::before {
    left: -20px;
}

.divider::after {
    right: -20px;
}

/* Tech Divider Pattern */
.divider::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: #cbd5e1;
    top: 50%;
    z-index: -1;
    left: 0;
    transform: scaleX(4);
    /* Long line */
    opacity: 0.5;
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    overflow: hidden;
    /* Prevent drone/line overflow */
}

/* Hero Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77vh;
    /* 16:9 Aspect Ratio */
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw;
    /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%) scale(1.1);
    /* Scale up slightly */
    pointer-events: none;
    filter: none;
    /* Removed blur as requested */
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(13, 37, 63, 0.6), rgba(13, 37, 63, 0.8));
    /* Adjusted opacity for video visibility */
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 990;
    /* Elevated above ruler (989) and decorations */
}

/* Services */
.services-section {
    background: transparent;
    /* Show grid body bg */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border: 1px solid #e2e8f0;
    border-bottom: 4px solid var(--secondary-color);
    /* Tech accent bottom */
    border-radius: 4px;
    /* Sharp corners for engineering feel */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Tech corner markers for engineering feel */
.service-card::before {
    content: '[';
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: var(--font-mono);
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0.6;
}

.service-card::after {
    content: ']';
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-family: var(--font-mono);
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0.6;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary-color);
    font-size: 1.8rem;
    border-radius: 4px;
    /* Boxy tech look */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px solid var(--border-tech);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    font-size: 1.25rem;
}

.service-card p {
    color: #64748b;
    /* Slate 500 */
    font-size: 0.95rem;
}

/* Equipment */
.dark-bg {
    background: var(--surface-dark);
    color: var(--text-light);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-bg .section-header h2 {
    color: #ffffff;
}

.dark-bg .section-header p {
    color: #cbd5e1;
    /* Replaced rgba(255, 255, 255, 0.8) with Slate 300 */
    font-size: 1.1rem;
}

/* Equipment Showcase */
.equipment-section {
    padding: 120px 0;
}

.equipment-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 40px;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 60px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.equipment-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-5px);
}

.equipment-item.reverse {
    flex-direction: row-reverse;
}

.eq-image {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.eq-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.equipment-item:hover .eq-image img {
    transform: scale(1.03);
}

.tech-specs {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.tech-specs span {
    background: rgba(15, 23, 42, 0.9);
    color: var(--secondary-color);
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border: 1px solid var(--secondary-color);
    border-radius: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    letter-spacing: 1px;
}

.eq-info {
    flex: 1;
}

.eq-tag {
    color: var(--secondary-color);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.eq-info h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.1;
    font-weight: 800;
}

.eq-info p {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 25px;
    line-height: 1.7;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specs-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.specs-list i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Container Utility */
.flex-column {
    flex-direction: column;
    align-items: center;
}

/* Mobile Responsiveness Improvements */





/* Tech Stream Gallery */
.gallery-section {
    padding: 100px 0;
    overflow: hidden;
    /* Hide overflow for marquees */
    background: #0f172a;
    /* Force dark background for this section */
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-section .section-header h2 {
    color: #ffffff;
}

.gallery-section .section-header p {
    color: #e2e8f0;
    /* Changed from rgba(255, 255, 255, 0.8) for better contrast */
    font-size: 1.1rem;
    /* Slightly larger text */
}

.tech-stream-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.tech-stream-row {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* removed rotate to ensure stability first, can re-add later if safe */
}

/*
.tech-stream-row.reverse {
     transform: rotate(1deg);
}
*/

.tech-stream-track {
    display: flex;
    /* Changed from inline-flex */
    width: max-content;
    /* Force width to fit all items */
    gap: 20px;
    animation: scroll 40s linear infinite;
}

.tech-stream-row.reverse .tech-stream-track {
    animation: scroll-reverse 40s linear infinite;
}

/* Pause animation on hover for better UX */
.tech-stream-track:hover {
    animation-play-state: paused;
}

.stream-item {
    width: 350px;
    height: 250px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: #000;
    /* Fallback */
}

.stream-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(120%);
    transition: all 0.5s ease;
}

.stream-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reduced opacity from 0.8 to 0.3 for better visibility */
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 1;
}

/* Hover Effects */
.stream-item:hover {
    transform: scale(1.05);
    z-index: 10;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

.stream-item:hover img {
    filter: grayscale(0%) contrast(100%);
    /* Color reveal on hover */
}

/* Infinite Scroll Animations */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes track has 2x content */
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Mobile Optimizations */


/* Deliverables Section */
.deliverables-section {
    background: #f8fafc;
    position: relative;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.deliverable-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.deliverable-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.del-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary-color);
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.deliverable-card:hover .del-icon {
    background: var(--secondary-color);
    color: #fff;
    transform: rotateY(360deg);
}

.deliverable-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.deliverable-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
}

.deliverable-card strong {
    color: var(--secondary-color);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Contact */
.contact-section {
    background: #fff;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-form-box {
    flex: 2;
    background: var(--bg-gray);
    padding: 40px;
    border-radius: 10px;
}

.contact-info-direct {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
}

.full-width {
    width: 100%;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.info-card h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer */
.site-footer {
    background: #0b1a2a;
    color: #fff;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-link:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.whatsapp-float-btn {
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    border: none;
    transition: transform 0.3s;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
}

.whatsapp-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #e5ddd5;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    animation: slideUp 0.3s ease;
    border: 1px solid #ddd;
}

.whatsapp-chat-box.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-header {
    background: #075e54;
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    color: #075e54;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.wa-header-info {
    flex: 1;
}

.wa-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

.wa-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.wa-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

.whatsapp-body {
    padding: 20px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    /* Generic WA background pattern */
    background-color: #e5ddd5;
    height: 200px;
    overflow-y: auto;
}

.wa-message {
    background: #fff;
    padding: 10px 15px;
    border-radius: 0 15px 15px 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    max-width: 85%;
    position: relative;
    color: #1a1a1a;
}

.wa-message-name {
    font-size: 0.75rem;
    color: #075e54;
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
}

.wa-message p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.wa-time {
    font-size: 0.7rem;
    color: #999;
    float: right;
}

.whatsapp-footer {
    padding: 10px;
    background: #f0f0f0;
}

.btn-wa-send {
    display: block;
    background: #25d366;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-wa-send:hover {
    background: #128c7e;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Scanning Line Animation */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    box-shadow: 0 0 25px var(--secondary-color), 0 0 50px rgba(59, 130, 246, 0.6);
    z-index: 10;
    animation: scan-line 12s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
}

.hero-drone {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Center on the scan line */
    width: 100px;
    height: 100px;
    z-index: 12;
    pointer-events: none;
    color: var(--secondary-color);
    animation: scan-drone 12s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--secondary-color));
}

.hero-drone svg {
    width: 100%;
    height: 100%;
}

/* 2-Phase Scanning Animation */
@keyframes scan-line {

    /* Phase 1: Horizontal Line (Moves Vertical) */
    0% {
        top: -10%;
        left: 0;
        width: 100%;
        height: 2px;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    45% {
        opacity: 1;
    }

    50% {
        top: 110%;
        left: 0;
        width: 100%;
        height: 2px;
        opacity: 0;
    }

    /* Phase 2: Vertical Line (Moves Horizontal) */
    50.001% {
        top: 0;
        left: -10%;
        width: 2px;
        height: 100%;
        opacity: 0;
    }

    55% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 0;
        left: 110%;
        width: 2px;
        height: 100%;
        opacity: 0;
    }
}

@keyframes scan-drone {

    /* Phase 1: Follow Vertical Scan (Moves Down) */
    0% {
        top: -10%;
        left: 50%;
        opacity: 0;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    5% {
        opacity: 1;
    }

    45% {
        opacity: 1;
    }

    50% {
        top: 110%;
        left: 50%;
        opacity: 0;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Phase 2: Follow Horizontal Scan (Moves Right) */
    50.001% {
        top: 50%;
        left: -10%;
        opacity: 0;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    55% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 50%;
        left: 110%;
        opacity: 0;
        transform: translate(-50%, -50%) rotate(90deg);
    }
}

/* Camera Projection Effect */
.drone-camera-projection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 40px;
    border: 1px solid var(--secondary-color);
    background: rgba(59, 130, 246, 0.1);
    z-index: -1;
    pointer-events: none;
    /* Grid Pattern */
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.3) 1px, transparent 1px);
    background-size: 10px 10px;

    animation: photo-capture 1.5s infinite;
}

@keyframes photo-capture {
    0% {
        width: 10px;
        height: 10px;
        opacity: 0;
        border-color: #fff;
    }

    40% {
        width: 120px;
        height: 80px;
        opacity: 0.8;
        border-color: var(--secondary-color);
    }

    60% {
        width: 120px;
        height: 80px;
        opacity: 0;
    }

    100% {
        width: 120px;
        height: 80px;
        opacity: 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.drone-prop {
    transform-box: fill-box;
    transform-origin: center;
    animation: spin 0.1s linear infinite;
}


@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */

/* ==========================================
   MOBILE & TABLET RESPONSIVE
   ========================================== */

@media (max-width: 991px) {
    body {
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
    }

    /* Global Container Reset - CRITICAL FIX */
    .container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        padding: 0 15px !important;
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    /* Logo Size */
    .logo-text {
        font-size: 1.3rem;
    }

    /* Keep header as row */
    .site-header .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        height: 100%;
    }

    .hero {
        overflow: hidden !important;
        height: auto;
        min-height: 100vh;
    }

    .equipment-item,
    .equipment-item.reverse {
        flex-direction: column;
        gap: 30px;
        padding: 30px 15px !important;
        text-align: center;
    }

    .tech-specs {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .eq-image {
        width: 100%;
        max-height: 350px;
    }

    .eq-info h3 {
        font-size: 1.8rem;
    }

    .eq-info {
        width: 100%;
    }

    .specs-list {
        align-items: flex-start;
        text-align: left;
        display: inline-flex;
    }

    .hero-mobile-bg {
        background-image: linear-gradient(rgba(13, 37, 63, 0.7), rgba(13, 37, 63, 0.8)), url('../img/hero-bg.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: scroll !important;
    }

    .hero-mobile-bg .video-background,
    .hero-mobile-bg .video-background iframe {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        pointer-events: none !important;
        position: fixed !important;
        top: -9999px !important;
    }

    /* Mobile Menu Implementation for Tablets/Mobiles */
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav ul {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 20px 0;
        gap: 20px;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border-bottom: 2px solid var(--accent-color);
    }

    .main-nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 10px 20px;
        border-bottom: none !important;
    }

    .main-nav .btn-contact {
        display: inline-block;
        margin-top: 10px;
    }

    .header-actions {
        gap: 12px;
    }

    .main-nav .btn-access {
        padding: 8px 12px;
        margin-top: 0;
        font-size: 0.8rem;
    }

    .access-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding-left: 20px;
        /* Slight offset if the ruler still appears faintly */
    }

    .hero-buttons .btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 12px 20px;
    }

    .services-grid,
    .deliverables-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card,
    .deliverable-card {
        padding: 30px 20px;
    }

    /* Fix image and video containers specifically */
    img,
    iframe,
    video {
        max-width: 100% !important;
        height: auto;
    }

    /* Force all containers to be column */
    .container {
        flex-direction: column !important;
        padding: 0 15px !important;
    }

    .site-header .container {
        flex-direction: row !important;
    }

    /* WhatsApp Button positioning - CRITICAL FIX FOR VISIBILITY */
    .whatsapp-widget {
        bottom: clamp(20px, env(safe-area-inset-bottom) + 20px, 40px) !important;
        right: 20px !important;
        z-index: 99999 !important;
        transform: translateZ(0);
        /* Hardware acceleration */
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }
}