@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&family=Playfair+Display:wght@400;900&display=swap');

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a{
  text-decoration: none;
  color: #080808;
}
a:hover{
  text-decoration: none;
}
.slide-span{
  color: #f19203;
}

html, body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}






.hero-carousel {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gradientShift 10s ease infinite;
  background: linear-gradient(135deg, 	#1f8181, #27aaaa, #e1e4e4, #f57600);

  background-size: 300% 300%;
  overflow: hidden;
}

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

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0% 8%;
  color: #fff;
  opacity: 0;
  background: rgba(0, 0, 0, 0.35);
  clip-path: circle(0% at 100% 100%);
  transform: scale(1.02);
}

.slide.active {
  z-index: 2;
  animation: rippleFadeIn 1.5s ease forwards;
}

.slide.exit {
  z-index: 1;
  animation: rippleFadeOut 1.5s ease forwards;
}

@keyframes rippleFadeIn {
  to {
    clip-path: circle(150% at 100% 100%);
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rippleFadeOut {
  to {
    clip-path: circle(0% at 100% 100%);
    opacity: 0;
    transform: scale(0.98);
  }
}

.content {
  width: 50%;
  margin-top: 10%;
}

.content h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 3.6rem;
  margin-bottom: 1.5rem;
}

.content p {
  font-size: 1.2rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.cta-btn {
  padding: 0.9rem 2rem;
  border: 1px solid beige;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

/* Glow effect on hover */
.cta-btn:hover {
  color: #ffdd59; /* bright color */
  border-color: #ffdd59;
  box-shadow: 0 0 10px #ffdd59, 0 0 20px #ffdd59, 0 0 30px #ffdd59;
  transform: scale(1.05);
}


.image {
  width: 50%;
  display: flex;
  justify-content: flex-end;
}

.image img {
  max-width: 600px;
  width: 100%;
}

/* =========================
   TABLET (≤ 1024px)
========================= */
@media (max-width: 1024px) {
  .hero-carousel {
    height: 100vh;
  }

  .slide {
    padding: 0 6%;
  }

  .content h1 {
    font-size: 2.8rem;
  }

  .content p {
    font-size: 1.1rem;
  }

  .image img {
    max-width: 480px;
  }
}

/* =========================
   MOBILE (≤ 768px)
========================= */
@media (max-width: 768px) {
  .hero-carousel {
    height: 100vh;
  }

  .slide {
    flex-direction: column-reverse;
    justify-content: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .content,
  .image {
    width: 100%;
  }

  .content h1 {
    font-size: 2.2rem;
    line-height: 1.25;
  }

  .content p {
    font-size: 1rem;
    max-width: 100%;
  }

  .cta-btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
  }

  .image {
    justify-content: center;
  }

  .image img {
        padding-top: 40px;

    max-width: 320px;
    width: 100%;
  }
}

/* =========================
   SMALL MOBILE (≤ 480px)
========================= */
@media (max-width: 480px) {
  .hero-carousel {
    height: 90vh;
    
  }

  .content h1 {
    font-size: 1.9rem;
  }

  .content p {
    font-size: 0.95rem;
  }

  .image img {
    max-width: 230px;
    padding-top: 30px;
  }
}


/* === ABOUT SECTION FIXED & PERFECT === */

.about-page {
  width: 100%;
  padding: 4rem 1rem 1rem 1.5rem !important ;
}

/* Each row */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

/* Reverse row */
.about-row.reverse {
  direction: rtl;
}
.about-row.reverse > * {
  direction: ltr;
}

/* Text */
.about-text h2 {
  font-size: 1rem !important;
  margin-bottom: 1.5rem;
  color: #27aaaa;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #374151;
  margin-bottom: 1.4rem;
}

/* Images */
.about-image {
  margin-top: 1%;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.08);
}

/* =========================
   TABLET (≤1024px)
========================= */
@media (max-width: 1024px) {
  .about-page {
    padding: 3rem 3rem 2rem 3rem;
  }

  .about-row {
    gap: 2rem;
  }

  .about-text h2 {
    font-size: 1.6rem;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .about-image {
    height: 200px;
  }
}

/* =========================
   MOBILE (≤768px)
========================= */
@media (max-width: 768px) {
  .about-page {
    padding: 5rem 5px 2rem 5px; /* 5px left/right */
  }

  .about-row {
    grid-template-columns: 1fr; /* stack vertically */
    gap: 1.5rem;
    align-items: start; /* ensure text + image align at top */
  }

  .about-row.reverse {
    direction: ltr; /* keep natural flow */
  }

  .about-text h2 {
    font-size: 1.4rem;
    text-align: left; /* start from same line */
  }

  .about-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left; /* start from same line */
  }

  .about-image {
    height: 180px;
  }
}

/* =========================
   SMALL MOBILE (≤480px)
========================= */
@media (max-width: 480px) {
  .about-text h2 {
    font-size: 1.2rem;
  }

  .about-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .about-image {
    height: 150px;
  }
}
.faqs-page-p{
text-align: center;

}
.faqs-page {
  padding: 5rem 5rem;
  background: #f9fbff;
}

.faqs-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.faq-item {
  border: 1px solid #0057ff; 
  background: transparent;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 12px 30px rgba(0, 87, 255, 0.15);
  transform: translateY(-3px);
} 

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 2.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  color: #0057ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.chevron {
  font-size: 1.4rem;
  color: #0057ff;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: #444;
  line-height: 1.6;
}

/* Active state */
.faq-item.active .faq-answer {
  max-height: 260px;
}

.faq-item.active .chevron {
  transform: rotate(90deg);
}
.faq-item {
  align-self: flex-start;
}
/* =========================
   TABLET (≤1024px)
========================= */
@media (max-width: 1024px) {
  .faqs-page {
    padding: 4rem 3rem;
  }

  .faq-grid {
    grid-template-columns: 1fr; /* stack vertically */
    gap: 1.5rem;
  }

  .faq-question {
    padding: 1.8rem;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 1rem;
  }
}

/* =========================
   MOBILE (≤768px)
========================= */
@media (max-width: 768px) {
  .faqs-page {
    padding: 1rem 10px;
  }

  .faq-title {
    font-size: 3.2rem;
  }

  .faq-question {
    padding: 1.6rem;
    font-size: 0.95rem;
    color: #080808;
  }

  .faq-answer {
    padding: 0 0.8rem;
    color: #080808;

  }

  .chevron {
    font-size: 1.2rem;
  }
}

/* =========================
   SMALL MOBILE (≤480px)
========================= */
@media (max-width: 480px) {
  .faqs-title {
    font-size: 1.9rem;
  }

  .faq-question {
    padding: 1.4rem;
    font-size: 0.9rem;
  }

  .faq-answer p {
    font-size: 0.88rem;
  }

  .chevron {
    font-size: 1rem;
  }
}
.capabilities-page {
  padding: 6rem 5%;
  background: #f5f5f5;
}

.capabilities-title {
  text-align: center;
  margin-left: 20px;
  font-family: 'Playfair Display', serif;
  font-weight: 900; /* ultra-bold */
  font-size: 7rem;
  line-height: 1; /* keep it tight */
  margin-bottom: 0.5rem;

  /* Compress vertically */
  display: inline-block; /* needed for transform */
  transform: scaleY(0.6); /* 80% height, same font size */
}


.capabilities-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #555;
}

