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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.25), transparent 35%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.25), transparent 35%),
    #050816;
  color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 8, 22, 0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 18px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 21px;
  font-weight: 900;
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: #cbd5e1;
  font-weight: 700;
  position: relative;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  transition: 0.3s;
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero {
  max-width: 1200px;
  margin: auto;
  min-height: 88vh;
  padding: 110px 25px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 55px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 50px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.25);
  font-weight: 800;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff, #93c5fd, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h2 {
  font-size: clamp(22px, 3vw, 34px);
  color: #38bdf8;
  margin-bottom: 22px;
}

.hero p {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.28);
  transition: 0.35s;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: 0.6s;
}

.btn:hover::before {
  left: 130%;
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 22px 45px rgba(124, 58, 237, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.35);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(96, 165, 250, 0.12);
}

.btn-small {
  padding: 10px 18px;
  font-size: 14px;
}

.hero-card {
  padding: 42px;
  border-radius: 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    inset 0 0 35px rgba(255, 255, 255, 0.03);
  transition: 0.4s;
}

.hero-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow:
    0 35px 90px rgba(37, 99, 235, 0.25),
    0 0 45px rgba(124, 58, 237, 0.2);
}

.avatar {
  width: 135px;
  height: 135px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 44px;
  font-weight: 900;
  box-shadow: none;
}
.hero-card h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.hero-card p {
  color: #cbd5e1;
}

.section {
  max-width: 1200px;
  margin: auto;
  padding: 95px 25px;
}

.section.dark {
  max-width: none;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.section.dark .section-title,
.section.dark .grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-bottom: 42px;
}

.section-title span {
  color: #38bdf8;
  font-size: 18px;
  font-weight: 900;
}

.section-title h2 {
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-box,
.contact-box,
.card,
.project-card {
  padding: 35px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.content-box::before,
.contact-box::before,
.card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), transparent 45%, rgba(124, 58, 237, 0.15));
  opacity: 0;
  transition: 0.4s;
}

.content-box:hover::before,
.contact-box:hover::before,
.card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.content-box:hover,
.contact-box:hover,
.card:hover,
.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(147, 197, 253, 0.35);
  box-shadow: 0 35px 90px rgba(37, 99, 235, 0.22);
}

.content-box > *,
.contact-box > *,
.card > *,
.project-card > * {
  position: relative;
  z-index: 2;
}

.content-box h3,
.card h3,
.project-card h3,
.contact-box h3 {
  font-size: 25px;
  margin-bottom: 15px;
  color: white;
}

.content-box p,
.card p,
.project-card p,
.contact-box p {
  color: #cbd5e1;
  margin-bottom: 22px;
}

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

.card-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.project-card {
  min-height: 240px;
}

.contact {
  text-align: center;
}

.contact-box {
  max-width: 760px;
  margin: auto;
}

.contact-box .hero-buttons {
  justify-content: center;
}

.footer {
  text-align: center;
  padding: 34px 20px;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Animation apparition */
.hero-content,
.hero-card,
.section-title,
.content-box,
.card,
.project-card,
.contact-box {
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 950px) {
  .navbar {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 80px 22px;
  }

  .hero p {
    margin: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

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

@media (max-width: 600px) {
  .navbar {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 65px 18px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .section {
    padding: 65px 18px;
  }

  .content-box,
  .contact-box,
  .card,
  .project-card,
  .hero-card {
    padding: 26px;
  }

  .btn {
    width: 100%;
  }

  .hero-buttons,
  .card-buttons {
    width: 100%;
  }

  .avatar {
    width: 115px;
    height: 115px;
    font-size: 36px;
  }
}
