@import url('https://fonts.googleapis.com/css2?family=Sedgwick+Ave&display=swap');

/* =========================================
   DESIGN TOKENS & VARIABLES - CINEMATIC THEME
   ========================================= */
:root {
    /* Color Palette - Dark Tech Futuristic Mode */
    --bg-base: #050505;
    --bg-surface: #111111;
    --bg-elevated: #1a1a1a;

    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    /* Cyan and Neon Purple Accents for Tech Feel - Softened */
    --accent: #00bcd4;
    /* Soft Cyan */
    --accent-hover: #4dd0e1;
    --accent-faded: rgba(0, 188, 212, 0.15);

    --secondary: #b026ff;
    /* Neon Purple */

    --border-color: #222222;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing & Layout */
    --max-width: 1200px;
    --nav-height: 90px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    cursor: url('drone_cursor.png'), auto;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: url('drone_cursor.png'), auto;
}

::selection {
    background-color: var(--accent);
    color: #fff;
}

/* Vignette overlay for cinematic feel */
.cinematic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 9999;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overline {
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.massive-text {
    font-size: clamp(4rem, 12vw, 14rem);
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0;
    padding: 0;
}

.text-outline {
    -webkit-text-stroke: 1px var(--text-main);
    color: transparent;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 300;
}

/* =========================================
   BUTTONS & LINKS
   ========================================= */
a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent);
    color: #000;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* =========================================
   LAYOUT
   ========================================= */
main {
    width: 100%;
}

section {
    padding: 120px 5vw;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-color: var(--bg-base);
    transform-origin: top center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

section#home {
    padding: 0;
    max-width: 100%;
    opacity: 1;
    transform: none;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

/* =========================================
   NAVIGATION
   ========================================= */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 2vw 1rem 2vw;
    background: transparent;
    z-index: 9999;
    display: flex;
    justify-content: center;
    transition: var(--transition-fast);
}

.glass-header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 240, 255, 0.05);
    /* subtle cyan glow */
}

.glass-header nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 95%;
}

.logo {
    font-family: 'Sedgwick Ave', cursive;
    font-size: clamp(6.5rem, 12vw, 9rem);
    font-weight: 400;
    letter-spacing: 4px;
    line-height: 1;
    color: #fff;
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.9),
        2px 2px 0px var(--accent),
        3px 3px 0px var(--accent),
        4px 4px 0px var(--accent-hover),
        5px 5px 0px var(--accent-hover),
        6px 6px 0px var(--secondary),
        7px 7px 0px var(--secondary),
        8px 8px 0px rgba(0, 0, 0, 0.9),
        9px 9px 0px rgba(0, 0, 0, 0.9);
    transition: var(--transition-slow);
}

.glass-header.scrolled .logo {
    color: #fff;
    font-size: clamp(4.5rem, 8vw, 6.5rem);
    text-shadow:
        1px 1px 0px rgba(0, 0, 0, 0.9),
        2px 2px 0px var(--accent),
        3px 3px 0px var(--accent),
        4px 4px 0px var(--accent-hover),
        5px 5px 0px var(--secondary),
        6px 6px 0px var(--secondary),
        7px 7px 0px rgba(0, 0, 0, 0.9);
}

.sub-logo {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    margin-top: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 15px;
}

.nav-links li a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:not(.btn-primary) {
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: var(--transition-fast);
}

.glass-header.scrolled .nav-links li a:not(.btn-primary) {
    color: var(--text-main);
    text-shadow: none;
}

.nav-links li a:not(.btn-primary):hover {
    color: var(--accent);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Fake video background using a dark gradient placeholder with Camera UI */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.5;
    /* Dim it to keep text readable and cinematic */
}

.lens-flare {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--accent-faded) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    animation: drift 20s infinite alternate ease-in-out;
}

/* Add a secondary blue flare for the black/pink/blue aesthetic */
.lens-flare-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    animation: drift 15s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-10%, 10%) scale(1.2);
    }
}

.camera-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.7;
}

.hero-rec {
    position: absolute;
    top: 130px;
    right: 5vw;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #ff3b30;
    letter-spacing: 2px;
}

.style-hero-rec {
    width: 14px;
    height: 14px;
}

