:root {
    --midnight: #0F0F1A;
    --softPurple: #A855F7;
    --softCyan: #22D3EE;
    --neonPurple: #BC13FE;
    --textPrimary: #FFFFFF;
    --textSecondary: #94A3B8;
    --cardBg: rgba(255, 255, 255, 0.03);
    --cardBorder: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--midnight);
    color: var(--textPrimary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.sub-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--softPurple);
}

.text-gradient-purple {
    background: linear-gradient(135deg, #fff 0%, var(--softPurple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #fff 0%, var(--softCyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Styling */
nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(10px);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--textSecondary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    line-height: normal;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
}

.nav-cta {
    padding: 0.75rem 1.75rem;
    background: var(--softPurple);
    color: #fff;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: #fff;
    color: var(--midnight);
    box-shadow: 0 15px 35px -10px rgba(168, 85, 247, 0.6);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu .nav-link {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

/* Cinematic Glassmorphism Card */
.minimal-card {
    background: var(--cardBg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid transparent; /* Placeholder for gradient */
}

/* Gradient Border using Masking */
.minimal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px; /* Border width */
    background: linear-gradient(135deg, var(--softPurple), var(--softCyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.minimal-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(168, 85, 247, 0.25);
}

.minimal-card:hover::before {
    opacity: 1;
}

/* Elegant Buttons */
.btn-elegant {
    padding: 1.1rem 2.8rem;
    border-radius: 99px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-purple {
    background: var(--softPurple);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(168, 85, 247, 0.3);
}

.btn-purple:hover {
    transform: translateY(-2px);
    background: #b66df8;
    box-shadow: 0 15px 30px -5px rgba(168, 85, 247, 0.5);
}

.btn-outline-cyan {
    border: 2px solid var(--softCyan);
    color: var(--softCyan);
}

.btn-outline-cyan:hover {
    background: var(--softCyan);
    color: var(--midnight);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(34, 211, 238, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #2D2D3F;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--softPurple);
}

/* Simple Reveal Animations */
/* Hero Slideshow Transitions */
.hero-slide {
    z-index: 0;
    transition: opacity 2s ease-in-out;
}

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

.hero-slide img {
    transform: scale(1.05); /* Base scale for Ken Burns effect */
    filter: brightness(0.7) contrast(1.1);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
}

/* Live Pulse Interaction */
.live-dot-pulse {
    width: 8px;
    height: 8px;
    background: var(--neonPurple);
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.live-dot-pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neonPurple);
    animation: breathing-pulse 3s ease-in-out infinite;
}

@keyframes breathing-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
        box-shadow: 0 0 10px var(--neonPurple);
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
        box-shadow: 0 0 25px var(--neonPurple);
    }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Smartphone Optimization Overrides */
@media (max-width: 768px) {
    h1 { font-size: 2.75rem !important; line-height: 1.1 !important; }
    h2 { font-size: 2rem !important; }
    h3 { font-size: 1.75rem !important; }
    
    .sub-heading { font-size: 10px !important; letter-spacing: 0.15em !important; }
    
    .py-40 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
    .pt-48 { padding-top: 7rem !important; }
    
    .minimal-card {
        padding: 1.25rem !important;
        border-radius: 1rem !important;
    }

    .btn-elegant {
        padding: 1rem 1.5rem !important;
        width: 100% !important;
    }

    /* Prevent text overflow */
    p { font-size: 0.9375rem !important; line-height: 1.5 !important; }
}

/* Universal 'Midnight Elite' Cursor Engine Styles */
@media (pointer: fine) {
    body.custom-cursor-active * {
        cursor: none !important;
    }
}

#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    background-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 99999;
}

#cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 99998;
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1), 
                height 0.3s cubic-bezier(0.23, 1, 0.32, 1), 
                border-color 0.3s, 
                background-color 0.3s, 
                opacity 0.3s;
}

body.cursor-hover #cursor-outline {
    width: 65px !important;
    height: 65px !important;
    background-color: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.9) !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

body.cursor-hover.cyan #cursor-outline {
    background-color: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.9) !important;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
}

body.cursor-active #cursor-outline {
    transform: translate(-50%, -50%) scale(0.7) !important;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Ensure the cursor is hidden when leaving the window */
body:not(:hover) #cursor-dot, 
body:not(:hover) #cursor-outline {
    opacity: 0 !important;
}

