/* Modern Minimalist Design for AXIS Group V2 */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #FF9500;
    --secondary-color: #FFB84D;
    --dark-bg: rgba(9, 8, 13, 0.95);
    --light-bg: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --glassmorphism: rgba(255, 255, 255, 0.1);
    --glassmorphism-border: rgba(255, 255, 255, 0.2);
}

/* ===== RESET & BASE STYLES ===== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--transition-normal);
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
}

/* ===== NAVIGATION ===== */
.top-bar {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: transparent;
    z-index: 1000;
    transition: var(--transition-normal);
}

.top-bar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.top-bar.scrolled .nav a {
    color: var(--text-dark);
}

.top-bar.scrolled img {
    filter: invert(1) brightness(0.2);
}

.top-bar img {
    width: 180px;
    height: auto;
    transition: var(--transition-normal);
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav a {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.burger:hover {
    transform: scale(1.1);
}

/* ===== MOBILE MENU ===== */
.overlay {
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-y: hidden;
    transition: var(--transition-slow);
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
    padding: 1rem;
    text-decoration: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    display: block;
    transition: var(--transition-normal);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.overlay a:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 3.5rem;
    color: var(--text-dark);
}

/* ===== SCROLL CONTAINER ===== */
.container {
    overflow-y: scroll;
    height: 100vh;
    scroll-behavior: smooth;
}

.section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Fade-in animation classes */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HERO SECTION (ÚVOD) ===== */
.uvod {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%),
                url('img/hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
}

.uvod h1 {
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.uvod p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.uvod a {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-normal);
    animation: fadeInUp 1s ease 0.4s both;
}

.uvod a:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SERVICES SECTION (NAŠE SLUŽBY) ===== */
.nase-sluzby {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.5) 0%, rgba(255, 255, 255, 0.95) 100%),
                url('img/services-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    padding: 6rem 5%;
    justify-content: center;
}

.sluzby-container {
    max-width: 1400px;
    margin: 0 auto;
}

.sluzby {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.sluzba {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.sluzba::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.sluzba:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.sluzba:hover::before {
    transform: scaleX(1);
}

.sluzba-jmeno {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sluzba-jmeno img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: invert(1) brightness(0.2);
}

.sluzba-jmeno p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.sluzba > p {
    font-size: 1rem;
    line-height: 1.7;
    color: #6C757D;
}

/* ===== ABOUT SECTION (O NÁS) ===== */
.o-nas {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.65) 100%),
                url('img/about-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    justify-content: center;
    align-items: center;
    padding: 6rem 5%;
    color: var(--text-light);
}

.o-nas-text {
    max-width: 900px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.o-nas h2 {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.o-nas p {
    font-size: 1.2rem;
    line-height: 2;
    opacity: 0.95;
}

/* ===== REFERENCES SECTION (REFERENCE) ===== */
.reference {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%),
                url('img/references-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    padding: 6rem 5%;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
}

.reference h2 {
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.reference-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.reference-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.reference-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.image-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-normal);
}

.reference-item:hover .image-container {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.reference-item:hover .image-container img {
    transform: scale(1.1);
}

.reference-nazev {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.reference-year {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.reference-desc {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* ===== CONTACT SECTION (KONTAKT) ===== */
.kontakt {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%),
                url('img/contact-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    padding: 6rem 5%;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
}

.kontakt h2 {
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.kontakt-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.left-side {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.right-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.right-side p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.right-side a {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

.right-side a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ===== FORM STYLES ===== */
form p {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

form p:first-of-type {
    margin-top: 0;
}

input[type=email],
input[type=text],
textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-normal);
    outline: none;
    font-weight: 500;
}

input[type=email]:focus,
input[type=text]:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input[type=submit] {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 15px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type=submit]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
}

input[type=submit]:active {
    transform: translateY(-1px);
}

/* ===== RESPONSIVE DESIGN (MOBILE-FIRST) ===== */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 768px) {
    .top-bar {
        padding: 1rem 5%;
    }

    .top-bar img {
        width: 140px;
    }

    .nav a {
        display: none;
    }

    .burger {
        display: block;
    }

    .top-bar.scrolled .burger {
        color: var(--text-dark);
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .sluzby {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .reference-list {
        grid-template-columns: 1fr;
    }

    .kontakt-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .right-side {
        text-align: center;
    }

    .overlay .closebtn {
        right: 25px;
    }

    /* Disable fixed background on mobile for better performance and compatibility */
    .uvod,
    .o-nas,
    .reference,
    .kontakt {
        background-attachment: scroll;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 440px) {
    .uvod p {
        font-size: 1.1rem;
    }

    .uvod a {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .sluzba {
        padding: 1.5rem;
    }

    .o-nas-text {
        padding: 2rem;
    }

    .reference-item {
        padding: 1.5rem;
    }

    .left-side {
        padding: 1.5rem;
    }
}

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        scrollbar-width: thin;
        scrollbar-color: #212121 transparent;
    }

    .container::-webkit-scrollbar {
        width: 8px;
    }

    .container::-webkit-scrollbar-track {
        background: transparent;
    }

    .container::-webkit-scrollbar-thumb {
        background: #212121;
        border-radius: 10px;
    }
}
