/* Global Reset */
* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  scroll-padding-top: 50px;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 50%, #e6f0ff 100%);
  display: flex;
  flex-direction: column;
  font-family: 'Merriweather', serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Section Animation Styles - Fixed for Content Display */
.section-animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-animate.animate-in {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 0.8s ease forwards;
}

/* Navigation Bar */
#main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  background: none;
  padding: 20px 0;
  z-index: 1000;
}

/* White pill container */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 50px;
  padding: 10px 25px;
  max-width: 900px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Small logo on the left */
.nav-logo-img {
  height: 50px;
  width: auto;
}

/* Menu links */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  background: lightblue;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 62, 98, 0.3);
}

.nav-link.active {
  background:#1a3e62;
  color: white;
  box-shadow: 0 4px 12px rgba(26, 62, 98, 0.3);
  font-weight: 600;
  transform: translateY(-1px);
}

.nav-link.active:hover {
  background: linear-gradient(135deg, #2a4f7a 0%, #1a3e62 100%);
  transform: translateY(-2px);
}

#main-nav * {
  box-sizing: border-box;
}

#main-nav ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#main-nav li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
} 

.nav-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
} 

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-brand {
  color: #1a3e62;
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Merriweather', serif;
}

.nav-menu {
  flex: 1;
  display: flex !important;
  list-style: none;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-direction: row !important;
} 

.nav-item {
  position: relative;
  display: inline-block !important;
  list-style: none !important;
}

.nav-link {
  color: #1a4c8b ;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
  position: relative;
}

.nav-link:hover {
  background-color: rgba(26, 62, 98, 0.1);
  transform: translateY(-2px);
  color: #2a4f7a;
}

.nav-link.active {
  background-color: #1a4c8b;
  color: #ffffff;
  font-weight: 600;
  border-bottom: 2px solid #1a4c8b;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 8px;
  left: 50%;
  background: linear-gradient(135deg, #1a3e62 0%, #2a4f7a 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-login {
  background: linear-gradient(135deg, #1a3e62 0%, #2a4f7a 100%);
  color: #ffffff !important;
  font-weight: bold;
  padding: 12px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(26, 62, 98, 0.3);
}

.nav-login:hover {
  background: linear-gradient(135deg, #2a4f7a 0%, #1a3e62 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(26, 62, 98, 0.5);
}

.nav-login::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #1a3e62;
  margin: 3px 0;
  transition: 0.3s;
}

/* Header Section */
#header-content {
  position: relative;
  width: calc(100% - 40px);
  height: 80vh;
  margin: 100px 20px 50px 20px; /* Add space around the header */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

#header-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 62, 98, 0.85) 0%, rgba(42, 79, 122, 0.7) 50%, rgba(26, 62, 98, 0.9) 100%);
  z-index: 1;
  pointer-events: none;
  animation: fadeInOverlay 1s ease-in-out;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromBottom {
  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);
  }
}

#header-img {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 0;
  opacity: 0.8;
  object-fit: cover;
  top: 0;
  left: 0;
  filter: brightness(0.7) contrast(1.1);
  border-radius: 25px;
  overflow: hidden;
}

header {
  width: 100%;
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.header-left {
  flex: 1;
  text-align: left;
}

.header-right {
  flex: 1;
  text-align: right;
}

#Gragasin-Tho {
  margin: 0;
  font-weight: 900;
  font-family: 'Merriweather', serif;
  color: #ffffff;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 200, 2, 0.6);
  font-size: 5.5rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
  animation: slideInFromTop 1.2s ease-out;
}

#Apartment {
  margin: 0;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  font-variant: small-caps;
  font-size: 4rem;
  color: #ffc802;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 200, 2, 0.8);
  letter-spacing: 2px;
  animation: slideInFromBottom 1.2s ease-out 0.3s both;
}

#tagline {
  font-size: 1.4rem;
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  margin: 2rem 0 3rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 1px;
  animation: fadeInUp 1.5s ease-out 0.6s both;
}

#header-description {
  font-size: 1.5rem;
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
  animation: fadeInUp 1.5s ease-out 0.8s both;
  padding: 2rem;
  text-align: justify;
 }

#registration {
  position: absolute;
  top: 95%;
  left: 45%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.5s ease-out 0.9s both;
}
/* Flex Container */
#flex-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  gap: 3rem;
  padding: 2rem;
}

