html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

:root {
  --bg-primary: #ffffff;                /* Clean white */
  --bg-secondary: #f4f1ec;              /* Soft beige for subtle depth */
  --text-primary: #5a4634;              /* Deep grey for readability */
  --text-secondary: #6b6b6b;            /* Muted grey for subtext */
  --accent: #b08d57;                    /* Light brown pulled from logo/tiles */
  --accent-hover: #997744;              /* Slightly deeper brown on hover */
  --border: #d9d9d9;                    /* Neutral border tone */
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --gradient: linear-gradient(135deg, #cbb893 0%, #a0845c 100%);

  /* Brand Neutrals */
  --brand-grey: #808080;
  --brand-brown: #b08d57;
  --brand-black: #1c1c1c;

  /* Button Specific */
  --btn-bg: var(--accent);
  --btn-hover: var(--accent-hover);
  --btn-text: #fff;
}

[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1f1f1f;
  --text-primary: #f4f4f4;
  --text-secondary: #b3b3b3;
  --accent: #c2a97c;
  --accent-hover: #a38454;
  --border: #3a3a3a;
  --overlay-bg: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --gradient: linear-gradient(135deg, #7a6752 0%, #a38454 100%);

  --brand-grey: #cccccc;
  --brand-brown: #c2a97c;
  --brand-black: #f1f1f1;

  --btn-bg: var(--accent);
  --btn-hover: var(--accent-hover);
  --btn-text: #1a1a1a;
}

body {
  font-family: 'inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  font-weight: 400;
  color: var(--text-primary); margin: 0;
  line-height: 1.6;
  transition: all 0.3s ease;
}

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none
}

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

/* Header */
header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo img {
  height: 50px;
  width: auto;
  padding: 0;
  margin: 0;
  max-height: 100%;
}

.logo h1 {
  font-size: 2rem;
  white-space: none;
  font-weight: bold;
  padding: 0;
  margin: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

body.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 20px;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  gap: 1rem;
  z-index: 99;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--accent);
  color: var(--btn-text);
}

.btn {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: var(--shadow);
}

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

.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Main */

/* Hero Section */

.hero {
  background: url('../alpha-images/OUTSIDE.jpg') no-repeat center center/cover;
  height: 70vh;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: background-image 1.2s ease-in-out;
}

.home-content {
  background-color: var(--overlay-bg);
  padding: 2rem;
  border-radius: 10px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 2rem;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transform: scale(0.95);
  opacity: 0;
  /* position: relative; */
  transition: tansformn 0.3s ease, opacity 0.3s ease;
  animation: popupEnter 0.4s ease;
}

.popup-overlay.active .popup-content {
  transform: scale(1);
  opacity: 1;
}

.call-btn {
  margin-top: 10px;
  padding: 10px 16px;
  background-color: var(--accent);
  color: var(--btn-text);
  border: none;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}

.call-btn:hover {
  background-color: var(--accent-hover);
  transform: scale(1.05);
}

.trigger-btn {
  margin: 40px;
  padding: 10px 20px;
  font-size: 16px;
}

.ty {
  display: flex;
}

.ty img {
  height: 30px;
  margin-left: auto;
  margin-right: 10px;
  margin-top: 15px;
}

.ty p {
  color: var(--text-primary);
  margin-right: auto;
  margin-top: 1rem;
  font-weight: bolder;
  font-size: larger;
}

.ty p:hover {
  color: red;
}

/* Section layout */
.section {
  padding: 4rem 1rem;
  background: var(--bg-secondary);
  text-align: center;
  color: var(--text-primary);
}
.section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
}
.section h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: var(--accent);
  display: block;
  margin: 0.75rem auto 0;
  border-radius: 4px;
}

/* Grid layout */
.room-sort-container {
  text-align: right;
  margin-bottom: 1rem;
}

