/* Základní reset a nastavení */
:root {
    --transition-speed: 0.4s;
    --primary-color: #232323;
    --text-color: #000000;
    --background-color: #ffffff;
}

body {
    font-family: 'Figtree', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Společné utility */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* NAVIGATION BAR */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    background-color: var(--background-color);
}

.nav-bar ul {
    display: flex;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

.nav-bar ul li {
    margin: 0 25px;
}

.nav-bar ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 1000;
    padding: 5px 10px;
    border-radius: 0.9em;
    transition: all var(--transition-speed) ease;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    will-change: transform, opacity;
}

.nav-bar ul li:nth-child(1) a { animation-delay: 0.1s; }
.nav-bar ul li:nth-child(2) a { animation-delay: 0.2s; }
.nav-bar ul li:nth-child(3) a { animation-delay: 0.3s; }
.nav-bar ul li:nth-child(4) a { animation-delay: 0.4s; }
.nav-bar ul li:nth-child(5) a { animation-delay: 0.5s; }

.nav-bar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: #000000;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.nav-bar ul li a:hover::after {
    width: 90%;
}

.nav-bar ul li a:hover {
    text-shadow: 0 0 20px rgba(0, 0, 0, 1);
}

/* MAIN VIEW */
.main-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    position: relative;
}

.middle-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.main-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.main-text p {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 0 40px 0;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* BUTTON PANEL */
.button-panel {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Figtree', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.button:hover::before {
    transform: translateX(0);
}

.button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Primary Button */
.primary-button {
    background: #232323;
    color: #ffffff;
    min-width: 180px;
    font-weight: 500;
}

.primary-button:hover {
    background: #3a3a3a;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

/* Icon Buttons */
.icon-button {
    background: #232323;
    color: #ffffff;
    padding: 12px 0;
    border-radius: 8px;
    min-width: 100px;
}

.icon-button:hover {
    background: #3a3a3a;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.icon-button:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Responzivní design pro tlačítka */
@media (max-width: 768px) {
    .button-panel {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .button {
        width: 100%;
    }

    .primary-button,
    .icon-button {
        min-width: unset;
    }
}

/* FLYING ICONS */

.flying-iconcs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

.FLY-left, .FLY-right {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.FLY-left {
    left: 0;
    height: 100%;
    justify-content: space-between;
    margin-left: 18%;
}

.FLY-right {
    right: 0;
    height: 100%;
    justify-content: space-between;
    align-items: flex-end;
    margin-right: 18%;
}

.flying-icon {
    width: 170px;
    height: 170px;
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(3deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.flying-icon:hover {
    transform: scale(1.05);
    animation-play-state: paused;
}

.flying-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Individual icon animations */
.icon1 {
    transform: rotate(-38.12deg);
    margin-left: -30%;
    animation: float1 8s ease-in-out infinite;
}

.icon2 {
    transform: rotate(49.83deg);
    margin-left: -80%;
    animation: float2 7s ease-in-out infinite;
}

.icon3 {
    transform: rotate(-95.08deg);
    animation: float3 9s ease-in-out infinite;
}

.icon4 {
    transform: rotate(82.38deg);
    margin-right: -40%;  
    margin-top: 20%;  
    animation: float4 6.5s ease-in-out infinite;
}

.icon5 { 
    transform: rotate(37.79deg);
    margin-right: -120%;
    margin-top: -20%;  
    animation: float5 7.5s ease-in-out infinite;
}

.icon6 { 
    transform: rotate(-21.96deg);
    margin-top: -20%;  
    animation: float6 8.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(-38.12deg); }
    25% { transform: translate(-25px, -35px) rotate(-35deg); }
    50% { transform: translate(-40px, -20px) rotate(-32deg); }
    75% { transform: translate(-25px, -35px) rotate(-35deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(49.83deg); }
    25% { transform: translate(35px, -30px) rotate(52deg); }
    50% { transform: translate(45px, -15px) rotate(54deg); }
    75% { transform: translate(35px, -30px) rotate(52deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(-95.08deg); }
    25% { transform: translate(-35px, -25px) rotate(-92deg); }
    50% { transform: translate(-45px, -10px) rotate(-90deg); }
    75% { transform: translate(-35px, -25px) rotate(-92deg); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(82.38deg); }
    25% { transform: translate(25px, -40px) rotate(85deg); }
    50% { transform: translate(35px, -25px) rotate(87deg); }
    75% { transform: translate(25px, -40px) rotate(85deg); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0) rotate(37.79deg); }
    25% { transform: translate(-35px, -30px) rotate(40deg); }
    50% { transform: translate(-45px, -15px) rotate(42deg); }
    75% { transform: translate(-35px, -30px) rotate(40deg); }
}

@keyframes float6 {
    0%, 100% { transform: translate(0, 0) rotate(-21.96deg); }
    25% { transform: translate(30px, -35px) rotate(-19deg); }
    50% { transform: translate(40px, -20px) rotate(-17deg); }
    75% { transform: translate(30px, -35px) rotate(-19deg); }
}

/* About Us Section */
.about-us {
    margin-top: calc(15vh + 5vw);
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-us.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-us::before {
    display: none;
}

.about-us .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-us .left-column {
    position: relative;
}

.about-us .left-column h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #C95603;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.about-us .left-column h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #C95603;
}

.about-us .left-column p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.about-us .right-column {
    position: relative;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.about-us .right-column:hover {
    transform: translateY(-10px);
}

.about-us .right-column p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Why Us Section */
.why-us {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.why-us.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-us .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.why-us h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #C95603;
    margin-bottom: 60px;
    position: relative;
}

.why-us h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #C95603;
}

.why-us .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-us .feature-card {
    background: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.why-us .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #C95603;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed) ease;
    will-change: transform;
}

.why-us .feature-card:hover {
    transform: translateY(-5px);
}

.why-us .feature-card:hover::before {
    transform: scaleX(1);
}

.why-us .feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #C95603;
    margin-bottom: 20px;
}

.why-us .feature-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Responzivní design */
@media (max-width: 1024px) {
    .about-us .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-us .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-us, .why-us {
        padding: 60px 0;
    }

    .about-us .left-column h2,
    .why-us h2 {
        font-size: 2rem;
    }

    .why-us .features-grid {
        grid-template-columns: 1fr;
    }

    .about-us .right-column,
    .why-us .feature-card {
        padding: 30px 20px;
    }
}

.footer {
    background: #2b2b2b;
    padding: 10px;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.51);
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    50% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(7deg);
    }
}

@keyframes doubleSwing {
    0%, 100% {
        transform: rotate(0deg);
    }
    12.5% {
        transform: rotate(15deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    37.5% {
        transform: rotate(7deg);
    }
    50% {
        transform: rotate(0deg);
    }
    62.5% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
    87.5% {
        transform: rotate(7deg);
    }
}

@keyframes swingWithPause {
    0%, 100% {
        transform: rotate(0deg);
    }
    2.5% {
        transform: rotate(15deg);
    }
    5% {
        transform: rotate(-15deg);
    }
    7.5% {
        transform: rotate(7deg);
    }
    10% {
        transform: rotate(0deg);
    }
    12.5% {
        transform: rotate(15deg);
    }
    15% {
        transform: rotate(-15deg);
    }
    17.5% {
        transform: rotate(7deg);
    }
    20% {
        transform: rotate(0deg);
    }
}

.button-panel .send-order,
.button-panel a.send-order {
    transform-origin: top center;
    background: #232323;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 55px;
    font-size: 0.9rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    justify-content: center;
}

.button-panel .send-order:hover,
.button-panel a.send-order:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px 10px rgba(35, 35, 35, 0.2);
    background-color: #fff;
    color: #000;
    border: 1px solid #9a9a9a;
    text-decoration: none;
}

/* Text selection styles */
::selection {
    background-color: #232323;
    color: #ffffff;
    font-weight: 900;
    text-shadow: none;
}

::-moz-selection {
    background-color: #232323;
    color: #ffffff;
    font-weight: 900;
    text-shadow: none;
}

/* Equipment Section */
.equipment {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
}

.equipment::before {
    display: none;
}

.equipment .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.equipment h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #C95603;
    margin-bottom: 20px;
    position: relative;
}

.equipment h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #C95603;
}

.equipment .section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 40px auto;
    line-height: 1.6;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.equipment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.equipment-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.05);
}

.equipment-content {
    padding: 25px;
}

.equipment-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #C95603;
    margin-bottom: 15px;
}

