/* Custom Styles for Modern Redesign - Auralis Refinement & Polish */

:root {
    /* Auralis Theme Colors */
    --bg-core: #000000;
    --text-core: #FFFFFF;
    --accent-primary: #FC964C;
    --accent-secondary: #F84116;
    --accent-dark: #871703;

    /* Chrome/Glass Colors */
    --glass-bg: rgba(20, 20, 20, 0.65);
    /* Lighter glass for scroll state as requested */
    --glass-bg-scroll: rgba(45, 45, 45, 0.65);
    --glass-border: rgba(255, 255, 255, 0.15);
}

body {
    background-color: #000000 !important;
    color: var(--text-core) !important;
    font-family: 'Inter', sans-serif !important;
    margin: 0;
    padding: 0;
}

/* 1. Header / Nav - Scroll Animation */
.nav {
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    border-radius: 0px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    top: 0 !important;
    padding: 20px 40px !important;
    position: fixed !important;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    z-index: 999;
    display: flex !important;
    align-items: center !important;
}

.nav.scrolled {
    background: var(--glass-bg-scroll) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4) !important;
    border-radius: 999px !important;
    margin: 20px auto !important;
    width: auto !important;
    min-width: 600px;
    max-width: 90% !important;
    padding: 10px 30px !important;
    top: 20px !important;
}

.nav-container {
    max-width: 1400px !important;
    width: 100%;
    display: flex !important;
    align-items: center !important;
}

/* Larger header logo for better readability */
.nav-logo {
    max-height: 60px !important;
    height: auto;
    width: auto;
}

.nav.scrolled .nav-container {
    max-width: 100% !important;
}

/* Navigation Links */
.nav-link,
.nav-dropdown-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-dropdown-link .grey-text {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* 2. Hero Section - Exact Auralis Mimic */
.section-tablet-scroll-animation {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000000;
    overflow: hidden;
}

/* Hero Glow Layer - Top-right corner glow (30% larger) */
.hero-glow-layer {
    position: absolute;
    top: -40%;
    right: -25%;
    width: 90%;
    height: 120%;
    background: radial-gradient(ellipse 85% 75% at 75% 25%,
            rgba(255, 100, 40, 0.95) 0%,
            rgba(230, 70, 25, 0.8) 12%,
            rgba(200, 50, 15, 0.6) 28%,
            rgba(150, 35, 10, 0.35) 45%,
            rgba(100, 20, 5, 0.15) 65%,
            transparent 85%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 12s ease-in-out infinite alternate;
}

/* Primary Glow - Top-right corner concentrated (30% larger) */
.section-tablet-scroll-animation::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 85%;
    height: 90%;
    background: radial-gradient(ellipse 75% 65% at 80% 20%,
            rgba(255, 120, 50, 0.9) 0%,
            rgba(220, 80, 30, 0.7) 18%,
            rgba(180, 50, 20, 0.45) 38%,
            rgba(120, 30, 10, 0.2) 55%,
            transparent 75%);
    filter: blur(45px);
    z-index: 0;
    mix-blend-mode: screen;
    animation: glowPulseRandom 8s ease-in-out infinite;
}

/* Secondary Glow - Subtle top-left corner (30% larger) */
.hero-glow-left {
    position: absolute;
    top: -25%;
    left: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse 75% 65% at 25% 20%,
            rgba(255, 140, 80, 0.5) 0%,
            rgba(220, 100, 50, 0.3) 22%,
            rgba(180, 60, 30, 0.15) 45%,
            transparent 70%);
    filter: blur(55px);
    z-index: 0;
    pointer-events: none;
    animation: glowPulseLeft 14s ease-in-out infinite alternate;
}

/* Random floating glow spots */
.hero-glow-spot-1 {
    position: absolute;
    top: 10%;
    right: 20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 120, 60, 0.6) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
    animation: floatGlow1 6s ease-in-out infinite;
}

.hero-glow-spot-2 {
    position: absolute;
    top: 25%;
    right: 35%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 180, 100, 0.5) 0%, transparent 70%);
    filter: blur(35px);
    z-index: 0;
    pointer-events: none;
    animation: floatGlow2 8s ease-in-out infinite;
}

