/* ========================================
   ROOT VARIABLES & THEME
   ======================================== */
:root {
    --primary-color: #2a5bd7;
    --primary-light: #e6ecff;
    --secondary-color: #0e1a40;
    --accent-color: #ff7d00;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --white-color: #ffffff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 10px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #e0e0e0;
        --gray-color: #a0a0a0;
        --white-color: #1a1a1a;
        --light-color: #242424;
        --primary-light: #1a2d5e;
        --box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    }

    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    header {
        background-color: rgba(26, 26, 26, 0.95);
    }

    header.scrolled {
        background-color: #1a1a1a;
    }

    .contact-info {
        background-color: rgba(42, 91, 215, 0.15);
    }

    .contact-form {
        background-color: #242424;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .form-group input,
    .form-group textarea {
        background-color: #333;
        border-color: #444;
        color: #e0e0e0;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #888;
    }
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--secondary-color);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* ========================================
   BUTTON STYLES
   ======================================== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #1e42ab);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), #2a5bd7);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.btn-small {
    padding: 8px 20px;
    font-size: 13px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

header.scrolled {
    background-color: var(--white-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url("https://images.unsplash.com/photo-1601918774946-25832a4be0d6?w=1600&q=85") no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--white-color);
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 1.5s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ========================================
   ROOMS SECTION
   ======================================== */
.rooms {
    background-color: var(--light-color);
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.room-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(42, 91, 215, 0.1);
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1;
}

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

.room-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.room-card:hover img {
    transform: scale(1.08);
}

.room-info {
    padding: 25px;
}

.room-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.room-info p {
    margin-bottom: 15px;
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.room-price {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

/* ========================================
   AMENITIES SECTION
   ======================================== */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.amenity-item {
    padding: 30px 20px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(42, 91, 215, 0.1);
}

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

.amenity-item [data-feather] {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    margin: 0 auto 20px;
    stroke-width: 1.5;
}

.amenity-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.amenity-item p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* ========================================
   GALLERY SECTION (SWIPER)
   ======================================== */
.gallery {
    background-color: var(--light-color);
}

.gallery-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.swiper-button-prev,
.swiper-button-next {
    background-color: rgba(255, 255, 255, 0.8) !important;
    color: var(--dark-color) !important;
    border-radius: 50%;
    transition: var(--transition);
    width: 50px !important;
    height: 50px !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--white-color) !important;
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5) !important;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    background-color: var(--white-color) !important;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-light), rgba(230, 236, 255, 0.5));
    border-radius: var(--border-radius);
    border: 1px solid rgba(42, 91, 215, 0.2);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--gray-color);
    font-size: 0.95rem;
}

.contact-info [data-feather] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: var(--primary-color);
    flex-shrink: 0;
    stroke-width: 2;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #1e42ab);
    color: var(--white-color);
    transition: var(--transition);
    border: none;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--box-shadow);
}

.social-links [data-feather] {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Contact Form */
.contact-form {
    padding: 30px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(42, 91, 215, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white-color);
    color: var(--dark-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    opacity: 0;
    transition: var(--transition);
}

.error-message.show {
    opacity: 1;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: linear-gradient(135deg, var(--secondary-color), #1a3460);
    color: var(--white-color);
    padding: 30px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.footer-links a {
    transition: var(--transition);
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--accent-color);
    opacity: 1;
}

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

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

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }
    
    h2::after {
        width: 60px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .hero {
        margin-top: 80px;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .swiper-slide img {
        height: 400px;
    }
    
    .contact-container {
        gap: 30px;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    h2::after {
        width: 50px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 13px;
    }
    
    .swiper-slide img {
        height: 300px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .room-card {
        box-shadow: none;
        border: 1px solid #eee;
    }
    
    .amenity-item {
        box-shadow: none;
        border: 1px solid #eee;
    }
    
    section {
        padding: 40px 0;
    }
}