/* ══════════════════════════════════════════════════════════
   Dynamic Code Artisans — Digital Business Card
   Stylesheet v1.0
   ══════════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --navy-dark:   #0B1F3F;
  --navy-mid:    #12376B;
  --blue-main:   #1E5FAE;
  --blue-bright: #3B8FD4;
  --blue-light:  #5CB3E8;
  --green-dark:  #1B7A3D;
  --green-mid:   #3DA65A;
  --green-lime:  #7BC74E;
  --green-light: #A8E063;
  --cyan:        #4FD1C5;
  --text-dark:   #0D2137;
  --text-body:   #3D4A5C;
  --text-muted:  #7B8BA3;
  --bg:          #FAFBFD;
  --bg-card:     #FFFFFF;
  --border:      #E4E9F0;
  --border-light:#F0F3F7;

  --font-display: 'Lexend', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1080px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── CANVAS BG ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ── LAYOUT ── */
.page-wrapper {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── SECTION LABELS ── */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-main);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.8rem;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-main), var(--green-mid));
  transform: translateY(-50%);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.section-title em {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-main), var(--green-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem var(--gutter);
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(30, 95, 174, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 60%, rgba(61, 166, 90, 0.04) 0%, transparent 60%),
    var(--bg);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero__logo-wrap {
  position: relative;
}
.hero__logo-wrap::before {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 95, 174, 0.08) 0%, transparent 70%);
  animation: pulse-soft 4s ease-in-out infinite;
}
.hero__logo {
  width: clamp(120px, 22vw, 200px);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 32px rgba(11, 31, 63, 0.12));
}

.hero__title {
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero__title-main {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
  line-height: 1.1;
}
.hero__title-accent {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--blue-main) 20%, var(--green-mid) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.hero__tagline {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__divider {
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-main), var(--green-mid));
  margin: 0.25rem auto;
  border-radius: 2px;
}

.hero__subtitle {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}
.scroll-dot {
  animation: scroll-anim 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════ */
.services {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--bg);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-main), var(--green-mid));
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}
.service-card:hover {
  border-color: rgba(30, 95, 174, 0.15);
  box-shadow:
    0 4px 24px rgba(11, 31, 63, 0.06),
    0 1px 4px rgba(11, 31, 63, 0.04);
  transform: translateY(-4px);
}
.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 95, 174, 0.08), rgba(61, 166, 90, 0.06));
  color: var(--blue-main);
  margin-bottom: 1.25rem;
  transition: all 0.4s var(--ease-smooth);
}
.service-card__icon svg {
  width: 24px;
  height: 24px;
}
.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--blue-main), var(--green-mid));
  color: white;
  transform: scale(1.05);
}

.service-card__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.service-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════
   VALUE PROPOSITION
   ══════════════════════════════════════════════════════════ */
.value {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 50%, rgba(30, 95, 174, 0.04) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #F4F6FA 100%);
}

.value__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.value__desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
}

.value__features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-feat {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  transition: all 0.35s var(--ease-smooth);
}
.value-feat:hover {
  border-color: rgba(30, 95, 174, 0.15);
  box-shadow: 0 4px 20px rgba(11, 31, 63, 0.05);
  transform: translateY(-2px);
}

.value-feat__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(30, 95, 174, 0.08), rgba(61, 166, 90, 0.06));
  color: var(--blue-main);
}
.value-feat__icon svg {
  width: 20px;
  height: 20px;
}

.value-feat__title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.value-feat__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════ */
.contact {
  padding: clamp(4rem, 10vw, 7rem) 0;
  text-align: center;
  background: var(--bg);
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.contact__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 2.5rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.35s var(--ease-smooth);
  cursor: pointer;
}
.contact-item:hover {
  border-color: rgba(30, 95, 174, 0.2);
  box-shadow: 0 8px 32px rgba(11, 31, 63, 0.07);
  transform: translateY(-3px);
}

.contact-item__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 95, 174, 0.08), rgba(61, 166, 90, 0.06));
  color: var(--blue-main);
  transition: all 0.35s var(--ease-smooth);
}
.contact-item__icon svg {
  width: 20px;
  height: 20px;
}
.contact-item:hover .contact-item__icon {
  background: linear-gradient(135deg, var(--blue-main), var(--green-mid));
  color: white;
}

.contact-item__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-item__value {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  word-break: break-word;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  padding: 2rem 0;
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.footer__name {
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.footer__copy {
  font-size: 0.75rem;
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════ */
@keyframes pulse-soft {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

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

@keyframes scroll-anim {
  0%   { cy: 7; opacity: 1; }
  50%  { cy: 15; opacity: 0.3; }
  100% { cy: 7; opacity: 1; }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .value__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-label {
    display: inline-block;
  }
}

@media (max-width: 600px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .about__stats {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
  .hero__scroll-hint {
    display: none;
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── PRINT ── */
@media print {
  #bg-canvas { display: none; }
  .hero { min-height: auto; padding: 2rem 0; }
  .hero__scroll-hint { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
