:root {
  --bg-start: #050011;
  --bg-end: #0c0123;
  --accent-purple: #a855f7;
  --accent-green: #30f8a0;
  --accent-blue: #38bdf8;
  --accent-hot: #ff1f8f;
  --text-primary: #f7f7ff;
  --text-secondary: #c7c7d6;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-strong: 0 25px 60px -15px rgba(16, 185, 129, 0.45);
  --shadow-soft: 0 20px 60px -20px rgba(168, 85, 247, 0.5);
}

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

html, body {
  background: radial-gradient(circle at 20% 20%, rgba(48, 248, 160, 0.035), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(168, 85, 247, 0.08), transparent 65%),
    linear-gradient(140deg, var(--bg-start), var(--bg-end));
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
}

a:hover {
  color: var(--accent-green);
}

.background-orbit {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.background-orbit .orbit {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.65;
  animation: orbit 18s linear infinite;
}

.background-orbit .orbit-one {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 65%);
  top: -10vw;
  left: -12vw;
}

.background-orbit .orbit-two {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(48, 248, 160, 0.25), transparent 75%);
  bottom: -15vw;
  right: -15vw;
  animation-duration: 26s;
}

.background-orbit .orbit-three {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
  top: 40vh;
  left: 55vw;
  animation-duration: 22s;
}

@keyframes orbit {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(20px, -30px, 0) scale(1.1) rotate(120deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(360deg);
  }
}

.hero {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-top: 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__pretitle {
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 4vw + 1rem, 4.6rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 0 35px rgba(168, 85, 247, 0.4);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero__subtitle--secondary {
  margin-top: -1.2rem;
  color: rgba(199, 199, 214, 0.85);
  font-weight: 500;
}

.hero__subtitle--secondary + .hero__actions {
  margin-top: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(48, 248, 160, 0.25), rgba(168, 85, 247, 0.35));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button:hover::after {
  opacity: 1;
}

.button--primary {
  background: linear-gradient(120deg, var(--accent-purple), var(--accent-green));
  color: #050011;
  box-shadow: var(--shadow-strong);
  border: none;
}

.button--primary:hover {
  transform: translateY(-4px) scale(1.03);
}

.button--ghost {
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.12);
}

.button--ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(48, 248, 160, 0.6);
  color: var(--accent-green);
}

.button--whatsapp {
  background: linear-gradient(120deg, #25d366, #2ac3a2);
  color: #04110a;
  border: none;
  box-shadow: 0 18px 38px -20px rgba(37, 211, 102, 0.55);
}

.button--whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
}

.hero__media {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero__portrait {
  position: relative;
  width: clamp(260px, 26vw, 340px);
  aspect-ratio: 1/1;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.12), rgba(48, 248, 160, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  overflow: visible;
}

.hero__portrait img {
  width: 80%;
  height: auto;
  filter: drop-shadow(0 45px 65px rgba(0, 0, 0, 0.45));
  animation: float 6s ease-in-out infinite;
}

.portrait__glow {
  position: absolute;
  inset: 12%;
  border-radius: 28px;
  background: conic-gradient(from 90deg, rgba(168, 85, 247, 0.28), rgba(48, 248, 160, 0.22), rgba(56, 189, 248, 0.24), rgba(168, 85, 247, 0.28));
  filter: blur(45px);
  z-index: -1;
  opacity: 0.9;
  animation: pulseGlow 8s ease-in-out infinite;
}

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

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
}

main {
  width: min(1200px, 94vw);
  margin: 4rem auto;
}

section {
  margin-top: 4rem;
  padding: 3rem;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(7, 26, 46, 0.4));
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.08), transparent 55%);
  opacity: 0.8;
  z-index: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 2vw + 1rem, 2.75rem);
  margin-bottom: 0.75rem;
}

.section p {
  color: var(--text-secondary);
  line-height: 1.9;
}

.section__header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section--philosophy {
  text-align: center;
  background: linear-gradient(160deg, rgba(15, 16, 40, 0.75), rgba(48, 248, 160, 0.08));
}

.section--philosophy p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section__split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: start;
}

.section__highlight {
  background: rgba(10, 34, 54, 0.75);
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2rem;
  box-shadow: 0 15px 45px -20px rgba(56, 189, 248, 0.45);
  display: grid;
  gap: 1.75rem;
  align-self: stretch;
}

.highlight {
  color: var(--accent-green);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge--glow {
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.12), rgba(48, 248, 160, 0.38));
  color: var(--accent-green);
  border: 1px solid rgba(48, 248, 160, 0.55);
  box-shadow: 0 0 0 4px rgba(48, 248, 160, 0.08);
}

.badge--outline {
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(15, 16, 40, 0.55);
  color: var(--accent-purple);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge--outline:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -18px rgba(168, 85, 247, 0.65);
}

.fact-list {
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.fact-list__label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(199, 199, 214, 0.7);
  margin-bottom: 0.4rem;
}

.fact-list__value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid--badges {
  grid-template-columns: repeat(auto-fit, minmax(180px, auto));
  justify-items: center;
}