/* Grid layout: 4 per row */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0; /* borders only where cards touch */
}

/* Individual cards */
.capability-card {
  position: relative;
  padding: 3rem 2rem;
  min-height: 400px; /* taller card */
  border-right: 1px solid rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  background: transparent; /* default */
  overflow: hidden;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Remove right border for last column/row */
.capability-card:nth-child(4n) { border-right: none; }
.capability-card:nth-last-child(-n+4) { border-bottom: none; }

/* Text */
.capability-card h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.capability-card p {
  margin: 0;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.capability-card .chevron {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: #0057ff;
  z-index: 2;
  transition: color 0.4s ease;
}

/* Grey overlay pseudo-element */
.capability-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(128,128,128,0.5); /* grey overlay */
  border-radius: 4px;
  transform: scale(0);
  opacity: 0;
  transition: none;
  z-index: 1;
}

/* Pop card on hover */
.capability-card.pop {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 15px 30px rgba(0,85,255,0.25);
  border-color: transparent; /* hide borders */
}

/* Text color on hover */
.capability-card.pop h3,
.capability-card.pop p,
.capability-card.pop .chevron {
  color: #080808;
}

/* Overlay animation classes controlled by JS */
.capability-card.animate-grey::before {
  animation: greyInOut 0.6s forwards;
}

/* Keyframes for grey overlay: expand from center and fade */
@keyframes greyInOut {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  40% {
    transform: scale(1.1);
    opacity: 1; /* grey visible */
  }
  100% {
    transform: scale(1.2);
    opacity: 0; /* fade out leaving white */
  }
}

/* =========================
   LARGE DESKTOP / 1200px
========================= */
@media(max-width: 1200px){
  .capabilities-grid { grid-template-columns: repeat(3,1fr); }
  .capability-card:nth-child(3n) { border-right: none; }
  .capability-card:nth-last-child(-n+3) { border-bottom: none; }
}

/* =========================
   TABLET / 768px
========================= */
@media(max-width: 768px){
  .capabilities-grid { grid-template-columns: repeat(2,1fr); }
  .capability-card:nth-child(2n) { border-right: none; }
  .capability-card:nth-last-child(-n+2) { border-bottom: none; }

  .capabilities-title {
    font-size: 4.5rem;
    transform: scaleY(0.65);
  }

  .capability-card {
    padding: 2rem 1.5rem;
    min-height: 350px;
  }

  .capability-card h3 {
    font-size: 1.3rem;
  }

  .capability-card p {
    font-size: 0.95rem;
  }

  .capability-card .chevron {
    font-size: 1.3rem;
  }
}

/* =========================
   MOBILE / 480px
========================= */
@media(max-width: 480px){
  .capabilities-grid { grid-template-columns: 1fr; }
  .capability-card { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.15); }

  .capabilities-title {
    font-size: 3rem;
    transform: scaleY(0.7);
  }

  .capability-card {
    padding: 1.5rem 1rem !important;
    min-height: 250px;
    margin-bottom: 5px;
    background-color: #fff;
    box-shadow: 0 15px 30px rgba(0,85,255,0.25);

    border-radius: 5px;
  }

  .capability-card h3 {
    font-size: 1.1rem;
  }

  .capability-card p {
    font-size: 0.9rem;
  }

  .capability-card .chevron {
    font-size: 1.2rem;
  }
}