.hero-glow-spot-3 {
    position: absolute;
    top: 5%;
    left: 15%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 150, 80, 0.4) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
    animation: floatGlow3 10s ease-in-out infinite;
}

/* Bottom fade to black overlay - stronger */
.section-tablet-scroll-animation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 25%,
            rgba(0, 0, 0, 0.75) 50%,
            rgba(0, 0, 0, 0.95) 80%,
            #000000 100%);
    z-index: 1;
    pointer-events: none;
}

@keyframes glowPulse {
    0% {
        opacity: 0.85;
        transform: translateX(0) translateY(0) scale(1);
    }
    50% {
        opacity: 0.95;
        transform: translateX(-1%) translateY(1%) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(-2%) translateY(-1%) scale(1.06);
    }
}

@keyframes glowPulseRandom {
    0% {
        opacity: 0.8;
        transform: translate(0, 0) scale(1);
    }
    25% {
        opacity: 0.95;
        transform: translate(-2%, 1%) scale(1.03);
    }
    50% {
        opacity: 0.85;
        transform: translate(-1%, -1%) scale(0.98);
    }
    75% {
        opacity: 1;
        transform: translate(-3%, 2%) scale(1.05);
    }
    100% {
        opacity: 0.8;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes glowPulseLeft {
    0% {
        opacity: 0.6;
        transform: scale(0.95) translate(0, 0);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02) translate(2%, -1%);
    }
    100% {
        opacity: 1;
        transform: scale(1.1) translate(-1%, 2%);
    }
}

@keyframes floatGlow1 {
    0%, 100% {
        opacity: 0.4;
        transform: translate(0, 0) scale(1);
    }
    33% {
        opacity: 0.8;
        transform: translate(-15px, 10px) scale(1.15);
    }
    66% {
        opacity: 0.5;
        transform: translate(10px, -8px) scale(0.9);
    }
}

@keyframes floatGlow2 {
    0%, 100% {
        opacity: 0.3;
        transform: translate(0, 0) scale(1);
    }
    40% {
        opacity: 0.7;
        transform: translate(12px, -12px) scale(1.2);
    }
    70% {
        opacity: 0.5;
        transform: translate(-8px, 15px) scale(0.85);
    }
}

@keyframes floatGlow3 {
    0%, 100% {
        opacity: 0.3;
        transform: translate(0, 0) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-10px, -10px) scale(1.3);
    }
}

