/* =========================================================
   VARIABLES
========================================================= */

:root {
  --bg: #070a12;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7fbff;
  --muted: #aab5c5;
  --primary: #4f8cff;
  --primary-2: #39e6c3;
  --gold: #f5c46b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --transition: 220ms ease;
}

/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  animation: fadePage 0.7s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #070a12;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4f8cff, #39e6c3);
  border-radius: 999px;
}

/* =========================================================
   GLOBAL LAYOUT
========================================================= */

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   BACKGROUND
========================================================= */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 15%, rgba(79, 140, 255, 0.22), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(57, 230, 195, 0.13), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(79, 140, 255, 0.1), transparent 35%),
    linear-gradient(180deg, #070a12 0%, #090d18 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

/* =========================================================
   HEADER / NAVBAR
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 10, 18, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--primary);
}

.logo-dozedev {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 20%;
  transition: 0.3s ease;
  filter: drop-shadow(0 0 18px rgba(140, 82, 255, 0.35));
}

.logo-dozedev:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 28px rgba(140, 82, 255, 0.55));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  padding: 0.55rem 0.75rem;
  color: var(--text);
  font-size: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.58rem 0.9rem;
  color: #07101f !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.btn-primary {
  padding: 0.95rem 1.35rem;
  color: #07101f;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 35px rgba(79, 140, 255, 0.22);
}

.btn-ghost {
  padding: 0.95rem 1.35rem;
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

/* =========================================================
   HERO SECTION
========================================================= */

.hero {
  min-height: calc(100vh - 76px);
  padding: 90px 0;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3rem;
}

.hero h1,
.page-title h1,
.contact-grid h1,
.about-grid h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-shadow: 0 10px 40px rgba(79, 140, 255, 0.18);
}

.hero p,
.page-title p,
.contact-grid p,
.about-grid p {
  max-width: 720px;
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1.2rem;
  padding: 0.42rem 0.72rem;
  color: var(--primary-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(57, 230, 195, 0.08);
  border: 1px solid rgba(57, 230, 195, 0.22);
  border-radius: 999px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* =========================================================
   HERO STATS
========================================================= */

.hero-stats {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 135px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.hero-stats strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stats span {
  display: block;
  font-size: 0.88rem;
  color: #b8c7e6;
}

/* =========================================================
   BASE CARDS
========================================================= */

.hero-card,
.feature-card,
.service-card,
.project-card,
.contact-form,
.about-card {
  background: linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-card,
.service-card,
.feature-card,
.plan-card {
  position: relative;
  overflow: hidden;
}

.project-card::before,
.service-card::before,
.feature-card::before,
.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: 0.4s;
}

.project-card:hover::before,
.service-card:hover::before,
.feature-card:hover::before,
.plan-card:hover::before {
  opacity: 1;
}

/* =========================================================
   HERO CARD
========================================================= */

.hero-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem;
}

.card-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.card-line span {
  color: var(--muted);
}

.card-line strong {
  text-align: right;
}

/* =========================================================
   SECTIONS
========================================================= */

.section,
.page-title {
  padding: 90px 0 30px;
}

.page-title {
  text-align: center;
  max-width: 820px;
  margin: auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* =========================================================
   GRIDS
========================================================= */

.feature-grid,
.services-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 80px;
}

/* =========================================================
   FEATURE / SERVICE / PROJECT CARDS
========================================================= */

.feature-card,
.service-card,
.project-card {
  padding: 1.45rem;
  transition: var(--transition);
}

.feature-card:hover,
.service-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 140, 255, 0.45);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  background: rgba(79, 140, 255, 0.14);
  border-radius: 14px;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

.feature-card p,
.service-card p,
.project-card p {
  color: var(--muted);
}

/* =========================================================
   TAGS
========================================================= */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
  list-style: none;
}

.tags li,
.tags span {
  padding: 0.35rem 0.6rem;
  color: var(--primary-2);
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(57, 230, 195, 0.08);
  border: 1px solid rgba(57, 230, 195, 0.18);
  border-radius: 999px;
}

