/* --------------------------------
         GLOBAL CSS CLASSES
-------------------------------- */ 
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;  
}

body{
  background-color: #fffefa; 
  font-family: var(--font-family-text);    
}

/* Secondary Button */
.btn-sec {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: var(--color-gray-800);
  color: var(--White);
  border: none;
  box-shadow: inset 0 0 0 1.4px var(--color-gray-500);
  padding: 16px 24px;
  text-decoration: none;
  border-radius: var(--radius-md8);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: 0.2s;
}

/* --------------------------------
     HERO SECTION CSS CLASSES
-------------------------------- */
/* USED IN CONTENT AND HOME PAGE */
.wr_for_hd1 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 40px 80px 40px;
  background: radial-gradient(ellipse 80% 60% at top center,#FF565640 0%,#FFA23930 30%,#FEEE9120 40%,#ffffff00 50%);
}
.hd1 {
  position: relative;
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-32);
  text-align: center;
}
.hd1-img {
  width: 150px;
  height: auto;
}
.hd1-img img {
  width: 100%;
  height: auto;
}
.hd1-head {
  max-width: 800px;
}

.carousel-wrapper {
  max-width: 1000px;
  font-family: var(--font-family-text);
  background-color: var(--color-accent-500);
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-xl16);
  padding: 20px;
  margin-top: 40px;
}
.fade-left,
.fade-right {
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}
.fade-left {
  left: 0;
  background: linear-gradient(to right, var(--color-accent-500), transparent);
}
.fade-right {
  right: 0;
  background: linear-gradient(to left, var(--color-accent-500), transparent);
}
.carousel {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}
.strip {
  display: flex;
  flex-shrink: 0;
  gap: 80px;
}
.strip img {
  height: 40px;
  width: auto;
  transition: transform .3s ease, filter .3s ease;
  cursor: pointer;
}

/*-----------------------
     CASE STUDY CSS
-----------------------*/
.wr_for_bo1 {
  padding: 80px 30px 0 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cs1 {
  position: relative;
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-40);
  text-align: center;
  margin-bottom: 80px;
}
.cs1-cards-grid {
  display: flex;  
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 56px;
}

.cs1-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: var(--spacing-24);  
  padding: var(--spacing-32);
  border-radius: var(--radius-xl16);
  border: 2px solid rgba(255, 255, 255, 0.05);
  background: var(--color-gray-700);
  text-align: center;
  transition: transform 0.25s ease;
}

.cs1-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1 0 0;
}

.cs1-card-content-upper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
  text-align: left;
}

.cs1-card-content-lower{
  display: flex;
  flex-direction: column;
  justify-content: center; 
  text-align: left;  
  gap: 28px;
  margin-top: 4px;
}
.cs1-card-btn {
  padding: 10px 20px;
  border-radius: var(--radius-rounded);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  color: var(--text-on-primary);
  background: var(--btn-primary-bg);
  width: fit-content;
  display: inline-block;  
  -webkit-tap-highlight-color: transparent;
}

.cs1-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 1 0 0;
}

.cs1-card-img img {
  width: 100%;
  max-width: 490px;
  height: auto;
  align-self: stretch;
  border-radius: var(--radius-xl16);
  aspect-ratio: 245/166;
  transform: scale(1);           
  transition: transform 0.2s ease;     
}
.upcoming-tag {
  display: flex;
  padding: 8px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-12);
  color: #d5a804;
  font-family:var(--font-family-text) ;
  line-height: var(--line-height-normal);
  border-radius: var(--radius-rounded);
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: #000;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

/*-----------------------
  SKILLSTAG SECTION CSS
-----------------------*/
.wr_for_bo2{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 30px 0 30px;
  background-color: #000;
}
.wr_for_bo2 h2{
  color: var(--White);
}
.skills_section {
  position: relative;
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-32);
  margin-bottom: 80px;
}
.skills-container { 
  display: flex;
  flex-direction: row;
  gap: var(--spacing-24);
  width: 100%;
}


/*-----------------------
     UI CARDS CSS
-----------------------*/
.ui-cards-section {
  position: relative;
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-40);
  text-align: center;
  margin-bottom: 80px;
}