#room-sort {
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.sect {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
}
@media (max-width: 768px) {
  .sect {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}

/* Card styling */
.it-em {
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 250px;
  transition: all 0.4s ease, box-shadow 0.4s ease;
  transform: scale(1) translateY(20px);
  opacity: 0;
  cursor: pointer;
}
.it-em.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  animation: fadeUp 0.6s ease forwards;
}
.it-em.visible:hover {
  transform: scale(1.05) translateY(-5);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.it-em:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.it-em:hover.visible {
  transform: scale(1.05) translateY(-5px);
}
.it-em img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  object-fit: cover;
  cursor: pointer;
  filter: blur(8px);
  transition: filter 0.6s ease;
}
.it-em img.loaded {
  filter: blur(0);
}
.it-em h4 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: var(--accent);
}
.it-em p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Tags */
.room-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  margin: 0.5rem;
  color: white;
  position: relative;
  opacity: 0;
  animation: fadeInTag 0.6s ease forwards;
}
.room-tag.popular {
  background: #ff6600;
}
.room-tag.popular::before {
  content: '👑';
  margin-right: 4px;
}
.room-tag.popular::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 11%);
  background-size: 10px 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.room-tag.popular:hover::after {
  animation: sparkle 2s linear infinite;
  opacity: 0.6;
  filter: blur(1px);
}
.room-tag.best {
  background: #2da44e;
}

/* Tag highlights */
.it-em.has-popular {
  border: 2px solid #ff6600;
}
.it-em.has-best {
  border: 2px dashed #2da44e;
}

/* What we offer */
.offers {
  text-align: center;
  background: var(--bg-light);
  padding: 4rem 1rem;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.offer-item {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.offer-item:hover {
  transform: translateY(-8px);
}
.offer-item i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.offer-item h4 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.offer-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Map */
.map-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
}

.map-wrapper iframe {
  width: 100%;
  height: 400px;
  display: block;
  cursor: pointer;
}

.map-pin {
  position: absolute;
  top: 45%;
  left: 50%;
  font-size: 2rem;
  transform: translate(-50%, -50%);
  animation: bounce 1.5s infinite;
  pointer-events: none;
}

.map-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  backdrop-filter: blur(5px);
}

.map-overlay h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.map-overlay p {
  color: white;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

/* About Section */
.about {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 4rem 1rem;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.about-text {
  flex: 1 1 500px;
}
.about-text h2 {
  color: var(--accent);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.about-text .signature {
  font-style: italic;
  color: var(--accent);
  font-size: 1rem;
}
.about-image {
  flex: 1 1 400px;
}
.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: cover;
}
/* @media (max-width: 768px) {
  .about-content {
    flex-direction: column-reverse;
  }
} */

/* Contact section */
.contact {
  background: var(--bg-light);
  color: var(--text-primary);
  padding: 4rem 1rem;
  text-align: center;
}
.contact h2 {
  color: var(--accent);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.contact-subtext {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  flex: 1 1 300px;
  text-align: left;
}
.contact-info h4 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.contact-info p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border, #ccc);
  border-radius: 6px;
  font-size: 0.95rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}
.contact-form input:focus,  
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.2);
}

.contact-form button {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2 ease;
}
.contact-form button:hover {
  background: var(--accent-hover, #1c7d42);
  /* transform: translateY(-2px); */
}

.whatsapp-float {
  display: block;
  width: 60px;
  margin: 1rem auto;
  text-align: center;
}

.whatsapp-float img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover img {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .contact-container {
    flex-direction: column;
    align-content: center;
  }
  .gallery-container {
    min-height: 80vh;
    overflow-anchor: none;
  }
}

/* Blinking validation feedback */
@keyframes blinkGreen {
  0%, 100% { border-color: transparent; }
  50% { border-color: limegreen; }
}
@keyframes blinkRed {
  0%, 100% { border-color: transparent; }
  50% { border-color: crimson; }
}

input.valid-email {
  animation: blinkGreen 0.8s ease-in-out 1;
  border: 2px solid limegreen;
}
input.invalid-email {
  animation: blinkRed 0.8s ease-in-out 1;
  border: 2px solid crimson;
}

/* Toast styling */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  font-size: 0.95rem;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-10px);
}

