/* =============================================
   AuralEngineering – Main Stylesheet
   ============================================= */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #14141e;
    --bg-card-hover: #1a1a28;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6a6a7a;
    --accent-blue: #00a2ff;
    --accent-blue-dark: #0066cc;
    --accent-glow: rgba(0, 162, 255, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.1);
    --nav-height: 70px;
    --container-max: 1280px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background 0.3s;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    border-radius: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: #fff;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: var(--text-primary);
}

.logo-bold {
    font-weight: 600;
}

/* ---- LOGO ANIMATION ---- */
@media (prefers-reduced-motion: no-preference) {
    .logo-animate {
        position: relative;
        overflow: hidden;
    }

    .logo-animate .logo-icon {
        opacity: 0;
        transform: scale(0.4) rotate(-90deg);
        animation: logoIconIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    }

    .logo-animate .logo-word {
        display: inline-block;
        opacity: 0;
        transform: translateX(-8px);
        filter: blur(6px);
    }

    .logo-animate .logo-word-1 {
        animation: logoTextIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.55s forwards;
        margin-right: 0;
    }

    .logo-animate .logo-word-2 {
        animation: logoTextIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.72s forwards;
    }

    .logo-scanline {
        position: absolute;
        top: 0;
        left: -10%;
        width: 120%;
        height: 100%;
        background: linear-gradient(
            90deg,
            transparent 0%,
            transparent 40%,
            rgba(0, 162, 255, 0.12) 45%,
            rgba(0, 162, 255, 0.35) 50%,
            rgba(0, 162, 255, 0.12) 55%,
            transparent 60%,
            transparent 100%
        );
        transform: translateX(-100%);
        animation: logoScanline 2.6s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
        pointer-events: none;
    }

    @keyframes logoIconIn {
        0% {
            opacity: 0;
            transform: scale(0.4) rotate(-90deg);
            box-shadow: 0 0 0 rgba(0,162,255,0);
        }
        60% {
            opacity: 1;
            transform: scale(1.08) rotate(0deg);
            box-shadow: 0 0 20px rgba(0,162,255,0.5);
        }
        100% {
            opacity: 1;
            transform: scale(1) rotate(0deg);
            box-shadow: 0 0 0 rgba(0,162,255,0);
        }
    }

    @keyframes logoTextIn {
        0% {
            opacity: 0;
            transform: translateX(-8px);
            filter: blur(6px);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
            filter: blur(0);
        }
    }

    @keyframes logoScanline {
        0% {
            transform: translateX(-100%);
        }
        100% {
            transform: translateX(100%);
        }
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--accent-blue);
}

.dropdown-arrow {
    transition: transform 0.2s;
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 0.5rem 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.dropdown-menu a:hover {
    color: var(--text-primary);
    background: var(--accent-glow);
    padding-left: 1.5rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-icon-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
    margin-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10,10,15,0.85) 0%, rgba(10,10,15,0.4) 50%, rgba(10,10,15,0.2) 100%),
        linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.0) 30%, rgba(10,10,15,0.7) 100%);
}

.hero-lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    overflow: hidden;
    pointer-events: none;
}

.light {
    position: absolute;
    top: -20%;
    width: 120px;
    height: 300px;
    background: radial-gradient(ellipse at top, rgba(200,220,255,0.12), transparent 70%);
    filter: blur(20px);
}

