html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

:root {
    --primary-bg: #1a1a2e;
    --secondary-bg: #16213e;
    --text-color: #e0e0e0;
    --heading-color: #faf9f6;
    --accent-gold: #d4af37;
    /* Metallic Gold */
    --accent-rose: #b76e79;
    --accent-gold-hover: #b4942b;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-subheading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Luxury Variables */
    --gold-gradient: linear-gradient(135deg, #4a3b18 0%, #8c6e26 15%, #d4af37 30%, #f3d476 45%, #ffef9e 50%, #f3d476 55%, #d4af37 70%, #8c6e26 85%, #4a3b18 100%);
    --dark-bg-gradient: radial-gradient(circle at top, #16213e, #1a1a2e);
    /* Noise texture with low opacity */
    --noise-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
    background-color: var(--primary-bg);
    background-image: var(--dark-bg-gradient);
    background: var(--noise-texture), var(--dark-bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    letter-spacing: 0.04em;
    /* Increased tracking */
    margin-bottom: 1.5rem;
}

h3,
h4,
h5 {
    font-family: var(--font-subheading);
    letter-spacing: 0.02em;
    font-weight: 500;
}

section {
    padding: 120px 0;
    /* Dramatic whitespace */
}

h2 {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 60px;
    font-size: 3.5rem;
    /* Larger headings */
}

/* Luxury Underline for Headings */
h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120px;
    /* Longer elegant line */
    height: 1px;
    /* Thinner */
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    /* Fades out */
}

/* Center underline for centered headings */
.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.text-gold {
    color: var(--accent-gold) !important;
}

.bg-gold {
    background-color: var(--accent-gold) !important;
}

.bg-luxury {
    background-color: var(--secondary-bg);
}

/* Buttons */
.btn-gold {
    background: var(--gold-gradient);
    background-size: 200% auto;
    /* For animation potential */
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 30px;
    transition: all var(--transition-slow);
    font-weight: bold;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 30px;
    transition: all var(--transition-slow);
    font-weight: bold;
    border-radius: 6px;
}

.btn-outline-gold:hover {
    background: var(--gold-gradient);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Navbar */
.navbar {
    background-color: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 1rem 0;
    transition: all var(--transition-slow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.5;
}

.navbar-brand img {
    height: 50px;
}

/* Brand Text with Metallic Gold Shine */
.text-shine {
    background: linear-gradient(90deg,
            #8c6e26 0%,
            #d4af37 20%,
            #f3d476 35%,
            #ffef9e 50%,
            #f3d476 65%,
            #d4af37 80%,
            #8c6e26 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: metallic-shine 3s linear infinite;
}

.brand-text {
    font-family: var(--font-subheading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-left: 12px;
    vertical-align: middle;
    background: linear-gradient(90deg,
            #8c6e26 0%,
            #d4af37 20%,
            #f3d476 35%,
            #ffef9e 50%,
            #f3d476 65%,
            #d4af37 80%,
            #8c6e26 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: metallic-shine 3s linear infinite;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes metallic-shine {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Navbar Toggler (Hamburger) */
.navbar-toggler {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(212, 175, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
    color: var(--heading-color) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-left: 20px;
    transition: color var(--transition-slow);
}

.nav-link:hover {
    color: var(--accent-gold) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    background-color: var(--primary-bg);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 50%, rgba(183, 110, 121, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        var(--dark-bg-gradient);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: particleMove 60s linear infinite;
    opacity: 0.3;
    z-index: 1;
}

@keyframes particleMove {
    0% {
        background-position: 0 0, 25px 25px;
    }

    100% {
        background-position: 100px 100px, 125px 125px;
    }
}

.btn-xl {
    padding: 16px 40px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        top: 10px;
    }

    100% {
        opacity: 0;
        top: 30px;
    }
}

.hero-logo {
    max-width: 250px;
    margin-bottom: 20px;
}

/* Card Styling for "Why is Invysia" */
.luxury-card {
    background-color: rgba(31, 40, 51, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.5px solid rgba(212, 175, 55, 0.3);
    padding: 30px;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    height: 100%;
    border-radius: 4px;
}

.luxury-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

/* Showcase Section */
.showcase-iframe {
    width: 100%;
    height: 500px;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Founder Section */
.founder-img {
    border: 3px solid var(--accent-gold);
    padding: 5px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    background-color: #000;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

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

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

footer h5 {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0;
    }

    h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    h2 {
        text-align: center;
    }

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

    .brand-text {
        font-size: 1.2rem;
        letter-spacing: 2px;
        margin-left: 8px;
    }
}

.mobile-frame-container {
    position: relative;
    width: 300px;
    height: 600px;
    margin: 0 auto;
    border: 10px solid #333;
    border-radius: 30px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Animations */
.animate-on-scroll {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Utilities */
/* Override text-muted for dark theme visibility */
.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold);
}

.hover-gold:hover {
    color: var(--accent-gold) !important;
}

.hover-white:hover {
    color: #fff !important;
}

.space-y-2>li+li {
    margin-top: 0.5rem;
}

.space-y-3>li+li {
    margin-top: 1rem;
}

.absolute-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.15), transparent 60%);
    pointer-events: none;
}

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

/* Demo Gallery */
.demo-card {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%;
    /* 9:16 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background-color: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    /* Non-interactive preview */
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
}

.demo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    padding: 20px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 40%;
}

.demo-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.demo-link {
    pointer-events: auto;
    z-index: 10;
}

/* Sparkles */
.sparkle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

/* Global Particle Background */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.particle-glow {
    background: radial-gradient(circle,
            rgba(212, 175, 55, 0.6) 0%,
            rgba(212, 175, 55, 0.3) 30%,
            transparent 70%);
    filter: blur(1px);
    animation: float 20s infinite ease-in-out;
}

.particle-dot {
    background: rgba(212, 175, 55, 0.4);
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translate(30px, -50px) scale(1.1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-20px, -100px) scale(0.9);
        opacity: 0.8;
    }

    75% {
        transform: translate(40px, -150px) scale(1.05);
        opacity: 0.5;
    }
}

.sparkle {
    position: absolute;
    opacity: 0;
    animation: twinkle 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes twinkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    padding: 14px 20px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    background: rgba(22, 33, 62, 0.65);
    backdrop-filter: blur(6px);
}

.trust-strip span {
    font-size: 0.95rem;
    color: var(--heading-color);
    white-space: nowrap;
}

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