.equipment-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.equipment-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.equipment-specs li {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    padding: 5px;
    border-right: 1px solid #ddd;
}

.equipment-specs li:last-child {
    border-right: none;
}

/* Responzivní design pro equipment sekci */
@media (max-width: 1024px) {
    .equipment-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .equipment {
        padding: 60px 0;
    }

    .equipment h2 {
        font-size: 2rem;
    }

    .equipment .section-description {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .equipment-specs {
        grid-template-columns: 1fr;
    }

    .equipment-specs li {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding: 10px 0;
    }

    .equipment-specs li:last-child {
        border-bottom: none;
    }
}

.only-mobile {
    display: none;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #C95603;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading state pro tlačítka */
.button.loading,
.submit-btn.loading {
    color: transparent;
}

.button.loading::after,
.submit-btn.loading::after {
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
}

/* Loading state pro formuláře */
.form-group.loading input,
.form-group.loading textarea {
    background-color: #f8f8f8;
}

.form-group.loading::after {
    right: 10px;
    top: 50%;
    margin-top: -10px;
}

/* Loading state pro galerii */
.gallery-item.loading {
    opacity: 0.7;
}

.gallery-item.loading img {
    filter: blur(2px);
}

.gallery-item.loading::after {
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
}

/* Message styles */
.message {
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
}

.message.success {
    background-color: #4CAF50;
    color: white;
}

.message.error {
    background-color: #f44336;
    color: white;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.2s;
    opacity: 0;
}

.skip-link:focus {
    top: 0;
    opacity: 1;
}

/* Cookie lišta */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 70%;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-consent button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: #C95603;
    color: white;
}

.cookie-accept:hover {
    background: #a64702;
}

.cookie-decline {
    background: transparent;
    color: white;
    border: 1px solid white !important;
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-consent p {
        max-width: 100%;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

