/* =========================================
   ARISTOS SBS - CSS (MOBILE-FIRST, 100VH, FLUID RESPONSIVE)
   ========================================= */

:root {
    --bg-dark: #121212;
    --bg-card: rgba(30, 30, 30, 0.6);
    --text-main: #f5f5f5;
    --text-muted: #b0b0b0;
    --aristos-yellow: #FFCC00;
    --aristos-yellow-hover: #e6b800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- MOTION EFEKTY --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- TLAČIDLÁ --- */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 14px 28px; font-weight: bold; border-radius: 30px; text-transform: uppercase;
    letter-spacing: 1px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer; border: none; text-align: center; width: 100%;
}
.btn-primary { background-color: var(--aristos-yellow); color: #000; }
.btn-primary:hover { background-color: var(--text-main); transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 20px rgba(255, 204, 0, 0.2); }
.btn-outline { background-color: transparent; border: 2px solid var(--aristos-yellow); color: var(--aristos-yellow); }
.btn-outline:hover { background-color: var(--aristos-yellow); color: #000; transform: translateY(-4px); }

/* --- HLAVIČKA --- */
header {
    position: fixed; top: 0; left: 0; right: 0;
    background-color: rgba(18, 18, 18, 0.4); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05); z-index: 1000; padding: 10px 5%;
    display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s ease;
}
header.scrolled { background-color: rgba(18, 18, 18, 0.9); }
.logo { z-index: 1002; position: relative; }
.logo img { height: 50px; transition: transform 0.3s ease; }

.hamburger { display: block; cursor: pointer; z-index: 1002; width: 30px; height: 24px; position: relative; background: none; border: none; }
.hamburger-line { display: block; width: 100%; height: 3px; background-color: var(--aristos-yellow); position: absolute; left: 0; transition: all 0.3s ease-in-out; border-radius: 3px; }
.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-line:nth-child(3) { bottom: 0; }
.hamburger.active .hamburger-line:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

.nav-links {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: rgba(18, 18, 18, 0.98); backdrop-filter: blur(20px);
    z-index: 1001; transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1); gap: 30px;
}
.nav-links.active { transform: translateX(0); }
.nav-links a { font-size: 2rem; font-weight: 700; color: var(--text-main); transition: color 0.3s ease; }
.nav-links a:hover { color: var(--aristos-yellow); }
.header-contact { display: flex; align-items: center; gap: 10px; z-index: 1002; position: relative; }
.phone-number { font-weight: bold; color: var(--aristos-yellow); display: none; }
.header-contact .btn { width: auto; padding: 8px 16px; font-size: 0.9rem; }
@media (max-width: 480px) { .header-contact .btn { display: none; } }

/* --- VERTIKÁLNA NAVIGÁCIA --- */
.scroll-nav { display: none; }

/* --- SPOLOČNÉ NASTAVENIA SEKCÍ --- */
.scroll-section {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding: 100px 5% 60px; background-attachment: fixed; background-position: center; background-size: cover;
}
.section-title { text-align: center; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 30px; font-weight: 800; }
.section-title span { color: var(--aristos-yellow); }

/* --- POZADIA SEKCÍ --- */
#domov { background-image: linear-gradient(rgba(15,15,15,0.8), rgba(15,15,15,0.95)), url('/fileadmin/web/banner-back-1.webp'); padding-top: 120px;}
#sluzby { background-image: linear-gradient(rgba(15,15,15,0.85), rgba(15,15,15,0.95)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?q=80&w=1920&auto=format&fit=crop'); }
#referencie { background-image: linear-gradient(rgba(15,15,15,0.85), rgba(15,15,15,0.95)), url('https://images.unsplash.com/photo-1511578314322-379afb476865?q=80&w=1920&auto=format&fit=crop'); }
#kontakt { background-image: linear-gradient(rgba(15,15,15,0.85), rgba(15,15,15,0.95)), url('https://images.unsplash.com/photo-1557597774-9d273605dfa9?q=80&w=1920&auto=format&fit=crop'); }

/* =========================================
   HERO SEKCIA
   ========================================= */
.hero-container { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; align-items: center; }
.hero-content { width: 100%; max-width: 800px; text-align: center; padding: 0 10px; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); margin-bottom: 25px; line-height: 1.1; font-weight: 900; letter-spacing: -1px; }
.hero h1 span { color: var(--aristos-yellow); }
.hero p { font-size: clamp(1rem, 2.5vw, 1.3rem); color: var(--text-muted); margin-bottom: 40px; max-width: 650px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.hero-buttons .btn { width: 100%; max-width: 320px; }

/* =========================================
   SLUŽBY A FILTER
   ========================================= */
.service-categories { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; width: 100%; }
.filter-btn {
    background-color: rgba(18, 18, 18, 0.6); border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main); padding: 8px 20px; border-radius: 20px; cursor: pointer; transition: all 0.3s ease; font-weight: 500; font-size: 0.9rem;
}
.filter-btn:hover, .filter-btn.active { background-color: var(--aristos-yellow); color: #000; border-color: var(--aristos-yellow); }

/* --- CAROUSEL --- */
.carousel-container { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 10px; }
.carousel-wrapper { overflow: hidden; width: 100%; border-radius: 12px; padding: 10px 0; }
.carousel-track { display: flex; gap: 15px; transition: transform 0.5s ease; will-change: transform; }

.service-card {
    flex: 0 0 100%; background-color: var(--bg-card); backdrop-filter: blur(10px);
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease; overflow: hidden; display: flex; flex-direction: column;
}
.service-image { height: 180px; background-size: cover; background-position: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.service-content { padding: 25px; flex-grow: 1; }
.card-badges { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.badge { font-size: 0.7rem; background-color: rgba(255, 204, 0, 0.1); color: var(--aristos-yellow); padding: 3px 8px; border-radius: 4px; text-transform: uppercase; border: 1px solid rgba(255, 204, 0, 0.3); }
.service-content h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--aristos-yellow); }

/* --- REFERENCIE A ANIMOVANÉ POČÍTADLÁ --- */
.stats-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--aristos-yellow);
    box-shadow: 0 15px 40px rgba(255, 204, 0, 0.15);
}

