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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #04060f;
  color: #f7f9ff;
  line-height: 1.6;
}

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

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

.hero {
  min-height: 100vh;
  padding: 2.5rem clamp(1.5rem, 5vw, 7rem);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  background: radial-gradient(circle at top right, rgba(67, 97, 238, 0.35), transparent 40%),
    radial-gradient(circle at bottom left, rgba(31, 225, 173, 0.25), transparent 45%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 15, 0.4), #04060f 70%);
  z-index: 0;
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #4361ee, #36d6a8);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu a {
  font-weight: 500;
  color: rgba(247, 249, 255, 0.82);
  transition: color 0.2s ease, transform 0.2s ease;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.active {
  color: #fff;
  border-color: #36d6a8;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #f7f9ff;
  transition: transform 0.3s ease;
}

.hero-content {
  align-self: center;
  max-width: 600px;
  z-index: 2;
  padding-top: 4rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4361ee, #36d6a8);
  color: #04060f;
  font-weight: 600;
  box-shadow: 0 20px 40px rgba(67, 97, 238, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 32px 60px rgba(67, 97, 238, 0.35);
}

.hero-graphic {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-graphic .orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.8), rgba(67, 97, 238, 0));
  top: 12%;
  right: clamp(2rem, 12vw, 10rem);
  filter: blur(0px);
}

.hero-graphic .grid {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  top: 25%;
  right: -15%;
  backdrop-filter: blur(20px);
}

.section {
  padding: clamp(4rem, 6vw, 6rem) clamp(1.5rem, 6vw, 7rem);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: rgba(255, 255, 255, 0.7);
}

.content-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 2.25rem;
  border-radius: 1.5rem;
  background: rgba(15, 19, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card p {
  color: rgba(255, 255, 255, 0.68);
}

.projects {
  background: radial-gradient(circle at top left, rgba(54, 214, 168, 0.18), transparent 50%),
    radial-gradient(circle at bottom right, rgba(67, 97, 238, 0.18), transparent 45%);
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(10, 14, 26, 0.92);
  border: 1px solid rgba(67, 97, 238, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(54, 214, 168, 0.9);
  box-shadow: 0 16px 40px rgba(67, 97, 238, 0.2);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.project-tag {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact {
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(36, 214, 255, 0.12), transparent 65%);
  z-index: -1;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-weight: 600;
}

.field input,
.field textarea {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 6, 15, 0.6);
  color: #fff;
  font-size: 1rem;
  width: 100%;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(67, 97, 238, 0.8);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.18);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.captcha {
  position: relative;
}

.captcha-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.refresh-captcha {
  border: none;
  background: rgba(36, 214, 255, 0.12);
  color: #36d6a8;
  border-radius: 0.75rem;
  width: 46px;
  height: 46px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.refresh-captcha:hover,
.refresh-captcha:focus-visible {
  background: rgba(36, 214, 255, 0.22);
}

.error {
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: #ff8796;
}

.form-success {
  color: #36d6a8;
  font-weight: 600;
}

.footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 640px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(4, 6, 15, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  z-index: 15;
  backdrop-filter: blur(12px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-text {
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-text strong {
  font-size: 1.05rem;
  color: #f7f9ff;
}

.cookie-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #36d6a8;
  list-style: none;
}

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

.cookie-details summary::after {
  content: "▼";
  margin-left: 0.5rem;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  display: inline-block;
}

.cookie-details[open] summary::after {
  transform: rotate(-180deg);
}

.cookie-options {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.cookie-options li {
  display: grid;
  gap: 0.35rem;
  align-items: start;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 19, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-options label {
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
}

.cookie-options input[type="checkbox"] {
  justify-self: start;
  width: 18px;
  height: 18px;
  accent-color: #36d6a8;
  align-self: start;
  justify-self: end;
  margin-top: 0.15rem;
}

.option-title {
  font-weight: 600;
  color: #f7f9ff;
}

.option-copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

.cookie-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
}

.cookie-policy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.cookie-button {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  background: linear-gradient(135deg, #4361ee, #36d6a8);
  color: #04060f;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 32px rgba(67, 97, 238, 0.25);
}

.cookie-button:hover,
.cookie-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 24px 44px rgba(67, 97, 238, 0.35);
}

.cookie-button.cookie-reject {
  background: rgba(4, 6, 15, 0.4);
  color: #f7f9ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.cookie-button.cookie-reject:hover,
.cookie-button.cookie-reject:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.3);
}

.cookie-preferences {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 6, 15, 0.7);
  color: #36d6a8;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  z-index: 14;
}

.cookie-preferences:hover,
.cookie-preferences:focus-visible {
  background: rgba(4, 6, 15, 0.9);
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    gap: 1rem;
    background: rgba(4, 6, 15, 0.95);
    padding: 1.2rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5;
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
  }

  .nav-toggle {
    display: flex;
    z-index: 3;
  }

  .hero {
    padding: 2rem 1.5rem 4rem 1.5rem;
    grid-template-rows: auto auto;
    gap: 3rem;
  }

  .hero-content {
    padding-top: 0;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cookie-actions {
    justify-items: stretch;
  }

  .cookie-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .card,
  .project-card {
    padding: 1.75rem;
  }

  .cookie-banner {
    width: min(94vw, 480px);
    bottom: 1rem;
    padding: 1.25rem;
  }

  .cookie-preferences {
    right: 1rem;
    bottom: 1rem;
  }
}
