@import url('https://fonts.googleapis.com/css2?family=Anton&family=Lexend:wght@100..900&family=Mona+Sans:ital,wght@0,200..900;1,200..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Oxanium:wght@200..800&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

p {
    font-family: Montserrat;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    font-size: 16px;
    background-color: #131212;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    /* Initially hidden */
    opacity: 0;
    transform: translateY(20px);
    /* Start slightly below */
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000000000;
}

/* Hover effect */
#backToTop:hover {
    background-color: #333;
}

/* Show button with fade-up effect */
#backToTop.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    /* Move to original position */
}

/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Title & Description Section */
.description {
    background: #000;
    color: white;
    padding: 50px 10%;
    text-align: left;

}

.description h1 {
    font-size: 45px;
    font-weight: bold;
    margin-bottom: 25px;
}

.description p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Missions Section */
.missions {
    background: #000000;
    padding: 60px 10%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Mission Card */
.mission-card {
    display: flex;
    background: #0b0b0b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 90%;
    margin: 0 auto;
}

/* Hover Effect */
.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 60px rgba(255, 217, 0, 0.346);
}

/* Image Section */
.image-container {
    flex: 1;
    overflow: hidden;
    max-height: 300px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Hover Zoom Effect */
.mission-card:hover .image-container img {
    transform: scale(1.05);
}

/* Content Section */
.content {
    flex: 1;
    padding: 30px;
    color: white;
}

/* Title */
.content h2 {
    font-size: 28px;
    color: #fc7200;
    margin-bottom: 15px;
}

/* Text */
.content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Read More Button */
.read-more {
    text-decoration: none;
    color: #fc7200;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.read-more:hover {
    color: white;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Footer */
footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 15px;
}

/* ✅ Responsive Design */

/* Larger Screens (Desktop) */
@media (max-width: 1440px) {
    .mission-card {
        max-width: 80%;
    }
}

/* Medium Screens (Tablets) */
@media (max-width: 1024px) {
    .mission-card {
        flex-direction: column;
        max-width: 95%;
    }

    .image-container {
        height: 240px;
    }
}

/* Small Screens (Phones) */
@media (max-width: 768px) {
    .description h1 {
        font-size: 30px;
    }

    .content h2 {
        font-size: 22px;
    }

    .content p {
        font-size: 14px;
    }

    .missions {
        padding: 30px 5%;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
        letter-spacing: 2px !important;
        line-height: 1.1 !important;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 5vw, 1.3rem) !important;
        letter-spacing: 1px !important;
        margin-top: 10px !important;
    }

    .video-hero {
        height: 70vh !important;
    }

    .video-overlay {
        padding: 0 15px !important;
    }
}


/* Hero Section Container */
.video-hero {
    position: relative;
    height: 80vh;
    /* Adjust height as needed (80% of screen) */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Video Styling */
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    /* Puts video behind text */
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Ensures video fills the area without stretching */
}

/* Text Overlay Styling */
.video-overlay {
    text-align: center;
    color: #ffffff;
    z-index: 1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    /* Makes text readable over video */
}

/* Update your .hero-title class in robofest.css */

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 5px;
    color: #ffffff;
    /* This changes the text to pure white */
    text-transform: uppercase;
    font-family: "Special Gothic Expanded One", sans-serif;

    /* This shadow adds a 'glow' or 'outline' so it doesn't get lost in white clouds/bright light in the video */
    text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    /* Keeping subtitle white too for a clean look */
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    /* Slightly transparent for subtlety */
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

/*comp objectieve */

/* Mission Section */
/* Container for the whole section */
.mission-section {
    background-color: #000;
    padding: 60px 10%;
    color: white;
}

.mission-main-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 60px;
    border-bottom: 3px solid #ff5e00;
    display: inline-block;
    padding-bottom: 5px;
}

/* Grid Container for 2x2 Matrix */
.mission-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
}

/* Objective Card Styling */
.objective-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 94, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

/* Initial state - cards are hidden */
.objective-card:not(.in-view) {
    opacity: 0;
}

/* When in view, trigger animations */
.objective-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Left cards animate in from left */
.objective-card.left-card.in-view {
    animation: slideInFromLeft 0.8s ease forwards;
}

/* Right cards animate in from right */
.objective-card.right-card.in-view {
    animation: slideInFromRight 0.8s ease forwards;
}

/* Stagger animations */
.objective-card:nth-child(1) {
    animation-delay: 0.1s;
}

.objective-card:nth-child(2) {
    animation-delay: 0.2s;
}

.objective-card:nth-child(3) {
    animation-delay: 0.3s;
}

