/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red-rock: #C1440E;
    --dark-red: #8B3103;
    --desert-sand: #E8C4A0;
    --sky-blue: #4A90E2;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
    --light-text: #ffffff;
    --gray-text: #a0a0a0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--light-text);
    background-color: var(--darker-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(193, 68, 14, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--red-rock);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--red-rock);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0a0a0a url('assets/images/hero/red-rocks-hero.jpg') center center / cover no-repeat;
    overflow: hidden;
}

/* Animated starfield background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 95%, white, transparent),
        #0a0a0a;
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.6;
    animation: twinkle 8s ease-in-out infinite;
}

/* Drone lights animation */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(193, 68, 14, 0.8) 0%, transparent 1%),
        radial-gradient(circle at 45% 35%, rgba(232, 196, 160, 0.9) 0%, transparent 1%),
        radial-gradient(circle at 75% 20%, rgba(193, 68, 14, 0.7) 0%, transparent 1%),
        radial-gradient(circle at 25% 60%, rgba(74, 144, 226, 0.8) 0%, transparent 1%),
        radial-gradient(circle at 85% 55%, rgba(193, 68, 14, 0.9) 0%, transparent 1%),
        radial-gradient(circle at 55% 70%, rgba(232, 196, 160, 0.7) 0%, transparent 1%),
        radial-gradient(circle at 10% 85%, rgba(193, 68, 14, 0.8) 0%, transparent 1%),
        radial-gradient(circle at 90% 80%, rgba(74, 144, 226, 0.9) 0%, transparent 1%),
        radial-gradient(circle at 35% 15%, rgba(232, 196, 160, 0.8) 0%, transparent 1%),
        radial-gradient(circle at 65% 90%, rgba(193, 68, 14, 0.9) 0%, transparent 1%);
    background-size: 100% 100%;
    animation: droneLights 12s ease-in-out infinite;
    z-index: 1;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes droneLights {
    0% {
        background-position: 0% 0%, 10% 5%, 20% 0%, 30% 10%, 40% 5%, 50% 15%, 60% 20%, 70% 10%, 80% 15%, 90% 5%;
        opacity: 1;
    }

    25% {
        background-position: 25% 15%, 35% 25%, 45% 10%, 55% 30%, 65% 20%, 75% 35%, 85% 40%, 15% 30%, 5% 25%, 95% 20%;
        opacity: 0.9;
    }

    50% {
        background-position: 50% 30%, 60% 45%, 70% 25%, 80% 50%, 90% 40%, 0% 55%, 10% 60%, 40% 50%, 30% 45%, 20% 35%;
        opacity: 1;
    }

    75% {
        background-position: 75% 50%, 85% 65%, 95% 45%, 5% 70%, 15% 60%, 25% 75%, 35% 80%, 65% 70%, 55% 65%, 45% 55%;
        opacity: 0.85;
    }

    100% {
        background-position: 0% 0%, 10% 5%, 20% 0%, 30% 10%, 40% 5%, 50% 15%, 60% 20%, 70% 10%, 80% 15%, 90% 5%;
        opacity: 1;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at bottom, transparent 0%, rgba(10, 10, 10, 0.7) 50%, rgba(10, 10, 10, 0.95) 100%),
        linear-gradient(to bottom, rgba(139, 49, 3, 0.1) 0%, transparent 30%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--red-rock) 0%, var(--desert-sand) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(193, 68, 14, 0.5));
    }

    to {
        filter: drop-shadow(0 0 20px rgba(193, 68, 14, 0.8));
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--desert-sand);
    font-weight: 300;
}

.hero-date {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--red-rock);
    margin-bottom: 0.5rem;
}

.hero-location {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--red-rock);
    color: white;
    border: 2px solid var(--red-rock);
}

.btn-primary:hover {
    background: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(193, 68, 14, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.btn-secondary:hover {
    background: var(--light-text);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 2px solid var(--red-rock);
    border-bottom: 2px solid var(--red-rock);
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: rotate(-45deg) translateY(0);
    }

    40% {
        transform: rotate(-45deg) translateY(10px);
    }

    60% {
        transform: rotate(-45deg) translateY(5px);
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--red-rock);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-section {
    background: var(--dark-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--darker-bg);
    padding: 3rem 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(193, 68, 14, 0.2);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(193, 68, 14, 0.2);
    border-color: var(--red-rock);
}

.about-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--desert-sand);
}

