/* ==================== Global Reset & Base Styles ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==================== Header & Navigation ==================== */
header {
  background: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  /* Logo animates through purple and blue hues */
  animation: logoColor 9s linear infinite alternate;
}

@keyframes logoColor {
  0%  { color: #00c0ff; }
  20% { color: #5185ff; }
  40% { color: #8a2be2; }
  60% { color: #a62ede; }
  80% { color: #dd29d2; }
  100% { color: #ff3ea9; }
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  padding: 8px 12px;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s ease;
}

nav ul li a:hover {
  background: #ddd;
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ==================== Hamburger Menu ==================== */
.menu-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
}

.menu-toggle .bar {
  position: absolute;
  height: 3px;
  width: 100%;
  background: #333;
  transition: all 0.3s ease;
}
.menu-toggle .bar:nth-child(1) { top: 0; }
.menu-toggle .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle .bar:nth-child(3) { bottom: 0; }

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
}
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg);
  top: 50%;
  bottom: auto;
}

#menu-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  padding: 20px 0;
  text-align: center;
  z-index: 90;
}

#menu-overlay ul {
  list-style: none;
}

#menu-overlay ul li {
  margin: 15px 0;
}

#menu-overlay ul li a {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.3s ease;
  display: inline-block;
  color: #333;
}
#menu-overlay ul li a:hover {
  background: rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  nav ul { display: none; }
  .menu-toggle { display: block; }
}

/* Ensure the stacking container is sized correctly */
.fa-stack {
  width: 1em;
  height: 1em;
  position: relative;
  display: inline-block;
}

/* The half overlay: show only 50% of the solid icon */
.half {
  position: absolute;
  width: 50%;
  overflow: hidden;
  top: 0;
  left: 0;
}


/* ==================== CTA Button (General & Homepage) ==================== */
/* New Universal Glossy Button Style */
.cta-button {
  position: relative;
  font-family: 'Oswald', sans-serif;
  background: linear-gradient(to bottom, #ff3d81, #ff5e9a, #ff3d81);
  background-size: 100% 200%;
  animation: lava 16s ease infinite;
  color: #fff;
  padding: 15px 30px;
  border: 2px solid #fff;
  border-radius: 50px;
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  overflow: hidden;
  display: inline-block;
  margin-top: 20px;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0));
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}

@keyframes lava {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.cta-button:hover {
  transform: scale(1.05);
}

/* ==================== Profile & View Profile Buttons ==================== */
/* New Universal Glossy Button Style for .profile-link and .view-profile-button (no border) */
.profile-link,
.view-profile-button {
  position: relative;
  font-family: 'Oswald', sans-serif;
  background: linear-gradient(to bottom, #ff3d81, #ff5e9a, #ff3d81);
  background-size: 100% 200%;
  animation: lava 16s ease infinite;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  overflow: hidden;
  display: inline-block;
  margin-top: 20px;
}

.profile-link::before,
.view-profile-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0));
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}

.profile-link:hover,
.view-profile-button:hover {
  transform: scale(1.05);
}

/* ==================== Profile Page Styles ==================== */
/* Profile Details Section */
.profile-details {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.profile-pic {
  flex: 0 0 250px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(to bottom, #ff77ff, #ff88ff, #ff99cc);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  flex: 1;
}

.profile-info h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #ff77ff;
}

.profile-info p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.social-links {
  margin-top: 10px;
}

.social-links a {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.5rem;
  color: #fff !important;
  background: linear-gradient(90deg, #ff77ff, #ff99cc);
  border-radius: 10px;
  padding: 8px 12px;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: linear-gradient(90deg, #ff99cc, #ff77ff);
}

@media (max-width: 768px) {
  .profile-details {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  .profile-pic {
    margin-bottom: 20px;
  }
  .profile-info {
    text-align: center;
  }
}

/* Gallery Section (Profile) */
.gallery {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

.cta-section {
  padding-bottom: 40px;
}

/* ==================== Lightbox Modal ==================== */
#lightboxModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#lightboxModal .lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
}

#lightboxImg {
  width: 360px;
  height: 640px;
  border-radius: 8px;
  display: block;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}

#lightboxPrev {
  left: calc(-3rem - 10px);
}

#lightboxNext {
  right: calc(-3rem - 10px);
}

#lightboxClose {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

/* ==================== Homepage Specific Styles ==================== */
/* Hero Section (Homepage) */
.hero {
  background: url(../images/hero.jpg?blur=2) no-repeat center center / cover;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  color: #fff;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #ff3d81;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Profiles Section (Homepage) */
.profiles {
  padding: 40px 20px;
  background: #fff;
}

.profiles h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.profile-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.profile-card {
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 300px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
}

.profile-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.profile-card h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.profile-card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #666;
}

.social-links {
  margin-bottom: 15px;
}

.social-links a {
  margin: 0 8px;
  color: #0066cc;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #005bb5;
}

/* Glossy Button for Card Links (using new design, without border) */
.profile-link {
  position: relative;
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  background: linear-gradient(to bottom, #ff3d81, #ff5e9a, #ff3d81);
  background-size: 100% 200%;
  animation: lava 16s ease infinite;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.profile-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.2));
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  pointer-events: none;
}

.profile-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,118,255,0.6);
}

.view-profile-button {
  position: relative;
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  background: linear-gradient(to bottom, #ff3d81, #ff5e9a, #ff3d81);
  background-size: 100% 200%;
  animation: lava 16s ease infinite;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.view-profile-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.2));
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  pointer-events: none;
}

.view-profile-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,118,255,0.6);
}

.cta-section {
  padding-bottom: 40px;
}

/* ==================== End of Global CSS ==================== */
