/*--------------------------------------------------------------
# DigitalCraft Labs — 2026 redesign
# Standalone stylesheet (no Bootstrap / template dependency)
--------------------------------------------------------------*/

:root {
  --navy-950: #0a1428;
  --navy-900: #0f1f3d;
  --navy-800: #16294e;
  --navy-700: #22396b;
  --navy-600: #37517e;
  --blue-500: #47b2e4;
  --blue-400: #6cc4ec;
  --blue-600: #209dd8;
  --teal-400: #3ddad7;
  --ink: #1b2437;
  --ink-soft: #55607a;
  --line: #e6ebf4;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(15, 31, 61, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 31, 61, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 31, 61, 0.16);
  --grad: linear-gradient(100deg, var(--blue-500), var(--teal-400));
  --font-head: "Sora", "Jost", sans-serif;
  --font-body: "Inter", "Open Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

::selection {
  background: var(--blue-500);
  color: #fff;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

section {
  padding: 96px 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 15.5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--grad);
  color: var(--navy-950);
  box-shadow: 0 10px 26px rgba(71, 178, 228, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(71, 178, 228, 0.5);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--blue-400);
  color: var(--blue-400);
}

.btn-dark {
  background: var(--navy-900);
  color: #fff;
}

.btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  padding: 12px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.brand img {
  height: 42px;
  width: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
}

.site-nav .nav-cta {
  padding: 10px 22px;
  font-size: 14.5px;
}

.site-nav .nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 130px;
  background: radial-gradient(1100px 600px at 85% -10%, rgba(71, 178, 228, 0.28), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(61, 218, 215, 0.15), transparent 55%),
              linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  /* subtle dotted texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-400);
  background: rgba(71, 178, 228, 0.12);
  border: 1px solid rgba(71, 178, 228, 0.35);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.hero-stats .stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: #fff;
}

.hero-stats .stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% -4% 0 -4%;
  background: radial-gradient(closest-side, rgba(71, 178, 228, 0.35), transparent);
  filter: blur(20px);
}

.hero-media img {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ---------- Section headers ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- About ---------- */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-grid .col p {
  color: var(--ink-soft);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
}

.check-list svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--blue-600);
}

/* ---------- Services ---------- */
.services {
  background: var(--bg-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(71, 178, 228, 0.5);
}

.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(71, 178, 228, 0.14), rgba(61, 218, 215, 0.14));
  color: var(--blue-600);
  margin-bottom: 22px;
}

.service-card .icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Why us ---------- */
.why {
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  position: relative;
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.why-card::before {
  content: attr(data-step);
  position: absolute;
  top: 10px;
  right: 18px;
  font-family: var(--font-head);
  font-size: 4.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
}

.why-card h3 {
  color: #fff;
  font-size: 1.12rem;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Skills ---------- */
.skills {
  background: var(--bg-soft);
}

.skills-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.skills-grid .media img {
  border-radius: var(--radius);
}

.skill-row {
  margin-bottom: 22px;
}

.skill-row .label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.skill-row .label .val {
  color: var(--blue-600);
  font-family: var(--font-head);
}

.skill-bar {
  height: 9px;
  border-radius: 999px;
  background: #e3eaf4;
  overflow: hidden;
}

.skill-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.stack-title {
  font-size: 1.05rem;
  margin: 34px 0 16px;
}

.tech-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tags li {
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-600);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tech-tags li:hover {
  transform: translateY(-2px);
  border-color: var(--blue-500);
  color: var(--blue-600);
}

/* ---------- CTA band ---------- */
.cta {
  padding: 0;
}

.cta .inner {
  border-radius: 24px;
  padding: 64px 56px;
  background: radial-gradient(700px 300px at 90% 0%, rgba(71, 178, 228, 0.35), transparent 60%),
              linear-gradient(120deg, var(--navy-950), var(--navy-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.cta p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 34rem;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.faq-list details[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(71, 178, 228, 0.5);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 1rem;
  position: relative;
  color: var(--navy-900);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue-600);
  transition: transform 0.25s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.contact-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info .row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-info .row .ic {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(71, 178, 228, 0.14), rgba(61, 218, 215, 0.14));
  color: var(--blue-600);
}

.contact-info .row .ic svg {
  width: 22px;
  height: 22px;
}

.contact-info h3 {
  font-size: 1.02rem;
  margin: 2px 0 2px;
}

.contact-info p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-info iframe {
  border: 0;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  margin-top: auto;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}

.contact-form .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form .field {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(71, 178, 228, 0.18);
}

.contact-form button {
  width: 100%;
  justify-content: center;
}

.contact-form button[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-status {
  display: none;
  margin: 0 0 18px;
  padding: 13px 16px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-status.show {
  display: block;
}

.form-status.ok {
  background: #e7f8ef;
  color: #14683c;
  border: 1px solid #bfe9d2;
}

.form-status.err {
  background: #fdeeee;
  color: #a12c2c;
  border: 1px solid #f3caca;
}

/* Honeypot field — hidden from humans, tempting for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--blue-400);
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-news form {
  display: flex;
  margin-top: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-news input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  color: #fff;
  font: inherit;
}

.footer-news input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer-news input[type="email"]:focus {
  outline: none;
}

.footer-news button {
  border: 0;
  cursor: pointer;
  background: var(--grad);
  color: var(--navy-950);
  font-weight: 700;
  font-family: var(--font-head);
  padding: 0 22px;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease, transform 0.25s ease;
}

.social-row a:hover {
  background: var(--blue-600);
  transform: translateY(-3px);
  color: #fff;
}

.social-row svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  font-size: 0.88rem;
  text-align: center;
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: var(--navy-950);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 90;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Focus / motion ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  section { padding: 72px 0; }

  .hero { padding: 150px 0 90px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-media { max-width: 420px; margin: 0 auto; order: -1; }

  .about-grid,
  .skills-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .cta .inner { padding: 44px 28px; text-align: center; justify-content: center; }

  /* Mobile nav */
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.97);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 26px;
    text-align: center;
  }

  .site-nav a {
    font-size: 1.25rem;
  }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form .grid2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}
