/* Gondi Motorsport Kft. - Custom Stylesheet */

/* Google Fonts - Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --honda-red: #e7301e;
    --honda-red-hover: #c92415;
    --dark-bg: #0b0f19;
    --card-bg: #151b2c;
    --accent-gray: #4b5563;
}

html {
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: #f3f4f6;
}

/* Custom Honda Red Selection */
::selection {
    background-color: var(--honda-red);
    color: white;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(21, 27, 44, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-nav {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Pulse Animation for CTA Phone Button */
@keyframes phone-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 48, 30, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(231, 48, 30, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 48, 30, 0);
    }
}

.pulse-btn {
    animation: phone-pulse 2s infinite;
}

/* Pulse Animation for CTA Purple Button (Kod Studio promo) */
@keyframes purple-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(147, 51, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
}

.pulse-purple-btn {
    animation: purple-pulse 2s infinite;
}

@keyframes gradient-loop {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.floating-promo-highlight {
    background: linear-gradient(
        135deg,
        #3C30FF 0%,
        #C636FF 50%,
        #3C30FF 100%
    ) !important;
    background-size: 200% 200% !important;
    animation: gradient-loop 3s ease-in-out infinite, purple-pulse 2s infinite !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    transition: transform 0.1s ease-out;
}

/* Card hover scaling and transitions */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(231, 48, 30, 0.4);
    box-shadow: 0 10px 25px -5px rgba(231, 48, 30, 0.15);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--accent-gray);
    border-radius: 4px;
}

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

/* Highlight Animation for Disclaimer */
@keyframes warning-glow {
    0%, 100% {
        border-color: rgba(220, 38, 38, 0.8);
        box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
    }
    50% {
        border-color: rgba(239, 68, 68, 1);
        box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
    }
}

.warning-border-animate {
    animation: warning-glow 3s infinite;
}

/* Operating hours dot indicator */
.status-dot {
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
}

.status-open::after {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.status-closed::after {
    background-color: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.status-break::after {
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

/* Dynamic background pattern */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Staged Page Entrance / Text Fade-in Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* Specific Line Spacing Fixes */
.hero-title {
    line-height: 1.18 !important;
    letter-spacing: -0.01em;
}

/* Scroll-driven Text Highlight Effect on "Honda Szerviz"
   - Base color is the site's Honda red (#e7301e)
   - A bright highlight band sweeps across based on scroll + subtle looping animation
*/
@keyframes text-shine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        text-shadow: 0 0 14px rgba(231, 48, 30, 0.5);
    }
    100% {
        background-position: 200% 50%;
    }
}

.text-highlight-loop {
    /* Base color is the site's Honda red - this is what you see most of the time */
    color: #e7301e;
    
    /* Gradient designed so the text stays mostly the site red,
       with a bright moving "highlight" band that reacts to scroll */
    background: linear-gradient(
        90deg,
        #e7301e 0%,
        #e7301e 28%,
        #ff8a7a 40%,      /* start of the bright highlight */
        #fff 48%,         /* peak of the highlight (almost white for strong pop) */
        #ff8a7a 56%,      /* end of the bright highlight */
        #e7301e 72%,
        #e7301e 100%
    );
    background-size: 260% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: text-shine 3.2s linear infinite;
    display: inline-block;
    position: relative;
    will-change: background-position;
    transition: filter 0.2s ease;
}

/* Boost when JS is actively driving the scroll position */
.text-highlight-loop.scroll-active {
    filter: brightness(1.1) saturate(1.15);
}

/* Keyboard Accessibility Focus Indicator */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #e7301e !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 10px rgba(231, 48, 30, 0.5) !important;
}
