:root {
  --navy-dark: #060B24;
  --navy-mid: #0B1230;
  --blue: #41BFF5;
  --white: #ffffff;
  --muted: #C7D2FE;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  overflow-x: hidden;
}

/* ===============================
   BACKGROUND
================================ */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease;
}

.bg-slide.active {
  opacity: 1;
}

.page-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(6,11,36,0.65),
    rgba(11,18,48,0.75)
  );
}

/* ===============================
   HEADER
================================ */
.header {
  position: relative;
  width: 100%;
  z-index: 10;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 16px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* LOGO */
.logo {
  align-self: flex-start;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

/* ===============================
   NAV WRAPPER
================================ */
.nav-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;

  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.nav-wrapper.open {
  max-height: 360px;
}

/* ===============================
   NAV
================================ */
.nav {
  display: flex;
  gap: 28px;
  align-items: center;

  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-wrapper.open .nav {
  opacity: 1;
  transform: translateY(0);
}

/* NAV LINKS */
.nav a {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

/* ✅ UNDERLINE (FIXED) */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* CLICK FEEDBACK */
.nav a:active {
  color: #8fdcff;
}

/* ===============================
   HAMBURGER
================================ */
.hamburger {
  position: absolute;
  right: 24px;
  top: 18px;

  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===============================
   HERO (FIXED SPACING)
================================ */
.hero {
  padding-top: 24px;
  min-height: calc(100vh - 96px);

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 12px;
}

.tagline {
  font-size: 20px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 22px;
}

.hero-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 34px;
}

.btn-primary {
  display: inline-flex;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #02131F;
  font-weight: 600;
  text-decoration: none;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 900px) {
  .hero {
    min-height: auto;   /* 🔑 REMOVE forced height */
    margin-top: 60px;
     /* 🔑 small, controlled spacing */
  }
  

  .hamburger {
    display: flex;
  }

  .nav {
    flex-direction: column;
    gap: 18px;
    background: rgba(6,11,36,0.96);
    border-radius: 18px;
    padding: 22px 28px;
  }

  .nav a {
    font-size: 18px;
    font-weight: 600;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .logo img {
    height: 42px;
  }


}



/* ===============================
   DESKTOP RESET (CRITICAL)
================================ */
@media (min-width: 901px) {

  .nav-container {
    flex-direction: row;
    height: 72px;
  }

  .nav-wrapper {
    max-height: none;
    overflow: visible; /* 🔑 FIXES UNDERLINE */
  }

  .nav {
    opacity: 1;
    transform: none;
  }

  .hamburger {
    display: none;
  }
}



/* ===============================================================================SERVICES SECTION================================ */
.services {
  padding: 96px 24px;
  position: relative;
}

.services-inner {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 64px;
  line-height: 1.6;
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* CARD */
.service-card {
  background: rgba(6, 11, 36, 0.75);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: left;

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* HOVER */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services {
    padding: 64px 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}





/* ===============================================================================CRAFT DIGITAL — PROCESS(WHITE BACKGROUND)================================================= */
.cd-process {
  background: #ffffff;
  color: #0B1230;
  padding: 96px 24px;
}

.cd-process-inner {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.cd-process-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cd-process-subtitle {
  font-size: 18px;
  color: #4b5563;
  max-width: 640px;
  margin: 0 auto 72px;
  line-height: 1.6;
}

/* STEPS GRID */
.cd-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* STEP CARD */
.cd-process-step {
  background: #f9fafb;
  border-radius: 18px;
  padding: 36px 28px;
  text-align: left;

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cd-process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* STEP NUMBER */
.cd-step-number {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #41BFF5;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

/* STEP TITLE */
.cd-process-step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* STEP TEXT */
.cd-process-step p {
  font-size: 16px;
  color: #374151;
  line-height: 1.6;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
  .cd-process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cd-process {
    padding: 72px 20px;
  }

  .cd-process-title {
    font-size: 32px;
  }

  .cd-process-steps {
    grid-template-columns: 1fr;
  }
}






/* =============================================================CRAFT DIGITAL — PORTFOLIO(WHITE BACKGROUND)================================================== */
.cd-portfolio {
  background: #ffffff;
  color: #0B1230;
  padding: 96px 24px;
}

.cd-portfolio-inner {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.cd-portfolio-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cd-portfolio-subtitle {
  font-size: 18px;
  color: #4b5563;
  max-width: 640px;
  margin: 0 auto 72px;
  line-height: 1.6;
}

/* GRID */
.cd-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

/* ITEM */
.cd-portfolio-item {
  text-align: left;
  transition: transform 0.35s ease;
}

.cd-portfolio-item:hover {
  transform: translateY(-6px);
}

/* IMAGE PLACEHOLDER */
.cd-portfolio-thumb {
    width: 100%;
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
}

.cd-portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: centre top;
    display: block;
    transition: transform 0.4s ease;
}

.cd-portfolio-item:hover .cd-portfolio-thumb img {
    transform: scale(1.05);
}

/* TEXT */
.cd-portfolio-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cd-portfolio-item p {
  font-size: 16px;
  color: #374151;
  line-height: 1.6;
}

/* CTA */
.cd-portfolio-cta {
  margin-top: 64px;
}

.cd-portfolio-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: #41BFF5;
  color: #02131F;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cd-portfolio-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
  .cd-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cd-portfolio {
    padding: 72px 20px;
  }

  .cd-portfolio-title {
    font-size: 32px;
  }

  .cd-portfolio-grid {
    grid-template-columns: 1fr;
  }
}


/* ===========================================================WHY CHOOSE US — V2 Dark Gradient Section=============================================================== */
.cd-why-v2 {
  background: linear-gradient(135deg, #060B24, #0A1133);
  padding: 120px 24px;
  color: #ffffff;
}

.cd-why-v2-inner {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

/* Eyebrow */
.cd-why-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #41BFF5;
  margin-bottom: 16px;
}

/* Heading */
.cd-why-heading {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 80px;
}

/* Cards */
.cd-why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  align-items: start;
}

/* Card */
.cd-why-card {
  text-align: center;
  max-width: 300px;
  margin: auto;
}

/* Featured middle card */
.cd-why-card.featured .cd-why-icon {
  background: #1e2cff;
}

/* Number */
.cd-why-number {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #9CA3AF;
  margin-bottom: 14px;
}

/* Icon */
.cd-why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: #0f1b4c;

  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-why-icon i {
  font-size: 28px;
  color: #41BFF5;
  transition: 0.3s ease;
}

.cd-why-card.featured .cd-why-icon {
  background: #1e2cff;
}

.cd-why-card.featured .cd-why-icon i {
  color: #ffffff;
}

.cd-why-card:hover .cd-why-icon i {
  transform: scale(1.15);
}

/* Title */
.cd-why-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Text */
.cd-why-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #cbd5f5;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .cd-why-cards {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cd-why-heading {
    font-size: 34px;
    margin-bottom: 60px;
  }
}




/* ============================================================TESTIMONIALS — V2================================================================== */
.cd-testimonials-v2 {
  background: #ffffff;
  padding: 120px 24px;
  color: #0B1230;
}

.cd-testimonials-v2-inner {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

/* Eyebrow */
.cd-testimonials-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #41BFF5;
  margin-bottom: 16px;
}

/* Heading */
.cd-testimonials-heading {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 80px;
}

/* Grid */
.cd-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Card */
.cd-testimonial-card {
  background: #f9fafb;
  border-radius: 20px;
  padding: 36px 32px;
  text-align: left;
}

/* Featured */
.cd-testimonial-card.featured {
  background: #eef2ff;
}

/* Rating */
.cd-testimonial-rating {
  font-size: 18px;
  color: #fbbf24; /* gold */
  margin-bottom: 16px;
}

/* Text */
.cd-testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 28px;
}

/* Person */
.cd-testimonial-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Avatar Placeholder */
.cd-testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #41BFF5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cd-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Name & Role */
.cd-testimonial-person strong {
  display: block;
  font-size: 15px;
}

.cd-testimonial-person span {
  font-size: 14px;
  color: #6b7280;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .cd-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cd-testimonials-heading {
    font-size: 34px;
    margin-bottom: 60px;
  }
}






/* ========================================================================STRONG CTA============================================================= */

.cd-cta {
  padding: 120px 24px;
  background: linear-gradient(135deg, #060B24, #0A1133);
  color: #ffffff;
}

.cd-cta-inner {
  max-width: 1200px;
  margin: auto;
}

.cd-cta-content {
  position: relative;
  padding: 72px 64px;
  border-radius: 28px;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    #0A1133,
    #060B24
  );
}

/* Decorative pulse rings (inspired by your image) */
.cd-cta-content::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  width: 420px;
  height: 420px;
  transform: translateY(-50%);
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(65,191,245,0.35) 0%,
    rgba(65,191,245,0.25) 20%,
    rgba(65,191,245,0.15) 40%,
    rgba(65,191,245,0.08) 60%,
    rgba(65,191,245,0.04) 80%,
    transparent 100%
  );
}

/* Text */
.cd-cta-content h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 18px;
  max-width: 560px;
}

.cd-cta-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5f5;
  max-width: 520px;
  margin-bottom: 36px;
}

/* Actions */
.cd-cta-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Buttons */
.cd-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Primary */
.cd-cta-btn.primary {
  background: #41BFF5;
  color: #02131F;
}

.cd-cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(65,191,245,0.45);
}

