/* Base Styles */
:root {
    --primary-color: #0a66c2;
    --secondary-color: #00c4cc;
    --accent-color: #00e676;
    --dark-color: #1a3e72;
    --light-color: #f9f9f9;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --glass-color: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --neon-glow: 0 0 10px rgba(0, 230, 118, 0.7);
    --tech-font: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

/* Preload state - show all critical content immediately */
body.preload {
    animation: none !important;
    transition: none !important;
}

body.preload .title-word,
body.preload .hero-subtitle,
body.preload .btn,
body.preload .hero-visual {
    opacity: 1 !important;
    transform: none !important;
}

/* Loading indicator */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* 3D Terrain Background */
.terrain-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.8;
}

/* Data Particles */
.data-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.6;
}

/* AI Neural Network Visualization */
.ai-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Weather System */
.weather-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Glassmorphic Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--glass-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.5s ease;
}

.main-header.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 102, 194, 0.8);
    backdrop-filter: blur(16px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.holographic-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

#logo-3d-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2); /* Optional fallback background */
}

#logo-3d-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

.holographic-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: hologramEffect 6s linear infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes hologramEffect {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.logo-image {
    width: 70%;
    height: auto;
    filter: brightness(0) invert(1);
    z-index: 2;
}

.logo-container h1 {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--text-primary), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.logo-container h1 span {
    font-weight: 300;
    color: var(--accent-color);
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.link-text {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.link-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover .link-text {
    transform: translateY(-3px);
}

.nav-link:hover .link-hover {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-btn {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}

.btn-hover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.nav-btn span {
    position: relative;
    z-index: 2;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
}

.nav-btn:hover .btn-hover {
    opacity: 1;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 15% 5% 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    position: relative;
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.5);
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}

.title-word-1 {
    color: var(--text-primary);
}

.title-word-2 {
    color: var(--secondary-color);
}

.title-word-3 {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-visual {
    flex: 1;
    position: relative;
    min-height: 400px;
    perspective: 1000px;
}

/* Drone Animation */
.drone-container {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.drone-model {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: floatDrone 6s ease-in-out infinite;
}

.drone-body {
    position: absolute;
    width: 50px;
    height: 30px;
    background: #607D8B;
    border-radius: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(20deg);
    box-shadow: 0 10px 25px rgba(7, 37, 204, 0.3);
}

.drone-arm {
    position: absolute;
    width: 80px;
    height: 10px;
    background: #455A64;
    border-radius: 5px;
}

.drone-arm.arm-1 {
    transform: rotate(0deg) translateX(40px);
    top: 50%;
    left: 50%;
}
.drone-arm.arm-2 {
    transform: rotate(90deg) translateX(40px);
    top: 50%;
    left: 50%;
}
.drone-arm.arm-3 {
    transform: rotate(180deg) translateX(40px);
    top: 50%;
    left: 50%;
}
.drone-arm.arm-4 {
    transform: rotate(270deg) translateX(40px);
    top: 50%;
    left: 50%;
}

.drone-propeller {
    position: absolute;
    width: 40px; /* Increased length */
    height: 5px;
    background: #111111; /* Dark black color */
    border-radius: 2px;
    animation: spinPropeller 0.1s linear infinite;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.3); /* Optional subtle glow */
}

.drone-propeller.propeller-1 {
    top: calc(50% - 75px);
    left: calc(50% - -20px);
}
.drone-propeller.propeller-2 {
    top: calc(50% - 0px);
    left: calc(50% + 95px);
    transform: rotate(90deg);
}
.drone-propeller.propeller-3 {
    top: calc(75% + 1px);
    left: calc(50% - -20px);
}
.drone-propeller.propeller-4 {
    top: calc(50% - -1px);
    left: calc(50% - 55px);
    transform: rotate(90deg);
}

.drone-camera {
    position: absolute;
    width: 15px;
    height: 10px;
    background: #ea0542;
    border-radius: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(15px) rotateX(20deg);
}

.drone-sensor {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff2222;
    border-radius: 50%;
}

.drone-sensor.sensor-1 {
    top: calc(50% - 10px);
    left: calc(50% - 20px);
    transform: translate(-50%, -50%);
}
.drone-sensor.sensor-2 {
    top: calc(50% - 10px);
    left: calc(50% + 20px);
    transform: translate(-50%, -50%);
}

.scanning-beam {
    position: absolute;
    width: 200px;
    height: 2px;
    background: rgba(255, 193, 7, 0.5);
    top: 60%;
    left: 50%;
    transform: translateX(-50%) rotateX(60deg);
    box-shadow: 0 0 20px 5px rgba(255, 193, 7, 0.3);
    animation: scanBeam 3s ease-in-out infinite;
}

.data-stream {
    position: absolute;
    width: 5px;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(243, 107, 33, 0.8));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(75px);
    animation: dataStream 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes floatDrone {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) rotateX(10deg);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-20px) rotateX(10deg);
    }
}

@keyframes spinPropeller {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scanBeam {
    0%, 100% {
        width: 200px;
        opacity: 0.5;
    }
    50% {
        width: 250px;
        opacity: 0.8;
    }
}

@keyframes dataStream {
    0%, 100% {
        height: 150px;
        opacity: 0.5;
    }
    50% {
        height: 200px;
        opacity: 0.8;
    }
}

.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}

.scroll-indicator p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
    animation: fadeInOut 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, 10px);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Real-Time Data Dashboard */
