/*
 * DevNest Solutions – Landing Page Styles
 * Child theme: hello-elementor-child
 * Version: 1.0.0
 */

/* ─────────────────────────────────────────
   RESET & TOKENS
───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:    #14144a;
  --navy2:   #1c1c6e;
  --blue:    #2657b0;
  --sky:     #4baee8;
  --skylt:   #a8d8f5;
  --white:   #ffffff;
  --offwhite:#f0f5fc;
  --text:    #1a1a3e;
  --muted:   #5a6a8a;
}

html { scroll-behavior: smooth; }

body.devnest-landing {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
#devnest-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px;
  background: rgba(20,20,74,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74,174,232,0.15);
}

.nav-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 900;
  color: #fff; letter-spacing: -0.02em;
}
.nav-wordmark span { color: #4baee8; }
.nav-wordmark em {
  font-style: normal; font-weight: 300;
  font-size: 16px; font-family: 'DM Sans', sans-serif;
  opacity: 0.7;
}
.nav-logo { text-decoration: none; }

.nav-links {
  display: flex; gap: 34px; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--skylt); }
.nav-cta {
  background: var(--sky) !important;
  color: var(--navy) !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background: var(--skylt) !important;
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.dn-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 45%, #1a3a80 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 60px 80px;
}
.dn-hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(75,174,232,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.dn-hero::after {
  content: '';
  position: absolute; bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(38,87,176,0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* floating blobs */
.blob {
  position: absolute; border-radius: 50%;
  opacity: 0.07; pointer-events: none;
  animation: dn-float 8s ease-in-out infinite;
}
.blob-1 { width: 300px; height: 300px; background: var(--sky);   top: 10%; right: 15%; animation-delay: 0s; }
.blob-2 { width: 200px; height: 200px; background: var(--skylt); top: 55%; right:  8%; animation-delay: 2s; }
.blob-3 { width: 150px; height: 150px; background: var(--blue);  bottom: 15%; left: 40%; animation-delay: 4s; }

@keyframes dn-float {
  0%,100% { transform: translateY(0px) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(75,174,232,0.15);
  border: 1px solid rgba(75,174,232,0.3);
  color: var(--skylt);
  padding: 6px 16px; border-radius: 30px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.05em;
  margin-bottom: 28px;
  animation: dn-fadeUp 0.8s ease both;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sky); animation: dn-pulse 2s infinite;
}
@keyframes dn-pulse  { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.dn-hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(42px, 5.5vw, 74px);
  font-weight: 900; line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  animation: dn-fadeUp 0.8s 0.15s ease both;
}
.dn-hero h1 span { color: var(--sky); }

.dn-hero > .hero-content > p {
  font-size: 18px; line-height: 1.75;
  color: rgba(255,255,255,0.68);
  max-width: 560px; margin-bottom: 44px;
  animation: dn-fadeUp 0.8s 0.3s ease both;
}

.hero-buttons {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: dn-fadeUp 0.8s 0.45s ease both;
}
.btn-primary {
  background: var(--sky); color: var(--navy);
  padding: 14px 32px; border-radius: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(75,174,232,0.35);
}
.btn-primary:hover { background: var(--skylt); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(75,174,232,0.45); }
.btn-ghost {
  border: 2px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  padding: 14px 32px; border-radius: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }

/* ─────────────────────────────────────────
   STATS STRIP
───────────────────────────────────────── */
.stats-strip {
  background: var(--offwhite);
  border-top: 1px solid #dce6f5;
  border-bottom: 1px solid #dce6f5;
  padding: 40px 60px;
  display: flex; justify-content: center;
}
.stat-item {
  flex: 1; max-width: 220px;
  text-align: center;
  padding: 0 40px;
  border-right: 1px solid #cdd9ee;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 42px; font-weight: 900;
  color: var(--navy2); line-height: 1;
}
.stat-num span { color: var(--sky); }
.stat-label {
  font-size: 13px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.04em;
  margin-top: 6px; text-transform: uppercase;
}

/* ─────────────────────────────────────────
   SECTION COMMONS
───────────────────────────────────────── */
.dn-section       { padding: 100px 60px; }
.dn-section--white{ background: var(--white); }

