/* ===== Root Variables ===== */
:root {
  --primary-blue: #1E40AF;
  --accent-purple: #9333EA;
  --gradient: linear-gradient(135deg, #1E40AF, #9333EA);
  --dark-text: #0F172A;
  --light-text: #64748B;
  --navbar-height: 70px;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #9333EA;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Navbar ===== */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  height: var(--navbar-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

/* Gradient Text Logo */
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #1E40AF, #9333EA, #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: all 0.3s ease;
}
.logo-text:hover {
  background: linear-gradient(135deg, #3B82F6, #C084FC, #A855F7);
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  font-weight: 500;
  color: var(--dark-text);
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--primary-blue);
}

.nav-links .btn-cta {
  padding: 0.6rem 1.2rem;
  background: var(--gradient);
  color: #fff !important;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.nav-links .btn-cta:hover {
  opacity: 0.9;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  font-size: 1.7rem;
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(100vh - var(--navbar-height));
  padding: 4rem;
  gap: 2rem;
  overflow: hidden;
  background: #fff;
}

/* Sparkling Background */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(147,51,234,0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: sparkleGlow 6s linear infinite;
}

@keyframes sparkleGlow {
  0% { background-position: 0 0; opacity: 0.15; }
  50% { background-position: 30px 20px; opacity: 0.25; }
  100% { background-position: 0 0; opacity: 0.15; }
}

/* Hero Content */
.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Rotating hero text inline */
.hero-animate {
  display: inline-block;
  position: relative;
  vertical-align: top;
  min-width: 220px;
  height: 1em;
  overflow: hidden;
}

.hero-animate .text-item {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.8s ease;
}

.hero-animate .text-item.active {
  opacity: 1;
  color: var(--accent-purple);
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-buttons a {
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: #fff;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  max-width: 600px;
  width: 100%;
  height: auto;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--navbar-height);
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(1px);
    padding: 0;
    height: 100vh;
    opacity: 0;
    overflow: hidden;
    transition: height 0.4s ease, opacity 0.4s ease, padding 0.3s ease;
  }

  .nav-links.active {
    max-height: 400px;
    opacity: 1;
    padding: 1.5rem 0;
  }

  .nav-links li {
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-image img {
    max-width: 100%;
  }
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero Load Animations ===== */
.fade-in-left {
  animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
  animation: fadeInRight 1s ease forwards;
}

.pop-in {
  animation: popIn 0.6s ease forwards;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== About Section ===== */
.about {
  padding: 6rem 4rem;
  background: #f9f9ff;
  position: relative;
  overflow: hidden;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: translateY(-10px);
}

.about-content {
  flex: 1;
  min-width: 300px;
  z-index: 1;
}

.about-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

.about-content p {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ===== Mission & Vision ===== */
.mission-vision {
  display: flex;
  gap: 3rem;
  margin: 2rem 0;
}

.mission-vision h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

.mission-vision p {
  font-size: 1rem;
  color: var(--light-text);
  line-height: 1.6;
}

/* ===== Stats with Counters ===== */
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  color: var(--dark-text);
  font-size: 1rem;
}

.stat-item i {
  color: var(--accent-purple);
  font-size: 1.4rem;
}

.counter {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-purple);
  margin-right: 0.3rem;
}

/* ===== CTA Button ===== */
.about-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .about-content h2 {
    font-size: 2rem;
  }

  .about-content p {
    font-size: 1rem;
  }

  .mission-vision {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .about-stats {
    justify-content: center;
    gap: 1.5rem;
  }

  .stat-item {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .about {
    padding: 4rem 1rem;
  }

  .about-content h2 {
    font-size: 1.8rem;
  }

  .about-content p {
    font-size: 0.95rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===== Services Section ===== */
.services {
  padding: 6rem 4rem;
  background: #fff;
}

.services .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.section-header p {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: var(--light-text);
  line-height: 1.6;
}

/* ===== Services Carousel / Grid ===== */
.services-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* ===== Service Card ===== */
.service-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

/* Overlay for text and icon */
.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.8rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
  text-align: left;
  transition: all 0.3s ease;
}

.service-overlay i {
  font-size: 2rem;
  color: var(--accent-purple);
  margin-bottom: 0.8rem;
  display: block;
}

.service-overlay h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.service-overlay p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

/* Hover effect for overlay */
.service-card:hover .service-overlay {
  transform: translateY(-5px);
}

/* ===== Pagination Dots ===== */
.services-pagination {
  display: none;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.6rem;
}

.services-pagination .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.services-pagination .dot.active {
  background: var(--accent-purple);
  transform: scale(1.2);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .services-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-carousel {
    display: flex;
    overflow: hidden;
    padding: 0 8px;
  }

  .service-card {
    flex: 0 0 100%;
    margin: 0;
    height: 380px;
    display: none;
    border-radius: 14px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease;
  }

  .service-card.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
  }

  .service-card img {
    height: 100%;
    object-fit: cover;
  }

  .service-overlay {
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.1));
  }

  .services-pagination {
    display: flex;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .service-card {
    flex: 0 0 100%;
    height: 360px;
  }

  .service-overlay h3 {
    font-size: 1.3rem;
  }

  .service-overlay p {
    font-size: 0.9rem;
  }

  .service-overlay i {
    font-size: 1.6rem;
  }
}

@media (max-width: 400px) {
  .service-card {
    height: 400px;
  }

  .service-overlay h3 {
    font-size: 1.2rem;
  }

  .service-overlay p {
    font-size: 0.85rem;
  }
}

/* ===== Pricing Section ===== */
.pricing {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.pricing .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Pricing Grid ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: #fff;
  border-radius: 15px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Popular Plan Highlight */
.pricing-card.popular {
  border: 2px solid var(--accent-purple);
  transform: scale(1.05);
  z-index: 2;
}

.ribbon {
  position: absolute;
  top: 1rem;
  right: -1rem;
  background: var(--accent-purple);
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ribbon i {
  margin-right: 0.4rem;
}

/* ===== Card Header ===== */
.pricing-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  color: var(--dark-text);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-header h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
}

.pricing-header h4 span {
  font-size: 1rem;
  color: var(--light-text);
  font-weight: 400;
}

/* ===== Card Content ===== */
.pricing-card p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.pricing-features li {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--dark-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pricing-features i {
  color: var(--accent-purple);
  font-size: 1.1rem;
}

/* ===== CTA Button ===== */
.btn.choose-plan {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  background: var(--accent-purple);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn.choose-plan i {
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.btn.choose-plan:hover {
  background: #6a2fc4;
  box-shadow: 0 8px 20px rgba(106, 47, 196, 0.4);
}

.btn.choose-plan:hover i {
  transform: rotate(15deg) scale(1.1);
}

/* ===== Footer Info ===== */
.pricing-footer {
  text-align: center;
  margin-top: 3rem;
}

.pricing-footer p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--light-text);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
}

.payment-icons i {
  font-size: 2rem;
  color: #6b7280;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.payment-icons i:hover {
  color: var(--accent-purple);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: scale(1);
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .pricing-header h4 {
    font-size: 1.8rem;
  }

  .pricing-features li {
    font-size: 0.95rem;
  }
}

/* ===== Portfolio Section ===== */
.portfolio {
  padding: 6rem 1.25rem;
  background: #f9fafb;
}

.portfolio .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.25rem;
}

.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  color: var(--dark-text);
  margin-bottom: 0.6rem;
}

.section-header p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--light-text);
  line-height: 1.6;
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Card */
.portfolio-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(10, 20, 40, 0.06);
  transition: transform 0.28s cubic-bezier(.2,.9,.32,1), box-shadow 0.28s;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(10, 20, 40, 0.12);
}

