/* ====== BRAND COLORS ====== */
:root {
  --code-gradient-start: #0099ff;
  --code-gradient-end: #0047b3;
  --craft-gradient-start: #8a2be2;
  --craft-gradient-end: #6a0dad;

  --agency-light: #555555;
  --agency-dark: #e0e0e0;

  --bg: #f7f8f9;
  --card-bg: rgba(255, 255, 255, 0.75);
  --text: var(--agency-light);
  --text-muted: #6c727b;
  --border: rgba(0, 0, 0, 0.08);

  --btn-bg: var(--code-gradient-start);
  --btn-text: #fff;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

body.dark {
  --bg: #1f1d20;
  --card-bg: rgba(255, 255, 255, 0.06);
  --text: var(--agency-dark);
  --text-muted: #aab2bb;
  --border: rgba(255, 255, 255, 0.1);

  --btn-bg: var(--code-gradient-end);
  --btn-text: #00111f;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/* ====== GLOBAL STYLES ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ====== HEADER ====== */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
body.dark header {
  background: #1f1d20;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  width: 200px;
  object-fit: contain;
}
nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
nav ul li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: 0.25s ease;
}
nav ul li a:hover {
  color: var(--code-gradient-end);
}
body.dark nav ul li a:hover {
  color: var(--craft-gradient-end);
}
.logo-img-dark {
  display: none; /* hide dark logo by default */
}
body.dark .logo-img {
  display: none; /* hide light logo in dark mode */
}
body.dark .logo-img-dark {
  display: block; /* show dark logo in dark mode */
}

/* ====== THEME TOGGLE ====== */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toggle-btn {
  width: 52px;
  height: 30px;
  background: #d4d9de;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: 0.3s ease;
}
body.dark .toggle-btn {
  background: rgba(255, 255, 255, 0.2);
}
.toggle-btn::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--code-gradient-start);
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 5px;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
body.dark .toggle-btn::before {
  left: 25px;
  background: var(--craft-gradient-start);
}
.toggle-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ====== HERO ====== */
.hero {
  padding: 90px 0 60px;
  position: relative;
  background-image: url(./assets/hero-img.jpg);
  position: relative;
}
.hero::before {
  content: "";
  background-color: rgba(0, 0, 0, 0.8);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  z-index: 1;
  position: relative;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 800;
  /* color: var(--text); */
  color: #fff;
}
.hero h1 .code {
  background: linear-gradient(
    90deg,
    var(--code-gradient-start),
    var(--code-gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .craft {
  background: linear-gradient(
    90deg,
    var(--craft-gradient-start),
    var(--craft-gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 15px;
  line-height: 1.8;
  /* color: var(--text-muted); */
  color: #fff;
  max-width: 520px;
  margin: 18px 0 0;
}
.hero-buttons {
  margin-top: 25px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary {
  background: linear-gradient(
    90deg,
    var(--code-gradient-start),
    var(--craft-gradient-end)
  );
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--code-gradient-end);
  color: var(--code-gradient-end);
}
body.dark .btn-outline:hover {
  border-color: var(--craft-gradient-end);
  color: var(--craft-gradient-end);
}
.hero-buttons .btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

/* ====== HERO CARD & STATS ====== */
.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.hero-card p {
  font-size: 14px;
  margin-bottom: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat-box {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.35);
}
body.dark .stat-box {
  background: rgba(255, 255, 255, 0.05);
}
.stat-box h2 {
  font-size: 22px;
  color: var(--code-gradient-start);
  font-weight: 800;
}
body.dark .stat-box h2 {
  color: var(--craft-gradient-start);
}
.stat-box span {
  display: block;
  font-size: 12px;
  margin-top: 6px;
  color: var(--text-muted);
}

/* ====== SECTIONS ====== */
section {
  padding: 70px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 45px;
}
.section-title h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
}
.section-title p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 650px;
  margin: auto;
  line-height: 1.7;
}

/* ====== CARDS ====== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 25px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 153, 255, 0.4);
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
}
.card ul {
  list-style: inside;
}
.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
  background: linear-gradient(
    90deg,
    var(--code-gradient-start),
    var(--craft-gradient-end)
  );
}
.pricing-card p {
  width: 80%;
  margin-bottom: 10px;
}

/* ====== PORTFOLIO ====== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.portfolio-item {
  padding: 22px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}
.portfolio-item:hover {
  transform: translateY(-6px);
}
.portfolio-item img {
  width: 100%;
  min-height: 160px;
  max-height: 160px;
  object-fit: cover;
  object-position: top center;
}
.portfolio-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  margin-top: 5px;
}
.portfolio-item h4 a {
  text-decoration: underline;
}
.portfolio-item span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ====== PRICING ====== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price {
  font-size: 34px;
  font-weight: 900;
  margin: 12px 0;
  background: linear-gradient(
    90deg,
    var(--code-gradient-start),
    var(--craft-gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ====== CONTACT ====== */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  box-shadow: var(--shadow);
}
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}
textarea {
  resize: none;
  height: 120px;
}
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  box-shadow: var(--shadow);
}
.info-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.info-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.hero-form-wrapper form {
  background-color: #fff;
}
.hero-form-wrapper input,
.hero-form-wrapper textarea,
.hero-form-wrapper select {
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #555555;
}

/* ====== FOOTER ====== */
footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/*  */
.platforms {
  padding: 90px 0;
  background: radial-gradient(circle at top, #2a2a2f, #141418);
  color: #fff;
  overflow: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #ffffff;
}

.section-title p {
  font-size: 16px;
  color: #b9b9c6;
  max-width: 600px;
  margin: auto;
  line-height: 1.6;
}

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

.platform-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 30px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: 0.4s ease;
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(0, 170, 255, 0.15),
    transparent 70%
  );
  opacity: 0;
  transition: 0.4s ease;
}

.platform-card:hover::before {
  opacity: 1;
}

.platform-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 170, 255, 0.35);
  box-shadow: 0px 25px 70px rgba(0, 0, 0, 0.55);
}

.platform-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.platform-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.platform-card h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.platform-card p {
  color: #c6c6d1;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.platform-image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.platform-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.7));
}

/* Responsive */
@media (max-width: 992px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 38px;
  }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3,
  .portfolio-grid,
  .pricing-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }
  nav ul {
    display: none;
  }
  .hero h1 {
    font-size: 38px;
  }
}