.section-label {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 14px;
}
.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900; line-height: 1.15;
  color: var(--navy); margin-bottom: 18px;
}
.section-sub {
  font-size: 17px; color: var(--muted);
  max-width: 560px; line-height: 1.7;
}
.section-header { margin-bottom: 64px; }
.required { color: #e05555; font-size: 12px; }

/* ─────────────────────────────────────────
   SERVICES
───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  position: relative; overflow: hidden;
  background: var(--offwhite);
  border: 1px solid #dde8f8;
  border-radius: 16px;
  padding: 40px 36px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(20,20,74,0.12);
  border-color: var(--sky); background: var(--white);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy2), var(--blue));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; transition: transform 0.3s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-4deg); }
.service-icon i { color: var(--sky); font-size: 22px; }
.service-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--navy); margin-bottom: 14px; line-height: 1.3;
}
.service-card p { font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.service-tag {
  display: inline-block; margin-top: 22px;
  background: rgba(38,87,176,0.08); color: var(--blue);
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  padding: 4px 12px; border-radius: 20px;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.dn-about {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #1e3d8f 100%);
  position: relative; overflow: hidden;
}
.dn-about::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(75,174,232,0.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.about-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-text .section-title { color: var(--white); }
.about-text .section-label { color: var(--skylt); }
.about-text p {
  font-size: 16px; line-height: 1.85;
  color: rgba(255,255,255,0.7); margin-bottom: 16px;
}
.about-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill {
  background: rgba(75,174,232,0.12);
  border: 1px solid rgba(75,174,232,0.25);
  color: var(--skylt);
  padding: 7px 16px; border-radius: 30px;
  font-size: 13px; font-weight: 500;
}
.about-cards { display: flex; flex-direction: column; gap: 20px; }
.about-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 28px;
  backdrop-filter: blur(10px);
  transition: background 0.3s;
}
.about-card:hover { background: rgba(255,255,255,0.1); }
.about-card i { font-size: 24px; color: var(--sky); margin-bottom: 14px; display: block; }
.about-card h4 { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.about-card p  { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.6); margin: 0; }

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 18px;
  margin-bottom: 32px;
}
.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy2), var(--blue));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon i { color: var(--sky); font-size: 18px; }
.contact-item h4 {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 5px;
}
.contact-item a, .contact-item p {
  font-size: 16px; font-weight: 500;
  color: var(--navy); text-decoration: none; transition: color 0.2s;
}
.contact-item a:hover { color: var(--blue); }

.contact-form {
  background: var(--offwhite);
  border: 1px solid #dde8f8;
  border-radius: 20px; padding: 44px;
}
.contact-form h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--navy); margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 7px; letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--white);
  border: 1.5px solid #cdd9ee;
  border-radius: 9px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(75,174,232,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Status messages */
.dn-form-status {
  padding: 14px 18px;
  border-radius: 9px;
  font-size: 14px; font-weight: 500;
  margin-bottom: 20px;
}
.dn-form-status.is-success {
  background: rgba(42,157,92,0.1);
  border: 1px solid rgba(42,157,92,0.3);
  color: #1a7a44;
}
.dn-form-status.is-error {
  background: rgba(220,53,69,0.08);
  border: 1px solid rgba(220,53,69,0.25);
  color: #a0182a;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--navy2), var(--blue));
  color: var(--white);
  border: none; border-radius: 9px;
  padding: 15px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: all 0.25s; letter-spacing: 0.02em;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,20,74,0.25);
}
.btn-submit:disabled {
  opacity: 0.7; cursor: not-allowed;
}
.btn-submit.is-success {
  background: linear-gradient(135deg,#1c6e3d,#2a9d5c);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.dn-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 40px 60px;
  display: flex; align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(75,174,232,0.15);
}
.footer-wordmark {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px; font-weight: 900;
  color: rgba(255,255,255,0.8); letter-spacing: -0.01em;
}
.footer-wordmark span { color: #4baee8; }
.dn-footer p { font-size: 14px; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 14px;
  text-decoration: none; transition: all 0.2s;
}
.footer-socials a:hover { background: var(--sky); color: var(--navy); }

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes dn-fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-inner,
  .contact-inner    { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 768px) {
  #devnest-nav          { padding: 16px 24px; }
  .nav-links            { display: none; }
  .dn-section           { padding: 70px 24px; }
  .dn-hero              { padding: 110px 24px 70px; }
  .stats-strip          { padding: 36px 24px; flex-wrap: wrap; gap: 28px; }
  .stat-item            { border-right: none; min-width: 120px; }
  .services-grid        { grid-template-columns: 1fr; }
  .dn-footer            { flex-direction: column; gap: 20px; text-align: center; }
  .form-row             { grid-template-columns: 1fr; }
}