.hero-timecode {
    color: #fff;
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    line-height: 1;
    color: #ffffff;
}

/* =========================================
   FEATURED SECTION UTILITIES
   ========================================= */
.text-glow-cyan {
    text-shadow:
        0 0 10px rgba(0, 240, 255, 0.4),
        0 0 20px rgba(0, 240, 255, 0.2),
        0 0 40px rgba(0, 240, 255, 0.1);
}

.play-film-btn:hover .play-circle {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    transform: scale(1.1);
}

.play-film-btn:hover span {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: #f5f5f5;
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* Animation utilities for Hero */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 1.5s;
}

.delay-1 {
    animation-delay: 1.7s;
}

.delay-2 {
    animation-delay: 1.9s;
}

.delay-3 {
    animation-delay: 2.1s;
}

.delay-4 {
    animation-delay: 3.0s;
    opacity: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator p {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--accent);
    animation: scrollLine 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes scrollLine {
    0% {
        top: -50px;
    }

    100% {
        top: 50px;
    }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.about-glass-panel {
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lead-text {
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

.about-glass-panel p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    /* Brighter text for readability on glass */
    font-size: 1.05rem;
    line-height: 1.7;
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-ui {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #ff3b30;
    z-index: 10;
}

.rec-dot {
    width: 10px;
    height: 10px;
    background: #ff3b30;
    border-radius: 50%;
    animation: recPulse 1s infinite alternate;
}

.timecode {
    color: #fff;
}

@keyframes recPulse {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.3;
    }
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Push text to the bottom */
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.15;
    /* Heavily dimmed initially */
    transform: scale(1.05);
    /* Slight pre-scale to avoid edge bleeding on hover */
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
    filter: grayscale(80%) sepia(20%) hue-rotate(180deg);
    /* Cinematic dark mood */
}

.service-content {
    padding: 40px;
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Exciting Masonry-ish Staggering for every even card (if screen is wide enough) */
@media (min-width: 768px) {
    .service-card:nth-child(even) {
        transform: translateY(40px);
    }
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 2px rgba(0, 240, 255, 0);
    z-index: 3;
    border-radius: 12px;
    transition: box-shadow 0.5s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
    .service-card:nth-child(even):hover {
        transform: translateY(32px);
    }
}

.service-card:hover .service-bg {
    transform: scale(1.15);
    /* Slow zoom in */
    opacity: 0.8;
    /* Brighten image */
    filter: grayscale(0%) sepia(0%) hue-rotate(0deg);
    /* Return to full glorious color */
}

.service-card:hover .service-content {
    transform: translateY(0);
    /* Glide text up */
}

.service-card:hover::after {
    box-shadow: inset 0 0 0 1px var(--accent);
    /* Turn on neon border */
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #fff;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: #fff;
}

/* =========================================
   THE FLEET SECTION
   ========================================= */
.fleet {
    padding: 100px 5vw;
    background-color: var(--bg-base);
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Fleet Carousel */
.fleet-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1200px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
    /* Allow vertical scroll, handle horizontal in JS */
}

.fleet-carousel {
    width: 300px;
    height: 450px;
    position: absolute;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.drone-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, z-index 0s 0.3s;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.drone-card:active {
    cursor: grabbing;
}

@media (max-width: 768px) {
    .fleet-carousel {
        width: 300px;
        height: 450px;
        position: absolute;
        transform-style: preserve-3d;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}




.drone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 1;
}

.drone-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-faded);
    transform: translateY(-10px);
}

.drone-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0;
}

.drone-card:hover .drone-image {
    transform: scale(1.1);
}

.darken-img {
    filter: brightness(0.6) contrast(1.2);
}

.drone-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.drone-card:hover .drone-info {
    transform: translateY(0);
}

.drone-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-sub {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 6px;
    margin-left: 15px;
    text-transform: uppercase;
    text-shadow: none;
    /* overriding the heavy 3d shadow of the main logo */
    vertical-align: middle;
}

.drone-role {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.drone-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    transition-delay: 0.1s;
}

.drone-card:hover .drone-stats {
    opacity: 1;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.8rem;
    font-size: 0.85rem;
    font-family: monospace;
}

.stat-label {
    color: var(--text-muted);
}

.stat-value {
    color: #fff;
    font-weight: 700;
}

/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio {
    padding: 100px 5vw;
    background-color: var(--bg-base);
    scroll-snap-align: none;
    scroll-snap-stop: normal;
}

.filter-tabs {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
    flex-wrap: wrap;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 15px 25px;
    border-radius: 8px;
    position: sticky;
    top: 100px;
    /* Below the header */
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    justify-content: center;
}

.filter-tabs button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.filter-tabs button:hover,
.filter-tabs button.active {
    color: #fff;
    background: rgba(0, 240, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.2);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Masonry Base */
    grid-auto-rows: minmax(200px, auto);
    /* Sets standard row height */
    grid-auto-flow: dense;
    /* Fill in gaps */
    gap: 15px;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    background: var(--bg-surface);
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    background-image: linear-gradient(45deg, #111, #222);
    border: 1px solid transparent;
    transition: transform var(--transition-slow), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.portfolio-item video.cinematic-video {
    transition: transform var(--transition-slow), opacity var(--transition-fast), filter var(--transition-fast);
    /* Default state is slightly dimmed and desaturated for cinematic feel */
    opacity: 0.6;
    filter: saturate(0.8);
}

.portfolio-item:hover {
    transform: scale(1.02);
    z-index: 10;
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.portfolio-item:hover video.cinematic-video {
    opacity: 1;
    filter: saturate(1.2);
    transform: scale(1.05);
    /* Slight internal zoom */
}

/* --- Masonry Size Modifiers --- */
.portfolio-item.square {
    grid-column: span 1;
    grid-row: span 1;
}

.portfolio-item.wide {
    grid-column: span 2;
    grid-row: span 1;
}

.portfolio-item.tall {
    grid-column: span 1;
    grid-row: span 2;
}

.portfolio-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* --- Overlays --- */
.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.portfolio-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover .item-overlay h3 {
    transform: translateY(0);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.item-overlay p {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover .item-overlay p {
    transform: translateY(0);
}

.center-btn-container {
    text-align: center;
    margin-top: 4rem;
}

/* =========================================
   VC3D SECTION
   ========================================= */
.vc3d {
    background: radial-gradient(circle at center, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.vc3d .section-title {
    color: var(--secondary);
    /* Blue title */
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 229, 255, 0.05);
}

.cinematic-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.video-overlay-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    padding: 80px 5vw;
    background-color: var(--bg-surface);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    display: flex;
    justify-content: center;
}

.contact-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 60px;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-text {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row input {
    flex: 1;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-btn {
    width: 100%;
    margin-top: 10px;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 5vw 20px 5vw;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-socials a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    color: #555;
    font-size: 0.85rem;
}

/* =========================================
   MODAL
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    /* Light blur background */
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: var(--bg-base);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: translateY(30px);
    transition: transform var(--transition-fast);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--accent);
}

.separator-line {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 20px auto;
}

#modalTitle {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

#modalFact {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.6;
}

.interactive-card {
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.interactive-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.fb-btn {
    background: #0084ff !important;
    color: white !important;
    border-color: #0084ff !important;
    text-decoration: none;
}

.fb-btn:hover {
    background: transparent !important;
    color: #0084ff !important;
    box-shadow: 0 0 20px rgba(0, 132, 255, 0.5) !important;
}

.sms-btn {
    background: #25D366 !important;
    color: white !important;
    border-color: #25D366 !important;
    text-decoration: none;
}

.sms-btn:hover {
    background: transparent !important;
    color: #25D366 !important;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5) !important;
}

.ig-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: white !important;
    border: none !important;
    text-decoration: none;
}

.ig-btn:hover {
    background: transparent !important;
    border: 1px solid #dc2743 !important;
    color: #dc2743 !important;
    box-shadow: 0 0 20px rgba(220, 39, 67, 0.5) !important;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item.wide,
    .portfolio-item.square {
        grid-column: 1;
        aspect-ratio: 16/9;
    }

    .portfolio-item.tall {
        grid-column: 1;
        aspect-ratio: 9/16;
    }
}

@media (max-width: 768px) {

    /* Adjust global typography for mobile */
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    /* Removed snapping overrides so it acts like a rolodex everywhere */
    section {
        min-height: 100vh;
        padding: 80px 20px;
        display: flex;
    }

    .hero {
        min-height: 100vh;
        display: flex;
        /* Keep hero centered */
    }

    /* Stack grid containers */
    .about-grid,
    .services-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Hide desktop nav, simple mobile solution for now */
    .nav-links {
        display: none;
    }

    /* Form and contact adjustments */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .contact-wrap {
        padding: 30px 15px;
        margin: 0 -20px;
        /* Bleed edge-to-edge on small screens */
        border-radius: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* =========================================
   CHAT BOT WIDGET UI
   ========================================= */
.ai-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

/* 1. The Launcher Icon */
.ai-launcher-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-tooltip {
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--accent);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.3);
    pointer-events: none;
    animation: bounceTooltip 2s infinite ease-in-out;
}

@keyframes bounceTooltip {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.ai-launcher-btn {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shadow-glow {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.2);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.1);
    }

    to {
        box-shadow: 0 0 35px rgba(0, 240, 255, 0.8), inset 0 0 25px rgba(0, 240, 255, 0.3);
    }
}

.ai-launcher-btn:hover {
    transform: scale(1.1);
}

.fpv-pilot-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition is removed here because JS will update the transform smoothly in requestAnimationFrame */
}

.fpv-pilot-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fpv-pilot-icon svg {
    color: var(--accent);
    width: 32px;
    height: 32px;
}

/* fallback when image is missing */

/* 2. The Chat Window (Glassmorphism) */
.ai-chat-window {
    width: 380px;
    height: 500px;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    transform-origin: bottom right;
}

.ai-chat-window.hidden {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    visibility: hidden;
    pointer-events: none;
}

.chat-header {
    background: rgba(10, 10, 10, 0.8);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--accent);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: transparent;
    /* lets glassmorphism show through */
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-message.bot {
    background: #1a1a1a;
    color: #e0e0e0;
    align-self: flex-start;
    border-top-left-radius: 0;
    border-left: 2px solid var(--accent);
}

.chat-message.user {
    background: var(--accent-faded);
    color: #fff;
    align-self: flex-end;
    border-top-right-radius: 0;
    border-right: 2px solid var(--accent);
}

.chat-input-area {
    padding: 15px;
    background: #0a0a0a;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: #111;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 20px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--accent);
}

.send-btn {
    background: var(--accent);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .chat-widget {
        width: 90%;
        height: 500px;
        right: 5%;
        bottom: 90px;
    }
}

/* =========================================
   3D DRONE MODEL VIEWER MODAL
   ========================================= */
.drone-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.drone-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drone-modal-content {
    width: 90vw;
    height: 90vh;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 188, 212, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: var(--transition-slow);
}

.drone-modal-overlay.active .drone-modal-content {
    transform: scale(1);
}

.drone-modal-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.8);
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.model-container {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: grab;
}

.model-container:active {
    cursor: grabbing;
}

.interaction-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.9rem;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--accent-faded);
    animation: bounceHint 2s infinite ease-in-out;
}

@keyframes bounceHint {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}

/* Hotspot Styles */
.hotspot {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    animation: pulseHotspot 2s infinite;
}

.hotspot:hover {
    background-color: var(--accent);
    box-shadow: 0 0 20px var(--accent);
    transform: scale(1.2);
}

.hotspot:focus {
    outline: none;
}

@keyframes pulseHotspot {
    0% {
        box-shadow: 0 0 0 0 rgba(176, 38, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(176, 38, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(176, 38, 255, 0);
    }
}

.hotspot-annotation {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    left: calc(100% + 15px);
    max-width: 250px;
    padding: 0.75rem 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: max-content;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.hotspot-annotation::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent var(--accent) transparent transparent;
}

.hotspot:hover .hotspot-annotation {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    scroll-snap-align: end;
    scroll-snap-stop: always;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
}

.footer-socials a {
    color: var(--text-muted);
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 5vw;
}

.footer-bottom p {
    color: var(--accent);
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    font-weight: 400;
}

/* =========================================
   CURSOR OVERRIDES
   ========================================= */
a,
button,
input[type="submit"],
input[type="button"],
.interactive-card,
.drone-card,
.btn-primary,
.btn-outline,
.hotspot {
    cursor: url('drone_cursor.png'), pointer !important;
}