:root {
  --bg: #050816;
  --bg-soft: #0b132b;
  --card: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #00c2ff;
  --gold: #f4b400;
  --white: #ffffff;
  --dark-text: #0f172a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 8, 22, 0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--bg);
  background: linear-gradient(135deg, var(--blue), var(--gold));
}

.navbar nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 26px;
  font-size: 14px;
  opacity: 0.85;
}

.navbar nav a:hover {
  color: var(--blue);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 8% 90px;
  background:
    radial-gradient(circle at 70% 20%, rgba(0,194,255,.22), transparent 35%),
    linear-gradient(rgba(5,8,22,.60), rgba(5,8,22,.98)),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 950px;
}

.small-title {
  color: var(--blue);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 22px;
}

.hero h2 {
  font-size: clamp(24px, 4vw, 42px);
  color: var(--gold);
  margin-bottom: 24px;
}

.hero p {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 19px;
}

.hero-buttons {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: 0.25s ease;
}

.primary {
  background: var(--blue);
  color: #020617;
}

.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,194,255,.25);
}

.secondary {
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
}

.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 55px 8%;
  background: linear-gradient(180deg, #050816, #0b132b);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.stats div {
  padding: 20px;
  text-align: center;
}

.stats h3 {
  font-size: 46px;
  color: var(--blue);
}

.stats p {
  color: var(--muted);
}

.section {
  padding: 100px 8%;
  background: #f8fafc;
  color: var(--dark-text);
}

.section.dark {
  background:
    radial-gradient(circle at top right, rgba(0,194,255,.10), transparent 30%),
    #0b132b;
  color: var(--text);
}

.section h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
}

.section > p {
  max-width: 820px;
  color: #475569;
  font-size: 18px;
  margin-bottom: 35px;
}

.section.dark > p {
  color: #cbd5e1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 35px;
}

.card,
.project-card {
  padding: 30px;
  border-radius: 26px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: 0.25s ease;
}

.card:hover,
.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0,194,255,.55);
}

.section:not(.dark) .card,
.section:not(.dark) .project-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px rgba(15,23,42,0.08);
}

.project-card span {
  color: var(--blue);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
}

.project-card h3 {
  margin: 12px 0;
  font-size: 24px;
}

.project-card p {
  color: #cbd5e1;
}

.section:not(.dark) .project-card p {
  color: #475569;
}

.cv-form {
  max-width: 760px;
  display: grid;
  gap: 16px;
  margin-top: 35px;
}

.cv-form input,
.cv-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: white;
  outline: none;
}

.cv-form input::placeholder,
.cv-form textarea::placeholder {
  color: #94a3b8;
}

.cv-form textarea {
  min-height: 130px;
}

.cv-form button {
  padding: 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  color: #020617;
  font-weight: 900;
  cursor: pointer;
}

footer {
  padding: 35px 8%;
  text-align: center;
  background: #050816;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,.08);
}

@media(max-width: 850px) {
  .navbar {
    position: relative;
    flex-direction: column;
    gap: 15px;
  }

  .navbar nav {
    text-align: center;
  }

  .navbar nav a {
    display: inline-block;
    margin: 8px;
  }

  .hero {
    padding-top: 80px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 520px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}