/* ASTRA Website - Main Styles */

/* Import Component Styles */
@import url('components.css');
@import url('animations.css');

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1d4ed8;
    --accent-blue: #3b82f6;
    --text-dark: #111827;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f8fafc;
    --border-light: #e5e7eb;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Navigation Styles */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Hero Section Animations */
.drone-flight-path {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
    animation: dronePath 8s ease-in-out infinite;
}

@keyframes dronePath {
    0%, 100% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: translateX(100%) rotate(45deg);
        opacity: 1;
    }
}

.topographic-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 98%, rgba(59, 130, 246, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(59, 130, 246, 0.1) 100%);
    background-size: 50px 50px;
    animation: topoLines 20s linear infinite;
}

@keyframes topoLines {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* About Section Visual */
.drone-surveying-visual {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.drone-image {
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="%23ffffff" opacity="0.2"/><circle cx="50" cy="50" r="30" fill="%23ffffff" opacity="0.3"/><circle cx="50" cy="50" r="15" fill="%23ffffff" opacity="0.5"/></svg>') center/contain no-repeat;
    top: 20%;
    left: 20%;
    animation: droneFloat 6s ease-in-out infinite;
}

@keyframes droneFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
    }
}

.ai-grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Solutions Cards */
.solution-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.solution-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-8px);
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* Technology Globe */
.globe-visualization {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    border-radius: 50%;
    position: relative;
    animation: globeRotate 20s linear infinite;
    box-shadow: 
        0 0 50px rgba(102, 126, 234, 0.3),
        inset -20px -20px 50px rgba(0, 0, 0, 0.2);
}

.globe::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    animation: globeShine 3s ease-in-out infinite;
}

@keyframes globeRotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes globeShine {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

.data-points {
    position: absolute;
    width: 100%;
    height: 100%;
}

.point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    animation: pointPulse 2s ease-in-out infinite;
}

.point-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.point-2 {
    top: 30%;
    right: 20%;
    animation-delay: 0.4s;
}

.point-3 {
    bottom: 25%;
    left: 25%;
    animation-delay: 0.8s;
}

.point-4 {
    bottom: 35%;
    right: 15%;
    animation-delay: 1.2s;
}

.point-5 {
    top: 50%;
    left: 50%;
    animation-delay: 1.6s;
}

@keyframes pointPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
}

.testimonials-track {
    transition: transform 0.5s ease-in-out;
}

.testimonial-dot {
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 1.125rem;
    }
    
    .solution-card {
        margin-bottom: 1rem;
    }
    
    .globe {
        width: 150px;
        height: 150px;
    }
    
    .drone-surveying-visual {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .testimonial-slide {
        padding: 2rem;
    }
}

/* Loading Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Button Hover Effects */
button {
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Performance Optimizations */
* {
    will-change: auto;
}

.drone-flight-path,
.topographic-lines,
.globe,
.point {
    will-change: transform, opacity;
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .drone-flight-path,
    .topographic-lines,
    .ai-grid-overlay {
        display: none;
    }
    
    .globe,
    .point {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0000ff;
        --text-dark: #000000;
        --text-gray: #333333;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .drone-flight-path,
    .topographic-lines,
    .globe,
    .point {
        animation: none;
    }
}
