/* ========================================
   Autopilot GMS - Custom Styles
   ======================================== */

/* Base Styles */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #021C38;
    color: white;
    overflow-x: hidden;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Faster animations on mobile for snappier feel */
@media (max-width: 768px) {
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        transform: translateY(15px);
        transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    }

    .reveal-left {
        transform: translateX(-15px);
    }

    .reveal-right {
        transform: translateX(15px);
    }

    .reveal-scale {
        transform: scale(0.98);
    }
}

/* ========================================
   Gradient Text
   ======================================== */
.text-gradient {
    background: linear-gradient(135deg, #06EFB4 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Feature Card Hover Effects
   ======================================== */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #06EFB4;
    box-shadow: 0 10px 30px -10px rgba(6, 239, 180, 0.15);
}

/* ========================================
   Service Card Hover Effects
   ======================================== */
.service-card {
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
}

/* ========================================
   Pricing Card Effects
   ======================================== */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

/* ========================================
   CTA Button Glow Effect
   ======================================== */
.cta-primary {
    box-shadow: 0 0 15px rgba(6, 239, 180, 0.3);
    transition: all 0.3s ease;
}

.cta-primary:hover {
    box-shadow: 0 0 25px rgba(6, 239, 180, 0.5);
}

/* ========================================
   Bento Grid Layout
   ======================================== */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Hero Image Effects
   ======================================== */
.hero-image-wrapper {
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
    transform: scale(1.01);
}

/* ========================================
   Navbar Transitions
   ======================================== */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(2, 28, 56, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Mobile Menu Animation
   ======================================== */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #021C38 !important;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* ========================================
   Form Input Focus States
   ======================================== */
input:focus,
textarea:focus {
    outline: none;
    border-color: #06EFB4;
    box-shadow: 0 0 0 3px rgba(6, 239, 180, 0.1);
}

/* ========================================
   Smooth Scrolling
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .animate-scroll {
        animation: none;
    }

    .animate-float {
        animation: none;
    }

    .animate-pulse-glow {
        animation: none;
    }
}

/* ========================================
   Selection Colors
   ======================================== */
::selection {
    background-color: #06EFB4;
    color: #021C38;
}

::-moz-selection {
    background-color: #06EFB4;
    color: #021C38;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #021C38;
}

::-webkit-scrollbar-thumb {
    background: #032a52;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #06EFB4;
}

/* ========================================
   Loading States
   ======================================== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ========================================
   Link Underline Animation
   ======================================== */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #06EFB4;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* ========================================
   Video Container Overlay
   ======================================== */
#video-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(2, 28, 56, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   Responsive Typography
   ======================================== */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body {
        background: white;
        color: black;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }

    nav,
    #mobile-menu,
    .cta-primary,
    button {
        display: none;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-balance {
    text-wrap: balance;
}

/* Logo carousel - makes any logo appear light grey */
.logo-grey {
    filter: grayscale(100%) brightness(0) invert(70%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-grey:hover {
    filter: grayscale(0%) brightness(1) invert(0%);
    opacity: 1;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
