/* Hotel Peremoga - Main Styles */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

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

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: var(--transition);
    max-width: 90vw;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
}

.brand-icon {
    font-size: 24px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-color);
    color: var(--white);
}

.nav-lang select {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
    transform-origin: center;
}

/* Mobile Hamburger in Hero Section */
.mobile-hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.mobile-hamburger:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.mobile-hamburger .hamburger span {
    background: var(--text-color);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: var(--transition);
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
}

.mobile-menu-links {
    list-style: none;
    margin-bottom: 40px;
}

.mobile-menu-links li {
    margin: 20px 0;
}

.mobile-menu-links a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    transition: var(--transition);
    display: block;
    padding: 15px;
    border-radius: 12px;
}

.mobile-menu-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.mobile-menu-lang select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 16px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.7), rgba(139, 92, 246, 0.7), rgba(245, 158, 11, 0.7)),
        url('../img/back.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3), transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2), transparent 50%);
    animation: floating 20s ease-in-out infinite;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(99, 102, 241, 0.1), 
        rgba(139, 92, 246, 0.1), 
        rgba(245, 158, 11, 0.1)
    );
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 10;
    position: relative;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 1s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.accent {
    background: linear-gradient(45deg, var(--accent-color), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 35px;
    opacity: 0.9;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.scroll-indicator span {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.scroll-arrow {
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* Story Section */
.story-section {
    padding: 40px 0;
    background: var(--white);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.bento-card:hover::before {
    transform: scaleX(1);
}

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

.bento-card.large {
    grid-column: span 8;
}

.bento-card.medium {
    grid-column: span 4;
}

.bento-card.small {
    grid-column: span 2;
}

.bento-card.advantages-bento {
    grid-column: span 4;
}

.card-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.card-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.story-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat .label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.bento-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.bento-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Rooms Section */
.rooms-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* 3D Room Cards */
.room-card-3d {
    perspective: 1000px;
    height: 320px;
    cursor: pointer;
}

.card-3d-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-3d-inner.flipped {
    transform: rotateY(180deg);
}

.card-3d-front,
.card-3d-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: var(--white);
}

.card-3d-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.room-image {
    height: 180px;
    background: linear-gradient(45deg, #e0e7ff, #c7d2fe);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

.room-image.standard {
    background: linear-gradient(45deg, #dbeafe, #bfdbfe);
}

.room-image.economy {
    background: linear-gradient(45deg, #fef3c7, #fde68a);
}

.room-image.luxury {
    background: linear-gradient(45deg, #ddd6fe, #c4b5fd);
}


.room-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
}

.room-info {
    padding: 20px;
    text-align: left;
}

.room-info h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.room-info p {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.2;
    font-size: 0.9rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.room-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.room-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.room-features {
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.room-features h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.room-features ul {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
    overflow-y: auto;
}

.room-features li {
    padding: 6px 0;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.room-features li:last-child {
    border-bottom: none;
}

.book-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: auto;
}

.book-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Kitchen Section */
.kitchen-section {
    padding: 40px 0;
    background: var(--white);
}

.kitchen-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.kitchen-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.kitchen-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.kitchen-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
    background: #e0e7ff;
}

.feature-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-color);
}

.kitchen-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 400px;
}

.kitchen-illustration {
    position: relative;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.kitchen-item {
    position: absolute;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.kitchen-item.pot {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.kitchen-item.coffee {
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.kitchen-item.bread {
    bottom: 20%;
    left: 30%;
    animation-delay: 2s;
}

/* Contact Section */
.contact-section {
    padding: 40px 0;
    background: var(--bg-light);
    text-align: center;
}

.contact-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-btn.primary {
    background: var(--primary-color);
}

.cta-btn.primary:hover {
    background: var(--secondary-color);
}

.cta-btn.secondary {
    background: var(--accent-color);
}

.cta-btn.secondary:hover {
    background: #d97706;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.info-icon {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
}

.footer p {
    opacity: 0.8;
}

/* Booking Calendar Styles */
.booking-calendar-container {
    margin: 40px 0;
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Scroll Animations */
[data-scroll] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll].animate {
    opacity: 1;
    transform: translateY(0);
}

[data-scroll="slide-right"] {
    transform: translateX(-50px);
}

[data-scroll="slide-right"].animate {
    transform: translateX(0);
}

[data-scroll="slide-left"] {
    transform: translateX(50px);
}

[data-scroll="slide-left"].animate {
    transform: translateX(0);
}

[data-scroll="scale-up"] {
    transform: scale(0.8);
}

[data-scroll="scale-up"].animate {
    transform: scale(1);
}

[data-scroll="flip-in"] {
    transform: rotateY(-90deg);
}

[data-scroll="flip-in"].animate {
    transform: rotateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links,
    .nav-lang {
        display: none;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .mobile-hamburger {
        display: flex;
    }

    .floating-nav {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bento-card.large,
    .bento-card.medium,
    .bento-card.small,
    .bento-card.advantages-bento {
        grid-column: span 1;
    }
    
    .story-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .room-card-3d {
        height: 340px;
    }
    
    .kitchen-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .kitchen-visual {
        order: -1;
        height: 250px;
    }
    
    .kitchen-illustration {
        width: 200px;
        height: 200px;
    }
    
    .kitchen-item {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        height: 80vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .floating-nav {
        position: static;
        transform: none;
        margin: 0 15px 20px;
        top: auto;
        left: auto;
    }
    
    .hero-section {
        padding-top: 100px;
        height: 70vh;
    }
    
    .bento-card {
        padding: 20px;
    }

    .room-card-3d {
        height: 360px;
    }

    .room-image {
        height: 200px;
    }

    .room-info {
        padding: 12px;
    }

    .room-info h3 {
        font-size: 1.2rem;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .room-info p {
        -webkit-line-clamp: 4;
        font-size: 0.8rem;
        line-height: 1.1;
        margin-bottom: 8px;
    }

    .room-price {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .floating-nav,
    .mobile-menu,
    .scroll-indicator {
        display: none !important;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* Samsung Fold Specific Styles */
@media (max-width: 374px) and (max-height: 740px) {
    /* Fold closed - narrow screen */
    .hero-section {
        height: 100vh;
        min-height: 100vh;
        padding-top: 0;
    }

    .floating-nav {
        position: fixed;
    }

    .mobile-hamburger {
        background: rgba(255, 255, 255, 0.1);
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (min-width: 700px) and (max-width: 900px) and (max-height: 600px) {
    /* Fold open - wide but short screen */
    .hero-section {
        height: 100vh;
        min-height: 100vh;
    }
}

/* Foldable phone general adjustments */
@media screen and (max-height: 600px) {
    .hero-section {
        height: 100vh;
        min-height: 100vh;
    }
}

/* Dark Mode (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --text-color: #000000;
        --text-light: #333333;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-arrow {
        animation: none;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}
