/* =======================================
| home.css - Homepage Layout + Sections
| Extracted from original styles.css
| Mobile-first, clean structure
======================================== */

.body-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "h"
    "i"
    "p"
    "sl"
    "t";
  gap: 1.5rem;
  padding: 1rem;
  max-width: 1200px;
  margin: auto;
}

/* Grid Area Assignments */
#hero {
  grid-area: h;
}

#intro {
  grid-area: i;
}

#main {
  grid-area: p;
}

#main2,
#main3 {
  grid-area: t;
}

#side-bar-lt {
  grid-area: sl;
}



/* Premium Slider Styling with Perfect Text Alignment */

.modern-slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 8px rgba(0,0,0,0.10);
  overflow: hidden;
  background: var(--block-color, #fff);
}

.container.position-relative.overflow-hidden {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.slide-content {
  position: relative;
  height: 70vh;
  max-height: 700px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: linear-gradient(120deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.18) 100%);
}

.image-wrapper {
  height: 100%;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.38);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  color: #222;
  padding: 1.1rem 1.3rem 1.1rem;
  max-width: 400px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-top: 1px solid rgba(0,0,0,0.07);
  animation: overlayFadeIn 0.7s cubic-bezier(0.4,0,0.2,1) both;
  opacity: 0;
  transform: translateY(24px);
  transition: color 0.3s;
}

.glow-text {
  font-family: var(--title-font);
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: none;
  margin-bottom: 0.4rem;
  color: var(--primary, #b00);
}

.fade-in {
  font-family: var(--text-font);
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.92;
  margin-bottom: 1rem;
  max-width: 340px;
}
@keyframes overlayFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.explore-btn {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: var(--light-text-color);
  font-family: var(--text-font);
  font-weight: 600;
  font-size: var(--text-size);
  padding: var(--block-padding);
  border-radius: var(--radius);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.explore-btn:hover {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.explore-btn .arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.explore-btn:hover .arrow {
  transform: translateX(5px);
}
.arrow {
  margin-left: 8px;
  transition: transform 0.3s;
}

.neo-button:hover .arrow {
  transform: translateX(3px);
}

.modern-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
  padding: 0 1.5rem;
}


.control-btn {
  pointer-events: all;
  background: rgba(255,255,255,0.7);
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 20px;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10), 0 1.5px 8px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(0,0,0,0.07);
  padding: 0;
}


.control-btn:hover {
  opacity: 1;
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  background: var(--primary);
  color: #fff;
}


.icon {
  font-weight: 900;
  color: var(--secondary);
  font-size: 2.1rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  line-height: 1;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}
.control-btn:hover .icon {
  color: #fff;
}

@media (max-width: 768px) {
  .slide-content {
    height: 60vh;
  }
  .content-overlay {
    padding: 0.7rem 0.7rem 0.7rem;
    border-radius: 0 0 10px 10px;
    max-width: 95vw;
    font-size: 0.98rem;
  }
  .glow-text {
    font-size: 1.05rem;
  }
  .fade-in {
    font-size: 0.97rem;
    max-width: 95vw;
  }
  .control-btn {
    width: 40px;
    height: 40px;
    margin: 0 10px;
  }
}

/* introduction section */
/* =======================================
| Home Intro Section - Redesigned
| Premium glass-morphism with animations
======================================== */
/* =======================================
| Home Intro Section - Redesigned
| Premium glass-morphism with animations
======================================== */

.home-intro {
  position: relative;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, 
    var(--light-section-bg-color) 0%, 
    var(--block-color) 50%,
    var(--light-section-bg-color) 100%);
  overflow: hidden;
}

.home-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, var(--secondary-lt) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--primary) 0%, transparent 50%);
  opacity: 0.1;
  z-index: 1;
}

.home-intro .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.home-intro p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  animation: slideUpFade 0.8s ease-out forwards;
}

.home-intro p:nth-child(2) {
  animation-delay: 0.2s;
}

.home-intro strong {
  color: var(--primary);
  font-weight: 700;
  text-shadow: 0 0 10px var(--primary);
  position: relative;
}

.home-intro sup {
  color: var(--secondary);
  font-size: 0.7em;
}

/* Enhanced Promo Box */
.promo {
  position: fixed;
  right: -420px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  z-index: 999;
   display: none;
  animation: promoSlideIn 1s ease-out 2s forwards;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-inner {
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.9) 0%,
      rgba(243, 236, 236, 0.95) 50%,
      rgba(221, 222, 238, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 3px solid var(--primary);
  border-radius: 20px 0 0 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.promo-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0.8;
}

/* Mood Indicator */
.promo-mood {
  position: absolute;
  top: 5px;
  left: 0px;
  width: 45px;
  height: 45px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(84, 185, 203, 0.3);
  border: 2px solid white;
  z-index: 11;
}

.promo-mood::before {
  content: '😊';
  transition: all 0.4s ease;
}

.promo.closing .promo-mood::before {
  content: '😢';
}

.promo.closing .promo-mood {
  background: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(159, 13, 45, 0.4);
}

.close-promo {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.close-promo:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 15px rgba(159, 13, 45, 0.4);
}

.promo h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-right: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(159, 13, 45, 0.3);
  line-height: 1.4;
}

.promo p {
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.promo strong {
  color: var(--primary);
  font-weight: 700;
}

.promo .dart-btn a {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(159, 13, 45, 0.3);
}

.promo .dart-btn a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.promo .dart-btn a:hover::before {
  left: 100%;
}

.promo .dart-btn a:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(159, 13, 45, 0.4);
}

/* Close Animations - Smooth & Delightful with Emotional Pause */


.promo.sliding-out {
  animation: promoSlideOut 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.promo.sliding-out .promo-inner {
  transform: scale(0.95);
  opacity: 0.7;
  transition: all 0.6s ease;
}

/* Keyframe Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes promoSlideIn {
  from {
    right: -420px;
    opacity: 0;
  }
  to {
    right: 0;
    opacity: 1;
  }
}

@keyframes promoSlideOut {
  0% {
    right: 0;
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  100% {
    right: -450px;
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
  }
}

/* Tablet Styles */
@media (min-width: 768px) {
  .home-intro {
    padding: 5rem 3rem;
  }
  
  .home-intro p {
    padding: 2.5rem;
    margin-bottom: 2.5rem;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .home-intro {
    padding: 6rem 2rem;
  }
  
  .home-intro p {
    padding: 3rem;
    font-size: 1.4rem;
  }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  .promo {
    width: 320px;
    right: -340px;
  }
  
  .promo.slide-out {
    right: -340px;
  }
  
  .promo-inner {
    padding: 1.5rem;
  }
  
  .promo h3 {
    font-size: 1.1rem;
  }
  
  .home-intro {
    padding: 3rem 1rem;
  }
  
  .home-intro p {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Fix for modern controls z-index conflict */
.modern-controls {
  z-index: 1 !important;
}