/* ==========================================================================
   PREMIUM RESPONSIVE HERO DESIGN SYSTEM (POLISHED & COMPACT)
   ========================================================================== */

/* Disable legacy CSS keyframes floating animation to prevent conflicts with GSAP */
.home_container .img_div {
  animation: none !important;
  transform-origin: center center;
}

/* Ensure images always resize, cover their bounds, and maintain aspect ratio */
.home_container .img_div img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Fully cover the container with no white gaps */
  object-position: center top !important; /* Keep the face perfectly visible */
  display: block !important;
  border-radius: 25px !important;
}

/* ==========================================================================
   RESPONSIVE TYPOGRAPHY WITH clamp()
   ========================================================================== */
.home_container h1 {
  font-size: clamp(2rem, 5.5vw + 0.5rem, 3.2rem) !important;
  line-height: 1.25 !important;
  text-align: center !important;
  margin-bottom: 12px !important;
}

.home_container .subline {
  font-size: clamp(0.95rem, 2vw + 0.6rem, 1.15rem) !important;
  line-height: 1.7 !important;
  text-align: center !important;
  max-width: 480px !important;
  margin: 0 auto 20px auto !important;
  padding: 0 16px !important;
}

/* Tap Target Button Configurations */
.home_container .say_hello_btn {
  font-size: clamp(0.9rem, 1vw + 0.75rem, 1.05rem) !important;
  min-height: 48px !important; /* Easy tap targets on mobile */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 34px !important;
  margin-bottom: 24px !important;
}

/* Loader Title fluid scaling */
.loader-title {
  font-size: clamp(1.8rem, 6vw + 0.6rem, 3rem) !important;
}

/* ==========================================================================
   CTA BUTTON HOVER & ACTIVE FEEDBACK
   ========================================================================== */
.home_container .say_hello_btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.3s ease, 
              background-color 0.3s ease !important;
}

.home_container .say_hello_btn:hover {
  transform: translateY(-5px) !important;
  background-color: #1d4ed8 !important; /* Royal Blue */
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4) !important; /* Drop shadow blue glow */
}

/* tactile touch feedback on mobile screen taps */
.home_container .say_hello_btn:active {
  transform: scale(0.96) translateY(-2px) !important;
}

/* ==========================================================================
   TECH STACK ROW
   ========================================================================== */
.hero-tech-stack {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  margin: 0 auto 36px auto !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 320px !important;
  padding: 0 10px !important;
}

.hero-tech-stack i {
  font-size: clamp(1.3rem, 1.5vw + 0.7rem, 1.65rem) !important;
  color: #64748b;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.hero-tech-stack i:hover {
  transform: scale(1.2) translateY(-2px);
}

.hero-tech-stack i.fa-python:hover { color: #3776ab; }
.hero-tech-stack i.fa-js:hover { color: #f7df1e; }
.hero-tech-stack i.fa-react:hover { color: #61dafb; }
.hero-tech-stack i.fa-server:hover { color: #43853d; }
.hero-tech-stack i.fa-database:hover { color: #00758f; }
.hero-tech-stack i.fa-git-alt:hover { color: #f05032; }
.hero-tech-stack i.fa-github:hover { color: #ffffff; }

body.dark .hero-tech-stack i {
  color: #a1a1aa;
}

/* Ensure heading spans support GSAP translations */
.hero-title-prefix,
.home_container h1 .highlight {
  display: inline-block;
}

/* ==========================================================================
   SCROLL TO EXPLORE MOUSE INDICATOR
   ========================================================================== */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}

.scroll-indicator span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin-left: 0.2em;
}

.mouse-icon {
  width: 24px;
  height: 40px;
  border: 2px solid #64748b;
  border-radius: 9999px;
  position: relative;
}

.mouse-icon .wheel {
  width: 4px;
  height: 8px;
  background-color: #3b82f6;
  border-radius: 9999px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
}

body.dark .scroll-indicator span {
  color: #a1a1aa;
}

body.dark .mouse-icon {
  border-color: #a1a1aa;
}

/* ==========================================================================
   RESPONSIVE VIEWPORT BREAKPOINTS (Layouts and Spacings)
   ========================================================================== */

/* Laptops & Desktops (992px to 1599px) */
@media (min-width: 992px) {
  .home_container {
    flex-direction: row !important;
    justify-content: space-around !important;
    padding: 40px !important;
    gap: 40px !important;
  }
  .stylish {
    max-width: 50% !important;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .home_container h1 {
    text-align: left !important;
  }
  .home_container .subline {
    text-align: left !important;
    margin: 0 0 25px 0 !important;
    padding: 0 !important;
  }
  .hero-tech-stack {
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .img_div {
    width: 380px !important;
    height: 480px !important;
  }
  .scroll-indicator {
    position: absolute !important;
    bottom: 25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

/* Tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .home_container {
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 30px !important;
    gap: 20px !important;
  }
  .stylish {
    max-width: 52% !important;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .home_container h1 {
    text-align: left !important;
  }
  .home_container .subline {
    text-align: left !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
  }
  .img_div {
    width: 290px !important;
    height: 370px !important;
  }
  .hero-tech-stack {
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
  }
  .scroll-indicator {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

/* Mobiles (320px to 767px) - Vertical Stack with Image at Top */
@media (max-width: 767px) {
  .home_container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 24px 16px 36px 16px !important; /* Compact padding for small screens */
    gap: 18px !important;
    margin: 10px !important;
    border-radius: 20px !important;
  }
  .img_div {
    order: -1 !important; /* Image displays first on mobile */
    width: min(210px, 50vw) !important;
    height: min(260px, 62vw) !important;
    margin-top: 10px !important;
    margin-bottom: 0px !important;
    border-radius: 25px !important;
    filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.3)) !important; /* Reduced mobile glow */
  }
  .stylish {
    order: 1 !important; /* Text and buttons flow below */
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .home_container .subline {
    margin: 10px auto 16px auto !important;
  }
  .home_container .say_hello_btn {
    width: 100% !important;
    max-width: 260px !important;
    margin-bottom: 18px !important;
  }
  .hero-tech-stack {
    justify-content: center !important;
    margin-top: 0px !important;
    margin-bottom: 24px !important;
    gap: 14px !important;
    max-width: 280px !important;
  }
  .scroll-indicator {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    margin: 10px auto 0 auto !important;
  }
  .mouse-icon {
    width: 18px;
    height: 30px;
  }
  .mouse-icon .wheel {
    height: 5px;
  }
}

/* Very Small Screens (320px to 359px) */
@media (max-width: 359px) {
  .home_container {
    padding: 16px 8px 24px 8px !important;
    gap: 12px !important;
  }
  .img_div {
    width: 160px !important;
    height: 200px !important;
  }
  .home_container .say_hello_btn {
    max-width: 230px !important;
    margin-bottom: 12px !important;
  }
  .hero-tech-stack {
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
}

/* Large Screens (1600px+) */
@media (min-width: 1600px) {
  .home_container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 60px !important;
  }
  .stylish {
    max-width: 55% !important;
  }
  .img_div {
    width: 440px !important;
    height: 560px !important;
  }
}