.stat-item h4 {
    font-size: 3.5rem;
    color: var(--aristos-yellow);
    margin-bottom: 10px;
    font-weight: 900;
    line-height: 1;
}

.stat-item p {
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin: 0;
}

.case-card {
    flex: 0 0 100%; background-color: var(--bg-card); backdrop-filter: blur(10px);
    padding: 25px; border-radius: 12px; border-left: 4px solid var(--aristos-yellow);
    border-top: 1px solid rgba(255,255,255,0.1); border-right: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}
.case-card h4 { font-size: 1.3rem; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.case-card strong { color: var(--aristos-yellow); }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: var(--aristos-yellow); color: #000; border: none;
    width: 30px; height: 30px; border-radius: 50%; font-size: 1rem;
    cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    opacity: 0.85;
}
.carousel-btn:hover { opacity: 1; background-color: var(--text-main); transform: translateY(-50%) scale(1.05); }
.carousel-btn.prev-btn { left: 0; }
.carousel-btn.next-btn { right: 0; }
.carousel-btn:disabled { opacity: 0.2; cursor: not-allowed; }

/* --- KONTAKT A FORMULÁR --- */
.contact-wrapper { width: 100%; max-width: 1200px; margin: 0 auto; }
.contact-section { background-color: var(--bg-card); backdrop-filter: blur(10px); display: grid; grid-template-columns: 1fr; gap: 40px; border-radius: 20px; padding: 30px; border: 1px solid rgba(255,255,255,0.1); }
.form-control { width: 100%; padding: 15px; background-color: rgba(18,18,18,0.8); border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 8px; transition: all 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--aristos-yellow); box-shadow: 0 0 15px rgba(255,204,0,0.2); }
textarea.form-control { resize: vertical; min-height: 120px; }

.site-footer { background-color: #050505; padding: 60px 5% 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 50px; margin-bottom: 20px; }
.footer-menu h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background-color: var(--aristos-yellow); }
.footer-menu ul li a:hover { color: var(--aristos-yellow); padding-left: 5px; }

/* =========================================
   TABLETY A DESKTOP
   ========================================= */
@media (min-width: 768px) {
    .hero-buttons { flex-direction: row; justify-content: center; }
    .hero-buttons .btn { width: auto; min-width: 220px; }
    .service-card { flex: 0 0 calc(50% - 7.5px); }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    header { padding: 15px 5%; }
    .logo { height: 50px; }
    .logo img { height: 100%; }
    .hamburger { display: none; }

    .nav-links { display: flex; flex-direction: row; position: static; height: auto; width: auto; background-color: transparent; backdrop-filter: none; transform: translateX(0); gap: 30px; }
    .nav-links a { font-size: 1rem; font-weight: 500; position: relative; padding-bottom: 5px; color: var(--text-main); }
    .nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--aristos-yellow); transition: width 0.3s ease; }
    .nav-links a:hover::after { width: 100%; }

    .phone-number { display: block; }
    .header-contact .btn { display: inline-flex; }

    .scroll-nav { position: fixed; top: 50%; right: 30px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 20px; z-index: 1001; }
    .scroll-nav::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: 50%; transform: translateX(-50%); width: 2px; background-color: rgba(255, 255, 255, 0.1); z-index: -1; }
    .scroll-dot { width: 35px; height: 35px; border-radius: 50%; border: 2px solid rgba(255, 204, 0, 0.3); background-color: var(--bg-dark); display: flex; align-items: center; justify-content: center; color: rgba(255, 204, 0, 0.5); font-size: 0.9rem; font-weight: bold; transition: all 0.3s ease; cursor: pointer;}
    .scroll-dot:hover, .scroll-dot.active { border-color: var(--aristos-yellow); background-color: var(--aristos-yellow); color: #000; transform: scale(1.15); box-shadow: 0 0 15px rgba(255, 204, 0, 0.4); }

    .hero-container { justify-content: flex-start; }
    .hero-content { text-align: left; padding: 0; }
    .hero p { margin-left: 0; margin-right: 0; }
    .hero-buttons { justify-content: flex-start; }

    .carousel-container { padding: 0 45px; }
    .carousel-track { gap: 20px; }
    .carousel-btn { width: 45px; height: 45px; font-size: 1.5rem; opacity: 1; }
    .service-card { flex: 0 0 calc(33.333% - 13.33px); }
    .case-card { flex: 0 0 calc(50% - 10px); }

    .stats-container { grid-template-columns: repeat(4, 1fr); gap: 30px; }
    .stat-item { padding: 40px 20px; }
    .stat-item h4 { font-size: 4rem; }

    .contact-section { grid-template-columns: 1fr 1fr; padding: 60px; gap: 60px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 80px;}
}