/* Badge */
.portfolio-card .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #9333EA 0%, #6D28D9 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(99, 39, 199, 0.15);
  opacity: 0;
  transform: translateY(-6px);
  animation: badgeIn 0.6s ease forwards;
}

@keyframes badgeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Preview area */
.portfolio-preview {
  width: 100%;
  height: 340px;
  background: #f3f4f6;
  border-bottom: 1px solid #e6e9ef;
  position: relative;
}

.portfolio-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  overflow-y: auto;
}

/* Fallback overlay */
.portfolio-card.iframe-noaccess .portfolio-preview::after {
  content: "Live preview unavailable. Click 'View Project' to open.";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(17,24,39,0.85);
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.5));
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}

/* Info panel */
.portfolio-info {
  padding: 1.25rem 1.25rem 1.6rem;
  background: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 0 0 auto;
}

.portfolio-info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: var(--dark-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.portfolio-info p {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  color: var(--light-text);
  margin: 0;
  line-height: 1.55;
}

.portfolio-info .btn i {
  font-size: 1rem;
  opacity: 0.9;
}

/* Highlights */
.portfolio-info .highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
}

.portfolio-info .highlights li {
  display: flex;
  align-items: center;
  gap: 0.56rem;
  font-size: 0.95rem;
  color: var(--dark-text);
  opacity: 0;
  transform: translateY(6px);
  animation: highlightAppear 0.45s ease forwards;
}

