/* ======================================================
   eVTOL VILLAGE - Modern Parallax Theme (Final Version)
   ====================================================== */

:root {
    --color-bg: #121212;
    --color-text: #f9fafb;
    --color-primary: #702fa0;
    --color-accent: #39e6fa;
    --color-accent2: #c501fa;
    --color-secondary: #5d87cb;
    --max-width: 1100px;
    --font: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Base */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Parallax background */
.page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: url('../../images/background.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    filter: saturate(0.95) contrast(0.9);
}

.page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    /* smoother gradient blending purple to cyan */
    background: radial-gradient(circle at top left,
            rgba(112, 47, 160, 0.35) 0%,
            rgba(57, 230, 250, 0.20) 70%),
        linear-gradient(to bottom,
            rgba(18, 18, 18, 0.20),
            rgba(18, 18, 18, 0.15));
    pointer-events: none;
}


/* Containers */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
    background: rgba(18, 18, 18, 0.85);
    border-bottom: 1px solid rgba(249, 250, 251, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 0.5px;
}

/* Navigation */
.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: rgba(249, 250, 251, 0.92);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-accent);
    text-shadow: 0 0 6px rgba(57, 230, 250, 0.7);
}

.nav-link.active {
    color: var(--color-accent2);
    text-shadow: 0 0 6px rgba(197, 1, 250, 0.7);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-accent2), var(--color-accent));
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--color-text);
    font-size: 22px;
    padding: 6px;
}

/* Hero sections */
.hero {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 0 40px;
}

.small-hero {
    min-height: 36vh;
    padding: 60px 0 30px;
}

/* .hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(18, 18, 18, 0.35) 0%,
            rgba(18, 18, 18, 0.25) 40%,
            rgba(18, 18, 18, 0.20) 100%);
    pointer-events: none;
    transition: background 0.3s ease;
} */


/* Hero content */
.hero-content {
    z-index: 2;
    max-width: 900px;
    text-align: left;
    color: #fff;
    padding: 40px;
    background: rgba(18, 18, 18, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hero-content:hover {
    background: rgba(18, 18, 18, 0.25);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

/* Hero text styles */
.hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-content .lead {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Section content */
.summary,
.content {
    margin: 48px auto;
    max-width: 900px;
    color: #f9fafb;
}

h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.content p,
.summary p {
    font-size: 1rem;
    color: #f9fafb;
    font-weight: 500;
    line-height: 1.75;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    font-weight: 700;
    padding: 12px 22px;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(57, 230, 250, 0.4);
    transition: all 0.25s ease;
}

.btn:hover {
    box-shadow: 0 0 20px rgba(197, 1, 250, 0.6);
    transform: translateY(-2px);
}

/* Contact form */
.contact-form {
    display: grid;
    gap: 12px;
    max-width: 700px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #ffffff;
}

.contact-form input,
.contact-form textarea {
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(57, 230, 250, 0.3);
}

/* News list */
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.news-list a {
    color: #a4c9ff;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-left: 3px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.news-list a:hover {
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    text-shadow: 0 0 8px rgba(57, 230, 250, 0.6);
}

/* Footer */
.site-footer {
    padding: 24px 0;
    color: rgba(249, 250, 251, 0.7);
    border-top: 1px solid rgba(249, 250, 251, 0.05);
    background: rgba(18, 18, 18, 0.75);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(249, 250, 251, 0.7);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 700ms ease, transform 700ms ease;
}

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

/* Responsive */
@media (max-width:900px) {
    .nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-content {
        padding: 28px;
    }
}

@media (max-width:520px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .lead {
        font-size: 1rem;
    }

    .content p,
    .summary p {
        font-size: 0.95rem;
    }
}

/* -------------------------------
   MOBILE NAVIGATION STYLES
--------------------------------*/
@media (max-width: 900px) {
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(18, 18, 18, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    .nav.open {
        display: flex;
        animation: slideDown 0.25s ease;
    }

    .nav-link {
        display: block;
        text-align: center;
        padding: 12px 0;
        font-size: 1rem;
        width: 100%;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: var(--color-accent);
    }

    .nav-toggle {
        display: block;
        cursor: pointer;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ========== Loader Overlay ========== */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.95));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-icon {
    width: 160px;
    height: auto;
    animation: floatUp 2.5s ease-in-out infinite;
}

/* subtle floating motion */
@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* hide state */
.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ===== Animated Brand Logo with Rotor Glow ===== */
.brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-accent);
    overflow: visible;
}

/* Logo core */
.brand-logo {
    height: 36px;
    width: auto;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 6px rgba(57, 230, 250, 0.5));
    animation: logoEntry 1.2s ease-out forwards, logoGlow 3s ease-in-out infinite;
    transform: translateY(-8px);
    opacity: 0;
}

/* Rotating halo around logo (like rotor blades light trail) */
.brand::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 17px;
    /* adjust horizontally if needed */
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--color-accent);
    border-right-color: var(--color-accent2);
    border-bottom-color: rgba(255, 255, 255, 0.15);
    border-left-color: var(--color-accent);
    z-index: 1;
    animation: rotorSpin 2s linear infinite;
    filter: drop-shadow(0 0 12px rgba(57, 230, 250, 0.4));
    opacity: 0.85;
}

