/* ============================================
   iVision — Global Styles
   Theme: Dark / Black
   Font: Montserrat
   ============================================ */

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

:root {
    --black: #000000;
    --dark: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #1a1a1a;
    --dark-4: #222222;
    --gray: #888888;
    --light-gray: #aaaaaa;
    --white: #ffffff;
    --accent: #00d4ff;
    --accent-dark: #009fcc;
    --accent-glow: rgba(0, 212, 255, 0.15);
    --accent-glow-strong: rgba(0, 212, 255, 0.3);
    --gradient-accent: linear-gradient(135deg, #04a7b9, #00e5ff);
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.1);
    --max-width: 1200px;
    --nav-height: 80px;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: scroll;
    background-color: var(--black);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

body {
    font-family: var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--light-gray);
    background-color: transparent;
    overflow-x: hidden;
}

html.menu-open {
    overflow: hidden;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 1;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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


/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
    padding-bottom: 20px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.nav-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.logo-i {
    color: var(--accent);
    font-weight: 800;
}

.logo-vision {
    color: var(--white);
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-link {
    color: var(--light-gray);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--light-gray);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.lang-switch:hover {
    color: var(--white);
    border-color: var(--accent);
}

.lang-globe {
    font-size: 0.9rem;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, var(--accent-glow) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(0, 100, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 200, 255, 0.06) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 16px;
}

.hero-logo-i {
    color: var(--accent);
}

.hero-logo {
    margin-bottom: 24px;
    text-align: center;
}

.hero-logo-img {
    height: clamp(80px, 15vw, 160px);
    width: auto;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 20px; opacity: 0.3; }
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--black);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
    color: var(--black);
}


/* ============================================
   PAGE HERO (Inner pages)
   ============================================ */
.page-hero {
    padding: calc(var(--nav-height) + 80px) 0 60px;
    text-align: center;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 300;
}


/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: rgba(17, 17, 17, 0.85);
}

.section-cta {
    background:
        radial-gradient(ellipse at 50% 50%, var(--accent-glow) 0%, transparent 70%);
}

.section-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.section-cta p {
    color: var(--gray);
    margin-bottom: 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-text {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--light-gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-weight: 300;
}


/* ============================================
   CARDS (Home)
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: all var(--transition);
}

.card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    color: var(--accent);
    margin-bottom: 24px;
    width: 48px;
    height: 48px;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.card p {
    color: var(--gray);
    font-size: 0.95rem;
}


/* ============================================
   FEATURES (Why choose us)
   ============================================ */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-block {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-block:last-child {
    border-bottom: none;
}

.feature-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--dark-3);
    line-height: 1;
    min-width: 100px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
}

.feature-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.feature-content p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.8;
}


/* ============================================
   PRODUCTS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.product-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.product-image {
    background: var(--dark-3);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.product-placeholder {
    color: var(--accent);
    opacity: 0.5;
    transition: opacity var(--transition);
}

.product-card:hover .product-placeholder {
    opacity: 0.8;
}

.product-info {
    padding: 32px;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.product-info p {
    color: var(--gray);
    font-size: 0.95rem;
}


/* ============================================
   SERVICES
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: rgba(0, 212, 255, 0.15);
    background: var(--dark-4);
}

.service-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.9rem;
}


/* ============================================
   ABOUT
   ============================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text-large {
    font-size: 1.2rem;
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 24px;
    font-weight: 300;
}

.about-text {
    font-size: 1rem;
    color: var(--light-gray);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-list {
    margin: 16px 0 24px 0;
    padding-left: 0;
}

.about-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--light-gray);
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* Vision & Mission */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.vm-block {
    padding: 40px;
    background: var(--dark-3);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.vm-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.vm-block p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.8;
}


/* ============================================
   CONTACT FORM
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--white);
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: all var(--transition);
    outline: none;
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--dark-2);
    color: var(--white);
}

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

.char-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 0.75rem;
    color: var(--gray);
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

.form-feedback {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: none;
}

.form-feedback.success {
    display: block;
    color: #00e676;
    background: rgba(0, 230, 118, 0.08);
}

.form-feedback.error {
    display: block;
    color: #ff5252;
    background: rgba(255, 82, 82, 0.08);
}

/* Contact info sidebar */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 32px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--gray);
}

.contact-info-item svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.contact-info-item a {
    color: var(--light-gray);
    font-size: 0.95rem;
}

.contact-info-item span {
    font-size: 0.95rem;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: rgb(31, 36, 40);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
}

.footer-desc {
    color: var(--gray);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--gray);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-3);
    color: var(--gray);
    transition: all var(--transition);
}

.social-link:hover {
    color: var(--accent);
    background: var(--dark-4);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--gray);
}

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


/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade-up on load */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

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

/* Reveal on scroll */
.reveal {
    opacity: 0;
    -webkit-transform: translateY(40px) translateZ(0);
    transform: translateY(40px) translateZ(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
    -webkit-transition: opacity 0.7s ease, -webkit-transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    -webkit-transform: translateY(0) translateZ(0);
    transform: translateY(0) translateZ(0);
}

/* Stagger children */
.reveal.visible .card:nth-child(1),
.reveal.visible .product-card:nth-child(1),
.reveal.visible .service-card:nth-child(1) { transition-delay: 0s; }
.reveal.visible .card:nth-child(2),
.reveal.visible .product-card:nth-child(2),
.reveal.visible .service-card:nth-child(2) { transition-delay: 0.1s; }
.reveal.visible .card:nth-child(3),
.reveal.visible .product-card:nth-child(3),
.reveal.visible .service-card:nth-child(3) { transition-delay: 0.2s; }
.reveal.visible .service-card:nth-child(4) { transition-delay: 0.3s; }


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

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

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 4px;
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

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

    .nav-link {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-logo-img {
        height: 28px;
    }

    .section {
        padding: 60px 0;
    }

    .page-hero {
        padding: calc(var(--nav-height) + 40px) 0 40px;
    }

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

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

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

    .feature-block {
        flex-direction: column;
        gap: 16px;
        padding: 32px 0;
    }

    .feature-number {
        font-size: 2.5rem;
        min-width: auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: -1px;
    }

    .hero-tagline {
        letter-spacing: 2px;
    }

    .vm-grid {
        gap: 24px;
    }

    .vm-block {
        padding: 28px;
    }
}

/* WhatsApp */
.footer-whatsapp {
    color: #25d366;
}

.footer-whatsapp:hover {
    color: #128c7e;
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--gray);
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--white);
    font-size: 1.3rem;
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal-content h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content ul li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-update {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    text-align: left;
}

.cookie-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-weight: 600;
}

.cookie-table code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    /* backdrop-filter rimosso: pesante su mobile, opacità 0.95 sufficiente */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0;
}

.cookie-banner a {
    color: var(--accent);
    text-decoration: none;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-accept {
    background: var(--accent);
    color: var(--dark);
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.cookie-accept:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px 20px;
    }
}


/* ============================================
   HERO VIDEO — Homepage fullscreen
   ============================================ */
.hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hero-video-desktop {
        display: none;
    }
    .hero-video-mobile {
        display: block;
    }
}

/* ============================================
   PAGE BACKGROUNDS
   ============================================ */
html.bg-1 { background-image: url('/assets/images/bg-1.png'); }
html.bg-2 { background-image: url('/assets/images/bg-2.png'); }
html.bg-3 { background-image: url('/assets/images/bg-3.png'); }
html.bg-4 { background-image: url('/assets/images/bg-4.png'); }
