/* 
   Bestia Box - Aggressive Rock/Metal Aesthetic
   Using Orbitron and Rajdhani fonts with dark theme
*/

:root {
    --black: #000000;
    --dark-grey: #1a1a1a;
    --medium-grey: #333333;
    --light-grey: #666666;
    --very-light-grey: #f5f5f5;
    --white: #ffffff;
    --red: #e63946;
    --dark-red: #cc2936;
    --c-bg: #0f0f10;
    --c-surface: #18191b;
    --c-border: #2a2b2d;
    --c-text: #f5f5f5;
    --c-dim: #b3b3b3;
    --c-accent: #d60018;
    --c-accent-glow: #ff2e41;
    --c-focus: #ff2e41;
    --transition-base: .35s cubic-bezier(.4,0,.2,1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--black);
    color: var(--white);
    position: relative;
    font-weight: 500;
    letter-spacing: 1px;
    -webkit-font-smoothing: antialiased;
}

/* Aggressive typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-weight: 600;
    letter-spacing: 1.5px;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

img {max-width:100%;height:auto;}
a {text-decoration:none;}

/* Bootstrap overrides */
.btn-danger {
    background-color: var(--red);
    border-color: var(--red);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3); */
}

.btn-outline-danger {
    color: var(--red);
    border-color: var(--red);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: solid 2px var(--red);
}

.btn-outline-danger:hover {
    background-color: var(--red);
    color: var(--white);
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3); */
}

.text-danger {
    color: var(--red) !important;
}

/* Navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.95);
    transition: all 0.3s ease;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    padding: 10px 0;
}

.navbar-brand {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 1.5rem;
}

/* Desktop Navigation */
.desktop-nav {
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.desktop-nav .navbar-nav {
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 15px;
    position: relative;
    padding: 8px 0 !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
    color: var(--c-dim);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--red);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link:focus, .nav-link.active {
    color: #fff;
}

.btn-order {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-order:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3); */
}

/* Mobile Navigation (Ver_1 Style) */
.burger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.5s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.mobile-nav.nav-active {
    right: 0;
}

.mobile-nav .nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav .nav-links li {
    margin: 30px 0;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.mobile-nav ul.nav-links {
    padding-left:Opx !important;
    
}

.mobile-nav.nav-active .nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav .nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 2rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.mobile-nav .nav-links a:hover {
    color: var(--red);
}

.mobile-nav .order-link {
    color: var(--red) !important;
    border: 2px solid var(--red);
    padding: 10px 20px;
    border-radius: 5px;
}

.mobile-nav .order-link:hover {
    background-color: var(--red);
    color: var(--white) !important;
}

/* Burger animation */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-6px, -7px);
}

/* Hero section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/img/gubec3.jpeg');
    background-size: cover;
    background-position: top;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero:before, .hero:after {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #d60018 0%, rgba(214,0,24,0) 70%);
    filter: blur(70px);
    opacity: .08;
    animation: float 20s linear infinite;
}

.hero:before {
    top: -200px;
    left: -120px;
}

.hero:after {
    bottom: -250px;
    right: -160px;
    animation-direction: reverse;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(40px); }
    100% { transform: translateY(0); }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.cta-btn {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 6px 12px rgba(230, 57, 70, 0.4); */
}

.lead {
    color: var(--c-dim);
}

/* Underline for section titles */
.underline {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--red), var(--dark-red));
    margin-bottom: 30px;
    border-radius: 2px;
}

/* Sections general styling */
section.pedals {
    background-color: var(--dark-grey);
}

section.about {
    background-color: var(--black);
}

section.contact {
    background-color: var(--dark-grey);
}

section.order {
    background-color: var(--black);
}

/* Pedal Feature Map */
.feature-map-section {
    background: #111214;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.pedal-stage {
    position: relative;
    max-width: 720px;
    height: auto;
}

.pedal-image-wrapper {
    position: relative;
}

.pedal-image {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,.6));
}

