:root {
  --bg: #07111f;
  --bg-soft: #0f1b33;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.11);
  --text: #eef4ff;
  --muted: #aebad1;
  --accent: #5eead4;
  --accent-2: #60a5fa;
  --accent-3: #8b5cf6;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.22);
  --radius: 24px;
  --radius-sm: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.18), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(94, 234, 212, 0.12), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.08), transparent 30%),
    linear-gradient(180deg, #06101c 0%, #091425 35%, #0b1428 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.65), transparent 85%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  max-width: 760px;
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.6);
}

h1, h2, h3, h4 {
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.7rem, 5.5vw, 5.4rem);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  font-size: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(6, 16, 28, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  padding: 120px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  padding: 18px 0;
}

.hero-copy p {
  max-width: 760px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: #d9e7ff;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #c7dcff 40%, #7dd3fc 75%, #5eead4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-actions,
.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, opacity 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #07111f;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.hero-panel,
.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -60px;
  background: radial-gradient(circle, rgba(94,234,212,0.18), transparent 70%);
  pointer-events: none;
}

.hero-badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.mini-card {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.mini-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--text);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.highlight-pill,
.tag {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.highlight-pill {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: #ddd6fe;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #dbe9ff;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  padding: 26px;
}

.about-card p,
.skill-card p,
.project-card p,
.product-card p,
.contact-card p,
.timeline-content p {
  margin-bottom: 12px;
}

.skill-card,
.project-card,
.contact-card,
.product-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.skill-card:hover,
.project-card:hover,
.contact-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.22);
}

.project-card {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-meta {
  color: var(--accent);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.7), rgba(94, 234, 212, 0.4));
}

.timeline-item {
  position: relative;
  padding-left: 34px;
  margin-bottom: 26px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 22px rgba(96, 165, 250, 0.45);
}

.timeline-content {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-soft);
}

.timeline-period {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.16);
  color: #d7e6ff;
  font-size: 0.86rem;
  font-weight: 600;
}

.product-highlight {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.14);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-item {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer {
  padding: 30px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 992px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 90px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 76px 0;
  }

  .hero-panel,
  .card,
  .timeline-content {
    padding: 20px;
  }

  .hero-badge-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-item {
    padding-left: 26px;
  }
}
.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #93a2bf;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .btn {
  border: none;
  cursor: pointer;
  width: fit-content;
}

.form-note {
  min-height: 24px;
  font-size: 0.95rem;
  color: var(--accent);
}

.profile-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(94, 234, 212, 0.20);
  background: rgba(255, 255, 255, 0.06);
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-socials-inline {
  margin-top: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text);
  font-size: 0.92rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel-actions {
  margin-top: 20px;
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card p {
  min-height: 84px;
}

@media (max-width: 640px) {
  .profile-photo {
    width: 90px;
    height: 90px;
  }

  .hero-socials,
  .hero-socials-inline {
    gap: 8px;
  }

  .social-link {
    width: 100%;
  }
}


.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left p {
  margin: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--text);
}

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}