/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --restaurant-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --lounge-bg: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --text-light: #ffffff;
    --overlay-dark: rgba(0, 0, 0, 0.5);
    --overlay-hover: rgba(0, 0, 0, 0.3);
    --transition-speed: 0.6s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Brand Logo - Centered at Top */
.brand-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    animation: fadeInDown 1s ease-out 0.3s forwards;
}

.brand-logo {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.brand-tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* Split Container */
.split-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Split Sides */
.split-side {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: flex var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.3s ease;
    cursor: pointer;
    opacity: 0;
}

/* Subtle brightness adjustment on non-hovered side */
.split-side:not(:hover) {
    filter: brightness(0.9);
}

.split-side:hover {
    filter: brightness(1.05);
}

/* Animation delays for reveal effect */
.restaurant-side {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/bg_algiardino.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: slideInLeft 1s ease-out 0.5s forwards;
}

.restaurant-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/bg_algiardino.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.5s ease;
    z-index: 0;
}

.restaurant-side:hover::before {
    animation: subtleZoom 20s ease-in-out infinite;
}

.lounge-side {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/bg_ilsalotto.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: slideInRight 1s ease-out 0.5s forwards;
}

.lounge-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/bg_ilsalotto.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.5s ease;
    z-index: 0;
}

.lounge-side:hover::before {
    animation: subtleZoom 20s ease-in-out infinite;
}

/* Overlay for better text contrast */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    transition: background var(--transition-speed) ease;
    z-index: 1;
}

.split-side:hover .overlay {
    background: rgba(0, 0, 0, 0.25);
}

/* Hover Effects */
.split-side:hover {
    flex: 1.3;
}

.split-side:not(:hover) {
    flex: 0.7;
}

/* Content Styling */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
    transition: transform 0.4s ease;
}

/* After initial animation, content stays visible */
.animations-complete .content {
    animation: none;
    opacity: 1;
    transform: translateY(0);
}

/* Logo Styling */
.logo {
    margin-bottom: 2rem;
    transition: all 0.5s ease;
    background: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
}

/* Black container for Il Salotto logo */
.lounge-side .logo {
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* General logo hover effect */
.split-side:hover .logo {
    transform: scale(1.08) translateY(-10px);
}

/* Restaurant logo hover - white background */
.restaurant-side:hover .logo {
    background: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 15px 60px rgba(255, 255, 255, 0.2), 
                0 15px 50px rgba(0, 0, 0, 0.4);
}

/* Keep black container on hover for Il Salotto logo */
.lounge-side:hover .logo {
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 15px 60px rgba(212, 175, 55, 0.3), 
                0 15px 50px rgba(0, 0, 0, 0.6);
}

/* Subtle glow animation on logo container */
.logo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.1));
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.split-side:hover .logo::before {
    opacity: 1;
    animation: subtleGlow 3s ease-in-out infinite;
}

.logo img {
    max-width: 220px;
    max-height: 130px;
    width: auto;
    height: auto;
    display: block;
    -webkit-filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.4s ease;
}

/* Gold color for Il Salotto logo - with Samsung Browser fallback 
.lounge-side .logo img {
    -webkit-filter: brightness(0) saturate(100%) invert(58%) sepia(78%) saturate(1500%) hue-rotate(5deg) brightness(110%) contrast(101%) drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
    filter: brightness(0) saturate(100%) invert(58%) sepia(78%) saturate(1500%) hue-rotate(5deg) brightness(110%) contrast(101%) drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));

} */

/* Gold color on hover for Il Salotto logo 
.lounge-side:hover .logo img {
    -webkit-filter: brightness(0) saturate(100%) invert(58%) sepia(78%) saturate(1500%) hue-rotate(5deg) brightness(110%) contrast(101%) drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
    filter: brightness(0) saturate(100%) invert(58%) sepia(78%) saturate(1500%) hue-rotate(5deg) brightness(110%) contrast(101%) drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
}*/

.content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.content p {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--text-light);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.8s forwards;
    position: relative;
    z-index: 100;
}

.cta:hover {
    background: var(--text-light);
    color: #333;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Subtle glow animation for logo on hover */
@keyframes subtleGlow {
    0%, 100% {
        filter: blur(20px);
        opacity: 0.3;
    }
    50% {
        filter: blur(25px);
        opacity: 0.5;
    }
}

/* Subtle zoom animation for background images using transform */
@keyframes subtleZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    html {
        height: 100%;
        height: 100dvh; /* Dynamic viewport height for mobile browsers */
    }

    body {
        height: 100%;
        height: 100dvh;
        overflow: hidden; /* Prevent body scroll on mobile */
    }

    .split-container {
        flex-direction: column;
        height: 100%;
        height: 100dvh;
        overflow-y: auto; /* Allow scrolling within container */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    /* Hide brand container on mobile */
    .brand-container {
        display: none;
    }

    /* Each side takes exactly 50% of dynamic viewport height */
    .split-side {
        flex: none !important;
        min-height: 50vh;
        min-height: 50dvh;
        height: 50vh;
        height: 50dvh;
    }

    /* Remove hover size changes on mobile - prevents scrolling issues */
    .split-side:hover {
        flex: none !important;
    }

    .split-side:not(:hover) {
        flex: none !important;
    }

    .content h2 {
        font-size: 2.5rem;
    }

    .content p {
        font-size: 1.1rem;
    }

    .logo {
        padding: 1.5rem 2rem;
    }

    .logo img {
        max-width: 160px;
        max-height: 95px;
    }
}

@media (max-width: 480px) {
    .content h2 {
        font-size: 2rem;
    }

    .content p {
        font-size: 1rem;
    }

    .cta {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}