.light-1 { left: 25%; transform: rotate(-5deg); }
.light-2 { left: 48%; transform: rotate(0deg); opacity: 0.7; }
.light-3 { left: 71%; transform: rotate(5deg); }

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 3rem;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.hero-line {
    display: block;
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    letter-spacing: 0.02em;
    text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,162,255,0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(0,162,255,0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ---- FEATURES ---- */
.features {
    position: relative;
    z-index: 2;
    margin-top: -60px;
    padding: 0 2rem 4rem;
}

.features-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0,162,255,0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px var(--accent-glow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- PRODUCT SHOWCASE ---- */
.showcase {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

.showcase-container {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.showcase-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.showcase-item:hover {
    border-color: rgba(0,162,255,0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.showcase-img-wrap {
    width: 100%;
    height: 220px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.showcase-item:hover .showcase-img {
    transform: scale(1.05);
}

.showcase-item h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1.25rem 1.25rem 0.3rem;
    letter-spacing: 0.02em;
}

.showcase-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 1.25rem 1.25rem;
}

.showcase-cta {
    margin-top: 1rem;
}

/* ---- CTA BANNER ---- */
.cta-banner {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0,102,204,0.15), transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(0,162,255,0.1), transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-col h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-subtle);
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 0;
        font-size: 1rem;
        width: 100%;
    }

    .has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .features-container,
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .features {
        margin-top: -30px;
    }

    .hero {
        height: 70vh;
        min-height: 450px;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- COMING SOON / COUNTDOWN ---- */
.page-blurred {
    filter: blur(18px) saturate(0.6);
    pointer-events: none;
    user-select: none;
    transition: filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.page-revealed {
    filter: blur(0) saturate(1);
    pointer-events: auto;
    user-select: auto;
    transition: filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.coming-soon-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.coming-soon-overlay.overlay-hidden {
    opacity: 0;
    visibility: hidden;
}

.countdown-wrap {
    text-align: center;
    pointer-events: auto;
}

.countdown-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.countdown-clock {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 1rem;
    gap: 0;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.countdown-value {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 40px rgba(0,162,255,0.2);
}

.countdown-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.countdown-sep {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-muted);
    opacity: 0.3;
    padding: 0 0.3rem;
    line-height: 1;
    align-self: flex-start;
    margin-top: 0.15em;
}

.countdown-sub {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

@media (max-width: 600px) {
    .countdown-unit {
        min-width: 60px;
    }

    .countdown-sep {
        padding: 0 0.1rem;
    }
}

@media (max-width: 380px) {
    .countdown-unit {
        min-width: 52px;
    }

    .countdown-value {
        font-size: clamp(2.25rem, 11vw, 3.5rem);
    }
}

/* ---- PAGE HEADER (shared) ---- */
.page-header {
    margin-top: var(--nav-height);
    padding: 5rem 2rem 3rem;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,162,255,0.08), transparent 70%);
    pointer-events: none;
}

.page-header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
}

.page-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* ---- ABOUT PAGE ---- */
.about-story, .about-values, .about-team {
    padding: 5rem 2rem;
}

.about-stats {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
}

.about-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.about-text .section-title {
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-card);
    aspect-ratio: 4/3;
    background: var(--bg-card);
}

.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.3s;
}

.value-card:hover {
    border-color: rgba(0,162,255,0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.value-icon {
    margin-bottom: 1.25rem;
}

.value-card h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.team-member {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: all 0.3s;
}

.team-member:hover {
    border-color: rgba(0,162,255,0.2);
    transform: translateY(-4px);
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-card);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.team-member span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- CONTACT PAGE ---- */
.contact-section {
    padding: 4rem 2rem;
}

.contact-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.3);
    color: #10b981;
}

.alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.required {
    color: var(--accent-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236a6a7a' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    font-size: 0.8rem;
    color: #ef4444;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    line-height: 1.5;
    margin: 0;
}

.dropdown-account-name {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0.25rem;
}

.account-type-badge {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-blue, #00a2ff);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
}

.flash-banner {
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 0.85rem 1.25rem;
    background: rgba(0,162,255,0.1);
    border: 1px solid rgba(0,162,255,0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 1.5rem;
}

.info-icon {
    margin-bottom: 0.75rem;
}

.info-card h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-card a {
    color: var(--accent-blue);
    transition: opacity 0.2s;
}

.info-card a:hover {
    opacity: 0.8;
}

.info-note {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    margin-top: 0.25rem;
}

/* ---- GALLERY PAGE ---- */
.gallery-section {
    padding: 3rem 2rem 5rem;
}

.gallery-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.gallery-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    padding: 0.6rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    border-color: transparent;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.gallery-card:hover {
    border-color: rgba(0,162,255,0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.gallery-img-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--bg-primary);
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-card:hover .gallery-img-wrap img {
    transform: scale(1.05);
}

.gallery-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-card:hover .gallery-img-overlay {
    opacity: 1;
}

.gallery-view-btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border: 1px solid #fff;
    border-radius: 4px;
}

.gallery-card-body {
    padding: 1.25rem;
}

.gallery-card-body h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.gallery-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.gallery-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gallery-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: var(--accent-glow);
    color: var(--accent-blue);
    text-transform: uppercase;
}

.gallery-cta {
    text-align: center;
}

.gallery-cta-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-cta-inner h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.gallery-cta-inner p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ---- EVENTS PAGE ---- */
.events-section {
    padding: 3rem 2rem 5rem;
}

.events-container {
    max-width: 900px;
    margin: 0 auto;
}

.events-legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.event-card:hover {
    border-color: rgba(0,162,255,0.2);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.event-date-block {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    border-left: 3px solid;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-month {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.event-day {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--text-primary);
}

.event-year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-details {
    flex: 1;
}

.event-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.event-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.events-note {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.events-note a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- CART PAGE ---- */
.cart-section {
    padding: 3rem 2rem 5rem;
}

.cart-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 120px 1fr 50px;
    gap: 1rem;
    padding: 0 1rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cart-items {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 120px 1fr 50px;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.cart-col-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-col-price,
.cart-col-total {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-col-total {
    color: var(--text-primary);
    font-weight: 500;
}

.qty-form {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-card);
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.qty-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid var(--border-card);
    border-right: 1px solid var(--border-card);
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    -moz-appearance: textfield;
    outline: none;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.cart-remove-btn:hover {
    color: #ef4444;
    background: rgba(239,68,68,0.1);
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.cart-summary h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.summary-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.75rem 0;
}

.summary-total {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 5rem 2rem;
}

.cart-empty-icon {
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.cart-empty h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ---- RESPONSIVE (new pages) ---- */
@media (max-width: 1024px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
        gap: 1rem;
    }

    .event-date-block {
        flex-direction: row;
        gap: 0.5rem;
        width: auto;
        border-left: none;
        border-bottom: 2px solid;
        padding-left: 0;
        padding-bottom: 0.75rem;
    }

    .cart-table-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.75rem;
    }

    .cart-col-product { grid-column: 1 / -1; }
    .cart-col-qty { grid-column: 1; }
    .cart-col-price { display: none; }
    .cart-col-total { text-align: right; }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- ANIMATIONS ---- */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .showcase-item {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeUp 0.6s ease forwards;
    }

    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
    .showcase-item:nth-child(1) { animation-delay: 0.1s; }
    .showcase-item:nth-child(2) { animation-delay: 0.2s; }
    .showcase-item:nth-child(3) { animation-delay: 0.3s; }

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

/* =============================================
   AUTH PAGES (Login / Register)
   ============================================= */
.auth-section {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
}

.auth-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,162,255,0.06), transparent 60%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2.5rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo .logo-icon {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
    display: inline-flex;
}

.auth-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-card);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.auth-form input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-blue);
    width: 15px;
    height: 15px;
}

.auth-link {
    color: var(--accent-blue);
    font-size: 0.85rem;
    transition: opacity 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.auth-link:hover {
    opacity: 0.8;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #f87171;
}

.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   CART BADGE
   ============================================= */
.cart-icon-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-family: 'Inter', sans-serif;
    line-height: 1;
    pointer-events: none;
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px var(--accent-glow);
    z-index: 2000;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-icon {
    color: var(--accent-blue);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* =============================================
   ACCOUNT DROPDOWN (navbar)
   ============================================= */
.nav-account {
    position: relative;
}

.dropdown-right {
    right: 0;
    left: auto !important;
}

.dropdown-logout-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    transition: all 0.15s;
}

.dropdown-logout-btn:hover {
    color: var(--text-primary);
    background: var(--accent-glow);
    padding-left: 1.5rem;
}

/* =============================================
   ADD-TO-CART BUTTON FEEDBACK
   ============================================= */
.btn-add-cart {
    gap: 0.5rem;
    min-width: 180px;
}

.btn-add-cart.btn-added {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 20px rgba(5,150,105,0.25);
}

/* =============================================
   CART SUMMARY – GUEST NOTE
   ============================================= */
.summary-guest-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