.project-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.8rem 2rem;
  border-radius: 24px;
  background: rgba(8, 12, 34, 0.78);
  border: 1px solid rgba(48, 248, 160, 0.28);
  box-shadow: 0 0 0 0 rgba(48, 248, 160, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 55% -35% -55% 35%;
  background: linear-gradient(140deg, rgba(168, 85, 247, 0.2), rgba(48, 248, 160, 0.18));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 20px 45px -25px rgba(168, 85, 247, 0.55);
}

.project-card:hover::after {
  opacity: 0.55;
}

.project-card__icon {
  font-size: 2.75rem;
  filter: drop-shadow(0 0 15px rgba(48, 248, 160, 0.6));
}

.project-card__body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--accent-green);
}

.project-card__body p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.project-card__link {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.project-card__link:hover {
  color: var(--accent-green);
}

.projects-table-wrapper {
  margin-top: 2.8rem;
  overflow-x: auto;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: rgba(5, 8, 28, 0.82);
  border: 1px solid rgba(48, 248, 160, 0.18);
  border-radius: 18px;
  overflow: hidden;
}

.projects-table th,
.projects-table td {
  padding: 1.1rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.projects-table th {
  font-size: 0.9rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(199, 199, 214, 0.75);
  background: rgba(168, 85, 247, 0.08);
}

.projects-table tbody tr:last-child td {
  border-bottom: none;
}

.projects-table a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.projects-table a:hover {
  color: var(--accent-green);
}

.section--solo {
  background: linear-gradient(160deg, rgba(15, 16, 40, 0.8), rgba(168, 85, 247, 0.15));
}

.section--solo p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.solo-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.solo-card {
  background: rgba(7, 12, 30, 0.85);
  border: 1px solid rgba(48, 248, 160, 0.25);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 15px 40px -25px rgba(48, 248, 160, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.solo-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.45);
}

.solo-card h3 {
  color: var(--accent-green);
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

.solo-card p {
  color: var(--text-secondary);
}

.section--banners {
  display: grid;
  gap: 2.8rem;
}

.project-banner {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 2.2rem;
  align-items: center;
  padding: 2.6rem;
  border-radius: 28px;
  background: linear-gradient(130deg, rgba(8, 12, 30, 0.85), rgba(23, 38, 68, 0.85));
  border: 1px solid rgba(48, 248, 160, 0.15);
  box-shadow: 0 20px 60px -25px rgba(168, 85, 247, 0.4);
  position: relative;
  overflow: hidden;
}

.project-banner::after {
  content: "";
  position: absolute;
  inset: -40% 40% 40% -40%;
  background: linear-gradient(120deg, rgba(168, 85, 247, 0.22), rgba(48, 248, 160, 0.18));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-banner:hover::after {
  opacity: 0.6;
}

.project-banner__media {
  position: relative;
}

.project-banner__media img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 25px 50px -25px rgba(0, 0, 0, 0.6);
}

.project-banner__content {
  position: relative;
  z-index: 1;
}

.project-banner__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  background: rgba(48, 248, 160, 0.14);
  color: var(--accent-green);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
}

.project-banner h3 {
  font-size: clamp(1.6rem, 1.2vw + 1.1rem, 2.2rem);
  margin-bottom: 1rem;
}

.project-banner p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

.project-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.project-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.12);
  color: rgba(199, 199, 214, 0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.project-banner__button:hover {
  border-color: rgba(48, 248, 160, 0.55);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.project-banner__button[disabled],
.project-banner__button[disabled]:hover {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  border-color: rgba(168, 85, 247, 0.35);
  color: rgba(199, 199, 214, 0.65);
}

.project-banner__button--primary {
  background: linear-gradient(120deg, var(--accent-purple), var(--accent-green));
  color: #050011;
  border: none;
  box-shadow: 0 10px 30px -18px rgba(48, 248, 160, 0.65);
}

.project-banner__button--primary:hover {
  transform: translateY(-3px);
}

.project-banner--valkora::before,
.project-banner--eden::before,
.project-banner--noi2x::before,
.project-banner--italy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(48, 248, 160, 0.12), transparent 65%);
  opacity: 0.4;
  pointer-events: none;
}

.footer__top {
  text-decoration: none;
  color: var(--accent-green);
  font-weight: 600;
}

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

  .cta {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5rem;
  }

  .project-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .project-banner__content {
    margin-top: 1.6rem;
  }

  .project-banner__actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__media {
    order: -1;
  }

  .hero__portrait {
    margin: 0 auto;
  }

  main {
    margin: 3rem auto;
  }

  .section {
    padding: 2.4rem;
  }

  .project-banner {
    padding: 2.2rem;
  }
}

@media (max-width: 520px) {
  .hero__subtitle {
    font-size: 1rem;
  }

  .card {
    padding: 1.8rem 1.6rem;
  }

  .section {
    padding: 2rem;
  }

  .badge--glow {
    font-size: 0.85rem;
  }

  .footer {
    padding: 1.4rem 1.8rem;
    font-size: 0.85rem;
  }
}
