﻿:root {
  --bg: #eef2ff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(10px);
}

.nav-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.section-card {
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px;
  background: var(--surface);
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-copy {
  flex: 1;
}

.hero-copy .eyebrow {
  margin: 0;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
}

.hero-copy h1 span {
  color: var(--accent);
}

.hero-copy p {
  max-width: 620px;
  color: var(--muted);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  transition: transform 0.35s ease;
}

.hero-image img:hover {
  transform: scale(1.04);
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
}

.about-image img {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.about-content h2,
.section-card h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 2.1rem;
}

.about-content p {
  margin: 0 0 18px;
  color: var(--muted);
}

.skills-container,
.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.skill-box,
.card {
  background: var(--accent-soft);
  padding: 28px;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-box:hover,
.card:hover {
  transform: translateY(-10px);
}

.skill-box h3,
.card h3 {
  margin-top: 0;
  color: var(--accent);
}

.skill-box p,
.card p {
  margin: 14px 0 0;
  color: var(--text);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 18px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 20px;
  background: var(--surface);
}

.stat {
  text-align: center;
  padding: 24px 32px;
  border-radius: 24px;
  background: var(--accent-soft);
  min-width: 170px;
}

.stat h2 {
  margin: 0 0 10px;
  font-size: 3rem;
  color: var(--accent);
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #f8fbff;
  color: var(--text);
  resize: vertical;
}

.contact-form textarea {
  min-height: 140px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 15px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.social-section {
  text-align: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  min-width: 135px;
}

.facebook {
  background: #1877f2;
}

.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.github {
  background: #24292f;
}

.linkedin {
  background: #0a66c2;
}

.email {
  background: #ea4335;
}

.thank-you-message {
  display: none;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.thank-you-message.visible {
  display: block;
}

.footer {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 24px;
  text-align: center;
  color: var(--muted);
}

.footer p {
  margin: 12px 0;
}

.dark-mode {
  background: #07101f;
  color: #e2e8f0;
}

.dark-mode header {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.12);
}

.dark-mode .section-card,
.dark-mode .stats {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.15);
}

.dark-mode .nav-links a,
.dark-mode .btn-secondary {
  color: #e2e8f0;
}

.dark-mode .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.dark-mode .btn-outline {
  color: #60a5fa;
  border-color: #60a5fa;
}

.dark-mode .thank-you-message {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}

@media (max-width: 860px) {
  .about-grid,
  .hero {
    flex-direction: column;
    display: flex;
    text-align: center;
  }

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

  .hero-image img {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 680px) {
  .nav-bar {
    flex-direction: column;
    align-items: stretch;
  }

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

  .section-card {
    margin: 24px 14px;
    padding: 28px;
  }
}