/* Blue Box */
#blue-box,
.blue-box {
  background: linear-gradient(135deg, #1a3e62 0%, #2a4f7a 100%);
  height: 18rem;
  width: 45rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  z-index: 1;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#tagline {
  font-family: 'Merriweather', serif;
  color: white;
  width: 95%;
  font-size: 2.25rem;
  text-align: center;
  font-style: italic;
}

/* Circles & Tags */
#circles-and-tags {
  display: flex;
  flex-direction: column;
}

#circles {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10rem;
}

.icon {
  height: 10rem;
  width: 10rem;
  border-radius: 100%;
}

#tag {
  display: flex;
  justify-content: center;
  gap: 5.5rem;
}

.icon-tag {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  text-align: center;
  width: 14.75rem;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* Middle Content */
.middle-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 3rem 0;
  padding: 2rem 0;
}

#middle-img {
  position: absolute;
  height: 15rem;
  width: 100%;
  opacity: 0.5;
  z-index: 1;
}

#middle-p {
  margin-top: 1%;
  position: absolute;
  width: 65rem;
  font-size: 2.5rem;
  text-align: center;
  font-family: 'Merriweather', serif;
  color: white;
  z-index: 2;
}

/* Units Section */
#units {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 12rem;
}

#window {
  height: 10rem;
}

#number-box {
  display: flex;
  flex-direction: row;
  background: linear-gradient(135deg, #1a3e62 0%, #2a4f7a 100%);
  height: 10rem;
  width: 100%;
  max-width: 65rem;
  justify-content: center;
  gap: 10rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.num-of-units {
  color: white;
  opacity: 0.75;
  font-family: 'Merriweather', serif;
  font-size: 2.25rem;
  text-align: center;
  width: 16rem;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

    .count {
        margin-left: 7vw;
        font-family: 'Merriweather', sans-serif;
        font-size: 4rem;
        color: white;
    }

    #available-units-list {
        margin-top: 1rem;
        text-align: center;
        color: white;
        font-family: 'Merriweather', serif;
    }

    #available-units-list .num-of-units {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 0.5rem;
    }

    #available-units-list p {
        font-size: 1.2rem;
        margin: 0;
    }

/* Links & Tooltips */
#av-units {
  text-decoration: none;
  color: #ffc802;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

#av-units:hover {
  color: #ff9900;
  text-decoration: underline;
  border-radius: 5px;
  background-color: #1a4d8b60;
  padding: 5px;
  transition: all 0.3s ease;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: #ffc802;
  text-decoration: none;
  font-family: 'Merriweather', serif;
}

/* Room Section */
#room-desc {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  width: 75%;
  margin: 2rem auto;
  max-width: 800px;
  padding: 0 20px;
}

#rooms {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.room-img {
  height: 15rem;
  width: auto;
}

/* Contact Section */
#contact-container,
.contact-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin: 20px 0;
  max-width: 100%;
  box-sizing: border-box;
}

#contact-info-section {
  background: none;
  padding: 10px 15px;
  margin-top: 5rem;
  border-radius: 15px;
  text-align: center;
  flex: 1;
  min-width: 280px;
}

#bottom-desc {
  font-family: 'Merriweather', serif;
  font-size: 4rem;
  font-weight: bold;
  text-align: center;
  width: 75%;
  color: white;
}

/* Bottom Section */
#bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
      135deg,
      #f1cb93 0%,
      #e6b87a 50%,
      #d4a76a 100%
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 20px 20px;
  padding: 40px 20px;
  flex-wrap: wrap;
  gap: 30px;
  border-radius: 15px;
  margin: 20px 0;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: fadeInBottom 1s ease-out;
}

/* Contact Form Section */
#contact-form-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  background: linear-gradient(#1a4c8b) padding-box,
    linear-gradient(45deg, #1a8b8b, #ffc802) border-box;
  border: 2px solid transparent;
  border-radius: 25px;
  padding: 30px 20px;
  margin: 20px 0;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
  max-height: 470px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  animation: fadeInBottom 1s ease-out;
  backdrop-filter: blur(15px);
}

.contact {
  color: #ffc802;
}



#contact-left {
  flex: 1;
  min-width: 280px;
  padding-right: 20px;
  text-align: left;
  color: white;
}

#contact-right {
  flex: 1;
  min-width: 300px;
}

#paper-plane-tooltip {
  font-size: 10rem;
  color: #ecf2f8;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  margin: 7rem 2rem 0 auto;
  justify-content: center;
}

#paper-plane-tooltip:hover {
  transform: scale(1.1);
}

