/* 1st Section */
.about {
  position: relative;
  background: url("../images/main1.png") no-repeat center center/cover;
  height: 400px;
  margin: 50px 0;
  font-size: 60px !important;
  background-position: center; /* default */
  transition: background-position 0.1s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}
.about .about-div {
  max-width: 90%;
}
.about .about-title:first-child {
  color: #fff;
  padding: 20px 40px;
  border-radius: 10px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.8;
  margin-bottom: 20px; 
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}
.about .about-title.gold-text-shimmer {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(90deg, #d0a852,#ffc107,#ffe819,#ffc107,#d0a852); 
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* 1st Section */

/* About Us Section*/
.about-us {
  position: relative;
  overflow: hidden;
  min-height: 500px;           
  display: flex;
  align-items: center;
  padding-left: 10%;
  padding-right: 5%;
  margin: 80px 0;
  color: #fff;
}
.about-us::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}
.overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  font-weight: 900;
  font-size: clamp(80px, 18vw, 240px);
  background: url("../images/about_us.jpg") no-repeat center center/cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
}
.overlay-text.animate-dab {
  animation: dabFade 2.5s forwards ease-in-out;
}
.about-us.animate-bg::before {
  opacity: 1;
}
.about-us-div {
  position: relative;
  z-index: 4;
  max-width: 70%;
  opacity: 0;
  transform: translateY(18px);
}
.about-us-div.animate-text {
  animation: contentFadeIn 2.5s forwards ease-in-out;
  animation-delay: 2.0s;
}
.about-us-image.animate-text {
  animation: contentFadeIn 2.5s forwards ease-in-out;
  animation-delay: 2.0;
}
@keyframes dabFade {
  0%   { opacity: 1; transform: scale(1); }
  60%  { opacity: 1; transform: scale(1.02); } /* hold */
  100% { opacity: 0; transform: scale(1.06); } /* fade away revealing background */
}
@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.about-us-container {
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  z-index: 4;
  position: relative;
  flex-wrap: wrap;
}
.about-us-div,
.about-us-image {
  flex: 1;
  min-width: 300px;
  opacity: 0;
  transform: translateY(18px);
}
.about-us-title {
  margin: 0 0 0.80px 0;
  color: #5a028a;
  font-size: 60px;
}
.about-us-content {
  margin: 0;
  color: #5a028a;
  font-size: 24px;
  line-height: 1.6;
  text-align: justify;
}
.about-us-image img {
  width: 100%;
  height: auto;
  display: block;
}
.about-us-image.visible img {
  opacity: 1;
  transform: translateY(0);
}
/* About Us Section */

