/* Section padding & general layout */
/* top heading css for all pages*/
.colorful-heading {
  text-align: center;
  margin-bottom: 50px;
}

.colorful-heading h1 {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(270deg, #ff6b6b, #f7d794, #1dd1a1, #54a0ff);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 6s ease infinite;
  position: relative;
  
}

.colorful-heading h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, #ff6b6b, #1dd1a1);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(29, 209, 161, 0.7);
}

.colorful-heading h3 {
  font-size: 1.5rem;
  color: #a19393;
  margin-top: 15px;
  font-style: italic;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.2s;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.about {
    padding: 60px 9% 160px;
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 10px;
}


/* Top Row: Text + Image */
.about-top {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Left Text Column */
.about-text-top {
    flex: 2;
    font-size: 16px;
    line-height: 1.7;
    color: #ccc;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.2s ease forwards;
}

/* About page photo – isolated from home page */
.about-photo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive, safe size: never larger than screen, never tiny */
.photo-ring {
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  padding: 6px;
  overflow: hidden;
  position: relative;
}

/* Keep the glow/gradient behind the image */
.photo-ring::before,
.photo-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(transparent, transparent, transparent, #7cf03d);
  z-index: 0;
}

.photo-inner {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #1f242d;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

    

.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: lighten;
  
}



/* Full-width text below top row */
.about-text-full {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.7;
    color: #ccc;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.about-text-full p {
    margin-bottom: 10px;
}



/* Animated heading for About section */
.about-text-top h1 {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(270deg, #ff6b6b, #f7d794, #1dd1a1, #54a0ff);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 6s ease infinite;
    margin-bottom: 20px;
}

/* Subheading fadeIn */
.about-text-top h3 {
    font-size: 1.5rem;
    color: #a19393;
    margin-top: 15px;
    font-style: italic;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    animation-delay: 0.8s;
}


@media screen and (max-width: 1024px) {  /* Tablet and below */
  .about-top {
    flex-direction: column;   /* stack vertically */
    align-items: center;
    gap: 25px;                /* adjust spacing */
    text-align: center;
  }

  .about-photo {
    order: 1;                  /* image first */
    width: 50vw;               /* responsive width for tablet */
    max-width: 300px;          /* prevents it from being too big */
  }

  .about-text-top {
    order: 2;                  /* text below */
    width: 90%;                /* full width */
  }

  .about-text-full {
    width: 90%;                /* full width */
  }
}

