/* ================================
   Root Variables (keep palette)
================================ */
:root {
  --clr-primary: #5c5470;   /* Deep purple-gray */
  --clr-accent: #c3acd0;    /* Lavender accent */
  --clr-bg: #f5f4f6;        /* Background */
  --clr-surface: #f9f7fc;   /* Card / surface */
  --clr-text: #2e2e2e;      /* Dark text */
  --clr-muted: #6e6e73;     /* Muted text */
  --clr-success: #86efac;   /* Green (success) */
  --clr-navbg: #ecd5fa;     /* Nav background */
  scroll-padding-top: 80px;
}

/* ================================
   Global Base
================================ */
html, body {
  overflow-x: hidden;   /* prevent horizontal scroll */
  width: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* safety for mobile transform overflows */
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.text-muted { color: var(--clr-muted) !important; }
.text-attention { font-weight: 800; color: var(--clr-primary); }

/* ================================
   Navbar
================================ */
.navbar {
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--clr-bg) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--clr-text) !important;
  transition: all 0.4s ease;
}

.navbar-brand:hover {
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 8px rgba(195, 172, 208, 0.6);
}

.nav-link {
  color: var(--clr-text) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1rem;  
  padding: 0.5rem 0.8rem;
}

.nav-link:hover {
  color: var(--clr-primary) !important;
}

/* ================================
   Hero Section
================================ */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f4f6, #f9f7fc);
}

#particles-js {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: filter 0.2s ease;
}

#particles-js:hover canvas {
  filter: drop-shadow(0 0 6px #c3acd0)
          drop-shadow(0 0 14px #c3acd0);
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: fadeUp 1.5s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-down {
  position: absolute;
  bottom: -30vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  animation: bounce 2s infinite;
  color: var(--clr-muted);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ================================
   Services Section
================================ */
#services-section {
  background: #2a2730;
  color: var(--clr-surface);
  padding: 5rem 0;
  width: 100vw;         /* ensure it spans full screen width */
  position: relative;
  overflow: hidden;     /* clip any minor overflow */
}

#services-section .service-card {
  background: var(--clr-surface);
}

/* Section title */
#services-section h2 {
  color: var(--clr-surface);
}

#services-section .service-card h5 {
  color: var(--clr-primary);
}

#services-section p {
  color: var(--clr-text);
}

.section-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: max-content;
  margin: 0 auto 2rem;
  position: relative;
  color: var(--clr-primary);
  font-weight: 700;
}

.underline-svg {
  position: absolute;
  left: 0;
  bottom: -26px;
  width: 100%;
  height: 20px;
}

.underline-svg path {
  stroke: var(--clr-accent);
  stroke-width: 6;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: var(--underline-width, 0%);
  height: 4px;
  border-radius: 3px;
  background: var(--clr-accent);
}

.service-card {
  background: var(--clr-surface);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(195, 172, 208, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  margin-bottom: 2rem;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 20px rgba(195, 172, 208, 0.6);
}

.service-card h5 {
  color: var(--clr-primary);
  margin-bottom: 1rem;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--clr-primary);
  margin-bottom: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
  color: var(--clr-accent);
  transform: scale(1.2);
}

#services-section .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
}

#services-section .col-md-4 {
  display: flex;
  justify-content: center;
}

/* Mobile fix for card spacing */
@media (max-width: 768px) {
  #services-section {
    padding: 3.5rem 1rem;
  }
  .service-card {
    width: 100%;
    max-width: 95%;
    margin: 0 auto 1.8rem;
  }
}

/* ================================
   About Section
================================ */
#about-section {
  background: var(--clr-surface);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--clr-text);
}

.about-visual img {
  max-height: 320px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.about-visual { margin-top: 2rem; }

#about-section .about-text {
  padding: 1rem 1rem;
  text-align: left;
}

#about-section .about-visual img {
  max-width: 80%;
  margin: 0 auto;
  display: block;
}

@media (max-width: 992px) {
  #about-section .about-text {
    padding: 3rem 1rem 0 1rem;
    text-align: justify;
  }
}

/* ================================
   Contact Section
================================ */
#contact-section {
  background: #2a2730;
  color: var(--clr-surface);
  width: 100vw;
  overflow: hidden;
}

#contact-section .section-title { color: var(--clr-surface); }

.contact-body { margin-top: 1rem; }

.custom-input {
  border: 2px solid var(--clr-accent);
  border-radius: 8px;
  padding: 0.8rem;
  background: var(--clr-surface);
  color: var(--clr-text);
  transition: all 0.3s ease;
}

.custom-input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 8px rgba(195, 172, 208, 0.6);
}

.btn-accent {
  background: #9772ac;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-accent:hover { background: #7b5d8b; }

.contact-info p {
  font-size: 1.1rem;
  margin: 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 1px;
}

.social-icons a {
  font-size: 1.5rem;
  margin-right: 15px;
  color: var(--clr-accent);
  transition: color 0.3s ease;
}

.social-icons a:hover { color: var(--clr-primary); }

.contact-address {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  white-space: normal;
}

.contact-info p.contact-address {
  font-size: 0.95rem;
}

.contact-info p.contact-address ion-icon {
  font-size: 1.4rem;
}


/* ================================
   Portfolio Gallery (Dark Section)
================================ */
#portfolio-gallery {
  background: #2a2730;
  color: var(--clr-surface);
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  z-index: 1; /* ensure it sits above any background particles */
}

/* Ensure the container stays visible */
#portfolio-gallery .container {
  position: relative;
  z-index: 2;
}

#portfolio-gallery .section-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: max-content;
  margin: 0 auto 3rem;
  position: relative;
  color: var(--clr-surface);
  font-weight: 700;
  text-align: center;
}

#portfolio-gallery .underline-svg {
  position: absolute;
  left: 0;
  bottom: -26px;
  width: 100%;
  height: 20px;
}

#portfolio-gallery .underline-svg path {
  stroke: var(--clr-accent);
  stroke-width: 6;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

/* ================================
   Full-Width Project Strips
================================ */
.project-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 6rem;
  transition: all 0.5s ease;
}

.project-strip.reverse {
  flex-direction: row-reverse;
}

.project-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(195, 172, 208, 0.25);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.6s ease;
}

.project-strip:hover .project-image img {
  transform: scale(1.06);
}

/* Video Showcase */
.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(195, 172, 208, 0.25);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.project-strip:hover .video-container video {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.project-info {
  flex: 1;
  text-align: left;
  color: var(--clr-surface);
}

.project-info h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--clr-navbg);
  margin-bottom: 1rem;
}

.project-info p {
  color: #ddd;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.btn-view {
  background: var(--clr-accent);
  color: #fff;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-view:hover {
  background: var(--clr-primary);
}

/* Responsive Layouts */
@media (max-width: 992px) {
  .project-strip, .project-strip.reverse {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .project-info {
    text-align: center;
  }
}

/* ================================
   Success Toaster (Lavender)
================================ */
.success-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(195, 172, 208, 0.95); /* soft lavender */
  color: #2e2e2e;
  font-weight: 600;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(195, 172, 208, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 2000;
}

.success-toast ion-icon {
  color: #5c5470;
  font-size: 1.5rem;
}

.success-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}


/* ================================
   Footer
================================ */
footer {
  background: var(--clr-surface);
  border-top: 2px solid var(--clr-accent);
  color: var(--clr-muted);
}

/* ================================
   Responsive Typography
================================ */
@media (max-width: 1400px) { .hero-title { font-size: 45px; } }
@media (max-width: 990px) { .hero-title { font-size: 30px; } }
@media (max-width: 410px) { .hero-title { font-size: 24px; } }

