/* ============================================================
   LAYOUT.CSS — ABI's Beauty Care & Academy
   Page Sections, Navigation, Hero, Footer, Overlays
   ============================================================ */

/* ================================================================
   LOADING SCREEN
   ================================================================ */

.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-screen__content {
  text-align: center;
  position: relative;
}

.loading-screen__logo {
  width: 200px;
  margin: 0 auto var(--space-lg);
  animation: logoReveal 1.5s ease forwards;
  position: relative;
}

/* Green glow behind logo */
.loading-screen__logo::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(80, 166, 91, 0.15) 0%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
  animation: pulse 2s ease-in-out infinite;
}

.loading-screen__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.loading-screen__text {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-size: 1.2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
  letter-spacing: 2px;
}


/* ================================================================
   NAVIGATION
   ================================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: var(--space-md) 0;
  transition: var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-sm) 0;
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav__logo {
  display: flex;
  align-items: center;
  z-index: 10001;
}

.nav__logo img {
  height: 50px;
  width: auto;
  transition: var(--transition-smooth);
}

.nav.scrolled .nav__logo img {
  height: 40px;
}

.nav__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.nav__link {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.3s ease;
  text-decoration: none;
  font-weight: 400;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
  left: 0;
}

/* Hamburger Menu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 10001;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* X shape when active */
.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ================================================================
   HERO SECTION
   ================================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
  z-index: 2;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  width: 100%;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.hero__badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(80, 166, 91, 0.1), transparent);
  animation: shimmer 3s linear infinite;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero__title span {
  color: var(--color-primary);
  position: relative;
}

.hero__title span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  border-radius: 2px;
  opacity: 0.4;
}

.hero__subtitle {
  font-family: var(--font-subheading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.hero__text {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  font-size: 0.95rem;
}

.hero__buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
}

.hero__image .placeholder-img {
  aspect-ratio: 1920 / 900;
  border-radius: var(--border-radius-lg);
}

/* Decorative glow behind hero image */
.hero__image::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(80, 166, 91, 0.08) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}


/* ================================================================
   STATS GRID
   ================================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
  position: relative;
}


/* ================================================================
   FEATURES GRID
   ================================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}


/* ================================================================
   SERVICES GRID
   ================================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}


/* ================================================================
   ACADEMY GRID
   ================================================================ */

.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}


/* ================================================================
   BRIDAL SECTION
   ================================================================ */

.bridal-section {
  position: relative;
  overflow: hidden;
}

/* Background decorative glow */
.bridal-section::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(80, 166, 91, 0.04) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.bridal__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.bridal__text {
  padding: var(--space-xl) 0;
}

.bridal__text h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.bridal__text p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.bridal__image .placeholder-img {
  aspect-ratio: 800 / 1000;
  border-radius: var(--border-radius-lg);
}

/* Decorative frame around bridal image */
.bridal__image {
  position: relative;
}

.bridal__image::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 60%;
  height: 60%;
  border: 1px solid rgba(80, 166, 91, 0.15);
  border-radius: var(--border-radius-lg);
  pointer-events: none;
}

.bridal__image::after {
  display: none;
}

/* Bridal image fix */
.bridal__image {
  overflow: visible !important;
  transform: none !important;
}

.bridal__image img {
  transform: translateY(50px);
}

/* ================================================================
   GALLERY GRID (Masonry-style)
   ================================================================ */

.gallery-grid {
  columns: 3;
  column-gap: var(--space-md);
}

.gallery-grid .gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-md);
}

/* Different aspect ratios for gallery variety */
.gallery-grid .gallery-item:nth-child(3n+1) .placeholder-img {
  aspect-ratio: 3 / 4;
}

.gallery-grid .gallery-item:nth-child(3n+2) .placeholder-img {
  aspect-ratio: 4 / 3;
}

.gallery-grid .gallery-item:nth-child(3n+3) .placeholder-img {
  aspect-ratio: 1 / 1;
}


/* ================================================================
   SOCIAL GALLERY SECTION
   ================================================================ */

.social-section {
  margin-bottom: var(--space-2xl);
}

.social-section__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.social-section__header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-white);
}

.social-section__header span {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
}

.social-grid .social-item .placeholder-img {
  aspect-ratio: 1 / 1;
}


/* ================================================================
   CONTACT SECTION
   ================================================================ */

.contact-section {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}


/* ================================================================
   FOOTER
   ================================================================ */

