:root {
  color-scheme: light;
  --bg: #eff6ff;
  --surface: #ffffff;
  --surface-soft: #f3f8ff;
  --surface-accent: #d7e5ff;
  --text: #102443;
  --muted: #5b6f92;
  --primary: #1c66ff;
  --primary-strong: #4f8cff;
  --border: rgba(28, 102, 255, 0.16);
  --radius: 24px;
  --max-width: 1200px;
  font-family: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #e8f1ff 0%, #eef7ff 100%);
  color: var(--text);
  min-height: 100vh;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 24px;
}

.main-header {
  position: fixed;
  inset: 0 0 auto;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 50px rgba(20, 56, 138, 0.08);
  z-index: 20;
  border-bottom: 1px solid rgba(28, 102, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 20px 0;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(28, 102, 255, 0.18);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 0 80px;
  background-image: linear-gradient(180deg, rgba(28, 102, 255, 0.88), rgba(28, 102, 255, 0.72)),
    url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1400&q=80');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-content {
  text-align: center;
  max-width: 640px;
  animation: appear 0.9s ease both;
}

.hero-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
}

.hero-subtitle {
  margin: 1.25rem auto 2rem;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.8;
}

.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.section-header p {
  margin: 1rem auto 0;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.75;
}

.about-grid,
.skills-grid,
.blog-grid,
.contact-grid {
  display: grid;
  gap: 1.75rem;
}

.about-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

.about-text,
.about-card,
.contact-card {
  background: var(--surface);
  border: 1px solid rgba(28, 102, 255, 0.16);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(74, 123, 255, 0.08);
}

.about-card h3 {
  margin-top: 1.25rem;
}

.about-card ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.about-card li {
  padding: 0.82rem 0;
  border-top: 1px solid rgba(28, 102, 255, 0.1);
  color: var(--muted);
}

.about-card li:first-child {
  border-top: none;
}

.about-photo {
  width: 100%;
  display: block;
  border-radius: 24px;
  margin-bottom: 1.4rem;
  object-fit: cover;
  height: 260px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 18px 42px rgba(95, 157, 247, 0.22);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(28, 102, 255, 0.28);
}

.skills-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-card {
  background: var(--surface);
  border: 1px solid rgba(28, 102, 255, 0.16);
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 200px;
}

.skill-card h3 {
  margin-top: 0;
  color: var(--text);
}

.skill-card p {
  color: var(--muted);
  line-height: 1.75;
}

.blog-image {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.blog-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-card {
  background: var(--surface);
  border: 1px solid rgba(28, 102, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-card.full-width {
  grid-column: 1 / -1;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card h3 {
  margin-top: 0;
}

.blog-card p {
  color: var(--muted);
  line-height: 1.75;
  margin: 1rem 0 1.5rem;
}

.blog-link {
  color: var(--primary);
  font-weight: 600;
}

.contact-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.contact-form {
  display: grid;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid rgba(28, 102, 255, 0.16);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  display: grid;
  gap: 0.6rem;
}

.form-group label {
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(28, 102, 255, 0.18);
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(28, 102, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(28, 102, 255, 0.12);
}

.error-message {
  color: #d53f3a;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.form-success {
  margin: 0;
  color: #1a7d2c;
  font-size: 0.98rem;
  min-height: 1.4rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.contact-card h3 {
  margin-top: 0;
}

.contact-details p {
  margin: 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.material-symbols-outlined.icon {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  color: var(--primary);
}

.footer {
  border-top: 1px solid rgba(28, 102, 255, 0.14);
  padding: 2rem 0 1rem;
  background: var(--surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.footer-column h3,
.footer-column h4 {
  margin: 0 0 1rem;
  color: var(--text);
}

.footer-column p,
.footer-links a,
.footer-links li {
  color: var(--muted);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.8rem 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-links a {
  color: var(--text);
  font-weight: 600;
  transition: color 0.25s ease;
}

.social-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(28, 102, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.fade-up.revealed {
  animation: fadeUp 0.8s ease forwards;
}

.fade-up.delay-1.revealed {
  animation-delay: 0.2s;
}

.fade-up.delay-2 {
  animation-delay: 0.35s;
}

.fade-up.delay-3 {
  animation-delay: 0.5s;
}

.fade-up.delay-4 {
  animation-delay: 0.65s;
}

.fade-up.delay-5 {
  animation-delay: 0.8s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .about-grid,
  .contact-grid,
  .skills-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .skill-card.full-width {
    grid-column: auto;
  }
}

@media (max-width: 740px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    position: fixed;
    inset: 72px 24px auto auto;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(8, 16, 29, 0.98);
    padding: 1.5rem;
    border-radius: 22px;
    width: calc(100% - 48px);
    max-width: 360px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.85rem 0;
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 100px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 18px;
  }

  .hero-subtitle,
  .section-header p,
  .about-text p,
  .skill-card p,
  .blog-card p,
  .contact-card p {
    font-size: 0.98rem;
  }

  .btn {
    width: 100%;
  }
}