/* =========================================================
   PROJECTS
========================================================= */

.project-label {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--primary-2);
  font-size: 0.76rem;
  font-weight: 900;
}

.project-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.3rem;
  color: #7dd3fc;
  font-weight: 800;
  transition: 0.3s ease;
}

.project-card a:hover {
  transform: translateX(5px);
}

/* =========================================================
   ABOUT / CONTACT LAYOUT
========================================================= */

.about-grid,
.contact-grid {
  min-height: calc(100vh - 76px);
  padding: 90px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 3rem;
}

/* =========================================================
   ABOUT LOGO CARD
========================================================= */

.about-card {
  width: 420px;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  background: rgba(8, 15, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 45px rgba(0, 174, 255, 0.18),
    inset 0 0 35px rgba(0, 174, 255, 0.08);
}

.about-logo {
  width: 520px;
  height: 520px;
  object-fit: cover;
  transform: scale(1.2);
  filter:
    drop-shadow(0 0 25px rgba(0, 174, 255, 0.6))
    drop-shadow(0 0 70px rgba(0, 174, 255, 0.25));
}

/* =========================================================
   STATS
========================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 2rem;
}

.stats-grid div {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  color: var(--primary-2);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.stats-grid span {
  margin-top: 0.35rem;
  color: var(--text);
}

/* =========================================================
   CONTACT
========================================================= */

.contact-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--text);
  font: inherit;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.12);
}

.form-status {
  min-height: 22px;
  color: var(--primary-2);
  font-weight: 700;
}

/* =========================================================
   PLANS
========================================================= */

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

.plan-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.plan-featured {
  transform: translateY(-10px);
  border-color: rgba(255, 215, 120, 0.55);
  box-shadow: 0 20px 60px rgba(255, 180, 60, 0.12);
}

.plan-label {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.plan-card h3 {
  font-size: 2rem;
  margin: 14px 0 10px;
}

.plan-card h3 small {
  font-size: 0.95rem;
  opacity: 0.75;
}

.plan-card ul {
  margin: 22px 0;
  padding-left: 18px;
}

.plan-card li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.plans-note {
  margin-top: 24px;
  text-align: center;
  opacity: 0.75;
  font-size: 0.95rem;
}

/* =========================================================
   FOOTER / LOGO FOOTER
========================================================= */

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #111;
  font-size: 1.35rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f5c46b, #d9902f);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(245, 196, 107, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 1.1rem;
}

.brand-text small {
  margin-top: 3px;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.footer {
  margin-top: 80px;
  padding: 56px 0 22px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 420px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.95rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo .brand-mark {
  width: 40px;
  height: 40px;
}

/* =========================================================
   WHATSAPP FLOAT
========================================================= */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  padding: 14px 20px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #25d366, #17b857);
  border-radius: 999px;
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.35);
  transition: 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
}

/* =========================================================
   ANIMATIONS
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 650ms ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadePage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(7, 10, 18, 0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
  }

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

  .nav-links a {
    display: block;
    padding: 0.5rem;
  }

  .hero,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 70px 0;
  }

  .hero h1,
  .page-title h1,
  .contact-grid h1,
  .about-grid h1 {
    line-height: 1;
  }

  .hero-card {
    order: -1;
  }

  .feature-grid,
  .services-grid,
  .projects-grid,
  .stats-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .plan-featured {
    transform: none;
  }

  .about-card {
    width: 100%;
    max-width: 420px;
    height: 360px;
    margin: 0 auto;
  }

  .about-logo {
    width: 480px;
    height: 480px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero h1,
  .page-title h1,
  .contact-grid h1,
  .about-grid h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .logo-dozedev {
    width: 58px;
    height: 58px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

.project-card::before,
.service-card::before,
.feature-card::before,
.plan-card::before {
  pointer-events: none;
}

.project-card > *,
.service-card > *,
.feature-card > *,
.plan-card > * {
  position: relative;
  z-index: 1;
}