/* API Drone - Homepage Styles */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    opacity: 0.9;
    z-index: 2;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 750px;
    padding: 0 1rem;
}

/* Badge */
.badge-cyber {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.4);
    border-radius: 4px;
    color: var(--color-accent);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

.badge-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-gray-300);
}

/* Typography */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFF 0%, #A0AAB8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display);
}

.hero-title .highlight-text {
    background: linear-gradient(135deg, #FFF 0%, #A0AAB8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-top: 10px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-300);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
     /* opacity: 0;
    Keep hidden until scrolled into view */
}

.animate-up.in-view {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Trusted By Section */
.trusted-section {
    padding: 4rem 0 0;
    position: relative;
    z-index: 10;
    margin-top: -80px;
}

.trusted-label {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.logo-marquee {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    /* Key for bulletproof marquee */
    width: 100%;
}

.logo-marquee::before,
.logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(to right, #0b0d11 0%, transparent 100%);
}

.logo-marquee::after {
    right: 0;
    background: linear-gradient(to left, #0b0d11 0%, transparent 100%);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.client-logo img {
    height: 45px;
    margin: 0 2.5rem;
    filter: grayscale(100%) opacity(0.5) brightness(2);
    transition: all 0.3s ease;
}

.client-logo img:hover {
    filter: grayscale(0%) opacity(1) brightness(1);
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Stats */
.stats-glass-container {
    background: rgba(20, 24, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    margin-bottom: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFF 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--color-gray-400);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    position: relative;
    background: radial-gradient(circle at 100% 0%, rgba(230, 57, 70, 0.05) 0%, transparent 50%);
}

.grid-style-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.deliverable-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.deliverable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-accent);
    transition: height 0.4s ease;
}

.deliverable-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.deliverable-card:hover::before {
    height: 100%;
}

.del-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.deliverable-card:hover .del-icon {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
    transform: scale(1.1);
}

.deliverable-card h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.deliverable-card p {
    color: var(--color-gray-400);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.card-arrow {
    display: flex;
    align-items: center;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.3s;
}

.deliverable-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   Map Section
   ========================================= */
.map-section {
    position: relative;
    height: 600px;
    background-color: #050505;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-header-container {
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    pointer-events: none;
    width: 100%;
}

.map-text-content {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    margin: 0 auto;
}

.map-container {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.map-overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, #000 100%);
    z-index: 2;
}

.custom-map-marker {
    background: transparent;
    border: none;
}

.custom-map-marker .marker-dot {
    width: 16px;
    height: 16px;
    background-color: var(--color-accent);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.4);
    animation: pulse 2s infinite;
}

/* =========================================
   Portfolio Section
   ========================================= */
.portfolio-section {
    padding: 6rem 0;
    background: #080a0d;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray-300);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.uc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.uc-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
}

.uc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(0.6) grayscale(70%);
}

.uc-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.9) grayscale(0%);
}

.uc-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(11, 13, 17, 0.95) 100%);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.4s ease;
}

.uc-card:hover .uc-content {
    background: linear-gradient(180deg, transparent 10%, rgba(11, 13, 17, 0.98) 100%);
}

.uc-tags {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.uc-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    backdrop-filter: blur(4px);
}

.uc-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.uc-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.uc-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.uc-card:hover .uc-content h3,
.uc-card:hover .uc-tags {
    transform: translateY(0);
}

.uc-card:hover .uc-content .uc-stats {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* =========================================
   Testimonial Section
   ========================================= */
.testimonial-section {
    padding: 8rem 0;
    background-color: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-card {
    background: transparent;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stars {
    color: #F59E0B;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.quote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2.5rem;
    color: white;
}

.client-info {
    font-style: normal;
}

.client-name {
    display: block;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-white);
}

.client-role {
    color: var(--color-gray-400);
    font-size: 0.9rem;
}

/* =========================================
   FAQ Section
   ========================================= */
.faq-section {
    padding: 6rem 0;
    background-color: var(--color-primary);
}

.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input {
    width: 100%;
    background: #0F0F0F;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem 1rem 3rem;
    border-radius: 99px;
    color: white;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-500);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

details {
    background: #0F0F0F;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: var(--transition-normal);
}

details[open] {
    background: #151515;
    border-color: rgba(230, 57, 70, 0.3);
}

summary {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

summary .chevron {
    transition: transform 0.3s ease;
    color: var(--color-gray-500);
}

details[open] summary .chevron {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-gray-300);
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.5rem;
    padding-top: 1rem;
}



/* =========================================
   Premium CTA Block
   ========================================= */
.premium-cta {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), radial-gradient(circle at 80% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 50%), #0A0A0A;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8rem 0;
    position: relative;
}

.cta-box {
    background: rgba(20, 24, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 4rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.cta-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    text-align: left;
}

.form-group.full {
    grid-column: span 2;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-gray-300);
}

.form-input,
.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    color: white;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
}

.form-select option {
    background: var(--color-primary);
    color: white;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #000;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--color-gray-400);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact .icon {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--color-gray-400);
    text-decoration: none;
}

@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .cta-form {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* =========================================
   HOMEPAGE MOBILE RESPONSIVENESS (Non-Destructive)
   ========================================= */
@media (max-width: 768px) {

    /* Hero Section */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
    }

    .hero-section {
        min-height: 80vh !important;
        padding-top: 60px !important;
    }

    .hero-actions {
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        max-width: 300px !important;
    }

    /* Stats */
    .trusted-section {
        padding-top: 2rem !important;
        margin-top: -40px !important;
    }

    .stats-glass-container {
        grid-template-columns: 1fr 1fr !important;
        padding: 1.5rem !important;
        gap: 1rem !important;
    }

    .stat-number {
        font-size: 2rem !important;
    }

    /* Services & Grid Style 4 */
    .grid-style-4 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .deliverable-card {
        padding: 1.5rem !important;
    }

    /* Marquee & Logos */
    .client-logo img {
        height: 30px !important;
        margin: 0 1.5rem !important;
    }

    /* Map Section */
    .map-section {
        height: 400px !important;
    }

    .map-text-content {
        padding: 1.5rem !important;
        max-width: 90% !important;
    }

    /* Portfolio / Case Studies */
    .portfolio-section {
        padding: 4rem 0 !important;
    }

    .uc-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .uc-card {
        height: 300px !important;
    }

    .filter-group {
        justify-content: center !important;
        margin-bottom: 2rem !important;
    }

    .filter-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Testimonials */
    .testimonial-section {
        padding: 4rem 0 !important;
    }

    .testimonial-card {
        padding: 1rem !important;
    }

    .quote {
        font-size: 1.25rem !important;
    }

    /* CTA Section */
    .premium-cta {
        padding: 4rem 0 !important;
    }

    .cta-box {
        padding: 2rem 1.5rem !important;
    }
}