.toast-success {
  background-color: var(--accent, #28a745);
  color: #fff;
}

.toast-error {
  background-color: #e63946;
  color: #fff;
}

/* Gallery Section */
.section-gallery {
  padding: 4rem 1rem;
}

.search-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

#gallerySearch {
  width: 80%;
  max-width: 400px;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.search-wrapper {
  position: relative;
  display: inline-block;
  width: 80%;
  max-width: 400px;
}

#gallerySearch {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.clear-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  /* display: none; */
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.clear-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.filter-bar {
  text-align: center;
  margin-bottom: 2rem;
}

.filter-button {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: none;
  margin: 0.3rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filter-button.active,
.filter-button:hover {
  background: var(--accent);
  color: var(--btn-text);
}

.no-results {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 2rem;
  animation: fadeIn 0.4s ease;
}

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

.gallery {
  max-width: 1200px;
  margin: 0 auto;
}

.gallerysubsection {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.gallery-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  background: var(--bg-primary);
  max-width: 550px;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  transform: translateY(-6px);
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 12px 12px 0 0;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-image-label {
  background: var(--bg-secondary);
  padding: 0.75rem;
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
  color: var(--text-primary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}


/* WhatsApp Floating */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #25D366;
  color: #fff;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}
.whatsapp-float:hover {
  background-color: #1ebe5b;
}
.whatsapp-float i {
  vertical-align: middle;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 1rem 1rem;
  position: relative;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}
.footer-top > div {
  flex: 1 1 250px;
}
.footer h3, .footer h4 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.footer p, .footer a, .footer li {
  font-size: 0.95rem;
  color: var(--text-light);
}
.footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: var(--accent);
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-socials a {
  display: inline-block;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-right: 0.75rem;
  transition: color 0.3s ease;
}
.footer-socials a:hover {
  color: var(--accent);
}
.footer-bottom {
  text-align: center;
  opacity: 0.8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}
/* Signature designer credit */
.footer-bottom .initials {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  gap: 0.3ch;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Typing-style designer credit */
.footer-bottom .initials span {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  border-right: 2px solid var(--accent);
}

#credit-1, #credit-2, #credit-3 {
  width: 0;
}

.footer-bottom.visible #credit-1 {
  animation: type1 1.8s steps(25, end) forwards,
             blinkCursor 0.8s step-end infinite;
  opacity: 1;
}

.footer-bottom.visible #credit-2 {
  animation: type2 2s steps(15, end) 2s forwards,
             blinkCursor 0.8s step-end infinite 2s;
  opacity: 1;
}

.footer-bottom.visible #credit-3 {
  animation: type3 1.8s steps(30, end) 4s forwards,
             blinkCursor 0.8s step-end infinite 4s;
  opacity: 1;
}

/* Typing keyframes */
@keyframes type1 { from { width: 0; } to { width: 27ch; } }
@keyframes type2 { from { width: 0; } to { width: 12ch; } }
@keyframes type3 { from { width: 0; } to { width: 30ch; } }

@keyframes blinkCursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--accent); }
}

/* Link styling */
.footer-bottom .initials a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.footer-bottom .initials a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-hover);
  transition: width 0.4s ease;
}

.footer-bottom .initials a:hover::after {
  width: 100%;
}

.footer-bottom .initials a:hover {
  color: var(--accent-hover);
}

/* Back to Top Button */
.go-top-comet {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 0.8rem 1rem;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s;
  animation: orbitUp 2s infinite;
}

.go-top-comet.show {
  opacity: 1;
  visibility: visible;
}

.go-top-comet:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
}

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

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

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sparkle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes fadeInTag {
  to { opacity: 1; }
}

/* Responsive layout */

@keyframes popupEnter {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


@media (max-width: 768px) {

  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }

  .nav-actions .cta-btn {
    display: none;
  }
  
  /* Hero */
  .hero {
    background-position: center left;
    height: 50vh;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

@media (min-width: 1200px) {
  .hero {
    background-position: center 40%;
  }
}

