* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --color-bg: #0a0a0a;
  --color-text: #f5f5f5;
  --color-accent: #00ff88;
  --color-secondary: #a0a0a0;
  --color-light: #1a1a1a;
  --color-purple: #b366ff;
  --color-orange: #ff6b35;
  --color-blue: #4da6ff;
  --font-display: "Archivo Black", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

main {
  display: block;
}

.hero,
.about,
.services,
.contact {
  scroll-margin-top: 120px;
}

.container {
  width: min(1400px, 90vw);
  margin: 0 auto;
}

.icon-sprite {
  display: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-light);
}

.header__inner {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.nav a {
  margin-left: 2.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--color-accent);
}

.nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 0 6rem;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-purple) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(80px);
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
  opacity: 0.12;
  filter: blur(80px);
  z-index: 0;
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.1);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 2.2rem;
  color: var(--color-text);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-blue),
    var(--color-purple)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient 5s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--color-secondary);
  font-weight: 300;
  max-width: 740px;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 6rem 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.about h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 1rem;
  position: sticky;
  top: 8rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.about h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-purple));
  margin-top: 1rem;
}

.about-content {
  font-size: 1.1rem;
  color: var(--color-text);
  opacity: 0.8;
}

.about-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Services Grid */
.services {
  padding: 6rem 0 8rem;
  position: relative;
}

.services-header {
  margin-bottom: 4rem;
}

.services h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.services h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-purple));
  margin-top: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-light);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-purple));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:nth-child(1)::before {
  background: linear-gradient(135deg, var(--color-accent), var(--color-blue));
}

.service-card:nth-child(2)::before {
  background: linear-gradient(135deg, var(--color-purple), var(--color-orange));
}

.service-card:nth-child(3)::before {
  background: linear-gradient(135deg, var(--color-blue), var(--color-accent));
}

.service-card:nth-child(4)::before {
  background: linear-gradient(135deg, var(--color-orange), var(--color-purple));
}

.service-card:nth-child(5)::before {
  background: linear-gradient(135deg, var(--color-accent), var(--color-orange));
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 255, 136, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover::before {
  opacity: 0.15;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  overflow-wrap: normal;
  word-break: normal;
}

.service-card p {
  color: var(--color-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  text-align: left;
}

.contact h2 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.contact h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-purple));
  margin: 1rem 0 0;
}

.contact__layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 4.5rem;
  align-items: start;
}

.contact__details {
  color: var(--color-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-email {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-email a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: none;
  transition: all 0.3s ease;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding-bottom: 0;
}

.contact-email a:hover {
  color: var(--color-purple);
  border-bottom-color: transparent;
}

.contact-form {
  max-width: 760px;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  text-align: left;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-form label {
  display: grid;
  gap: 0.6rem;
  font-size: 1.1rem;
  color: var(--color-secondary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121212;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1.1rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(0, 255, 136, 0.4);
}

.contact-submit {
  justify-self: start;
  padding: 1.1rem 3rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-blue)
  );
  color: #020d08;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
  box-shadow: 0 14px 34px rgba(0, 255, 136, 0.25);
}

.form-status {
  min-height: 1.5rem;
  font-size: 1rem;
  color: var(--color-secondary);
}

.form-status.is-error {
  color: #ff7b7b;
}

.form-status.is-success {
  color: var(--color-accent);
}

.social-links {
  display: flex;
  justify-content: flex-start;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.site-footer .social-links {
  justify-content: center;
  margin: 0 0 1.5rem;
}

.social-link {
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 2px solid var(--color-light);
  border-radius: 50%;
  background: var(--color-light);
}

.social-link svg {
  width: 28px;
  height: 28px;
  fill: var(--color-text);
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--color-accent);
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.social-link:hover svg {
  fill: var(--color-accent);
}

.social-link:nth-child(1):hover {
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.social-link:nth-child(1):hover svg {
  fill: #ff0000;
}

.social-link:nth-child(2):hover {
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.1);
  box-shadow: 0 10px 30px rgba(24, 119, 242, 0.3);
}

.social-link:nth-child(2):hover svg {
  fill: #1877f2;
}

.social-link:nth-child(3):hover {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.1);
  box-shadow: 0 10px 30px rgba(225, 48, 108, 0.3);
}

.social-link:nth-child(3):hover svg {
  fill: #e1306c;
}

.social-link:nth-child(4):hover {
  border-color: #00f2ea;
  background: rgba(0, 242, 234, 0.1);
  box-shadow: 0 10px 30px rgba(0, 242, 234, 0.3);
}

.social-link:nth-child(4):hover svg {
  fill: #00f2ea;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--color-light);
  text-align: center;
  color: var(--color-secondary);
  font-size: 0.9rem;
  font-weight: 300;
}

/* Scroll reveal effect */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 968px) {
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 0;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
  }

  .nav a {
    margin-left: 0;
    margin-right: 1.5rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 7rem 0 5rem;
    min-height: calc(100vh - 120px);
  }

  .hero h1 {
    font-size: clamp(3rem, 10vw, 4.5rem);
  }

  .hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
  }

  .about {
    padding: 4rem 0;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about h2 {
    position: static;
  }

  .services,
  .contact {
    padding: 4rem 0;
  }

  .about h2,
  .services h2 {
    font-size: 2.5rem;
  }

  .contact h2 {
    font-size: 2.8rem;
  }

  .contact__layout {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 6rem 0 4rem;
    min-height: calc(100vh - 100px);
  }

  .hero h1 {
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 100%;
  }

  .about,
  .services,
  .contact {
    padding: 3rem 0;
  }

  .about h2,
  .services h2 {
    font-size: 2rem;
  }

  .contact h2 {
    font-size: 2.2rem;
  }

  .contact-email {
    font-size: 1.3rem;
  }

  .contact-email a {
    word-break: break-all;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .social-links {
    gap: 1.5rem;
  }

  .social-link {
    width: 55px;
    height: 55px;
  }

  .social-link svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 5rem 0 3rem;
    min-height: calc(100vh - 90px);
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.05;
    margin-bottom: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.65;
  }

  .about h2,
  .services h2 {
    font-size: 1.7rem;
  }

  .contact h2 {
    font-size: 1.9rem;
  }

  .contact-email {
    font-size: 1.1rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .social-link {
    width: 50px;
    height: 50px;
  }

  .social-link svg {
    width: 22px;
    height: 22px;
  }
}
