/* --- RESET & VARIABLES --- */
:root {
    --primary: #e50914; /* Športová červená ako akcent */
    --bg-dark: #0a0a0a;
    --bg-light: #121212;
    --surface: #1e1e1e;
    --border-color: rgb(77, 77, 77);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- TYPOGRAPHY & BUTTONS --- */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #b8070f;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

.btn-full {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-lang {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* --- HERO --- */
.hero {
    padding: 160px 0 160px 0;
    background: radial-gradient(circle at 80% 20%, #2a0507 0%, var(--bg-dark) 50%);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}

/* Modern overlay for better text readability */
/* Blurred background layer: duplicates hero background and blurs it (affects only background) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    background-repeat: no-repeat;
    filter: blur(5px) saturate(0.9);
    transform: scale(1.03);
}

/* Ensure content sits above overlay */
.hero > .container {
    position: relative;
    z-index: 3;
}

/* Animated subtle gradient for modern look */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* subtle dark gradient for contrast */
    background: linear-gradient(180deg, rgba(6,6,6,0.32) 0%, rgba(6,6,6,0.52) 40%, rgba(6,6,6,0.72) 100%);
    mix-blend-mode: normal;
}

/* Subtle dancing radial highlights over the background */
.hero .radial-tiles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    /* brighter, more visible highlights */
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 28%),
                      radial-gradient(circle at 80% 70%, rgba(255,240,200,0.08) 0%, transparent 22%),
                      radial-gradient(circle at 50% 10%, rgba(180,220,255,0.06) 0%, transparent 20%);
    background-size: 200% 200%, 200% 200%, 250% 250%;
    background-repeat: no-repeat;
    animation: tilesMove 18s ease-in-out infinite, tilePulse 6s ease-in-out infinite;
    mix-blend-mode: overlay;
    opacity: 1;
    filter: blur(6px);
    will-change: background-position, opacity;
}

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

@keyframes sheenMove {
    0% { transform: translateX(-120%) rotate(-8deg); opacity: 0; }
    10% { opacity: 0.7; }
    50% { transform: translateX(120%) rotate(-8deg); opacity: 0.9; }
    90% { opacity: 0.2; }
    100% { transform: translateX(120%) rotate(-8deg); opacity: 0; }
}

@keyframes tilesMove {
    0% {
        background-position: 10% 20%, 90% 80%, 50% 5%;
        opacity: 0.85;
    }
    50% {
        background-position: 30% 40%, 70% 60%, 60% 20%;
        opacity: 1;
    }
    100% {
        background-position: 10% 20%, 90% 80%, 50% 5%;
        opacity: 0.85;
    }
}

@keyframes tilePulse {
    0% { opacity: 0.85; }
    50% { opacity: 1; }
    100% { opacity: 0.85; }
}

/* Subtle backdrop blur behind overlay for depth (uses less resources than large image blur) */
/* removed backdrop blur to avoid blurring content; background is blurred via ::before */

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero::after { animation: none; }
    .hero .radial-tiles { animation: none; opacity: 0.85; }
}

/* Move sheen to .btn-primary: subtle sweep on hover/active */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1; /* ensure button sits above its sheen layer */
}
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2; /* sheen below text but above background */
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 45%, rgba(255,255,255,1) 50%, rgba(255,255,255,0.25) 55%, rgba(255,255,255,0) 100%);
    transform: translateX(-110%);
    filter: blur(8px);
    mix-blend-mode: screen;
    opacity: 0;
    transition: transform 300ms cubic-bezier(.2,.9,.2,1), opacity 320ms ease;
    /* subtle continuous shimmer */
    animation: sheenLoop 6s linear infinite;
    pointer-events: none;
}
.btn-primary:hover::after, .btn-primary:focus::after {
    transform: translateX(120%);
    opacity: 1;
}

/* Animated decorative border for primary button */
.btn-primary::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 2; /* above sheen but below text */
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,200,150,0.12), rgba(255,255,255,0.08));
    border-radius: 8px;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 300ms ease, transform 400ms cubic-bezier(.2,.9,.2,1);
}
.btn-primary:hover::before, .btn-primary:focus::before {
    opacity: 1;
    transform: scale(1.02);
}

/* Stronger sheen on focus/hover for accessibility */
.btn-primary:focus::after { opacity: 1; transform: translateX(120%); }

@keyframes sheenLoop {
    0% { transform: translateX(-110%) scaleX(1); opacity: 0.06; }
    50% { transform: translateX(0%) scaleX(1.02); opacity: 0.12; }
    100% { transform: translateX(110%) scaleX(1); opacity: 0.06; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 32px;
}

/* Improve readability: subtle text shadow and optional soft backdrop */
.hero-content h1, .hero-content p {
    text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

/* Small translucent backdrop behind the headline for extra contrast on busy backgrounds */
.hero-content .headline-backdrop {
    display: inline-block;
    background: rgba(0,0,0,0.25);
    padding: 6px 10px;
    border-radius: 6px;
    backdrop-filter: blur(2px);
}

.car-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #1e1e1e 0%, #121212 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- FLEET SECTION --- */
.fleet {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 48px;
}

.grid-fleet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.car-card {
    background-color: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.car-card-image {
    background: #252525; /* Miesto pre obrázok */
}
.car-card-image img{
    width: 100%;
    height: auto;
    display: block;
}
.car-card-body {
    padding: 24px;
}

.car-card-body h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.car-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.car-price {
    margin-bottom: 24px;
}

.car-price .price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

/* --- SERVICES --- */
.services {
    padding: 100px 0;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-box {
    background: var(--surface);
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
}

.service-box .icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.service-box h3 {
    margin-bottom: 12px;
}

.service-box p {
    color: var(--text-muted);
}

/* --- CONTACT --- */
.contact {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info {
    list-style: none;
    margin-top: 24px;
}

.contact-info li {
    margin-bottom: 16px;
    font-size: 18px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    background-color: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    color: white;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: 1px solid var(--primary);
}

/* --- FOOTER --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
}
.pricelist_desc {
    white-space: pre-line; /* Preserve line breaks for multi-line text */
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
}

/* --- RESPONSIVE RESPONSIVENESS (MEDIA QUERIES) --- */
@media (max-width: 992px) {
    .hero-grid, .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 38px;
    }
    .contact-info {
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    /* Hamburger animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}