/* Contact Info */
#contact-info {
  flex: 1;
  min-width: 280px;
  line-height: 1.8;
  text-align: left;
}

#contact-info span {
  display: block;
  margin-bottom: 1rem;
}

#contact-info a {
  transition: color 0.3s ease, transform 0.3s ease;
}

#contact-info a:hover {
  color: #1a4c8b;
  transform: scale(1.05);
}

/* Contact Form */
#contact-form {
  flex: 1;
  max-width: 250px;
  padding: 15px 20px;
  width: 100%;
  border-radius: 20px;
}


#contact-form h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ffc802;
  font-family: 'Merriweather', serif;
}

#ready-text {
  color: #ffffff !important;
  z-index: 5;
  font-size: 3rem;
  position: relative;
}

#sum{
  color: white;
  font-size: 2rem;
}


#contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-form label {
  font-weight: bold;
  color: #ffc802;
}

#contact-form input,
#contact-form textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  resize: none;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #1a4c8b;
  outline: none;
}

.contact-form{
  margin-top: 5rem;
}

#send-btn {
  background-color: #ffc802d0;
  color: #fbfbfa;
  font-weight: bold;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#send-btn:hover {
  background-color: #adad40;
}

/* Registration Section */
#registration {
  margin-top: 2vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

strong {
    font-weight: bolder;
    color: white;
}



#register-button {
  background: linear-gradient(135deg, #1a3e62 0%, #2a4f7a 100%);
  color: white;
  border: none;
  border-radius: 25px;
  height: 3.5rem;
  width: 10rem;
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 62, 98, 0.3);
  position: relative;
  overflow: hidden;
}

#register-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

#register-button:hover::before {
  left: 100%;
}

#register-button:hover {
  background: linear-gradient(135deg, #2a4f7a 0%, #1a3e62 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 62, 98, 0.4);
}

#register-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 62, 98, 0.3);
}

/* Scroll to Bottom Button */
#scroll-to-bottom {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 45px;
  height: 45px;
  background-color: #1a3e62;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#scroll-to-bottom:hover {
  background-color: #4660ff;
  transform: scale(1.1);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}

.modal-content h2 {
  color: #1a4c8b;
  margin-bottom: 10px;
}

.modal-content p {
  color: #333;
  font-size: 16px;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-tooltip-menu {
  display: none;
}

/* Mobile Top Auth Bar */
#mobile-top-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 70px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1001;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-top-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  margin-top: 10px;
  max-width: 100%;
}

.mobile-auth-btn {
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-auth-btn.register-btn {
  background: linear-gradient(135deg, #1a3e62 0%, #2a4f7a 100%);
  color: white;
}

.mobile-auth-btn.register-btn:hover {
  background: linear-gradient(135deg, #2a4f7a 0%, #1a3e62 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 62, 98, 0.3);
}

.mobile-auth-btn.login-btn {
  background: linear-gradient(135deg, #ffc802 0%, #ffaa00 100%);
  color: #1a3e62;
}

.mobile-auth-btn.login-btn:hover {
  background: linear-gradient(135deg, #ffaa00 0%, #ffc802 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 200, 2, 0.3);
}

.mobile-auth-buttons {
  display: none;
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-logo {
    display: none !important;
  }

  #mobile-top-nav {
    display: block !important;
  }

  #main-nav {
    width: 100%;
    background: transparent;
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;
    z-index: 999;
    padding: 0;
  }

  .nav-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;
  }

  /* Tooltip Menu */
  .mobile-tooltip-menu {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: #ffffff;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .mobile-tooltip-menu a {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1a4c8b;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    height: 80px;
    background: #ffffff;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
  }

  .mobile-tooltip-menu a:hover {
    background-color: rgba(26, 62, 98, 0.1);
    transform: translateY(-2px);
    color: #2a4f7a;
  }

  .mobile-tooltip-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 10px;
    left: 50%;
    background: linear-gradient(135deg, #1a3e62 0%, #2a4f7a 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .mobile-tooltip-menu a:hover::after {
    width: 70%;
  }

  .mobile-tooltip-menu a.active {
    background-color: #1a4c8b;
    color: #ffffff;
    font-weight: 600;
    border-top: 2px solid #1a4c8b;
  }

  .mobile-tooltip-menu a.active::after {
    width: 80%;
  }
}

  /* Header */
  #header-content {
    width: 95%;
    height: 70vh;
    margin: 140px auto 40px auto; /* Increased top margin to account for mobile top nav */
    border-radius: 20px;
  }

  header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 1rem;
  }

  #Gragasin-Tho {
    font-size: 2.5rem;
  }

  #Apartment {
    font-size: 2rem;
  }

  #tagline {
    font-size: 1rem;
    margin: 1rem 0;
  }

  #header-description {
    font-size: 1.1rem;
    padding: 1rem;
  }

  #registration {
    position: static;
    transform: none;
    margin: 2rem 0;
    gap: 1.5rem;
  }

  #register-button {
    width: 9rem;
    font-size: 1rem;
  }

  /* Flex Section */
  #flex-container {
    padding: 1rem;
    gap: 2rem;
  }

  #blue-box {
    width: 100%;
    height: auto;
    padding: 2rem 1rem;
    border-radius: 20px;
  }

  #tagline {
    font-size: 1.2rem;
    text-align: center;
  }

  /* Circles and Tags */
  #circles {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .icon {
    height: 6rem;
    width: 6rem;
  }

  #tag {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .icon-tag {
    font-size: 1.5rem;
    width: auto;
  }

  /* Units Section */
  #units {
    flex-direction: column;
    margin-top: 4rem;
    gap: 2rem;
  }

  #number-box {
    flex-direction: column;
    gap: 1.5rem;
    height: auto;
    padding: 2rem 1rem;
  }

  .num-of-units {
    font-size: 1.3rem;
  }

  .count {
    font-size: 2rem;
    margin-left: 0;
  }

  /* Rooms Section */
  #rooms {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .room-img {
    width: 90%;
    height: auto;
  }

  #room-desc {
    font-size: 1.5rem;
    width: 90%;
  }

  /* Contact Section */