.about-card p {
    color: var(--gray-text);
    line-height: 1.8;
}

/* Events Section */
.events-section {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--dark-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(193, 68, 14, 0.2);
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--red-rock);
}

.event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-racing {
    background: url('assets/images/events/fpv-racing.png') center center / cover no-repeat;
}

.event-show {
    background: url('assets/images/events/drone-show.png') center center / cover no-repeat;
}

.event-ai {
    background: url('assets/images/events/ai-detection.png') center center / cover no-repeat;
}

.event-industry {
    background: url('assets/images/events/industry.png') center center / cover no-repeat;
}

.event-content {
    padding: 2rem;
}

.event-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--red-rock);
}

.event-content p {
    color: var(--gray-text);
    line-height: 1.8;
}

/* Register Section */
.register-section {
    background: var(--dark-bg);
}

.register-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.register-card {
    background: var(--darker-bg);
    padding: 3.5rem 3rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(193, 68, 14, 0.2);
    text-decoration: none;
    display: block;
}

.register-card:hover {
    transform: translateY(-10px);
    border-color: var(--red-rock);
    box-shadow: 0 20px 40px rgba(193, 68, 14, 0.3);
}

.register-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--red-rock);
}

.register-card p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.register-link {
    color: var(--red-rock);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Location Section */
.location-section {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--red-rock);
    margin-bottom: 1.5rem;
}

.location-info p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.location-features {
    list-style: none;
    margin: 2rem 0;
}

.location-features li {
    padding: 0.8rem 0;
    color: var(--light-text);
    font-size: 1.1rem;
}

.permits-note {
    font-size: 0.9rem;
    color: var(--gray-text);
    font-style: italic;
}

.location-image {
    height: 400px;
    background: url('assets/images/location/warner-valley.png') center center / cover no-repeat;
    border-radius: 15px;
    border: 2px solid var(--red-rock);
    box-shadow: 0 10px 40px rgba(193, 68, 14, 0.3);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(193, 68, 14, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--red-rock);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--gray-text);
    margin-bottom: 0.5rem;
}

.footer-date {
    color: var(--red-rock);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--red-rock);
}

.permits-text {
    font-style: italic;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(193, 68, 14, 0.2);
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-date {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .location-image {
        height: 300px;
    }

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .nav-menu {
        display: none;
    }
}

/* Stats Section */
.stats-section {
    background: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    padding: 6rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--darker-bg);
    border-radius: 15px;
    border: 2px solid rgba(193, 68, 14, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--red-rock);
    box-shadow: 0 10px 30px rgba(193, 68, 14, 0.3);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--red-rock);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Timeline Section */
.timeline-section {
    background: var(--dark-bg);
    padding: 6rem 0;
}

#timeline-svg {
    display: block;
    margin: 2rem auto;
}

.timeline-point {
    transition: all 0.3s ease;
}

/* Drone Flight Canvas */
#drone-flight-canvas {
    mix-blend-mode: screen;
}

/* Enhanced Typography with Fluid Scaling */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
}

.hero-date {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
}

/* Enhanced Hover Effects */
.about-card,
.event-card,
.register-card {
    position: relative;
    overflow: hidden;
}

.about-card::before,
.event-card::before,
.register-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(193, 68, 14, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.about-card:hover::before,
.event-card:hover::before,
.register-card:hover::before {
    width: 500px;
    height: 500px;
}

/* 3D Tilt Effect on Cards */
.event-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-5px);
}

/* Smooth Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Navigation Underline Animation */
.nav-menu a {
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-rock);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Form Validation Styles */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red-rock);
    box-shadow: 0 0 10px rgba(193, 68, 14, 0.3);
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: #4CAF50;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CAF50' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #f44336;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f44336' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.error-message {
    display: block;
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    height: 0;
    overflow: hidden;
}

.error-message.visible {
    opacity: 1;
    transform: translateY(0);
    height: auto;
}

/* Success Message Styles */
.success-container {
    display: none;
    text-align: center;
    padding: 3rem;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.success-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.success-text {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Parallax Layers */
.hero {
    perspective: 1000px;
}

.hero-content {
    transform-style: preserve-3d;
}

/* Loading States */
.stat-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}