@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/*================ Base Styles ================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  width: 100%;
  font-size: 16px;
}

.container {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Background color */
.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #983809;
  z-index: 0;
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.20) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 2;
}

/* Content Wrapper */
.content {
  position: absolute;
  bottom: 80px;
  width: 100%;
  text-align: center;
  color: #fff8f0;
  padding: 0 20px;
  z-index: 3;
}

/* Text Shadow */
.title,
.subtitle,
.btn {
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

/* Title */
.title {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
}

/* Subtitle */
.subtitle {
  font-size: 1.35rem;
  margin-bottom: 30px;
  opacity: 0.7;
  font-family: "Raleway", sans-serif;
  font-weight: 500;
}

/* Button */
.btn {
  display: inline-block;
  padding: 11px 65px;
  background: #fff8f0;
  color: #10100f;
  border-radius: 12px;
  border: 2px solid #fff8f0;
  text-decoration: none;
  font-size: 1rem;
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  transition: 0.3s;
}

.btn:hover {
  background: none;
  color: #fff8f0;
  border: 2px solid #fff8f0;
}

/* Logo */
.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 200px;
  z-index: 4;
}

/* Hero Images */
.hero-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  object-fit: contain;
  z-index: 1;
  height: 100vh;
}

/* Default visibility */
.hero-landscape { display: block; }
.hero-portrait { display: none; }

/*=============== Orientation Queries ===============*/
/* Portrait mode */
@media screen and (orientation: portrait) {
  .hero-landscape { display: none; }
  .hero-portrait { display: block; }
  .logo { width: 150px; left: 50%; transform: translateX(-50%); }
  .content { bottom: 50px; }
}

/* Landscape mode */
@media screen and (orientation: landscape) {
  .hero-landscape { display: block; }
  .hero-portrait { display: none; }
}

/*=============== Intro Animation ===============*/
.intro {
  background: #983809;
  z-index: 500000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ring {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  animation: ring 3s linear infinite;
  background: none;
}

@keyframes ring {
  0% { transform: rotate(0deg); box-shadow: 1px 5px 2px #fff8f0; }
  50% { transform: rotate(180deg); box-shadow: 1px 5px 2px #fff8f0; }
  100% { transform: rotate(360deg); box-shadow: 1px 5px 2px #fff8f0; }
}

.ring:before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.text {
  width: 4.3rem;
}

/* Loading animation */
.loading-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999999;
  display: none;
}

.loader {
  width: 60px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side, #e19419 90%, #e1941900);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: l3 1s infinite linear;
}

@keyframes l3 {
  20% { background-position: 0% 0%, 50% 50%, 100% 50%; }
  40% { background-position: 0% 100%, 50% 0%, 100% 50%; }
  60% { background-position: 0% 50%, 50% 100%, 100% 0%; }
  80% { background-position: 0% 50%, 50% 50%, 100% 100%; }
}

/*=============== Responsive Breakpoints ===============*/
/* Small screens: smartphones (up to 480px) */
@media (max-width: 480px) {
  .title { font-size: 2.4rem; }
  .subtitle { font-size: .9rem; margin-bottom: 20px; }
  .btn { padding: 12px 40px; font-size: 0.9rem; }
  .content { bottom: 100px; padding: 0 10px; }
  .logo { width: 120px; left: 50%; transform: translateX(-50%); }
 
}

/* Medium screens: tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .title { font-size: 2.5rem; }
  .subtitle { font-size: 1.15rem; margin-bottom: 25px; }
  .btn { padding: 12px 50px; font-size: 0.95rem; }
  .content { bottom: 120px; padding: 0 15px; }
  .logo { width: 150px; left: 50%; transform: translateX(-50%); }
  
}

/* Large screens: desktops (769px and above) */
@media (min-width: 769px) {
  .title { font-size: 3.5rem; }
  .subtitle { font-size: 1.35rem; }
  .btn { padding: 12px 65px; font-size: 1rem; }
  .content { bottom: 80px; }
  .logo { width: 200px; left: 20px; transform: none; }

}
