/* ── VARIABLES ── */
:root {
  --purple: #6C47FF;
  --navy: #0D1B4B;
  --card-bg: rgba(255, 255, 255, 0.85);
  --muted: #5a5a7a;
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  overflow-x: hidden;
}

/* ── BACKGROUNDS ── */
.sec-a { background: linear-gradient(135deg, #fff5ee 0%, #f0eeff 40%, #e8f4ff 100%); }
.sec-b { background: linear-gradient(135deg, #f9f5ff 0%, #fff5ee 50%, #eef6ff 100%); }

/* ── BLOBS ── */
.blob-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108, 71, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.nav-sub {
  font-size: 0.65rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--purple); }

.nav-links a.active {
  color: var(--purple);
  border-bottom: 2px solid var(--purple);
  padding-bottom: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ══════════════════════════════════
   SHARED SECTION HELPERS
══════════════════════════════════ */
.section-label {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 2.5rem;
}

.section-title span {
  background: linear-gradient(90deg, #6C47FF, #a07cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ══════════════════════════════════
   HERO / HOME
══════════════════════════════════ */
#home {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  overflow: hidden;
}

#home .blob:nth-child(1) { width: 420px; height: 420px; background: #ffd6b8; top: -80px; left: -100px; }
#home .blob:nth-child(2) { width: 350px; height: 350px; background: #c9beff; bottom: -60px; left: 5%; }
#home .blob:nth-child(3) { width: 300px; height: 300px; background: #b8d9ff; top: 10%; right: -80px; }
#home .blob:nth-child(4) { width: 200px; height: 200px; background: #ffe4c9; bottom: 15%; right: 10%; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 0.8s ease both;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy);
}

.grad-purple {
  background: linear-gradient(90deg, #6C47FF, #a07cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-innovation {
  background: linear-gradient(90deg, #F4622A, #E8436B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--muted);
  line-height: 1.78;
  max-width: 560px;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 0.4rem 0;
}

.hero-brand-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.hero-divider {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, #ccc, transparent);
}

.hero-brand-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
}

.hero-brand-text span {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  border: 2px solid var(--purple);
  border-radius: 50px;
  padding: 0.8rem 1.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 71, 255, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
  border-radius: 50px;
  padding: 0.8rem 1.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-2px);
}

/* ══════════════════════════════════
   ABOUT
══════════════════════════════════ */
#about {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}

#about .blob:nth-child(1) { width: 400px; height: 400px; background: #e8e0ff; top: -80px; right: -80px; }
#about .blob:nth-child(2) { width: 320px; height: 320px; background: #ffe8d6; bottom: -60px; left: -60px; }

.about-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px; /* widened from 780px to fit two columns */
  margin: 0 auto;
  text-align: center;
}

.about-inner > p {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ── Two-column layout ── */
.about-layout {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 1.8rem;
  align-items: stretch; /* makes both columns equal height */
}

/* ── Left: Description Box ── */
.about-card.about-description {
  background: linear-gradient(160deg, #f3e8ff 0%, #ffd6cc 50%, #c7f5e8 100%);
  border: 1px solid rgba(108, 71, 255, 0.1);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
  text-align: justify;
  line-height: 1.85;
  font-size: 1rem;
  color: #1e1e1e;
  height: 100%;
  box-sizing: border-box;
}

.about-card.about-description p {
  margin: 0;
  font-size: 0.95rem;
  color: #1e1e1e;
  line-height: 1.85;
}

/* ── Right: Cards Column ── */
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid rgba(108, 71, 255, 0.1);
  border-radius: 16px;
  padding: 1.4rem;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: justify;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(108, 71, 255, 0.13);
}

.about-card .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }

.about-card h4 {
  font-weight: 700;
  color: #1e1e1e;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.about-card p {
  font-size: 0.82rem;
  color: #1e1e1e;
  line-height: 1.6;
  margin: 0;
}

/* Individual card colors — nth-child targets within .about-cards */
.about-cards .about-card:nth-child(1) {
  background: linear-gradient(135deg, #eeeaf1, #8839db);
}

.about-cards .about-card:nth-child(2) {
  background: linear-gradient(135deg, #ffe8d6, #ec7659);
}

.about-cards .about-card:nth-child(3) {
  background: linear-gradient(135deg, #dff7f2, #31b690);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-card.about-description {
    height: auto;
  }
}

/* ══════════════════════════════════
   SERVICES
══════════════════════════════════ */
#services {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}

#services .blob:nth-child(1) { width: 500px; height: 500px; background: #e8e0ff; top: -100px; right: -100px; }
#services .blob:nth-child(2) { width: 400px; height: 400px; background: #ffe8d6; bottom: -80px; left: -80px; }

.services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(108, 71, 255, 0.1);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.6s ease both;
  position: relative;
  overflow: hidden;        /* clips video to card corners */
  border-radius: 16px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(108, 71, 255, 0.15);
}

.service-icon { font-size: 1.9rem; margin-bottom: 0.8rem; display: block; }
.service-card h3 { font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.4rem; }
.service-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

.service-card:nth-child(1) { animation-delay: 0.05s;  }
.service-card:nth-child(2) { animation-delay: 0.12s; }
.service-card:nth-child(3) { animation-delay: 0.18s; }
.service-card:nth-child(4) { animation-delay: 0.24s; }
.service-card:nth-child(5) { animation-delay: 0.30s; }
.service-card:nth-child(6) { animation-delay: 0.36s; }

.service-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* fills without stretching */
  z-index: 0;
}
/* Semi-transparent dark overlay so text is readable */
.service-overlay {
  position: absolute;
  inset: 0;                /* shorthand for top/right/bottom/left: 0 */
  background: rgba(0, 0, 0, 0.45);  /* darken to taste */
  z-index: 1;
}

/* Text content sits on top of video + overlay */
.service-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;    /* adjust spacing as needed */
}

/* Text must be white so it reads against the dark overlay */
.service-content h3 {
  color: #ffffff;
}

.service-content p {
  color: rgba(255, 255, 255, 0.85);
}

.service-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* Optional: subtle lift on hover */
.service-card:hover .service-overlay {
  background: rgba(1, 17, 37, 0.35);
  transition: background 0.3s ease;
}
/* ══════════════════════════════════
   PROJECTS
══════════════════════════════════ */
#projects {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}

#projects .blob:nth-child(1) { width: 450px; height: 450px; background: #c9beff; top: -60px; left: -80px; }
#projects .blob:nth-child(2) { width: 380px; height: 380px; background: #ffd6b8; bottom: -60px; right: -60px; }

.projects-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.proj-card {
  background: var(--card-bg);
  border: 1px solid rgba(108, 71, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: justify;
  flex-direction: column;
  display: flex;
  text-align: center;
  /* height: 100%;  */
}

.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(108, 71, 255, 0.15);
}

.proj-thumb {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}

.thumb-purple { background: linear-gradient(135deg, #6C47FF, #a07cff); }
.thumb-orange { background: linear-gradient(135deg, #f19a77, #eb6f8e); justify-content: center; }
.thumb-blue   { background: linear-gradient(135deg, #3B82F6, #7f62f3); }

.proj-body { padding: 1.3rem; text-align: center; text-align:justify; display: flex; flex-direction: column; flex: 1;}
.proj-body h4 { font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; font-size: 0.95rem; text-align: center }
.proj-body p  { font-size: 0.82rem; color: var(--muted); line-height: 1.6; flex-direction: column;text-align: center; margin: 0 auto 0.5rem auto; display: flex; } 

.book-gallery {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: nowrap;
  justify-content: center;
}

.book-img {
  width: 48%;
  height: 150px;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.book-img:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.proj-tag { margin-top: 0.7rem; font-size: 0.72rem; font-weight: 700; margin-top: auto; align-self: center;}
.tag-purple { color: var(--purple); }
.tag-orange { color: #F4622A; }
.tag-blue   { color: #3B82F6; }

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
#contact {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}

#contact .blob:nth-child(1) { width: 450px; height: 450px; background: #ffd6b8; top: -80px; left: -100px; }
#contact .blob:nth-child(2) { width: 380px; height: 380px; background: #c9beff; bottom: -60px; right: -80px; }

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro { margin-bottom: 2rem; }

.contact-intro p {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto 0.8rem;
}

.contact-cta {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  background: linear-gradient(90deg, #337a30, #318652);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid rgba(108, 71, 255, 0.1);
  border-radius: 18px;
  padding: 1.5rem 1.2rem;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(108, 71, 255, 0.15);
}

.c-icon { font-size: 1.7rem; }

.c-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  word-break: break-word;
  text-align: center;
}

.contact-card a:hover { color: #F4622A; }

.c-address {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  text-align: center;
  padding: 1.2rem;
  font-size: 0.98rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(108, 71, 255, 0.08);
}

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  .services-grid,
  .contact-cards,
  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    padding: 1rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(108, 71, 255, 0.1);
    gap: 1rem;
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .services-grid,
  .contact-cards,
  .about-cards,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-brand { flex-direction: column; }
  .hero-divider { width: 50px; height: 1px; }
}