/* Ensure content is above the background effects */
.container-w3,
.container-w2,
.wow-animation {
    position: relative;
    z-index: 2;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.header,
.wow-heading {
    font-family: 'Inter', sans-serif !important;
    color: white !important;
    letter-spacing: -0.03em;
    font-weight: 500;
}

/* Auralis Hero Heading with Gradient Text */
.wow-heading.big,
.wow-heading.wow-gradient {
    font-size: clamp(2.5rem, 6vw, 5rem) !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    background: linear-gradient(90deg, 
        #FFFFFF 0%, 
        #FFFFFF 40%, 
        #F4CFB1 60%, 
        #E8B896 80%, 
        #D4A07A 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

.wow-heading .text-span,
.wow-heading .text-span._4 {
    background: linear-gradient(90deg, 
        #FFFFFF 0%, 
        #FFFFFF 35%, 
        #F4CFB1 55%, 
        #E8B896 75%, 
        #D4A07A 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

* {
    font-family: 'Inter', sans-serif !important;
}

p,
.hero-description {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
}

.grey-text {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* 3. Auralis Buttons - Polished Clockwise Border */
.button {
    text-transform: capitalize !important;
    background: transparent !important;
    color: white !important;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    isolation: isolate;
    border-radius: 999px;
    padding: 14px 28px !important;
    overflow: hidden;
    border: none !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.button::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #080808;
    border-radius: 999px;
    z-index: -1;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            transparent 50%,
            var(--accent-secondary) 70%,
            var(--accent-primary) 85%,
            white 95%,
            transparent 100%);
    transform: translate(-50%, -50%);
    animation: spin 3s linear infinite;
    z-index: -2;
}

.button:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(252, 150, 76, 0.6);
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.button:hover::before {
    animation-duration: 1.5s;
    filter: brightness(1.2);
}

.container-w3.gutter-outside {
    border: none;
}

/* Desktop button - visible on large screens */
.nav-cta-button {
    display: block;
}

/* Mobile CTA button - hidden on desktop, visible on mobile */
.nav-cta-button-mobile {
    display: none;
    margin-left: auto;
    margin-right: 10px;
}

.nav-cta-button-mobile .button {
    font-size: 12px !important;
    padding: 8px 16px !important;
    white-space: nowrap;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet and below (991px) */
@media screen and (max-width: 991px) {
    .nav {
        padding: 15px 20px !important;
    }
    
    .nav.scrolled {
        min-width: auto;
        width: calc(100% - 40px) !important;
        max-width: calc(100% - 40px) !important;
        margin: 10px 20px !important;
    }
    
    /* Show button outside hamburger menu */
    .nav-cta-button-mobile {
        display: block !important;
    }
    
    /* Hide button inside nav-menu on mobile */
    .nav-menu .nav-cta-button {
        display: none !important;
    }
    
    /* Hero heading responsive */
    .heading-1 {
        font-size: 48px !important;
        line-height: 1.1 !important;
    }
}

/* Mobile (767px and below) */
@media screen and (max-width: 767px) {
    .nav {
        padding: 12px 15px !important;
    }
    
    .nav.scrolled {
        width: calc(100% - 30px) !important;
        max-width: calc(100% - 30px) !important;
        margin: 10px 15px !important;
        padding: 8px 15px !important;
        border-radius: 50px !important;
    }
    
    /* Button sizing for mobile */
    .nav-cta-button-mobile .button {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
    
    /* Hero heading responsive */
    .heading-1 {
        font-size: 36px !important;
        line-height: 1.15 !important;
        padding: 0 10px;
    }
    
    .h1 {
        font-size: 36px !important;
        line-height: 1.15 !important;
    }
    
    /* Glow spots smaller on mobile */
    .hero-glow-spot-1,
    .hero-glow-spot-2,
    .hero-glow-spot-3 {
        width: 100px;
        height: 100px;
    }
}

/* FITCo Logo - Override Webflow constraints */
.fitco-logo {
    height: 70px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}

/* Footer logo container - responsive */
.footer-logos-container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 40px !important;
    flex-wrap: nowrap !important;
}

@media screen and (max-width: 767px) {
    .fitco-logo {
        height: 50px !important;
    }
    
    .footer-logos-container {
        flex-wrap: wrap !important;
        gap: 20px !important;
    }
}

@media screen and (max-width: 479px) {
    .fitco-logo {
        height: 40px !important;
    }
    
    .footer-logos-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
}

/* Small Mobile (479px and below) */
@media screen and (max-width: 479px) {
    .nav {
        padding: 10px 12px !important;
    }
    
    .nav.scrolled {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        margin: 8px 12px !important;
        padding: 6px 12px !important;
    }
    
    /* Button styling for small screens */
    .nav-cta-button-mobile .button {
        font-size: 10px !important;
        padding: 5px 10px !important;
    }
    
    /* Hero heading for small mobile */
    .heading-1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        word-wrap: break-word;
    }
    
    .h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    
    /* Reduce hero section padding */
    .section-tablet-scroll-animation {
        padding: 0 15px;
    }
    
    /* Smaller glows on mobile */
    .hero-glow-layer {
        width: 100%;
        height: 80%;
        filter: blur(40px);
    }
    
    .hero-glow-left {
        width: 50%;
        height: 50%;
        filter: blur(35px);
    }
    
    .hero-glow-spot-1,
    .hero-glow-spot-2,
    .hero-glow-spot-3 {
        width: 80px;
        height: 80px;
        filter: blur(25px);
    }
    
    /* Menu button visibility */
    .menu-button {
        display: flex !important;
        align-items: center;
    }
    
    .menu-icon {
        height: 18px;
        width: auto;
    }
}