/* Base responsive improvements */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Enhanced Responsive Header Styles */

/* Mobile Header Layout */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 95%;
        gap: 0;
        position: relative;
    }

    /* Left corner - combine both social groups */
    .leftcorner {
        display: flex;
        align-items: center;
        gap: 15px;
        order: 1;
    }
    
    /* Move rightcorner content into leftcorner */
    .rightcorner {
        display: none; /* Hide original rightcorner */
    }
    
    /* Add rightcorner content to leftcorner via CSS */
    .leftcorner::after {
        content: '';
        display: flex;
        gap: 15px;
    }
    
    #contactBtn {
        display: none;
    }

    /* Hamburger Menu Container */
    .hamburger-container {
        display: flex;
        align-items: center;
        order: 3;
        z-index: 1001;
    }
    
    /* Hamburger Menu Button */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .logo-container img {
        width: 40%;
        height: auto;
        padding: 20px 0;
    }
    
    /* Hide original navbar */
    .navbar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        transition: all 0.3s ease;
    }
    
    /* Show mobile menu when active */
    .navbar.mobile-menu-active {
        display: flex;
    }
    
    .navbar a {
        font-size: 24px;
        font-weight: 400;
        width: auto;
        height: auto;
        text-align: center;
        padding: 15px 30px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .navbar a:hover {
        background-color: rgba(217, 51, 45, 0.1);
        transform: scale(1.05);
    }
    
    /* Close button in mobile menu */
    .mobile-menu-close {
        position: absolute;
        top: 30px;
        right: 30px;
        background: transparent;
        border: none;
        font-size: 30px;
        cursor: pointer;
        color: #333;
        z-index: 1002;
    }
    
    /* Social icons in leftcorner - better spacing */
    .leftcorner img {
        width: 25px;
        height: 25px;
    }
}

/* Smaller mobile screens */
@media (max-width: 480px) {
    nav {
        width: 95%;
        padding: 0 10px;
    }
    
    .leftcorner {
        gap: 10px;
    }
    
    .leftcorner img {
        width: 22px;
        height: 22px;
    }
    
    .leftcorner .pop-up {
        font-size: 14px;
    }
    
    .logo-container img {
        width: 40%;
        height: auto;
        padding: 20px 0;
    }
    
    .hamburger {
        width: 25px;
        height: 20px;
    }
    
    .navbar a {
        font-size: 20px;
        padding: 12px 25px;
    }
}