/* Why Choose Us */
.features-section {
  background: #fafafa;
  padding: 40px 10px;
}
.trust-div h2 {
  font-size: 60px;
  font-weight: 800;
  transform: translateY(50px);  
  opacity: 0;
  transition: transform 2.0s ease-out, opacity 2.0s ease-out;
}
.trust-div.show h2 {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 2.5s;  
}
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 25px;
}
.category-block {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 2.0s ease;
}
.category-block.show {
  opacity: 1;
  transform: translateY(0);
}
.category-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}
.category-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--primary-accent);
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
  margin-top: 10px;
  position: relative;
}
.category-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 2px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #ff00ff, #3D0C3D);
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
  animation: badgeGlow 8s ease-in-out infinite alternate;
}
@keyframes badgeGlow {
  from {
    box-shadow: 0 0 10px rgba(255,0,255,0.3);
  }
  to {
    box-shadow: 0 0 25px rgba(255,0,255,0.7);
  }
}
.category-block {
  position: relative;
  padding-bottom: 60px;
  margin-bottom: 60px;
  animation: flowLine 6s linear infinite;
}
.category-block::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #ff00ff, transparent);
  transition: width 3s ease;
}
@keyframes flowLine {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.category-block.show::after {
  width: 60%;
}
.category-title::after {
  content: "";
  display: block;
  margin: 10px auto 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff00ff, #3D0C3D);
  transition: width 2.0s ease;
}
.category-block.show .category-title::after {
  width: 80px;
}
.feature-row {
  display: flex;
  align-items: center;
  gap: 48px;
  background: linear-gradient(
    120deg,
    #2e004f 0%,   
    #5a00a0 60%,  
    #2e004f 80%, 
    #2e004f 100%
  );
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(123, 0, 255, 0.06);
  margin-bottom: 48px;
  opacity: 0;
  transition: opacity 2.0s ease, transform 2.0s ease;
  will-change: transform, opacity;
  color: #fafafa;
}
.feature-row {
  flex-direction: row;
  transform: translateX(-80px);
}
.feature-row:nth-child(even) {
  flex-direction: row-reverse;
  transform: translateX(80px);
}
.feature-row.show {
  opacity: 1;
  transform: translateX(0);
}
.feature-image {
  flex: 1;
  opacity: 0;
  transition: opacity 2.0s ease; 
}
.feature-row.show .feature-image {
  opacity: 1;
}
.feature-image img {
  width: 100%;
  border-radius: 10px;
}
.feature-content {
  flex: 1;
  opacity: 0;
  transform: translateY(50px); 
  transition: transform 1s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 4s ease-out;
}
.feature-row.show .feature-content {
  transform: translateY(0);
  opacity: 1;
}
.feature-content h3 {
  margin-bottom: 12px;
}
.feature-row.show .feature-content:nth-child(1) { transition-delay: 1s; }
.feature-row.show .feature-content:nth-child(2) { transition-delay: 2s; }
.feature-row.show .feature-content:nth-child(3) { transition-delay: 3s; }
.feature-row.show .feature-content:nth-child(4) { transition-delay: 4s; }
.feature-row.show .feature-content:nth-child(5) { transition-delay: 5s; }
.feature-row.show .feature-content:nth-child(6) { transition-delay: 6s; }
/* Why Choose Us */

/* News */
.news-section {
  padding:40px 10px;
  text-align:center;
}
.fancy-news span {
  font-size: 60px;
  font-weight: 800;
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 2.5s ease;
  background: linear-gradient(90deg, #d0a852,#ffc107,#ffe819,#ffc107,#d0a852); 
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.fancy-news.show span {
  opacity: 1;
  transform: translateY(0);
}
.fancy-news.show span:nth-child(1) {
  transition-delay: 0.1s;
}
.fancy-news.show span:nth-child(2) {
  transition-delay: 0.3s;
}
.fancy-news.show span:nth-child(3) {
  transition-delay: 0.5s;
}
.news-subtitle {
  font-size: 25px;
  font-weight: 700;
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 2.5s ease;
  animation: reveal 0.8s cubic-bezier(0.68,-0.55,0.27,1.55) forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}
@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.carousel {
  margin:auto;
  overflow:hidden;
  position:relative;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  max-width: 80%;
  align-items: center;
  justify-content: center;
}
.carousel-viewport{
  overflow:hidden;
  width: 100%;
}
.track {
  display:flex;
  will-change:transform;
  transform:translate3d(0,0,0);
  gap:20px;
  padding: 10%;
  justify-content: center;
}
.news-card {
  padding:20px;
  box-shadow: 0 0 10px rgba(127, 0, 255, 0.5);
  transition: 1.8s ease;
  text-align:center;
  flex:0 0 calc((100% - 60px) / 3);
}
.news-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 20px #B84DFF, 0 0 40px #7F00FF;
}
.news-card:nth-child(odd){
  transform: translateY(30px);
}
.news-card:nth-child(even){
  transform: translateY(-30px);
}
.news-card img{
  width:80%;
  height:40%;
  align-self:center;
  border-radius:10px;
}
.news-card h3{
  margin: 10px;
  font-size: large;
  color: #D580FF;
  text-shadow: 0 0 8px #B84DFF;
}
.news-card p {
  color:#b7c6cf;
  font-size: medium;
  margin: 10px;
  flex-grow:1; 
}
.read-btn{
  align-self:center; 
  display:inline-block;
  padding:8px 16px;
  background: var(--background-gold-shimmer);
  color:#eee;
  text-decoration:none;
  border-radius:15px;
  font-weight:600;
  transition:.25s;
}
.read-btn:hover{
  background:var(--text-shimmer);
  transform:translateY(-2px);
}
.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 8px;
  background: #132026;
  color: gold;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
}
.carousel-btn.prev{
  left: 0px;
}
.carousel-btn.next{
  right: 0px;
}
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0,0,0,0.8);
  padding: 20px;
  box-sizing: border-box;
}
.modal-content {
  max-width: 800px;
  margin: 40px auto;
  background: #1c2a33;
  color: white;
  border-radius: 8px;
  padding: 20px;
}
.modal-content img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 15px;
}
.modal-content p {
  line-height: 1.6;
}
.news-detail img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}
.news-detail p {
  line-height: 1.6;
  margin-bottom: 15px;
}
.news-detail h1,h2,h3 {
  margin-bottom: 10px;
}
.close {
  color: #fff;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: var(--background-gold-shimmer);;
}


/* Tablet & Small Desktop (Up to 900px) */
@media (max-width: 900px) {
  .news-card {
    flex: 0 0 50%;
  }

  /* Tablets & Large Phones (Up to 768px) */
  @media (max-width: 768px) {
    .track {
      gap: 10%;
    }
    .fancy-news span {
      font-size: 38px;
      font-weight: 800;
    }
    .news-subtitle {
      font-size: 18px;
      font-weight: 700;
    }
    .news-card {
      flex: 0 0 100%;
    }
    .news-card:nth-child(odd),
    .news-card:nth-child(even) {
      transform: none;
    }
    .news-card h3 {
      margin: 5px;
      font-size: large;
    }
    .news-card p {
      margin: 10px;
    }
    .carousel-btn {
      display: none;
    }
  }

  /* Small Mobile Devices (Up to 600px) */
  @media (max-width: 600px) {
    .modal-content {
      margin: 20px auto;
      padding: 15px;
    }
    .modal-content img {
      max-height: 250px;
    }
  }
}
/* News */