.portfolio-info .highlights li i {
  color: var(--accent-purple);
  font-size: 1.05rem;
  min-width: 20px;
}

@keyframes highlightAppear {
  to { opacity: 1; transform: translateY(0); }
}

/* CTA button */
.portfolio-info .btn {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg,#9333EA,#1E40AF);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
  margin-top: 0.8rem;
}

.portfolio-info .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(21, 0, 80, 0.12);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .portfolio-preview { height: 300px; }
  .portfolio .container { padding: 0 0.6rem; }
}

@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 1rem; }
  .portfolio-preview { height: 380px; }
  .portfolio { padding: 4rem .6rem; }
  .portfolio .container { padding: 0.3rem; }
  .portfolio-info .highlights { grid-template-columns: 1fr; }
  .portfolio-info h3 { font-size: 1.05rem; }
  .portfolio-info p { font-size: 0.95rem; }
  .portfolio-info .btn { width: 100%; padding: 0.9rem; font-size: 0.95rem; }
}

@media (max-width: 420px) {
  .portfolio-preview { height: 340px; }
  .portfolio { padding: 3rem .4rem; }
}

/* Reveal animation */
.portfolio.reveal { opacity: 0; transform: translateY(28px); transition: all .75s ease; }
.portfolio.reveal.active { opacity: 1; transform: translateY(0); }

/* ===============================
   Testimonials Section
=============================== */
.testimonials {
  padding: 6rem 1rem; /* less side padding */
  background: #f9fafc;
}

.testimonials .container {
  max-width: 100%;       /* full width container */
  margin: 0 auto;
  padding: 0 0.5rem;     /* tiny gap left/right */
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.section-header p {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: var(--light-text);
  line-height: 1.6;
}

/* ===== Testimonials Grid ===== */
.testimonials-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem; /* tiny gap between cards */
}