.data-dashboard {
    padding: 8rem 5%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.data-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2 span {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-card {
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Add the card-link styles here */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-link:hover {
    text-decoration: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.card-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-badge.live {
    background: rgba(255, 0, 0, 0.2);
    color: #ff5252;
    animation: pulse 2s infinite;
}

.card-badge.updating {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.card-visual {
    height: 200px;
    position: relative;
    margin-bottom: 1.5rem;
}

/* Globe Visualization */
.globe-visualization {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.globe {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: url('images/css1.png') center/cover;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 198, 204, 0.5);
    animation: rotateGlobe 30s linear infinite;
}

.data-points {
    position: absolute;
    width: 100%;
    height: 100%;
}

.data-points::before,
.data-points::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 10px 3px rgba(0, 230, 118, 0.5);
}

.data-points::before {
    top: 30%;
    left: 60%;
    animation: pulse 2s infinite;
}

.data-points::after {
    top: 70%;
    left: 30%;
    animation: pulse 2s infinite 0.5s;
}

.pulse-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 198, 204, 0.3);
    animation: expandPulse 5s linear infinite;
}

@keyframes rotateGlobe {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 360px 0;
    }
}

@keyframes expandPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Soil Analysis Visualization */
.soil-analysis {
    position: absolute;
    width: 200px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.soil-layer {
    position: absolute;
    width: 100%;
    height: 40px;
    left: 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.soil-layer.layer-1 {
    background: #5D4037;
    top: 0;
    transform: rotateX(30deg);
}
.soil-layer.layer-2 {
    background: #795548;
    top: 30px;
    transform: rotateX(30deg);
}
.soil-layer.layer-3 {
    background: #A1887F;
    top: 60px;
    transform: rotateX(30deg);
}

.soil-probe {
    position: absolute;
    width: 8px;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #2196F3);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: sensorPulse 3s infinite;
}

.nutrient-data {
    position: absolute;
    width: 100%;
    height: 100%;
}

.nutrient-data::before,
.nutrient-data::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFC107;
    box-shadow: 0 0 10px 3px rgba(255, 193, 7, 0.5);
}

.nutrient-data::before {
    top: 20%;
    left: 30%;
    animation: floatUp 3s infinite ease-in-out;
}

.nutrient-data::after {
    top: 50%;
    left: 70%;
    animation: floatUp 3s infinite 0.5s ease-in-out;
}

@keyframes sensorPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 10px 5px rgba(33, 150, 243, 0.5);
    }
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Weather Map Visualization */
.weather-map {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.map-base {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('images/css2.png') center/cover;
    border-radius: 10px;
    opacity: 0.8;
}

.weather-fronts {
    position: absolute;
    width: 100%;
    height: 100%;
}

.weather-fronts::before,
.weather-fronts::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.weather-fronts::before {
    top: 30%;
    left: 20%;
    animation: moveFront 15s linear infinite;
}

.weather-fronts::after {
    top: 60%;
    left: 60%;
    animation: moveFront 15s linear infinite reverse;
}

.precipitation {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('images/css8.png');
    opacity: 0;
    animation: rainFall 5s linear infinite;
}

@keyframes moveFront {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, 10px);
    }
    50% {
        transform: translate(0, 20px);
    }
    75% {
        transform: translate(-20px, 10px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes rainFall {
    0%, 100% {
        opacity: 0;
        background-position: 0 0;
    }
    10% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        background-position: 0 100px;
    }
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* AI Solutions Section */
.ai-solutions {
    padding: 8rem 5%;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.8) 0%, rgba(0, 196, 204, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.ai-solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/css7.png');
    opacity: 0.1;
    z-index: 0;
}

.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 1;
}

.ai-feature {
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.ai-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.ai-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--accent-color);
    position: relative;
}

.icon-halo {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1); /* Center perfectly */
    animation: pulse 3s infinite;
    opacity: 0.5;
    box-sizing: border-box;
    margin: 0; /* Remove any default margins */
    padding: 0; /* Remove any default padding */
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0;
    }
}