.objective-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-60px) translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(60px) translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* Hover Effects */
.objective-card:hover {
    background: rgba(255, 94, 0, 0.15);
    border-color: #ff5e00;
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 94, 0, 0.3);
}

/* Objective Content (Title and Text) */
.objective-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.objective-content h3 {
    font-size: 1.4rem;
    color: #ff5e00;
    margin-bottom: 12px;
    margin-top: 0;
}

.objective-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}

/* Objective Image Card */
.objective-image-card {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.objective-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.objective-card:hover .objective-image-card img {
    transform: scale(1.08);
}






/* dev team section */
.glass-theme {
    background: #0a0a0a;
    padding: 80px 5%;
    text-align: center;
}

.team-heading {
    text-align: center;
    font-family: 'Anton', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 60px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

/* Optional underline effect for headings */
.team-heading::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: #ff5e00;
    margin: 10px auto 0;
    border-radius: 2px;
}

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

/* The Creative Card */
.team-card-new {
    background: rgba(255, 255, 255, 0.03);
    /* Very subtle glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    /* Softened corners as requested */
    width: 260px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.team-card-new:hover {
    background: rgba(255, 94, 0, 0.05);
    /* Faint orange tint on hover */
    border-color: #ff5e00;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 94, 0, 0.2);
}

/* Softened Rectangle Image */
.image-wrapper {
    width: 100%;
    height: 240px;
    border-radius: 18px;
    /* Slightly less than card for nested look */
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.team-card-new:hover .image-wrapper {
    border-color: #ff5e00;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Section */
.info-wrapper {
    text-align: left;
    padding: 0 5px;
}

.name-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.name-box h3 {
    color: #fff;
    font-size: 1.4rem;
    margin: 0;
}

.name-box i {
    color: #0077b5;
    /* LinkedIn Color */
    font-size: 1.3rem;
    transition: 0.3s;
}

.name-box i:hover {
    color: #fff;
    transform: scale(1.2);
}

.role-tag {
    color: #ff5e00;
    /* Arrow Orange */
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-top: 8px;
    text-transform: uppercase;
}


/* tech */

.drone-specs-section {
    background: #000;
    padding: 60px 5%;
}

.technical-3x3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Forces 3 columns */
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-tile {
    border-radius: 20px;
    /* Softened corners */
    padding: 30px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Active class for scroll animation */
.tech-tile:hover,
.tech-tile.active {
    border-color: #ff5e00;
    background: rgba(255, 94, 0, 0.07);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Specific Highlight for the Weight Tile */
.highlight-orange {
    border: 1px solid #ff5e00;
}

.tile-icon {
    font-size: 2.2rem;
    position: absolute;
    top: 25px;
    left: 25px;
    color: white;
}

.tile-icon i {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 1. Search (Radar Pulse) */
.tech-tile:hover .icon-search i,
.tech-tile.active .icon-search i {
    animation: radarPulse 1.5s infinite;
}

@keyframes radarPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 2. Swarm (Coordinate/Sway) */
.tech-tile:hover .icon-swarm i,
.tech-tile.active .icon-swarm i {
    animation: swarmHover 2s ease-in-out infinite;
}

@keyframes swarmHover {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(-5px) rotate(-10deg);
    }

    75% {
        transform: translateX(5px) rotate(10deg);
    }
}

/* 3. Chip (Processing Pulse) */
.tech-tile:hover .icon-chip i,
.tech-tile.active .icon-chip i {
    animation: processingPulse 1.5s infinite;
}

@keyframes processingPulse {

    0%,
    100% {
        transform: scale(1);
        color: #fff;
        text-shadow: none;
    }

    50% {
        transform: scale(1.15);
        color: #00ffff;
        text-shadow: 0 0 15px #00ffff;
    }
}



/* 4. Hand (Wave) */
.tech-tile:hover .icon-hand i,
.tech-tile.active .icon-hand i {
    animation: handWave 1s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes handWave {

    0%,
    100% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(15deg);
    }
}

/* 5. Weight (Bounce) */
.tech-tile:hover .icon-weight i,
.tech-tile.active .icon-weight i {
    animation: gentleBounce 1s infinite;
}

@keyframes gentleBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* 6. Power (Flash) */
.tech-tile:hover .icon-power i,
.tech-tile.active .icon-power i {
    animation: powerFlash 0.3s alternate infinite;
    color: #ffd700;
    /* Gold */
}

@keyframes powerFlash {
    from {
        opacity: 1;
        text-shadow: 0 0 10px #ff5e00;
    }

    to {
        opacity: 0.6;
        text-shadow: 0 0 2px #ff5e00;
    }
}

.tech-tile h3 {
    color: #ff5e00;
    /* Team Arrow Orange */
    margin-bottom: 12px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tech-tile p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive: 2 columns for tablets, 1 for mobile */
@media (max-width: 768px) {
    .technical-3x3-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .tech-tile {
        padding: 15px !important;
        min-height: 160px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* Align content from top */
        text-align: left !important;
    }

    .tile-icon {
        position: static !important; /* Remove absolute positioning */
        font-size: 1.8rem !important;
        margin-bottom: 12px !important;
        display: block !important;
    }

    .tech-tile h3 {
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
        line-height: 1.2 !important;
    }

    .tech-tile p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }

    .mission-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .objective-card {
        border-radius: 12px;
    }

    .objective-content {
        padding: 15px;
    }

    .objective-content h3 {
        font-size: 0.9rem !important;
        margin-bottom: 5px;
    }

    .objective-content p {
        font-size: 0.75rem;
    }

    .mission-main-title, .team-heading {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        margin-bottom: 30px !important;
    }

    .objective-image-card {
        height: 120px;
    }
}


/* Gallery Section */

.gallery-section {
    background-color: #000;
    padding: 60px 0;
    /* Full width padding */
    overflow: hidden;
}

/* Gallery Infinite Marquee */
.gallery-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-marquee_rev {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-track {
    display: flex;
    width: max-content;
    gap: 30px;
    animation: marquee-scroll 40s linear infinite;
    padding-left: 30px;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.gallery-track_rev {
    display: flex;
    width: max-content;
    gap: 30px;
    animation: marquee-scroll-rev 40s linear infinite;
    padding-left: 30px;
}

.gallery-track_rev:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll-rev {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}


.gallery-item_rev {
    flex: 0 0 350px;
    max-width: 350px;
    height: 280px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    clip-path: inset(0 round 8px);
    border: 1px solid rgba(255, 94, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item_rev img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item_rev:hover {
    transform: translateY(+5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    border-color: #ff5e00;
    filter: drop-shadow(0 0 5px rgba(255, 94, 0, 0.5));
    z-index: 10;
}

.gallery-item_rev:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Inner Overlay Effect */
.gallery-item_rev::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(255, 94, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item_rev:hover::before {
    opacity: 1;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .gallery-item_rev {
        width: 280px;
        /* Smaller images on mobile */
        height: 180px;
    }
}

.gallery-item {
    flex: 0 0 350px;
    max-width: 350px;
    height: 280px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    clip-path: inset(0 round 8px);
    border: 1px solid rgba(255, 94, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    border-color: #ff5e00;
    filter: drop-shadow(0 0 5px rgba(255, 94, 0, 0.5));
    z-index: 10;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Inner Overlay Effect */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(255, 94, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .gallery-item {
        width: 280px;
        /* Smaller images on mobile */
        height: 180px;
    }
}

/* Lightbox CSS */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
    object-fit: contain;
    background: #000;
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #ff5e00, #ffaa00, #ff5e00) 1;
    animation: zoomIn 0.3s, borderPulse 2s infinite linear;
    box-shadow: 0 0 30px rgba(255, 94, 0, 0.4);
    border-radius: 4px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.close-btn:hover,
.close-btn:focus {
    color: #ff5e00;
    text-decoration: none;
    cursor: pointer;
}

/* Navigation Buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(255, 94, 0, 0.8);
    color: #000;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 94, 0, 0.4);
        border-image-source: linear-gradient(45deg, #ff5e00, #ffe600, #ff5e00);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 94, 0, 0.8);
        border-image-source: linear-gradient(180deg, #ff5e00, #ffe600, #ff5e00);
    }

    100% {
        box-shadow: 0 0 20px rgba(255, 94, 0, 0.4);
        border-image-source: linear-gradient(360deg, #ff5e00, #ffe600, #ff5e00);
    }
}

.video_rev {
    flex: 0 0 350px;
    max-width: 350px;
    height: 280px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    clip-path: inset(0 round 8px);
    border: 1px solid rgba(255, 94, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video_rev video {
    border-radius: 16px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover effect for video items */
.video_rev:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    border-color: #ff5e00;
    filter: drop-shadow(0 0 5px rgba(255, 94, 0, 0.5));
    z-index: 10;
}

.video_rev:hover video {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Inner Overlay Effect */
.video_rev::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(255, 94, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s;
}

.video_rev:hover::before {
    opacity: 1;
}


/* 3D Model Showcase Styles */
.model-showcase-section {
    background: #000;
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    /* Enable 3D perspective */
}

/* Background Cyber Grid Effect */
.model-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 94, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 94, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(40px) translateZ(-200px);
    }
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Base Card Style with Entrance Animation */
.model-card {
    background: rgb(20, 20, 20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    /* Animation Properties */
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Staggered Animation Delays */
.model-card:nth-child(1) {
    animation-delay: 0.1s;
}

.model-card:nth-child(2) {
    animation-delay: 0.2s;
}

.model-card:nth-child(3) {
    animation-delay: 0.3s;
}

.model-card:nth-child(4) {
    animation-delay: 0.4s;
}

.model-card:nth-child(5) {
    animation-delay: 0.5s;
}

.model-card:nth-child(6) {
    animation-delay: 0.6s;
}

.model-card:nth-child(7) {
    animation-delay: 0.7s;
}

.model-card:nth-child(8) {
    animation-delay: 0.8s;
}

.model-card:nth-child(n+9) {
    animation-delay: 0.9s;
}

/* Pulse Animation for Border */
@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(255, 94, 0, 0.3);
        box-shadow: 0 0 15px rgba(255, 94, 0, 0.1);
    }

    50% {
        border-color: rgba(255, 94, 0, 0.8);
        box-shadow: 0 0 25px rgba(255, 94, 0, 0.3);
    }
}

/* Featured Card (Main Drone) */
.model-card.featured {
    grid-column: span 4;
    min-height: 550px;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(135deg, rgb(25, 25, 25) 0%, rgb(10, 10, 10) 100%);
    border: 1px solid rgba(255, 94, 0, 0.3);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, borderGlow 4s infinite;
}

/* Wide Cards */
.model-card.wide {
    grid-column: span 2;
}

/* Crazy Hover Effects */
.model-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #ff5e00;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 94, 0, 0.2),
        inset 0 0 20px rgba(255, 94, 0, 0.1);
    z-index: 10;
}

/* Scanning Laser Line */
.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            rgba(255, 94, 0, 0.3),
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.model-card:hover::before {
    left: 200%;
    transition: 0.7s ease-in-out;
}

/* Neon Corner Accents */
.model-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(45deg, transparent 40%, #ff5e00 50%, transparent 60%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.model-card:hover::after {
    opacity: 1;
}

/* Feature Card Internals */
.model-card.featured .model-viewer-container {
    height: 480px;
    width: 65%;
    margin: 0;
    background: radial-gradient(circle at center, rgba(255, 94, 0, 0.1) 0%, transparent 60%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px 0 0 16px;
    position: relative;
}

.model-card.featured .main-card-content {
    width: 35%;
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Rotating Gear/Tech element background for featured card text */
.model-card.featured .main-card-content::before {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="%23333" stroke-width="2" fill="none" stroke-dasharray="10 5" /></svg>');
    opacity: 0.3;
    animation: rotateSlow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateSlow {
    100% {
        transform: rotate(360deg);
    }
}

.model-card.featured h3 {
    font-size: 2.8rem;
    background: linear-gradient(90deg, #fff, #ff5e00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 94, 0, 0.4);
}

/* Standard Typography */
.model-card h3 {
    color: #ff5e00;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.model-card:hover h3 {
    text-shadow: 0 0 10px rgba(255, 94, 0, 0.8);
    letter-spacing: 2px;
}

.model-card p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: auto;
    transition: 0.3s;
}

.model-card:hover p {
    color: #fff;
}

/* Model Viewer Container */
.model-viewer-container {
    width: 100%;
    height: 220px;
    margin-bottom: 15px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    border-radius: 12px;
    transition: 0.4s;
}

.model-card:hover .model-viewer-container {
    background: radial-gradient(circle at center, rgba(255, 94, 0, 0.15) 0%, transparent 70%);
    box-shadow: inset 0 0 20px rgba(255, 94, 0, 0.05);
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .model-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .model-card.featured {
        grid-column: span 3;
    }
}

@media (max-width: 992px) {
    .model-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .model-card.featured {
        grid-column: span 2;
        flex-direction: column;
        text-align: center;
    }

    .model-card.featured .model-viewer-container {
        width: 100%;
        height: 350px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px 16px 0 0;
    }

    .model-card.featured .main-card-content {
        width: 100%;
        padding: 30px;
        align-items: center;
    }

    .model-card.wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .model-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .model-card.featured,
    .model-card.wide {
        grid-column: span 2;
    }

    .model-viewer-container {
        height: 160px; /* Scaled down for 2-column */
    }

    .model-card h3 {
        font-size: 0.9rem;
    }

    .model-card p {
        font-size: 0.75rem;
    }
}