/* ====================================================
   HERO SECTION LAYOUT & BACKGROUND
==================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: block;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 6rem;
}

/* Background glow effects (behind hero) */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.hero::before {
  top: -6.25rem;
  left: -6.25rem;
  width: 31.25rem;
  height: 31.25rem;
  background: radial-gradient(circle at center, #DC00D3, #6b21a8);
  filter: blur(9.375rem);
  opacity: 0.6;
}

.hero::after {
  bottom: -5rem;
  right: -7.5rem;
  width: 25rem;
  height: 25rem;
  background: radial-gradient(circle at center, #0CFFFF, #3a86ff);
  filter: blur(8.75rem);
  opacity: 0.4;
}

/* ====================================================
   HERO GLASS BOX STYLING
==================================================== */
.hero-glass-box {
  width: 90%;
  max-width: 1100px;
  margin: 4rem auto 0;
  padding: 3rem 2.5rem;
  min-height: 50vh;
  background: rgba(59, 58, 58, 0.377);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 0 2.5rem rgba(169, 85, 247, 0.267);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  text-align: left;
  z-index: 2;
  box-sizing: border-box;
}

/* Glow behind glass box */
.hero-glass-box::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -80px;
  width: 100%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2), transparent);
  filter: blur(50px);
  z-index: -1;
}

/* ====================================================
   IMAGE STYLING (Inside Hero)
==================================================== */
.image-crop-box {
  width: 30vw;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff18;
  border-radius: 50%;
}

.image-crop-box img {
  object-fit: cover;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 1.875rem #0a1d867e);
}

/* ====================================================
   TEXT BLOCKS INSIDE HERO
==================================================== */
.tagline h1 {
  font-size: 10rem;
  white-space: nowrap;
  margin: 8rem 0 0;
  padding-bottom: 10px;
  color: #F8F8F8;
}

.gradline h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 1rem;
  background: linear-gradient(to right, #60ffff, #fa01c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shortinfo {
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 300;
  color: #FAFAFA;
  
  text-align: left;
  max-width: 90%;
}

/* ====================================================
   BUTTON SECTION
==================================================== */
.res {
  z-index: 3;
  margin-bottom: 1.5rem;
}

.res button {
  padding: 1rem 1.5rem;
  font-weight: 250;
  font-size: 1rem;
  font-family: 'Josefin Sans', sans-serif;
  background: linear-gradient(to right, #003cff, #ea00ff);
  color: white;
  border: none;
  border-radius: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 0.5rem 0.1rem rgba(0, 0, 0, 0.2);
}

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

/* ====================================================
   HEADER CLIP SHAPE DECORATION
==================================================== */
header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  width: 7.8125rem;
  height: 1.875rem;
  background-color: #150c24c0;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
  z-index: 2;
}

/* ====================================================
   FLEX LAYOUT INSIDE GLASS BOX
==================================================== */
.hero-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.glass-left,
.glass-right {
  flex: 1;
  min-width: 280px;
}

.glass-right {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
}

/* ====================================================
   RESPONSIVE TWEAKS
==================================================== */

/* Tablets and below */
@media (max-width: 1024px) {
  .hero {
    padding-left: 0;
    align-items: center;
  }

  .hero-glass-box {
    padding: 3rem 1.5rem;
    margin-top: 3rem;
  }

  .hero-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .glass-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
  }

  .tagline h1 {
    margin-top: 10rem;
    font-size: 6rem;
  }

  .gradline h3 {
    font-size: 2.7rem;
  }

  .shortinfo {
    max-width: 70%;
    font-size: 1.7rem;
    margin-top: 1rem;
    text-align: center;
  }

  .image-crop-box {
    width: 45vw;
    margin-top: 1.5rem;
  }
}

/* Small Tablets and Phones */
@media (max-width: 768px) {
  .hero-glass-box {
    padding: 2.5rem 1.5rem;
    margin-top: 2rem;
  }

  .image-crop-box {
    width: 50vw;
    margin-top: 1rem;
  }

  .shortinfo {
    font-size: 1.1rem;
    max-width: 90%;
    text-align: center;
    margin-top: 1rem;
  }

  .tagline h1 {
    font-size: 5rem;
    
  }

  .gradline h3 {
    font-size: 1.5rem;
  }

  .glass-right {
    margin-top: 1rem;
    margin-bottom: 0rem;
  }

  .hero {
    padding-bottom: 0rem;
  }

  .hero-glass-box {
    margin-bottom: 1rem;
  }

  #about {
    margin-top: 1.5rem;
  }
}

/* Phones below 480px */
@media (max-width: 480px) {
  .image-crop-box {
    width: 60vw;
  }

  .shortinfo {
    font-size: 1rem;
    max-width: 95%;
  }

  .tagline h1 {
    font-size: 2.4rem;
  }

  .gradline h3 {
    font-size: 1.2rem;
  }

  .res button {
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
  }
}

/* Extra small: below 400px */
@media (max-width: 400px) {
  .tagline h1 {
    margin-top: 4rem;
    font-size: 2.2rem;
  }

    .shortinfo {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Folded screen / Surface Duo fix */
@media (max-width: 600px) and (min-width: 500px) and (max-height: 900px) {
  .hero {
    padding-left: 0;
    align-items: center;
    text-align: center;
  }

  .tagline h1 {
    font-size: 3rem;
    margin-top: 7rem;
  }

  .gradline h3 {
    font-size: 1.2rem;
  }

  .shortinfo {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 85%;
  }

  .image-crop-box {
    width: 65vw;
    margin-top: 2rem;
  }

  .res button {
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
  }
}

/* Large screen specific tweaks */
@media (min-width: 1025px) {
  .glass-right {
    transform: translateY(30px);
  }

  .tagline h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1200px) {
  .tagline h1 {
    font-size: 3.5rem;
  }
}

/* ====================================================
   ENTRANCE ANIMATION
==================================================== */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .glass-left,
.hero .glass-right {
  opacity: 0;
  animation: fadeSlideUp 1s ease-out forwards;
}

.hero .glass-left {
  animation-delay: 0.3s;
}

.hero .glass-right {
  animation-delay: 0.6s;
}


/* iOS Safari circular image fix (mobile only) */
@media (max-width: 768px) {
  .image-crop-box {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
  }

  .image-crop-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 🔥 KEY FIX */
    border-radius: 50%;
  }
}