#contact-container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
}

#contact-form-section {
  width: 100%; /* Make it take up most of the mobile width */
  max-width: 420px;
  padding: 15px;
  background: #1d4e89; /* Optional: match your blue tone */
  border-radius: 12px;
}

#contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  font-size: 1rem;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

#contact-form h3 {
  font-size: 1.4rem;
  text-align: center;
}

.body {
  overflow-x: hidden;
}

  #ready-text {
    font-size: 2rem;
  }

  #sum {
    font-size: 1.3rem;
  }

  #bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  #bottom-desc {
    font-size: 2rem;
  }

  /* Scroll Button */
  #scroll-to-bottom {
    width: 40px;
    height: 40px;
    font-size: 18px;
    bottom: 100px; /* Move above the bottom navbar to avoid overlap */
  }


@media screen and (min-width: 1200px) and (max-width: 1500px) {
  #header-content {
    width: calc(100% - 60px);
    height: 75vh;
    margin: 120px 30px 60px 30px;
    border-radius: 30px;
  }

  #header-img {
    border-radius: 30px;
  }

  #Gragasin-Tho {
    font-size: 6rem;
    letter-spacing: 4px;
  }

  #Apartment {
    font-size: 4.5rem;
    letter-spacing: 3px;
  }

  #tagline {
    font-size: 1.6rem;
    margin: 2.5rem 0 3.5rem 0;
  }

  #blue-box {
    width: 38rem;
    height: 15rem;
  }

  #tagline {
    font-size: 1.75rem;
  }

  .icon {
    height: 8rem;
    width: 8rem;
  }

  .icon-tag {
    font-size: 2rem;
  }

  #middle-p {
    width: 50rem;
    font-size: 2rem;
  }

  #number-box {
    width: 55rem;
    gap: 5rem;
  }

  .num-of-units {
    font-size: 1.8rem;
  }

  .count {
    font-size: 3rem;
  }

  #room-desc {
    font-size: 2rem;
  }

  #register-button {
    font-size: 1rem;
    width: 8rem;
    height: 3rem;
    border-radius: 20px;
  }
}

/* Full-screen sections */
.fullscreen-section {
  min-height: 80vh !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 50px 20px 40px !important;
  box-sizing: border-box !important;
  /* margin: 20px 0 !important; */
}

.services-section {
  background: linear-gradient(135deg, #1a3e62 0%, #2a4f7a 100%) !important;
  color: white !important;

}

.units-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%) !important;
  color: #1a3e62 !important;
  margin-top: 2rem !important;
}

.contact-section {
  background-color: none;
  color: rgb(0, 0, 0) !important;
  margin: 5px !important;
  width: calc(100% - 10px) !important;
  overflow: hidden !important;
}

.section-content {
  max-width: 1200px !important;
  width: 100% !important;
  text-align: center !important;
}