.ai-feature h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.ai-feature p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-graph {
    height: 120px;
    position: relative;
    margin-top: 1.5rem;
}

/* Predictive Analytics Graph */
.graph-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 50%;
    left: 0;
}

.graph-points {
    position: absolute;
    width: 100%;
    height: 100%;
}

.graph-points::before,
.graph-points::after,
.graph-points div {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
}

.graph-points::before {
    top: 30%;
    left: 10%;
    animation: pulse 2s infinite;
}

.graph-points::after {
    top: 50%;
    left: 30%;
    animation: pulse 2s infinite 0.3s;
}

.graph-points div:nth-child(1) {
    top: 70%;
    left: 50%;
    animation: pulse 2s infinite 0.6s;
}

.graph-points div:nth-child(2) {
    top: 40%;
    left: 70%;
    animation: pulse 2s infinite 0.9s;
}

.graph-prediction {
    position: absolute;
    width: 80%;
    height: 2px;
    background: var(--accent-color);
    top: 30%;
    left: 10%;
    transform-origin: left;
    transform: scaleX(0);
    animation: predictGrowth 4s infinite;
}

@keyframes predictGrowth {
    0% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

/* Autonomous Systems Graph */
.graph-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.graph-path {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,50 Q25,10 40,50 T70,50 T90,30" fill="none" stroke="%2300e676" stroke-width="2" stroke-dasharray="200" stroke-dashoffset="200"/></svg>');
    background-size: 100% 100%;
    animation: drawPath 3s infinite linear;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Crop Optimization DNA Graph */
.dna-strand {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,10 C60,30 40,50 50,70 C60,90 40,110 50,130" fill="none" stroke="rgba(255,255,255,0.3)" stroke-width="1"/></svg>');
    background-size: 100% 100%;
}

.dna-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dna-nodes::before,
.dna-nodes::after,
.dna-nodes div {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: scale(0);
    animation: dnaPulse 2s infinite;
}

.dna-nodes::before {
    top: 20%;
    left: 45%;
    animation-delay: 0s;
}

.dna-nodes::after {
    top: 50%;
    left: 55%;
    animation-delay: 0.3s;
}

.dna-nodes div:nth-child(1) {
    top: 80%;
    left: 45%;
    animation-delay: 0.6s;
}

@keyframes dnaPulse {
    0%, 100% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
        box-shadow: 0 0 10px 3px rgba(0, 230, 118, 0.5);
    }
}

.ai-process {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    margin: 1rem;
    flex: 1;
    min-width: 200px;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-step h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.process-arrow {
    width: 50px;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 10"><path d="M0,5 L40,5 M40,5 L35,0 M40,5 L35,10" fill="none" stroke="%2300e676" stroke-width="2"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}

/* Drone Technology Showcase */
.drone-showcase {
    padding: 8rem 5%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.drone-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.showcase-container {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-content {
    flex: 1;
}

.showcase-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.showcase-content h2 span {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.showcase-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.drone-specs {
    margin-top: 2rem;
}

.spec {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.spec:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.spec-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 230, 118, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.spec-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.spec-details p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.showcase-visual {
    flex: 1;
    height: 500px;
    position: relative;
}

.drone-animation-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    perspective: 1000px;
}

.drone-3d-model {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('images/css3.png') center/contain no-repeat;
    animation: floatDrone2 8s ease-in-out infinite;
}

.scanning-grid {
    position: absolute;
    width: 80%;
    height: 60%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: 
        linear-gradient(rgba(0, 230, 118, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 230, 118, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(0, 230, 118, 0.2);
    animation: scanGrid 10s linear infinite;
}

.data-transmission {
    position: absolute;
    width: 5px;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(0, 230, 118, 0.8));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(75px);
    animation: dataStream 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes floatDrone2 {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) rotate(5deg);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-30px) rotate(-5deg);
    }
}

@keyframes scanGrid {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 20px 20px;
    }
}

.drone-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.feature-card {
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-visual {
    margin-bottom: 1.5rem;
}

.hexagon {
    width: 80px;
    height: 80px;
    background: rgba(0, 230, 118, 0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.feature-card:hover .hexagon {
    background: rgba(0, 230, 118, 0.2);
    transform: rotate(30deg);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Satellite Technology Section */
.satellite-tech {
    padding: 8rem 5%;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.8) 0%, rgba(0, 196, 204, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.satellite-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/dot-pattern.png');
    opacity: 0.1;
    z-index: 0;
}

.tech-container {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tech-visual {
    flex: 1;
    height: 500px;
    position: relative;
}

.satellite-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.orbit-path {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.earth-globe {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('images/css9.png') center/cover;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 198, 204, 0.5);
}

.satellite-model {
    position: absolute;
    width: 40px;
    height: 20px;
    background: #c5f508;
    border-radius: 5px;
    top: 50%;
    left: 50%;
    /* Initial position at 0 degrees */
    transform: translate(-50%, -50%) translateX(250px) rotate(0deg);
    /* Animation will handle the rotation */
    animation: orbitSatellite 15s linear infinite;
}

.scan-beam {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 230, 118, 0.8));
    top: 50%;
    left: 50%;
    transform-origin: top center;
    animation: 
        orbitSatellite 15s linear infinite,
        scanBeam 5s linear infinite;
    /* Match the satellite's orbit animation */
    transform: translate(-50%, -50%) rotate(0deg) translateX(250px) rotate(0deg);
    z-index: 2; /* Ensure it's above the orbit path */
}

@keyframes orbitSatellite {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(250px) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(250px) rotate(-360deg);
    }
}

@keyframes scanBeam {
    0%, 100% {
        height: 100px;
        opacity: 0.8;
    }
    50% {
        height: 150px;
        opacity: 1;
    }
}

.tech-content {
    flex: 1;
}

.tech-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.tech-content h2 span {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tech-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tech-specs {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.spec-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    flex: 1;
}

.spec-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.spec-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tech-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-bullet {
    width: 15px;
    height: 15px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-top: 0.3rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Case Studies */
.case-studies {
    padding: 8rem 5%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.case-visual {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.case-before {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('images/css3ff.png') center/cover;
}

.case-after {
    position: absolute;
    width: 50%;
    height: 100%;
    background: url('images/case-after.jpg') center/cover;
    right: 0;
}

.case-slider {
    position: absolute;
    width: 5px;
    height: 100%;
    background: var(--accent-color);
    left: 50%;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.case-content {
    padding: 2rem;
}

.case-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.case-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.case-stats .stat {
    text-align: center;
    flex: 1;
}

.case-stats .value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.case-stats .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.case-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.case-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.case-link:hover {
    gap: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 8rem 5%;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.8) 0%, rgba(0, 196, 204, 0.8) 100%);
}

.testimonial-carousel {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    display: none;
    align-items: center;
    gap: 3rem;
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
}

.testimonial-slide.active {
    display: flex;
}

.testimonial-avatar {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    position: relative;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: url('images/css10.png') center/cover;
    position: relative;
    z-index: 2;
}

.avatar-halo {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    top: 50%;  /* Changed from 0 to 50% */
    left: 50%; /* Changed from 0 to 50% */
    transform: translate(-50%, -50%); /* Added to center properly */
    animation: pulse 3s infinite;
    opacity: 0.5;
    box-sizing: border-box; /* Ensures border is included in dimensions */
}

.testimonial-content {
    flex: 1;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -1rem;
    left: -1.5rem;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.control-prev,
.control-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-color);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-prev:hover,
.control-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.control-prev {
    transform: translateX(-50%);
}

.control-next {
    transform: translateX(50%);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Contact Section */
.contact {
    padding: 8rem 5%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.contact-container {
    display: flex;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    flex: 1;
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
}

.contact-form h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-form h2 span {
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-form p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label input,
.floating-label textarea,
.floating-label select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.floating-label textarea {
    min-height: 120px;
    resize: vertical;
}

.floating-label select {
    appearance: none;
}

.floating-label input:focus,
.floating-label textarea:focus,
.floating-label select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.3);
}

.floating-label label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:not(:placeholder-shown) + label {
    top: -0.8rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background: linear-gradient(to bottom, var(--dark-color), rgba(26, 62, 114, 0.8));
    padding: 0 0.5rem;
    color: var(--accent-color);
}

.contact-visual {
    flex: 1;
    height: 500px;
    position: relative;
}

.farm-visualization {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    perspective: 1000px;
}

.field-map {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('images/css11.png') center/cover;
    border-radius: 15px;
}

.data-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('images/field-data.png') center/cover;
    mix-blend-mode: overlay;
    opacity: 0.8;
    border-radius: 15px;
}

.analysis-points {
    position: absolute;
    width: 100%;
    height: 100%;
}

.analysis-points::before,
.analysis-points::after,
.analysis-points div {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px 3px rgba(0, 230, 118, 0.5);
    animation: pulse 2s infinite;
}

.analysis-points::before {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.analysis-points::after {
    top: 60%;
    left: 70%;
    animation-delay: 0.5s;
}

.analysis-points div:nth-child(1) {
    top: 80%;
    left: 40%;
    animation-delay: 1s;
}

/* AI Assistant */
.ai-assistant {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.assistant-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: calc(100% + 1px); /* Slightly larger than the icon */
    height: calc(100% + 1px); /* Slightly larger than the icon */
    top: 30px; /* Half of the extra size */
    left: 30px; /* Half of the extra size */
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

.assistant-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ai-assistant.active .assistant-window {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.window-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-header h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.close-assistant {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-assistant:hover {
    color: var(--text-primary);
}

.chat-container {
    height: 300px;
    padding: 1rem;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
    max-width: 80%;
}

.chat-message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 15px 15px 15px;
    padding: 0.8rem 1rem;
}

.chat-message.user {
    align-self: flex-end;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 15px 0 15px 15px;
    padding: 0.8rem 1rem;
}

.chat-input {
    display: flex;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.chat-input button {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    transform: rotate(30deg);
}

/* Footer */
.main-footer {
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 5% 2rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section.about {
    max-width: 300px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .hero-text {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tech-container {
        flex-direction: column;
    }
    
    .tech-content {
        text-align: center;
    }
    
    .tech-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tech-features {
        justify-content: center;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-visual {
        min-height: 300px;
        order: -1;
    }
}

@media (max-width: 992px) {
    .main-nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 102, 194, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.5s ease;
        z-index: 1000;
    }
    
    .main-nav ul.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .testimonial-slide.active {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-avatar {
        margin-bottom: 2rem;
    }
    
    .showcase-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .contact-form h2 {
        font-size: 2rem;
    }
    
    .carousel-controls {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .control-prev,
    .control-next {
        position: static;
        transform: none;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .dashboard-grid,
    .ai-features,
    .tech-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .assistant-window {
        width: 300px;
        right: -50px;
    }
}