/* FAQ */
.faq-section {
  padding:40px 10px;
}
.faq{
  max-width:80%;
  margin:20px auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
}
.faq-div h2, 
.faq-div p {
  transform: translateY(50px);  
  opacity: 0;
  transition: transform 1.0s ease-out, opacity 1.0s ease-out;
}
.faq-div.show h2, 
.faq-div p {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 1.0s;  
}
.faq-title {
  font-size: 60px;
  font-weight: 800;
  text-align:center;
}
.faq-subtitle {
  font-size: 25px;
  font-weight: 700;
  text-align:center;
}
.faq-item{
  border-bottom:1px solid #333;
  padding:15px 0;
}
.faq-question{
  display:flex;
  justify-content:space-between;
  align-items:left;
  cursor:pointer;
  font-size:18px;
}
.icon{
  font-size:22px;
  transition:transform 0.6s ease;
}
.faq-answer{
  max-height:0;
  overflow:hidden;
  color: var(--primary-accent);
  transition:max-height 0.6s ease;
  text-align: left;
}
.faq-item.active .faq-answer{
  max-height:200px;
  margin-top:10px;
}
.faq-item.active .icon{
  transform:rotate(45deg); 
}
/* FAQ */

/* Contact Us */
.contact-us {
  background: var(--background-purple-color);
  animation: shimmer 8s linear infinite;
  padding: 0;
}
.contact-us-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70vh;
}
.contact-us-div {
  flex: 1;
  padding: 60px;
  color: #ffffff;  
}
.contact-us-title {
  font-size: 60px;
  margin-bottom: 18px;
}
.contact-us-sub-title {
  font-size: 40px;
  margin-bottom: 18px;
}
.contact-us-content {
  font-size: 28px;
  line-height: 1.6;
  text-align: justify;
}
.contact-us-title,
.contact-us-content {
  opacity: 0;
  transform: translateX(-80px); /* from left */
}
.contact-us-sub-title,
.contact-us-btn {
  opacity: 0;
  transform: translateX(80px); /* from right */
}
/* Animate in */
.show-left {
  animation: slideInLeft 4s ease forwards;
}
.show-right {
  animation: slideInRight 4s ease forwards;
}
@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.contact-btn,
.contact-us-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 18px;
  border: none;
  border-radius: 10px;
  color: black;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contact-btn:hover,
.contact-us-btn:hover {
  color: #ffffff;
  background-color: #f3d449;
}
.contact-us-image {
  flex: 1;
  height: 100%;
}
.contact-us-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;     
}

@media screen and (max-width: 768px) {
  /* 1st Section */
  .about {
    text-align: center;
  }
  .about .about-title:first-child {
    font-size: 25px;
    padding: 15px 30px;
  }
  .about .about-title.gold-text-shimmer {
    font-size: 32px;
  }

  /* About Us Section */
  .about-us {
    padding-left: 5%;
    padding-right: 5%;
    justify-content: center;
    text-align: justify;
  }
  .about-us-title {
    font-size: 36px;
  }
  .about-us-content {
    font-size: 18px;
  }
  .overlay-text { 
    font-size: clamp(60px, 24vw, 140px); 
  }
  .about-us-container {
    padding-bottom: 40px;
    flex-direction: column;  /* stack items vertically */
    align-items: center;     /* center content horizontally */
  }
  .about-us-div {
    max-width: 100%;
  }
  .about-us-image {
    width: 100%;
    order: -1;     
    margin-bottom: 25px;          
  }

  /* Why Choose Us */
  .feature-row,
  .feature-row:nth-child(even) {
    flex-direction: column;
    text-align: left;
    transform: translateY(40px);
  }
  .feature-row.show {
    transform: translateY(0);
  }
  .trust-div h2 {
    font-size: 38px;
    font-weight: 800;
  }

  /* FAQ */
  .faq{
    grid-template-columns:1fr;
  }
  .faq-title {
    font-size: 34px;
    font-weight: 800;
  }
  .faq-subtitle {
    font-size: 18px;
    font-weight: 700;
  }

  /* Contact Us */
  .contact-us-container {
    flex-direction: column;
  }
  .contact-us-div {
    padding: 30px;
    max-width: 100%;         
  }
  .contact-us-title {
    font-size: 34px;
  }
  .contact-us-sub-title {
    font-size: 20px;
  }
  .contact-us-content {
    font-size: 18px;
  }
  .contact-us-image {
    width: 100%;
    order: -1;              
  }
}

@media screen and (min-width: 769px) {
  .about-us-title {
    font-size: 40px;
  }
  .about-us-content {
    font-size: 20px;
  }
  .contact-btn,
  .contact-us-btn {
    padding:6px 18px;
  }  
}

@media screen and (max-width: 420px) {
  .about-us {
    padding-left: 3%;
    padding-right: 3%;
  }
  .about-us-title {
    font-size: 30px;
  }
  .about-us-content {
    font-size: 12px;
  }
  .overlay-text {
    font-size: clamp(40px, 18vw, 120px);
  }
}
