/* ========================================
   MIRA WEB LIMITED — One-Page Cinematic
   ======================================== */

:root {
    --gold: #C9A84C;
    --gold-light: #E2C97E;
    --gold-dim: rgba(201, 168, 76, 0.15);
    --dark: #0A0A0A;
    --dark-card: rgba(15, 15, 15, 0.75);
    --dark-glass: rgba(10, 10, 10, 0.6);
    --text: #F0EDE6;
    --text-dim: rgba(240, 237, 230, 0.6);
    --text-muted: rgba(240, 237, 230, 0.35);
    --border: rgba(201, 168, 76, 0.15);
    --border-light: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   LOADER
   ======================================== */
#loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--border-light);
    border-radius: 2px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.loader-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ========================================
   VIDEO BACKGROUND
   ======================================== */
#video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

#video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    transition: opacity 2s ease;
}

#video-current {
    opacity: 1;
}

#video-next {
    opacity: 0;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

/* ========================================
   NAVIGATION
   ======================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    transition: all var(--transition);
}

#navbar.scrolled {
    padding: 0.8rem 2rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-logo span {
    color: var(--gold);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.nav-burger span {
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s ease;
}

.nav-burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}
.nav-burger.open span:nth-child(2) {
    opacity: 0;
}
.nav-burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 3rem;
    gap: 2rem;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

#mobile-menu.open {
    right: 0;
}

.mobile-link {
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    transition: color var(--transition);
}

.mobile-link:hover {
    color: var(--gold);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.05rem;
    font-weight: 300;
    margin-bottom: 4rem;
    letter-spacing: 0.02em;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title-line {
    display: block;
}

.hero-title-line.accent {
    color: var(--gold);
    font-weight: 400;
    font-style: italic;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 1.5rem;
}

.hero-tagline {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all var(--transition);
}

.hero-cta:hover {
    background: var(--gold);
    color: var(--dark);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 1.5px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ========================================
   SERVICES
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--border);
    transform: translateY(-8px);
    background: rgba(20, 20, 20, 0.8);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: var(--gold);
}

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

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.7;
}

/* ========================================
   PRODUCTS
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.product-card {
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--border);
    transform: translateY(-8px);
}

.product-card.featured {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 2.5rem;
    transform: rotate(45deg);
}

.product-label {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 2rem;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 300;
    border-bottom: 1px solid var(--border-light);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-btn {
    display: inline-block;
    width: 100%;
    padding: 0.9rem 2rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.product-btn:hover {
    background: var(--gold);
    color: var(--dark);
}

.product-card.featured .product-btn {
    background: var(--gold);
    color: var(--dark);
}

.product-card.featured .product-btn:hover {
    background: var(--gold-light);
}

/* ========================================
   CONTACT
   ======================================== */
.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    background: var(--dark-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: var(--border);
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.5rem;
    color: var(--gold);
}

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

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.8;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-light);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
}

.footer-inner {
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.footer-logo span {
    color: var(--gold);
    font-weight: 400;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

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

/* ========================================
   VIDEO INDICATOR
   ======================================== */
#video-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.4;
    transition: opacity var(--transition);
}

#video-indicator:hover {
    opacity: 0.8;
}

.vi-dots {
    display: flex;
    gap: 4px;
}

.vi-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.vi-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.vi-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 2rem;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--gold);
}

.modal-body h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.modal-body .modal-price {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.modal-body p {
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-body ul {
    list-style: none;
    margin-bottom: 2rem;
}

.modal-body ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dim);
    font-weight: 300;
}

.modal-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateY(-50%);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .services-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .section {
        padding: 6rem 1.5rem;
    }

    #video-indicator {
        display: none;
    }

    .product-badge {
        right: -1.5rem;
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .hero-tagline {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}
