:root {
    /* Color Palette */
    --primary-color: #1F6F8B;
    --secondary-color: #2FA4B7;
    --background-color: #0F1720;
    --text-color: #E5E7EB;
    --accent-color: #6B7280;

    /* Gradients */
    --tech-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

    /* Typography */
    --font-heading: 'Orbitron', 'Space Grotesk', sans-serif;
    --font-body: 'Inter', 'Poppins', sans-serif;

    /* Effects */
    --glass-bg: rgba(15, 23, 32, 0.4);
    --glass-border: rgba(47, 164, 183, 0.2);
    --glow-primary: 0 0 20px rgba(31, 111, 139, 0.4);
    --glow-secondary: 0 0 20px rgba(47, 164, 183, 0.5);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.hero-badge {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.text-gradient {
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

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

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.w-100 {
    width: 100%;
}

.max-w-700 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Canvas Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--tech-gradient);
    color: #fff;
    border: none;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    box-shadow: var(--glow-secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    border-color: var(--secondary-color);
    background: rgba(47, 164, 183, 0.1);
    box-shadow: inset 0 0 10px rgba(47, 164, 183, 0.2);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-family: var(--font-heading);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff !important;
    box-shadow: var(--glow-primary);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1EBE5C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

#navbar.scrolled {
    background: rgba(15, 23, 32, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo-text {
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.nav-links:not(.btn-outline)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tech-gradient);
    transition: var(--transition);
}

.nav-links:not(.btn-outline):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-color);
}

/* Sections Base */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.title-underline {
    height: 3px;
    width: 80px;
    background: var(--tech-gradient);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.title-underline.center {
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('fpv.jpg') center/cover no-repeat;
    /* We add an overlay because we have particle canvas below and bg above. 
       Actually let's just use linear gradient + img with low opacity inside hero overlay */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 32, 0.85) 0%, rgba(15, 23, 32, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid var(--primary-color);
    color: var(--secondary-color);
    background: rgba(31, 111, 139, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(47, 164, 183, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-family: var(--font-heading);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 16px;
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* About Section */
.auto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.mission-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
}

.mission-box .icon-wrapper {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.mission-box h3 {
    margin-bottom: 0.5rem;
}

.glow-hover:hover {
    box-shadow: 0 0 25px rgba(47, 164, 183, 0.2);
    border-color: rgba(47, 164, 183, 0.4);
    transform: translateX(5px);
}

.about-image-container {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.image-wrapper.glow-border {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(31, 111, 139, 0.2);
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
}

.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 111, 139, 0.4) 0%, transparent 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    right: -5%;
}

.badge-2 {
    bottom: 15%;
    left: -5%;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Services Section */
.dark-bg {
    background-color: rgba(10, 15, 20, 0.8);
    position: relative;
}

.dark-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(31, 111, 139, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 2px solid transparent;
}

.service-card:hover,
.hover-lift:hover {
    transform: translateY(-10px);
    border-top-color: var(--secondary-color);
    box-shadow: var(--glow-primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(31, 111, 139, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(47, 164, 183, 0.6);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.service-card:hover .learn-more-link svg {
    transform: translateX(5px);
    transition: var(--transition);
}

/* Service Detail Panels */
.service-detail-panel {
    margin-top: 2rem;
    padding: 3rem;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(15, 23, 32, 0.6);
    border: 1px solid var(--secondary-color);
    box-shadow: var(--glow-primary);
    animation: fadeIn 0.4s ease-out forwards;
}

.service-detail-panel.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--secondary-color);
}

.panel-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 768px) {
    #service-training .panel-content,
    #service-drone .panel-content,
    #service-machining .panel-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.panel-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.panel-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
}

.highlight-text {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
}

.check-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.detail-text {
    color: var(--accent-color);
}

/* Team Section */
.team-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    margin-top: 3rem;
    align-items: center;
}

.team-image-wrapper {
    position: relative;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-lines-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(31, 111, 139, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 111, 139, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.5;
}

.team-details {
    padding: 3rem;
    border-radius: 0 8px 8px 0;
    position: relative;
    left: -20px;
    z-index: 2;
    background: rgba(15, 23, 32, 0.85);
    /* Slightly less transparent */
}

.team-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.team-details p {
    font-size: 1rem;
    line-height: 1.8;
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.achievement-card {
    background: rgba(31, 111, 139, 0.1);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
    transition: var(--transition);
}

.achievement-card:hover {
    background: rgba(31, 111, 139, 0.2);
    border-color: var(--secondary-color);
    box-shadow: var(--glow-primary);
}

.ach-year {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.ach-wins {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    text-shadow: 0 0 10px var(--primary-color);
}

.ach-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    gap: 2rem;
}

.contact-method.glass-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    width: 100%;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(31, 111, 139, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.glass-panel h4 {
    margin-bottom: 0.2rem;
}

.contact-form-container {
    padding: 2.5rem;
    border-top: 3px solid var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--accent-color);
}

.tech-form input,
.tech-form select,
.tech-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--accent-color);
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.tech-form input:focus,
.tech-form select:focus,
.tech-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(47, 164, 183, 0.2);
    background: rgba(15, 23, 32, 0.5);
}

/* Map */
.map-container {
    overflow: hidden;
    padding: 0.5rem;
    border-radius: 8px;
}

.map-container iframe {
    border-radius: 4px;
    filter: invert(90%) hue-rotate(180deg) contrast(80%) brightness(120%);
    opacity: 0.8;
}

/* Footer */
.tech-footer {
    background: #080C11;
    border-top: 1px solid rgba(47, 164, 183, 0.3);
    padding: 3rem 0;
    box-shadow: inset 0 20px 50px rgba(0, 0, 0, 0.5);
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.footer-text {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up,
.fade-in-left,
.fade-in-right,
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.slide-up.visible {
    opacity: 1;
    transform: translate(0);
}

/* Responsive Design */
@media screen and (max-width: 992px) {

    .auto-grid,
    .team-showcase,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .team-showcase {
        display: flex;
        flex-direction: column;
    }

    .team-details {
        left: 0;
        top: -30px;
        border-radius: 8px;
        width: 95%;
        margin: 0 auto;
    }

    .team-image-wrapper {
        border-radius: 8px;
        min-height: 300px;
        width: 100%;
    }

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

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 23, 32, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .panel-images {
        display: none;
        /* simple hidden on mobile for training panel */
    }
}