/* Secondary */
.cd-cta-btn.secondary {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
}

.cd-cta-btn.secondary:hover {
  background: rgba(255,255,255,0.14);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .cd-cta-content {
    padding: 56px 28px;
  }

  .cd-cta-content h2 {
    font-size: 32px;
  }

  .cd-cta-content::after {
    display: none;
  }
}




/* ==================================================================FOOTER================================================================================= */
.cd-footer {
  background: linear-gradient(135deg, #060B24, #0A1133);
  color: #cbd5f5;
  padding: 96px 24px 32px;
}

.cd-footer-inner {
  max-width: 1200px;
  margin: auto;

  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}

/* Brand */
.cd-footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.cd-footer-brand p {
  font-size: 14px;
  color: #41BFF5;
}

/* Links */
.cd-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.cd-footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.cd-footer-column a {
  display: block;
  font-size: 14px;
  color: #cbd5f5;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.cd-footer-column a:hover {
  color: #41BFF5;
}

/* Bottom */
.cd-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 64px;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .cd-footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .cd-footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Social icons (Font Awesome) */
.cd-footer-socials {
  display: flex;
  gap: 14px;
}

.cd-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 16px;

  transition: all 0.3s ease;
}

.cd-social:hover {
  background: rgba(65,191,245,0.25);
  color: #41BFF5;
  transform: translateY(-2px);
}