.section-title {
  font-size: 3rem !important;
  font-weight: bold !important;
  margin-bottom: 2rem !important;
  font-family: 'Merriweather', serif !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.section-description {
  font-size: 1.5rem !important;
  margin-bottom: 3rem !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Services Grid */
.services-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 2rem !important;
  margin-top: 2rem !important;
}

.service-item {
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 2rem !important;
  border-radius: 15px !important;
  text-align: center !important;
  backdrop-filter: blur(10px) !important;
}

.service-icon {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  margin-bottom: 1rem !important;
}

.service-item h3 {
  font-size: 1.5rem !important;
  margin-bottom: 1rem !important;
  color: #ffc802 !important;
}

/* Units Section */
.units-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 3rem !important;
  align-items: center !important;
  margin-top: 2rem !important;
}

.window-img {
  width: 100% !important;
  max-width: 500px !important;
  height: auto !important;
  border-radius: 15px !important;
}

.units-stats {
  display: flex !important;
  flex-direction: column !important;
  gap: 2rem !important;
}

.unit-stat {
  background: rgba(135, 206, 250, 0.3) !important;
  padding: 2rem !important;
  border-radius: 15px !important;
  text-align: center !important;
  border: 1px solid rgba(135, 206, 250, 0.5) !important;
  box-shadow: 0 4px 15px rgba(135, 206, 250, 0.2) !important;
}

.stat-number {
  font-size: 3rem !important;
  font-weight: bold !important;
  color: #1a3e62 !important;
  display: block !important;
}

.available-link {
  text-decoration: none !important;
  color: #1a3e62 !important;
}

.stat-description {
  margin-top: 0.5rem !important;
  font-size: 0.9rem !important;
}

/* Rooms Section */
.rooms-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 1.5rem !important;
  margin: 2rem 0 !important;
}

.room-img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
  border-radius: 15px !important;
  transition: transform 0.3s ease !important;
}

.room-img:hover {
  transform: scale(1.05) !important;
}

/* Contact Section */
.contact-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 3rem !important;
  align-items: start !important;
  background: #1a4c8b !important;
  padding: 2rem !important;
  border-radius: 20px !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  margin: 1rem 0 !important;
}

.contact-details {
  margin-top: 2rem !important;
}

.contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  margin-bottom: 1.5rem !important;
  padding: 1rem !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
}

.contact-item i {
  font-size: 1.5rem !important;
  color: #ffc802 !important;
  width: 30px !important;
}

.contact-item a {
  color: #ffc802 !important;
  text-decoration: none !important;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 2rem !important;
  border-radius: 15px !important;
  backdrop-filter: blur(10px) !important;
}

.form-group {
  margin-bottom: 1.5rem !important;
  text-align: left !important;
}

.form-group label {
  display: block !important;
  margin-bottom: 0.5rem !important;
  color: #ffc802 !important;
  font-weight: bold !important;
}

.form-group input,
.form-group textarea {
  width: 100% !important;
  padding: 12px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  box-sizing: border-box !important;
}

.submit-btn {
  background: #1a3e62 !important;
  color: #ffffff !important;
  padding: 12px 30px !important;
  border: none !important;
  border-radius: 25px !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
}

.submit-btn:hover {
  background: #2a4f7a !important;
  transform: translateY(-2px) !important;
}

/* Mobile Responsive for Full-screen Sections */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  .section-description {
    font-size: 1.2rem !important;
  }
  
  .services-grid {
    grid-template-columns: 1fr !important;
  }
  
  .units-container {
    grid-template-columns: 1fr !important;
  }
  
  .section-content{
      width: 100%  ;
  }
#contact-container {
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

  .contact-container {
    grid-template-columns: 1fr !important;
    padding: 1rem !important;
    border-radius: 15px !important;
  }
  
  .rooms-gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  }
}

.fullscreen-section {
  scroll-margin-top: 130px;
}

#services, #units, #rooms,  #contact{
  scroll-margin-top: 25px;
}

/* Bottom anchor positioning */
#bottom-anchor {
  scroll-margin-top: 130px;
  position: relative;
  margin-top: 100px; /* Space below desktop navigation */
}

/* Desktop specific positioning for bottom anchor */
@media (min-width: 769px) {
  #bottom-anchor {
    margin-top: 150px; /* Extra space below desktop navigation */
  }
}
.mobile-auth-buttons { 
  display: none; 
}
/* === Section Animations === */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-animate.animate-in.visible {
  animation: fadeUp 0.8s ease forwards;
}

