@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: #141414;
  --accent-gold: #d4af37;
  --accent-hover: #f3c93f;
  --text-main: #f8f8f8;
  --text-muted: #a0a0a0;
  
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  backdrop-filter: blur(4px);
}

.navbar.scrolled {
  padding: 20px 60px;
  background-color: rgba(10, 10, 10, 0.95);
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.logo {
  font-family: var(--font-heading);
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--accent-gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-gold);
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--accent-gold);
  background: transparent;
  color: var(--accent-gold);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-gold);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  color: var(--bg-dark);
}

.btn-solid {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-solid::before {
  background-color: var(--text-main);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.1);
  animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, rgba(10,10,10,0.95) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
  animation: fadeUp 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
  transform: translateY(40px);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-size: 100px;
  font-weight: 500;
  margin-bottom: 30px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Floating Booking Bar */
.booking-bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  background-color: var(--bg-card);
  padding: 30px 60px;
  display: flex;
  gap: 40px;
  align-items: center;
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
  width: max-content;
}

.booking-item {
  display: flex;
  flex-direction: column;
}

.booking-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.booking-value {
  font-size: 16px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 5px;
  min-width: 150px;
}

/* About / Intro Section */
.intro {
  padding: 150px 10%;
  display: flex;
  align-items: center;
  gap: 80px;
  background-color: var(--bg-dark);
}

.intro-text {
  flex: 1;
}

.intro-text h2 {
  font-size: 56px;
  margin-bottom: 30px;
  color: var(--accent-gold);
}

.intro-text p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 300;
}

.intro-image-wrapper {
  flex: 1;
  position: relative;
}

.intro-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 4px;
}

.intro-image-wrapper::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent-gold);
  z-index: -1;
}

/* Featured Rooms */
.rooms-section {
  padding: 120px 10%;
  background-color: var(--bg-darker);
  position: relative;
}

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

.section-header h2 {
  font-size: 64px;
  color: var(--text-main);
}

.section-header .subtitle {
  color: var(--accent-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 12px;
  display: block;
  margin-bottom: 15px;
}

.room-showcase {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 120px;
}

.room-showcase:nth-child(even) {
  flex-direction: row-reverse;
}

.room-image-col {
  flex: 6;
  position: relative;
  overflow: hidden;
  height: 500px;
}

.room-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

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

.room-info-col {
  flex: 4;
  padding: 40px;
  background-color: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  margin-left: -100px; /* Overlap effect */
  z-index: 2;
  position: relative;
}

.room-showcase:nth-child(even) .room-info-col {
  margin-left: 0;
  margin-right: -100px;
}

.room-title {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--accent-gold);
}

.room-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.room-features {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
}

/* Contact / Footer Section */
.footer-contact {
  background-image: linear-gradient(rgba(10,10,10,0.9), rgba(10,10,10,0.95)), url('assets/images/IMG_4205.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 120px 10% 60px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.contact-box {
  background-color: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(10px);
  padding: 50px 30px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}

.contact-box:hover {
  transform: translateY(-10px);
  border-color: var(--accent-gold);
}

.contact-icon {
  font-size: 36px;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.contact-box h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.contact-box p {
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

/* Room Grid Page (rooms.html) */
.page-header {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(10,10,10,1)), url('assets/images/IMG_4201.jpg');
  background-size: cover;
  background-position: center;
}

.page-header h1 {
  font-size: 72px;
  color: var(--accent-gold);
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 40px;
  padding: 80px 10%;
  background-color: var(--bg-dark);
}

.room-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  cursor: pointer;
}

.room-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  transition: var(--transition);
}

.room-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.room-card:hover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 60%);
}

.room-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  z-index: 10;
  transform: translateY(20px);
  transition: var(--transition);
}

.room-card:hover .room-card-content {
  transform: translateY(0);
}

.room-card h3 {
  font-size: 32px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.room-card .price {
  color: var(--accent-gold);
  font-size: 18px;
  margin-bottom: 15px;
  display: block;
}

/* Responsiveness */
@media (max-width: 1200px) {
  .hero-title { font-size: 70px; }
  .intro { flex-direction: column; padding: 100px 5%; }
  .room-showcase, .room-showcase:nth-child(even) { flex-direction: column; }
  .room-info-col, .room-showcase:nth-child(even) .room-info-col { margin: -50px 20px 0; width: auto; }
}

@media (max-width: 768px) {
  .navbar { padding: 20px; }
  .nav-links { display: none; }
  .hero-title { font-size: 50px; }
  .booking-bar { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* Image Crossfade Animations */
.crossfade-3, .crossfade-2 {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.crossfade-3 img, .crossfade-2 img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.room-card:hover .crossfade-3 img, .room-card:hover .crossfade-2 img,
.room-image-col:hover .crossfade-3 img, .room-image-col:hover .crossfade-2 img {
    transform: scale(1.1);
}

.crossfade-3 img { animation: fadeAnim3 12s infinite; }
.crossfade-3 img:nth-child(1) { animation-delay: 0s; }
.crossfade-3 img:nth-child(2) { animation-delay: 4s; }
.crossfade-3 img:nth-child(3) { animation-delay: 8s; }

@keyframes fadeAnim3 {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33.33% { opacity: 1; }
    43.33% { opacity: 0; }
    100% { opacity: 0; }
}

.crossfade-2 img { animation: fadeAnim2 10s infinite; }
.crossfade-2 img:nth-child(1) { animation-delay: 0s; }
.crossfade-2 img:nth-child(2) { animation-delay: 5s; }

@keyframes fadeAnim2 {
    0% { opacity: 0; }
    10% { opacity: 1; }
    50% { opacity: 1; }
    60% { opacity: 0; }
    100% { opacity: 0; }
}
