:root {
    --font-base: 'Inter', sans-serif;
  }
  
  body {
    font-family: var(--font-base);
  }
  
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html {
    overflow-x: hidden;
  }
  @keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  body,
  html {
    width: 100%;
    min-height: 100vh;
    background: var(--background-gradient);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
  }
  .top-icons {
    position: fixed;
    top: 10px;
    width: 100%;
    z-index: 1200;
  }
  .top-icons a {
    position: absolute;
    background: var(--icon-bg);
    border: 1px solid var(--icon-border);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s, background 0.3s, color 0.3s;
  }
  .top-icons a:hover {
    transform: scale(1.1);
    background: var(--icon-bg-hover);
    color: var(--primary-hover);
  }
  .top-icons .copy-link { left: 10px; }
  .top-icons .share      { right: 10px; }
  
  .profile-container {
    width: 100vw;
    background: none;
    padding: 20px;
    text-align: center;
    padding-bottom: 80px;
  }
  .profile-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px auto;
  }
  @keyframes zoomBlip {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
  
  .profile-pic-wrapper {
    flex: 0 0 auto;
  }
  
  .profile-pic {
    animation: zoomBlip 3s ease-in-out infinite;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color); /* Default outline color */
  }
  
  @media (max-width: 767px) {
    .profile-pic {
      border: 4px solid var(--profile-pic-outline-color-mobile); /* Mobile-specific white outline */
    }
  }

  .qr-code-alt { display: none; }
  h1 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 10px 0;
  }
  p.category {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
  }
  @media (max-width: 767px) {
    h1, p.category {
      color: var(--text-light);
    }
  }
  .social-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px auto;
    width: 70%;
  }
  
  .social-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s;
  }
  
  /* Original hover effect (desktop & wider screens) */
  .social-buttons a:hover {
    background-color: var(--primary-hover);
  }
  
  /* Mobile: up to 767px */
  @media (max-width: 767px) {
    .social-buttons a {
      font-weight: bold;
      background-color: #fff;               /* White background */
      color: var(--primary-color);          /* Pink text/icon */
      border: 2px solid var(--primary-color); /* Pink outline */
    }
    
    .social-buttons a:hover {
      /* Restore the 'primary-hover' background + white text for mobile hover */
      background-color: var(--primary-hover);
      color: var(--white);
    }
  }
  
 /* Default (mobile): full width, pinned bottom */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 1000;
}

/* Mobile-specific: top rounded corners */
@media (max-width: 767px) {
  .footer {
    border-radius: 12px 12px 0 0; /* Round top corners on mobile */
  }
}

/* Desktop only (≥768px): narrower, centered, rounded top corners */
@media (min-width: 768px) {
  .footer {
    left: 50%;
    right: auto;
    width: 400px; /* Desired fixed width on desktop */
    transform: translateX(-50%);
    border-radius: 12px 12px 0 0; /* Rounded top corners */
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.15); /* Slightly bigger top shadow */
  }
}

/* Footer link styles */
.footer a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: transform 0.3s, background 0.3s, color 0.3s;
  padding: 0 15px;
}

.footer a:hover {
  background: var(--icon-bg-hover);
  color: var(--primary-hover);
}

.footer a span {
  font-size: 0.75rem;
  margin-top: 4px;
}


  .quick-icons {
    position: fixed;
    right: 10px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1100;
  }
  .quick-icons a {
    background: var(--icon-bg);
    border: 1px solid var(--icon-border);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: transform 0.3s, background 0.3s, color 0.3s;
  }
  .quick-icons a:hover {
    transform: scale(1.1);
    background: var(--icon-bg-hover);
    color: var(--primary-hover);
  }
  #mapOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    display: none;
    opacity: 1;
    transition: opacity 0.3s;
  }
  #map {
    width: 100%;
    height: 100%;
  }
  #closeMap {
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--icon-bg);
    border: 1px solid var(--icon-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s, color 0.3s;
    z-index: 2100;
  }
  #closeMap:hover {
    transform: scale(1.1);
    background: var(--icon-bg-hover);
    color: var(--primary-hover);
  }
  #googleMapButton {
    position: absolute;
    left: 50%;
    top: 90%;
    transform: translate(-50%, -50%);
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem; /* make it smaller */
    white-space: nowrap; /* no line wrap */
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 2100;
  }
  @media (min-width: 768px) {
    #googleMapButton {
      top: 85%;
    }
  }
  #googleMapButton:hover {
    background-color: var(--primary-hover);
  }
  @media (min-width: 768px) {
    .profile-container {
      width: 400px;
      background: var(--white);
      margin: 40px auto;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    .social-buttons {
      width: 100%;
    }
  }
  #galleryOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
  }
  #closeGallery {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--icon-bg);
    border: 1px solid var(--icon-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s, color 0.3s;
    z-index: 3100;
  }
  #closeGallery:hover {
    transform: scale(1.1);
    background: var(--icon-bg-hover);
    color: var(--primary-hover);
  }
  .gallery-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  @media (min-width: 768px) {
    #galleryImage {
      width: auto;
      height: 100%;
      object-fit: cover;
    }
  }
  @media (max-width: 767px) {
    #galleryOverlay {
      background: none !important;
    }
    #galleryImage {
      width: 100%;
      height: 100vh;
      object-fit: cover;
    }
  }
  .gallery-nav {
    background: var(--icon-bg);
    border: 1px solid var(--icon-border);
    color: var(--primary-color);
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s, color 0.3s;
    z-index: 3100;
  }
  .gallery-nav:hover {
    background: var(--icon-bg-hover);
    color: var(--primary-hover);
    transform: scale(1.1);
  }
  #galleryPrev {
    position: absolute;
    left: 10px;
  }
  #galleryNext {
    position: absolute;
    right: 10px;
  }
  #instagramButton {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 3100;
  }
  #instagramButton:hover {
    background-color: var(--primary-hover);
  }
  /* Notification popup for copying link */
  #copyNotification {
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
    z-index: 9999;
    transition: opacity 0.3s;
  }
  
  /* --- QR Overlay Container --- */
#qrOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);  /* dark full-screen overlay */
    display: none;    /* hidden by default */
    opacity: 0;
    z-index: 10000;  /* higher than your top (1200), footer (1000) and quick icons (1100) */
    transition: opacity 0.3s;
  }
  
  /* When showing, add a class to force display */
  #qrOverlay.show {
    display: block;
  }
  
  /* --- QR Image (smaller) --- */
  #qrImage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 200px;  /* adjust size as needed */
    width: auto;
    height: auto;
  }
  
  /* --- Close Button (styled like map/gallery close buttons) --- */
  #closeQR {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--icon-bg, #fff);
    border: 1px solid var(--icon-border, #ccc);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #333);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10100;  /* ensure clickable within the overlay */
    transition: transform 0.3s, background 0.3s, color 0.3s;
    opacity: 0;
  }
  
  #closeQR:hover {
    transform: scale(1.1);
    background: var(--icon-bg-hover, #eee);
  }
  
  #closeQR,
#closeGallery,
#closeMap {
  position: fixed;
  top: 10px;
  right: 10px;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s, color 0.3s;
  z-index: 2100;
}


/* Tutorial Overlay Container */
#tutorialOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  opacity: 0;
  z-index: 10000;
  transition: opacity 0.3s;
}

/* When showing the tutorial */
#tutorialOverlay.show {
  display: block;
}

/* Tutorial GIF (adjust size as needed) */
#tutorialGIF {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Close button for the tutorial overlay */
#closeTutorial {
  position: fixed;
  top: 10px;
  right: 10px;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s, color 0.3s;
  z-index: 10100;
}

#closeTutorial:hover {
  transform: scale(1.1);
  background: var(--icon-bg-hover);
  color: var(--primary-hover);
}


/* Blocker Modal Styles */
#blockerModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark semi-transparent overlay */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

#blockerContent {
  text-align: center;
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  width: 400px;
  animation: fadeIn 0.3s ease-in-out;
}

#blockerContent img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  margin-bottom: 15px;
}

#blockerContent h1 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin: 10px 0;
}

#blockerContent p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Blocker buttons styled like your quick-icons */
.blocker-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.blocker-buttons a {
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.4rem;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s, color 0.3s;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.blocker-buttons a:hover {
  transform: scale(1.1);
  background: var(--icon-bg-hover);
  color: var(--primary-hover);
}

.blocker-message {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-top: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Close button for the blocker modal */
#closeBlocker {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s, color 0.3s;
  opacity : 0;
}

#closeBlocker:hover {
  transform: scale(1.1);
  background: var(--icon-bg-hover);
  color: var(--primary-hover);
}

/***********************
 * WiFi Overlay
 ***********************/
 #wifiOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none; /* hidden by default */
  opacity: 0;
  z-index: 10000; /* keep above other elements */
  transition: opacity 0.3s;
}

#wifiOverlay.show {
  display: block; /* fade in with opacity in JS */
}

/* Unique WiFi dialog class (unchanged) */
.wifi-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 90%;
  max-width: 400px;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

  /* Use the new keyframe name: fadeInWifi */
  animation: fadeInWifi 0.3s ease-in-out;
}

/* Close (X) button: renamed class from `close-btn` to `wifi-close-btn` */
.wifi-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.wifi-close-btn:hover {
  transform: scale(1.2);
}

/* Password + icons container */
.wifi-password-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 15px 0;
}

#wifiPassword {
  width: 60%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
  cursor: pointer; /* so user knows to tap to copy */
}

/* Eye & share icons */
.eye-icon,
.share-icon {
  background: #eee;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.eye-icon:hover,
.share-icon:hover {
  background: #ddd;
  transform: scale(1.1);
}

.wifi-hint {
  font-size: 0.9rem;
  color: #555;
}

#wifiCopyNotification {
  position: fixed;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none; /* Keep it hidden on load */
  z-index: 11000;
  transition: opacity 0.3s;
  /* Remove any additional display property here */
}

/* Close button in the toast (no conflict with your other overlays) */
.close-copy-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.close-copy-btn:hover {
  transform: scale(1.2);
}

/* Unique keyframe name: fadeInWifi */
@keyframes fadeInWifi {
  from {
    opacity: 0;
    transform: translate(-50%, -55%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}


/***********************
 * WiFi Overlay
 ***********************/
 #wifiOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  visibility: hidden;
  opacity: 0;
  z-index: 10000;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

#wifiOverlay.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.wifi-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 90%;
  max-width: 360px;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: fadeInWifi 0.3s ease-in-out;
}

.wifi-dialog h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #333;
}

.wifi-dialog p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

/* New Close Element Style (no button styling) */
#closeWifiOverlay {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.8rem;
  color: #666;
  cursor: pointer;
  transition: transform 0.3s, color 0.3s;
}
#closeWifiOverlay:hover {
  transform: scale(1.2);
  color: #333;
}

.wifi-password-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

#wifiPassword {
  width: 60%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.3s;
}
#wifiPassword:hover {
  background-color: #f1f1f1;
}

.eye-icon,
.share-icon {
  background: #f1f1f1;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.eye-icon:hover,
.share-icon:hover {
  background: #e1e1e1;
  transform: scale(1.1);
}

.wifi-hint {
  font-size: 0.9rem;
  color: #777;
}

@keyframes fadeInWifi {
  from {
    opacity: 0;
    transform: translate(-50%, -55%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}