.hotspot {
    --size: 50px;
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: var(--size);
    height: var(--size);
    transform: translate(-50%,-50%);
    border-radius: 50%;
    background: transparent;
    border: 3px solid var(--c-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 10;
    animation: pulseIdle 2s ease-in-out infinite;
}

.hotspot::before {
    content: "";
    position: absolute;
    inset: -8px;
    border: 3px solid var(--c-accent);
    border-radius: inherit;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.hotspot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(214,0,24,.3);
    border-radius: inherit;
    opacity: 1;
    transition: all 0.3s ease;
}

.hotspot:hover::before {
    opacity: 0.6;
    transform: scale(1);
}

.hotspot.active::before {
    opacity: 1;
    transform: scale(1.2);
    animation: pulseRingActive 1.5s infinite;
}

.hotspot:hover::after, 
.hotspot.active::after {
    opacity: 0;
}

.hotspot:hover, 
.hotspot:focus {
    border-color: var(--c-accent-glow);
    transform: translate(-50%,-50%) scale(1.1);
}

.hotspot.active {
    border-color: var(--c-accent-glow);
    transform: translate(-50%,-50%) scale(1.15);
    box-shadow: 0 0 20px rgba(214,0,24,.6);
}

.hotspot:active {
    transform: translate(-50%,-50%) scale(0.95);
}

.hotspot:focus-visible {
    outline: 2px solid var(--c-focus);
    outline-offset: 3px;
}

@keyframes pulseIdle {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(214,0,24,.8), 0 0 20px rgba(214,0,24,.4);
        border-color: var(--c-accent);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(214,0,24,.2), 0 0 30px rgba(214,0,24,.6);
        border-color: var(--c-accent-glow);
    }
}

@keyframes pulseRingActive {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(214,0,24,.8), 0 0 20px rgba(214,0,24,.4);
        border-color: var(--c-accent-glow);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(214,0,24,.2), 0 0 30px rgba(214,0,24,.6);
        border-color: #ff2e41;
    }
}

/* Desktop Feature Info Panel */
.feature-info-panel {
    background: linear-gradient(145deg, #191a1c, #141516);
    border: 1px solid #2d2e30;
    border-radius: 12px;
    padding: 2rem;
    min-height: 350px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px -8px rgba(0,0,0,.6);
    transition: all 0.3s ease;
}

.feature-content h3 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.feature-content p {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    line-height: 1.6;
}

/* Mobile Feature Tooltip */
.mobile-feature-tooltip {
    background: linear-gradient(145deg, #191a1c, #141516);
    border: 1px solid #2d2e30;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px -8px rgba(0,0,0,.6);
    transition: all 0.3s ease;
}

.mobile-feature-tooltip .feature-content h3 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mobile-feature-tooltip .feature-content p {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    line-height: 1.6;
}

/* Remove old tooltip styles */
.feature-tooltip {
    display: none;
}

/* Footer */
.site-footer {
    background: var(--black);
    border-top: 2px solid var(--red);
    color: var(--c-dim);
}

.footer-link {
    color: var(--c-dim);
    transition: color 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-link:hover {
    color: var(--red);
}

/* Utilities */
.text-muted {
    color: var(--c-dim) !important;
}

.placeholder-video {
    border: 1px solid #2a2b2d;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero {
        min-height: 92vh;
    }
    
    .hero h1 {
        font-size: 2.5rem !important;
    }
    
    .hero h2 {
        font-size: 1.2rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .nav-link {
        padding: .65rem .75rem;
    }

    /* Mobile feature map adjustments */
    .feature-map-section {
        min-height: 100vh;
        padding: 2rem 0;
    }

    .mobile-feature-tooltip {
        min-height: 200px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .mobile-nav .nav-links a {
        font-size: 1.5rem;
    }
    
    .hotspot {
        --size: 38px;
    }

    .feature-map-section {
        min-height: 100vh;
        padding: 1.5rem 0;
    }

    .mobile-feature-tooltip {
        padding: 1rem;
        min-height: 150px;
    }

    .mobile-feature-tooltip .feature-content h3 {
        font-size: 1.2rem !important;
    }

    .mobile-feature-tooltip .feature-content p {
        font-size: 0.9rem !important;
    }
}