/* Brand text */
.brand-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-10px);
    animation: textEntry 1.4s 0.4s ease-out forwards;
}

/* Hover glow boost */
.brand:hover::before {
    animation-duration: 1.2s;
    filter: drop-shadow(0 0 16px rgba(197, 1, 250, 0.9));
}

.brand:hover .brand-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 0 14px rgba(197, 1, 250, 0.8));
}

.brand:hover .brand-text {
    color: var(--color-accent2);
    text-shadow: 0 0 10px rgba(197, 1, 250, 0.7);
}

/* Keyframes */
@keyframes rotorSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes logoEntry {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    60% {
        transform: translateY(2px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 6px rgba(57, 230, 250, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(197, 1, 250, 0.8));
    }
}

@keyframes textEntry {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile adjustments */
@media (max-width:900px) {
    .brand-logo {
        height: 36px;
    }

    .brand::before {
        width: 50px;
        height: 50px;
        left: 18px;
    }

    .brand-text {
        font-size: 16px;
    }

    .footer-logo {
        height: 22px;
    }

    .copyright {
        font-size: 0.9rem;
    }

}

/* ===== Footer Logo Styling ===== */
.footer-logo {
    height: 26px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
    filter: drop-shadow(0 0 5px rgba(57, 230, 250, 0.4));
    opacity: 0.9;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

/* subtle hover glow for footer logo */
.footer-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(197, 1, 250, 0.7));
    opacity: 1;
}

/* copyright text alignment */
.copyright {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(249, 250, 251, 0.8);
}

/* ===== Hero Carousel ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* makes it auto-adjust to any image size */
    object-position: center;
}

/* Caption overlay */
.carousel-caption {
    position: absolute;
    bottom: 12%;
    left: 8%;
    color: #ffffff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    animation: captionFade 1s ease-in-out forwards;
}

.carousel-caption h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.carousel-caption p {
    font-size: 1.1rem;
    margin-top: 8px;
    color: #d7f7ff;
    max-width: 480px;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.carousel-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators span.active {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 0 8px rgba(57, 230, 250, 0.6);
}

/* Animation for caption fade-in */
@keyframes captionFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width:900px) {
    .hero-carousel {
        height: 60vh;
    }

    .carousel-caption h2 {
        font-size: 1.6rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width:520px) {
    .hero-carousel {
        height: 50vh;
    }

    .carousel-caption {
        bottom: 10%;
        left: 6%;
    }

    .carousel-caption h2 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
}

/* ===== Caption Position Variants ===== */

@keyframes captionFadeRight {
    0% {
        opacity: 0;
        transform: translateX(25px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Default (bottom-left) */
.carousel-caption.bottom-left {
    bottom: 12%;
    left: 8%;
    right: auto;
    top: auto;
    text-align: left;
}

/* Top-right */
.carousel-caption.top-right {
    top: 12%;
    right: 8%;
    left: auto;
    bottom: auto;
    text-align: right;
    animation: captionFadeRight 1s ease-in-out forwards;
}

/* Optional reusable ones if needed later */
.carousel-caption.top-left {
    top: 12%;
    left: 8%;
    right: auto;
    bottom: auto;
    text-align: left;
}

.carousel-caption.bottom-right {
    bottom: 12%;
    right: 8%;
    left: auto;
    top: auto;
    text-align: right;
}