/* ===== Testimonial Card ===== */
.testimonial-card {
  background: #fff;
  padding: 2.5rem 2rem 2rem;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Client Photo */
.client-photo {
  width: 90px;
  height: 90px;
  margin: 0 auto -2.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}

.client-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content */
.testimonial-content {
  margin-top: 3rem;
}

.quote-icon {
  font-size: 1.5rem;
  color: var(--accent-purple);
  margin-bottom: 1rem;
  display: block;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* Rating Stars */
.testimonial-rating i {
  color: #FFD700; /* gold */
  font-size: 1.1rem;
  margin: 0 2px;
  opacity: 0;
  transform: scale(0.5);
  animation: starPop 0.5s forwards;
}

.testimonial-rating i:nth-child(1) { animation-delay: 0.2s; }
.testimonial-rating i:nth-child(2) { animation-delay: 0.4s; }
.testimonial-rating i:nth-child(3) { animation-delay: 0.6s; }
.testimonial-rating i:nth-child(4) { animation-delay: 0.8s; }
.testimonial-rating i:nth-child(5) { animation-delay: 1s; }

@keyframes starPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Client Name & Role */
.client-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1rem;
  color: var(--primary-blue);
}

.client-role {
  font-size: 0.95rem;
  color: var(--light-text);
  display: block;
  margin-top: 0.2rem;
}

/* ===== Pagination Dots (optional) ===== */
.testimonials-pagination {
  display: none; /* show only if needed */
  justify-content: center;
  margin-top: 2rem;
  gap: 0.6rem;
}

.testimonials-pagination .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonials-pagination .dot.active {
  background: var(--accent-purple);
  transform: scale(1.2);
}

/* ===== Responsive Layout ===== */
@media (max-width: 992px) {
  .testimonials-carousel {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}

@media (max-width: 576px) {
  .testimonials-carousel {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  .client-photo {
    width: 75px;
    height: 75px;
  }

  .testimonials-pagination {
    display: flex;
  }
}

/* ===== Scroll Reveal Animations ===== */
.testimonials.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.testimonials.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Contact Section ===== */
.contact {
  padding: 6rem 2rem;
  background: #f5f6f8;
  font-family: 'Inter', sans-serif;
  color: #0F172A;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 3rem;
  flex-wrap: wrap;
}

/* ===== Left Panel (Image) ===== */
.contact-image {
  flex: 1;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.contact-image:hover img {
  transform: scale(1.05);
}

/* Overlay text */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(15,23,42,0.9), rgba(15,23,42,0));
  color: #fff;
}

.image-overlay h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

/* ===== Right Panel (Form) ===== */
.contact-form {
  flex: 1;
  min-width: 320px;
  background: #fff;
  padding: 3rem 2.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.contact-form h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  color: #1E40AF;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-form p {
  font-size: 1.05rem;
  color: #64748B;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form fields */
.form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.6rem;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #9333EA;
  box-shadow: 0 0 0 3px rgba(147,51,234,0.15);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

/* Option buttons */
.btn-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.btn-option {
  padding: 0.8rem 1.2rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0F172A;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-option:hover {
  border-color: #9333EA;
  background: rgba(147,51,234,0.05);
}

.btn-option.active {
  background: #9333EA;
  color: #fff;
  border-color: #9333EA;
}

/* Submit button */
.btn-submit {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #1E40AF, #9333EA);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(147,51,234,0.25);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-image {
    height: 350px;
  }

  .contact-form {
    padding: 2.5rem 2rem;
  }

  .contact-form h2 {
    text-align: center;
  }

  .contact-form p {
    text-align: center;
  }

  .btn-options {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .contact {
    padding: 4rem 1rem;
  }

  .contact-form h2 {
    font-size: 1.8rem;
  }

  .contact-form p {
    font-size: 0.95rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.9rem;
  }
}

/* ===== Footer Section ===== */
.footer {
  background: #0F172A;
  color: #F8FAFC;
  font-family: 'Inter', sans-serif;
  padding: 5rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

/* ===== Column Styling ===== */
.footer-col {
  flex: 1;
  min-width: 250px;
}

/* ===== Branding & Socials ===== */
.footer-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 1rem;
  color: #CBD5E1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-socials a {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-right: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: linear-gradient(135deg, #1E40AF, #9333EA);
  transform: translateY(-3px);
}

/* ===== Quick Links ===== */
.footer-links h3,
.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
}

.footer-links ul li a {
  color: #CBD5E1;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a i {
  margin-right: 8px;
  color: #9333EA;
}

.footer-links ul li a:hover {
  color: #fff;
}

/* ===== Contact Info ===== */
.footer-contact ul li {
  margin-bottom: 0.8rem;
  color: #CBD5E1;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.footer-contact ul li i {
  margin-right: 10px;
  color: #1E40AF;
  font-size: 1.1rem;
}

.footer-contact ul li a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact ul li a:hover {
  color: #fff;
}

/* ===== Bottom Bar ===== */
.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #CBD5E1;
}

.footer-legal a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-col {
    min-width: 100%;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 3rem 1rem 2rem;
  }

  .footer-logo {
    font-size: 1.5rem;
  }

  .footer-tagline {
    font-size: 0.9rem;
  }

  .footer-links h3,
  .footer-contact h3 {
    font-size: 1.1rem;
  }

  .footer-links ul li a,
  .footer-contact ul li {
    font-size: 0.9rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Override existing reveal for ScrollReveal compatibility */
.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