.footer {
  background: #0d0d0d;
  border-top: 1px solid rgba(80, 166, 91, 0.1);
  padding-top: var(--space-2xl);
  position: relative;
  z-index: 2;
}

/* Subtle gradient accent at top */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80, 166, 91, 0.3), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  border-radius: 2px;
}

.footer__link {
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
  transition: color 0.3s ease, padding-left 0.3s ease;
  font-size: 0.9rem;
  text-decoration: none;
  display: block;
}

.footer__link:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer__col p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Footer Social Icons */
.footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(80, 166, 91, 0.1);
  border: 1px solid rgba(80, 166, 91, 0.2);
  color: var(--color-primary);
  font-size: 1rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.footer__social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(80, 166, 91, 0.3);
}

/* Footer Bottom */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer__bottom a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer__bottom a:hover {
  text-decoration: underline;
  color: var(--color-highlight);
}


/* ================================================================
   PARTICLES CANVAS
   ================================================================ */

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}


/* ================================================================
   BUTTERFLY
   ================================================================ */

.butterfly-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.butterfly {
  position: absolute;
  transition: none;
  will-change: transform;
}

.butterfly__body {
  width: 3px;
  height: 20px;
  background: rgba(80, 166, 91, 0.6);
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
}

/* Antennae */
.butterfly__body::before,
.butterfly__body::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 1px;
  height: 8px;
  background: rgba(126, 217, 87, 0.4);
  border-radius: 50% 50% 0 0;
}

.butterfly__body::before {
  left: -3px;
  transform: rotate(-30deg);
}

.butterfly__body::after {
  right: -3px;
  transform: rotate(30deg);
}

.butterfly__wing--left,
.butterfly__wing--right {
  position: absolute;
  width: 18px;
  height: 24px;
  background: rgba(126, 217, 87, 0.15);
  border: 1px solid rgba(126, 217, 87, 0.3);
  top: -5px;
  box-shadow: 0 0 10px rgba(126, 217, 87, 0.2);
}

.butterfly__wing--left {
  left: -18px;
  border-radius: 50% 50% 0 50%;
  transform-origin: bottom right;
  animation: wingFlap 1.5s ease-in-out infinite;
}

.butterfly__wing--right {
  right: -18px;
  border-radius: 50% 50% 50% 0;
  transform-origin: bottom left;
  animation: wingFlap 1.5s ease-in-out infinite;
  animation-delay: 0.05s;
}


/* ================================================================
   CUSTOM CURSOR
   ================================================================ */

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--color-highlight);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 10px var(--color-highlight);
  mix-blend-mode: screen;
}

.cursor-dot.active {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(126, 217, 87, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.active {
  width: 55px;
  height: 55px;
  border-color: rgba(80, 166, 91, 0.5);
}


/* ================================================================
   MORPHING BLOBS (Background Decoration)
   ================================================================ */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.07;
  animation: morphBlob 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.blob:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.blob:nth-child(2) {
  width: 300px;
  height: 300px;
  background: var(--color-highlight);
  top: 60%;
  right: -5%;
  animation-delay: -7s;
}

.blob:nth-child(3) {
  width: 350px;
  height: 350px;
  background: var(--color-primary);
  bottom: 10%;
  left: 30%;
  animation-delay: -14s;
}


/* ================================================================
   FLOATING LEAVES
   ================================================================ */

.floating-leaf {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
  font-size: 1.5rem;
  animation: leafFloat 15s linear infinite;
  will-change: transform;
}

.floating-leaf:nth-child(1) {
  left: 5%;
  animation-duration: 12s;
  animation-delay: 0s;
}

.floating-leaf:nth-child(2) {
  left: 15%;
  animation-duration: 16s;
  animation-delay: -3s;
}

.floating-leaf:nth-child(3) {
  left: 30%;
  animation-duration: 14s;
  animation-delay: -6s;
}

.floating-leaf:nth-child(4) {
  left: 50%;
  animation-duration: 18s;
  animation-delay: -2s;
}

.floating-leaf:nth-child(5) {
  left: 70%;
  animation-duration: 13s;
  animation-delay: -8s;
}

.floating-leaf:nth-child(6) {
  left: 85%;
  animation-duration: 17s;
  animation-delay: -5s;
}

.floating-leaf:nth-child(7) {
  left: 95%;
  animation-duration: 15s;
  animation-delay: -10s;
}