.testimonials-visionaries {
  padding: 3rem 6%;
  background: #f4f4f4;
  overflow: hidden;
}

.section-title {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #202024;
  transform: scaleY(0.7);
}

/* parent wrapper */
.section-title-wrapper {
  text-align: center;
}


/* Viewport */
.testimonial-carousel {
  overflow: hidden;
  width: 100%;
}

/* Track */
.testimonial-track {
  display: flex;
  gap: 2rem;
  align-items: flex-start; /* allows different heights */
  will-change: transform;
}

/* Card */
.testimonial-card {
  flex: 0 0 430px;
  background: #2d2d2d; /* dark grey */
  color: #fff;
  padding: 4.5rem 3.5rem 5rem;
  position: relative;
  width: 500px;

  /* SoftServe-style border shadow */
  box-shadow: 10px 10px 0 #0a32ff;

  opacity: 0.6;
  transform: scale(0.85);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Active */
.testimonial-card.active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
}

/* Name */
.testimonial-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

/* Role */
.testimonial-card .role {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #ccc;
  margin-bottom: 1.5rem;
}

/* Text */
.testimonial-card .text {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Quotes */
.testimonial-card .quote {
  position: absolute;
  top: -30px;
  right: 20px;
  font-size: 6rem;
  font-weight: 900;
  color: #0a32ff;
  pointer-events: none;
}
/* =========================
   Tablet / 768px
========================= */
@media(max-width: 768px){
  .testimonial-card {
    flex: 0 0 320px; /* wider than before */
    width: 320px;
    padding: 2.5rem 1.8rem 3rem;
  }

  .testimonial-card h3 { font-size: 1.1rem; }
  .testimonial-card .role { font-size: 0.85rem; }
  .testimonial-card .text { font-size: 0.95rem; line-height: 1.5; }
  .testimonial-card .quote { font-size: 5rem; top: -25px; }
}

/* =========================
   Mobile / 480px
========================= */
@media(max-width: 480px){
  .testimonial-card {
    flex: 0 0 260px !important; /* wider than previous 220px */
    width: 260px !important;
    padding: 2rem 1.5rem 2.5rem;
  }

  .testimonial-card h3 { font-size: 1rem; }
  .section-title {
    font-size: 2.4rem !important;
  }
  .testimonial-card .role { font-size: 0.8rem; }
  .testimonial-card .text { font-size: 0.9rem; line-height: 1.4; }
  .testimonial-card .quote { font-size: 4.5rem; top: -20px; }
}

.achievements {
  position: relative;
  min-height: 90vh;
  background-image: url("../images/achievements5.jpeg"); /* replace */
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dark overlay */
.achievements-overlay {
  background: rgba(0, 0, 0, 0.65);
  width: 100%;
    min-height: 90vh;

  height: 100%;
  padding: 8rem 2rem;
  text-align: center;
}

/* Wave */
.wave-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  fill: #fdf9f9;
}

/* Title */
.section-title-achievement {
  text-align: center;
  margin-left: 20px;
  font-family: 'Playfair Display', serif;
  font-weight: 900; /* ultra-bold */
  font-size: 7rem;
  color: #fff;
  line-height: 1; /* keep it tight */
  margin-bottom: 0.5rem;

  /* Compress vertically */
  display: inline-block; /* needed for transform */
  transform: scaleY(0.6); /* 80% height, same font size */
}

/* Stats layout */
.stats {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat h3 {
  font-family: 'Rock Salt', cursive;
  font-size: 4.5rem;
  color: #f5f5f5;
  font-weight: 900;
}

.stat p {
  color: #ccc;
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.8rem;
  }

  .stat h3 {
    font-size: 3rem;
  }
}

/* =========================
   Tablet / 768px
========================= */
@media (max-width: 1024px) {
  .achievements {
    background-attachment: scroll; /* fix for mobile/tablet */
    min-height: 70vh;
  }

  .achievements-overlay {
    padding: 5rem 2rem;
  }

  .section-title-achievement {
    font-size: 4.5rem;
    transform: scaleY(0.65);
    margin-bottom: 1.5rem;
  }

  .stats {
    gap: 2.5rem;
  }

  .stat h3 {
    font-size: 3rem;
  }

  .stat p {
    font-size: 1rem;
  }
}

/* =========================
   Mobile / 480px
========================= */
@media (max-width: 480px) {
  .achievements {
    min-height: 60vh;
        background-attachment: scroll; /* prevent zoom effect */

  }

  .achievements-overlay {
    padding: 4rem 1rem;
  }

  .section-title-achievement {
    font-size: 3rem;
    transform: scaleY(0.7);
    margin-bottom: 1rem;
  }

  .stats {
    gap: 1.5rem;
    flex-direction: column; /* stack vertically */
  }

  .stat h3 {
    font-size: 2.2rem;
  }

  .stat p {
    font-size: 0.95rem;
  }

  .wave-top {
    height: 80px;
  }
}
.motivation {
  padding: 3rem 4rem;
  background: #fff; /* White background */
}

.motivation-wrapper {
  max-width: 900px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Image */
.motivation-image {
  flex: 1;
}

.motivation-image img {
  width: 100%;
  height: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
}
/* GIF */
.motivation-gif {
  width: 100%;
  height: auto;       /* maintain original aspect ratio */
  max-height: 450px;  /* optional: limits how tall it gets */
  object-fit: contain; /* ensures whole GIF fits */
  border-radius: 12px;
  display: block;     /* removes extra bottom spacing */
  margin: 0 auto;     /* centers horizontally if smaller than container */
}




/* Content */
.motivation-content {
  flex: 1;
}

.motivation-content h2 {
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1.1;
  color: #666262;

  display: inline-block;
  transform: scaleY(0.95);
}



.motivation-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #333; /* Dark gray for paragraph readability */
  max-width: 500px;
}

.motivation-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 9.3rem;

  background: #0057ff; 
  color: #fff;

  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;

  border: none;
  cursor: pointer;

  box-shadow: 0 10px 25px rgba(225, 6, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.motivation-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(225, 6, 0, 0.45);
}

.motivation-btn:active {
  transform: translateY(-1px);
}


/* =========================
   Responsive: Tablet & Mobile
========================= */
@media (max-width: 768px) {
  .motivation-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .motivation-content h2 {
    font-size: 2.5rem;
    transform: scaleY(0.75);
  }

  .motivation-content p {
    font-size: 1rem;
    max-width: 100%;
    margin: 0 auto 1rem;
  }

  .motivation-btn {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
  }

  .motivation-image img,
  .motivation-gif {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .motivation-wrapper {
    padding: 1rem;
    gap: 1rem;
  }

  .motivation-content h2 {
    font-size: 2rem;
    transform: scaleY(0.8);
  }

  .motivation-btn {
    padding: 0.7rem 1.8rem;
    font-size: 0.9rem;
  }

  .motivation-image img,
  .motivation-gif {
    max-height: 220px;
  }
}

/* parent wrapper */
.section-title-wrapper {
  text-align: center;

}


/* Responsive */
@media (max-width: 992px) {
    /* Hero section adjustments */
  #hero .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
    text-align: center;
  }
}

.main {
  position: relative;
  background: #fff;
  z-index: 2;
}


.blogs{
  margin-top: 5%;
  height: 100vh ;
}





.blog-grid {
  width: 80%;
  margin: 0 auto; 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}


.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.articles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.all-article{
  margin-right: 10rem;
  color: #0057ff;
  font-weight: bold;
}


@media (max-width: 768px) {
  .articles {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.blog-meta {
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.blog-card {
  background: #fff;
  height: 420px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(9, 12, 20, 0.726);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}




/* Image wrapper with spacing */
.blog-image-wrapper {
  padding: 1.2rem;
}

.blog-image-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Content */
.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.8rem;
  line-height: 1.2;
  color: #413e3e;
}
/* =========================
   Responsive: Tablet / 768px
========================= */
@media (max-width: 768px) {
  .articles {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-left: 5%;
    margin-right: 5%;
  }

  .section-title-blogs {
    font-size: 2rem !important;
    transform: scaleY(0.7);
    margin-left: 0;
  }

  .all-article {
    font-size: 0.95rem;
    margin-right: 0;
  }

  .blog-grid {
    width: 90%;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-card {
    height: auto;
  }

  .blog-image-wrapper img {
    height: 180px;
  }

  .blog-content h3 {
    font-size: 1.2rem;
  }
}

/* =========================
   Responsive: Mobile / 480px
========================= */
@media (max-width: 480px) {

   .blogs {
    height: auto !important;
    margin-bottom: 30px;
  }

  .articles {
    display: block;                 /* ✅ stack children */
    margin: 10% 5% 7% 5%;
    overflow-x: hidden;
  }

  .articles p {
    display: block;                 /* ✅ force block */
    width: 100%;
  }

  .section-title-b {
    font-size: 1.8rem;
    margin-bottom: 6px;             /* spacing between texts */
    margin-left: 0;                 /* reset desktop margin */
  }
  .all-article{
    margin-left: 40%;
    text-decoration: underline;
  }

 

  .blog-grid {
    width: 95%;
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .blog-image-wrapper img {
    height: 150px;
  }

  .blog-content h3 {
    font-size: 1rem;
  }
}



.projects {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  padding: 2rem 2rem;
}
.projects-header {
  text-align: center;
  margin-bottom: 2.5rem;
}



.projects-header h2 span {
  color: #1a73e8;
}

.projects-header p {
  font-size: 1rem;
  color: #666;
  margin-top: 0.5rem;
}


.projects-track {
  display: flex;
  width: max-content;
  animation: scrollProjects 40s linear infinite;
}

.project-item {
  flex: 0 0 auto;
  text-align: center;
  margin: 0 2rem;
}

.project-item img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.project-item img:hover {
  transform: scale(1.05);
}

.project-item p {
  margin-top: 0.8rem;
  font-size: 1.2rem;
  color: #333;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Infinite loop animation */
@keyframes scrollProjects {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .project-item img {
    width: 220px;
    height: 150px;
  }
  .project-item p {
    font-size: 1rem;
  }
}

/* ============================= */
/* Newsletter popup animations  */
/* ============================= */

.blur-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  z-index: 50;
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

/* Popup message box */
.popup-message {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%) scale(0.8);
  background: white;
  color: #2ecc71;
  padding: 30px 50px;
  border-radius: 20px;
  box-shadow: 0px 8px 30px rgba(0,0,0,0.3);
  text-align: center;
  opacity: 0;
  z-index: 100;
  transition: all 0.5s ease;
  font-weight: 600;
}

.popup-message.show {
  opacity: 1;
  transform: translate(-50%, 50%) scale(1);
}

/* Success and Error colors */
.popup-message p.success {
  color: #2ecc71;
}

.popup-message p.warning,
.popup-message p.error {
  color: #e74c3c;
}

/* Subtle animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Pulse glow around popup */
.popup-message.show {
  animation: popupPulse 1s ease-in-out infinite alternate;
}

@keyframes popupPulse {
  from { box-shadow: 0 0 10px rgba(46, 204, 113, 0.4); }
  to { box-shadow: 0 0 25px rgba(46, 204, 113, 0.8); }
}


