/* Lorem Impulse - Main Styles */

:root {
    --primary-color: #00f2ff;
    /* Cyan tech vibe */
    --secondary-color: #ff5722;
    /* Orange accent */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-main: #e0e0e0;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.drone-container {
    text-align: center;
    position: relative;
}

.drone {
    font-size: 4rem;
    color: var(--primary-color);
    position: relative;
    animation: droneFloat 2s ease-in-out infinite;
}

/* Simulated propellers using pseudo elements or extra divs if needed, 
   but for simplicity with FontAwesome icon, we'll animate the icon itself slightly */

@keyframes droneFloat {

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

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

.loading-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulseText 1.5s infinite;
}

@keyframes pulseText {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-padding-top {
    padding-top: 60px;
}

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

/* --- Typography & Utilities --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-title p {
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--text-light);
    color: #000;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    /* Starts transparent */
}

.header.sticky {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
}

.logo .highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-cta {
    background: var(--primary-color);
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 20px;
    opacity: 1;
}

.btn-cta:hover {
    background: #fff;
    color: #000 !important;
}

.btn-cta::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

/* --- Hero --- */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1473968512647-3e447244af8f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(10, 10, 10, 1));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ddd;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 242, 255, 0.1);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
}

.service-card p {
    color: #bbb;
    font-size: 0.95rem;
}

/* --- Portfolio --- */
.portfolio-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #888;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 15px;
    cursor: pointer;
    transition: var(--transition);
    padding-bottom: 5px;
    position: relative;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--text-light);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay h4 {
    transform: translateY(0);
}

.portfolio-overlay p {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

.portfolio-overlay a {
    width: 50px;
    height: 50px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transform: scale(0);
    transition: var(--transition);
    transition-delay: 0.2s;
}

.portfolio-item:hover .portfolio-overlay a {
    transform: scale(1);
}

/* Featured Carousel */
.featured-carousel .item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin: 10px;
}

.featured-carousel .carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 5px;
    color: #fff;
    font-weight: 600;
}

/* --- About --- */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    position: relative;
}

.about-img img {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--primary-color);
    border-left: 5px solid var(--primary-color);
    z-index: -1;
}

.about-text {
    flex: 1;
}

.stats-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Testimonials --- */
.testimonial-card {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 15px;
    margin: 10px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.feedback {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.client-info h5 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.client-info span {
    font-size: 0.9rem;
    color: #888;
}

/* Owl Dots Override */
.owl-theme .owl-dots .owl-dot span {
    background: #444;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: var(--primary-color);
}

/* --- Contact --- */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    padding: 40px;
    /* Reduced specific padding */
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1 1 45%;
    /* Halves */
}

.form-group.full-width {
    flex: 1 1 100%;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.12);
}

/* Nice Select Overrides for Dark Mode */
.nice-select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.08);
    /* Match inputs */
    border: solid 1px transparent;
    /* Match inputs */
    border-radius: 8px;
    /* Match inputs */
    color: #a0a0a0;
    /* Placeholder color, roughly */
    line-height: 48px;
    /* Height adjustment */
    height: 48px;
    padding-left: 15px;
    /* Match inputs */
}

.nice-select .current {
    color: #fff;
    font-weight: 400;
    /* reset if needed, typically nice-select is bold by default sometimes */
}

.nice-select::after {
    border-bottom: 2px solid #ccc;
    border-right: 2px solid #ccc;
}

.nice-select:active,
.nice-select.open,
.nice-select:focus {
    border-color: var(--primary-color);
}

.nice-select .list {
    background-color: #1a1a1a;
    width: 100%;
}

.nice-select .option {
    color: #ccc;
}

.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
    background-color: #333;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 50px 0 20px;
    position: relative;
    border-top: 1px solid #222;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 20px;
}

.social-icons {
    margin-bottom: 30px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    display: inline-block;
    margin: 0 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: #000;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: #888;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    color: #555;
    font-size: 0.9rem;
    border-top: 1px solid #222;
    padding-top: 20px;
}