/* Desktop - keep original layout */
@media (min-width: 769px) {
    .hamburger-container {
        display: none;
    }
    
    .mobile-menu-close {
        display: none;
    }
    
    /* Show rightcorner on desktop */
    .rightcorner {
        display: flex !important;
    }
    
    /* Hide extra content from leftcorner on desktop */
    .leftcorner .pop-up,
    .leftcorner img[alt="Phone"],
    .leftcorner img[alt="Email"] {
        display: none;
    }
    
    nav {
        display: flex;
        justify-content: space-between;
        width: 80%;
        margin: 30px auto 0 auto;
    }
    
    .logo-container {
        position: static;
        transform: none;
    }
    
    .navbar {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
        z-index: auto;
    }
    
    /* Show decorative background on desktop */
    .about-bg {
        display: block !important;
    }
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Animation for smooth transitions */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar.mobile-menu-active a {
    animation: slideInFromTop 0.3s ease forwards;
}

.navbar.mobile-menu-active a:nth-child(1) { animation-delay: 0.1s; }
.navbar.mobile-menu-active a:nth-child(2) { animation-delay: 0.2s; }
.navbar.mobile-menu-active a:nth-child(3) { animation-delay: 0.3s; }
.navbar.mobile-menu-active a:nth-child(4) { animation-delay: 0.4s; }
.navbar.mobile-menu-active a:nth-child(5) { animation-delay: 0.5s; }

/* Hero Section Responsive */
@media (max-width: 768px) {
    .hero {
        width: 95%;
        margin: 40px auto;
    }
    
    .hero img {
        width: 100%;
        margin-top: -20px;
    }
    
    .dot1, .dot2, .dot3 {
        font-size: 50px;
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .dot1, .dot2, .dot3 {
        font-size: 40px;
    }
}

/* About Section Responsive */
@media (max-width: 768px) {
    .about {
        width: 95%;
        margin: 30px auto;
        padding-bottom: 40px;
    }
    
    .about p {
        font-size: 18px;
        width: 90%;
        line-height: 1.6;
    }
    
    .about button {
        width: 90%;
        max-width: 350px;
        height: 60px;
        font-size: 18px;
        margin-top: 30px;
    }

    .about-bg {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .about p {
        font-size: 16px;
        width: 95%;
        line-height: 1.5;
    }
    
    .about button {
        width: 95%;
        height: 50px;
        font-size: 16px;
    }
}

/* Scroll Button Responsive */
@media (max-width: 768px) {
    .scroll-button {
        bottom: 100px;
        right: 10px;
        width: 45px;
        height: 45px;
    }
    
    .scroll {
        width: 25px;
        height: 25px;
    }
    
    .scroll img {
        width: 20px;
        height: auto;
    }
}

/* CTAs Section Responsive */
@media (max-width: 768px) {
    .ctas {
        flex-direction: column;
        width: 95%;
        gap: 30px;
    }
    
    .menu-container, .onas-container, .galerie-container {
        width: 100%;
        max-width: 400px;
    }
    
    .ctas a {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ctas a {
        font-size: 16px;
        padding-top: 15px;
    }
}

/* More Section Responsive */
@media (max-width: 768px) {
    .more-title {
        height: 120px;
        padding-top: 30px;
        margin-top: 50px;
        font-size: 24px;
    }
    
    .more-container {
        flex-direction: column;
        width: 95%;
        height: auto;
        gap: 30px;
        margin: -40px auto 0 auto;
        padding-bottom: 50px;
    }
    
    .contact-container, .opening-container, .location-container {
        width: 100%;
        min-height: 400px;
    }
    
    .contact-content {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .address, .email, .contact, .facebook, .instagram {
        margin: 10px 30px;
        gap: 30px;
    }
    
    .contact-container p, .oteviracidoba p, a.contact-text {
        font-size: 18px;
    }
    
    .kontakt-text, .oteviracidoba-text, .lokace-text {
        display: none;
    }
    
    .oteviracidoba {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .more-title {
        font-size: 20px;
        height: 100px;
        padding-top: 25px;
    }
    
    .address, .email, .contact, .facebook, .instagram {
        margin: 8px 20px;
        gap: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-container img {
        width: 25px;
        height: 25px;
    }
    
    .contact-container p, .oteviracidoba p, a.contact-text {
        font-size: 16px;
    }
    
    .kontakt-text, .oteviracidoba-text, .lokace-text {
        font-size: 16px;
    }
    
    iframe {
        height: 400px;
    }
}

/* Gallery Section Enhanced Responsive */
@media (max-width: 768px) {
    .gallery {
        width: 95%;
    }
    
    .gallery-title {
        font-size: 24px;
        text-align: center;
    }
    
    .gallery-images1, .gallery-images2 {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .gallery img {
        width: 90%;
        max-width: 350px;
        height: auto;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 20px;
    }
    
    .gallery img {
        width: 95%;
        max-width: 300px;
    }
}

/* Menu Page Responsive */
@media (max-width: 768px) {
    .header-menu {
        width: 95%;
        flex-direction: column;
        text-align: center;
        padding-bottom: 30px;
    }
    
    .header-menu h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .header-menu p {
        font-size: 16px;
        line-height: 1.5;
        margin: 0 10px;
    }
    
    .menu {
        width: 95%;
    }
    
    embed {
        width: 100%;
        height: 600px;
    }
    
    .menu a {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .header-menu h1 {
        font-size: 20px;
    }
    
    .header-menu p {
        font-size: 14px;
    }
    
    embed {
        height: 500px;
    }
    
    .menu a {
        font-size: 16px;
    }
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 350px;
        margin: 20% auto;
        padding: 25px;
    }
    
    .modal h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .contact-item {
        font-size: 14px;
        margin: 12px 0;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .contact-item img {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .phone-number {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 30% auto;
        padding: 20px;
    }
    
    .modal h2 {
        font-size: 18px;
    }
    
    .contact-item {
        font-size: 13px;
        margin: 10px 0;
    }
    
    .phone-number {
        font-size: 15px;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        width: 95%;
        height: auto;
        margin-bottom: 30px;
    }
    
    .right-column {
        width: 100%;
        height: 60px;
        order: 2;
    }
    
    .right-column p {
        font-size: 18px;
    }
    
    .left-column {
        width: 100%;
        padding: 20px 0;
        order: 1;
    }
    
    .left-column p {
        font-size: 16px;
        margin: 5px 20px;
        text-align: center;
    }
    
    .footer-logo {
        margin-top: 30px;
    }
    
    .footer-logo img.logo {
        width: 50%;
        height: auto;
    }
    
    .footer-copyright p {
        font-size: 16px;
        text-align: center;
    }
    
    .footer-bg {
        display: none; /* Hide decorative background on mobile */
    }
}

@media (max-width: 480px) {
    .left-column p {
        font-size: 14px;
        margin: 3px 15px;
    }
    
    .right-column p {
        font-size: 16px;
    }
    
    .footer-copyright p {
        font-size: 14px;
    }
    
    .footer-logo img.logo {
        width: 60%;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Better touch targets */
    .navbar a {

        margin: 4px;
        border-radius: 4px;
    }
    
    .scroll-button {
        touch-action: manipulation;
    }
    
    /* Improved spacing */
    .about {
        padding: 20px;
    }
    
    .gallery {
        padding: 20px;
    }
    
    /* Better text readability */
    body {
        line-height: 1.6;
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .logo-container img {
        width: 25%;
    }
    
    .hero {
        margin: 20px auto;
    }
    
    .modal-content {
        margin: 10% auto;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .navbar a {
        font-size: 14px;
        min-width: 60px;
    }
    
    .about p {
        font-size: 14px;
    }
    
    .about button {
        font-size: 14px;
        height: 45px;
    }
}

/* Tablet landscape improvements */
@media (min-width: 769px) and (max-width: 1024px) {
    .more-container {
        width: 90%;
    }
    
    .hero {
        width: 85%;
    }
    
    .about {
        width: 85%;
    }
    
    .ctas {
        width: 85%;
    }
    
    .gallery {
        width: 85%;
    }
}