.ui-cards-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ui-cards-section-header-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  cursor: pointer;
}
.ui-cards-grid {
  max-width: 1000px;
  overflow: hidden;
}
.ui-cards-track {
  display: flex;
  transition: transform 0.5s ease;
}
.ui-card {
  display: flex;
  align-items: center;
  flex: 0 0 calc((100% - 48px) / 3);
  margin-right: 24px;
  height: auto;
  border-radius: var(--radius-lg12); 
  background: var(--color-gray-700);
  overflow: hidden;  
}
.ui-card:nth-child(3n) {
  margin-right: 0;
}
.ui-card img {
  width: 100%;
  max-width: 490px;
  height: auto;
  aspect-ratio: 245/151;  
}

/*------------------------
     FAQ SECTION CSS
------------------------*/
.faq-section {
  position: relative;
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-32);
  margin-bottom: 40px;
}
.faqs-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  display: flex;
  flex-direction: column;
  background: #0f3a3b1d;
  border-radius: var(--radius-md8);
  border: 1.5px solid transparent;
  transition: background-color 0.3s ease;
}
.faq-item.active {
  border-color: #0f3a3b53;
}
.faq-header {
  width: 100%;
  display: flex;
  align-items: center;  
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
}
.faq-header h6{
  margin-bottom: 0 !important;
}
.faq-icon {
  color: #000;
  font-size: 28px;
  line-height: 1;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg); 
  color: var(--color-accent-400);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  text-align: left;
  transition: height 0.3s ease;
  padding: 0 20px;
}
.faq-item.active .faq-content {
  max-height: 600px; 
  padding: 0 20px 20px;
  text-align: left;
}

/*-----------------------
     HOVER EFFECTS
------------------------*/
@media (hover: hover) {
  .cs1-card:hover {
    background: #000000;
  }
  .cs1-card:hover .cs1-card-img img {
    transform: scale(0.98);
  }
  .cs1-card:hover .cs1-card-btn{
    background: var(--btn-primary-bg-hover); /* Darker shade on click */
    padding-left: 30px;
    transition: 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  .nav-btn:hover {
    background: #2a2a2a;
  }
  .secondary-btn:hover {
    background: var(--btn-secondary-hover-bg);
  }
}

/*-----------------------
  RESPONSIVE AFTER 768PX
------------------------*/
@media (max-width: 768px) {
  /* MOBILE HERO */
  .wr_for_hd1 {
    padding: 160px 20px 48px;
    background: radial-gradient(ellipse 90% 40% at top center,#FF565640 10%,#FFA23930 40%,#FEEE9120 50%,#ffffff00 60%);
  }
  .hd1-head h1 {
    font-size: var(--font-size-32);
  }
  .hd1-head p {
    font-size: var(--font-size-16);
  }
  .carousel-wrapper {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  /* MOBILE CASE STUDY */
  .wr_for_bo1 {
    padding: 48px 20px 48px;
  }
  .wr_for_bo1 h2 {
    font-size: var(--font-size-32);
  }
  .cs1 {
    gap: var(--spacing-24);
  }
  .cs1-cards-grid {
    gap: var(--spacing-24);
    width: 100%;
    height: auto;  
  }
  .cs1-card {
    flex-direction: column; 
    padding: var(--spacing-24);
    gap: var(--spacing-24);
  }
  .cs1-card-content-upper h4 {
    font-size: var(--font-size-24);
  }  
  .cs1-card-content-lower {
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: center; 
    transition: 0.25s ease;   
    gap: var(--spacing-12);
  }
  .cs1-card-img {
    flex: none;
    width: 100%;
  }
  .cs1-card-img img {
    width: 100%;
    max-width: 100%;              
    transform: scale(1);           
    transition: transform 0.5s ease;   
  }

  /* MOBILE SKILLS TAG */
  .wr_for_bo2 {
    padding: 48px 20px 12px 20px;
  }
  .skills_section h2 {
    font-size: var(--font-size-32);
  }
  .skills-container{
    flex-direction: column;
    gap: var(--spacing-24);
  }
  /* MOBILE FAQ SECTION */
  .faq-section {
    gap: var(--spacing-24);
  }
  .faq-section h2 {
    font-size: var(--font-size-32);
  }
  .faqs-container {
    gap: 20px;
  }
  .faq-header {
    text-align: left;
    padding: 12px;
  }
  .faq-header p{
    font-size: var(--font-size-20);
    font-weight: 500;
  }
  .faq-item.active .faq-content {
    padding: 0 12px 12px;
  }
}