:root {
  --color-bg: #f5f8ff;
  --color-surface: rgba(255, 255, 255, 0.86);
  --color-surface-strong: #e7eefc;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #dbeafe;
  --color-highlight: #0b1d4d;
  --color-primary: #2563eb;
  --color-primary-strong: #0ea5e9;
  --color-amber: #f59e0b;
  --color-footer: #0b132b;
  --color-chip: rgba(37, 99, 235, 0.12);
  --color-chip-border: rgba(14, 165, 233, 0.3);
  --radius: 14px;
  --transition: 0.28s ease;
  --shadow-soft: 0 18px 45px rgba(37, 99, 235, 0.12);
  --shadow-strong: 0 24px 70px rgba(14, 165, 233, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.12), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(37, 99, 235, 0.1), transparent 28%),
    linear-gradient(160deg, #f8fbff 0%, #edf3ff 48%, #e3ecff 100%);
  color: var(--color-text);
  font-family: 'Space Grotesk', 'Poppins', system-ui, sans-serif;
  overflow-x: hidden;
  line-height: 1.65;
  font-size: 16px;
  position: relative;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--color-primary);
  color: #02140f;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  z-index: 15;
}

.skip-link:focus {
  left: 12px;
  box-shadow: var(--shadow-soft);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    radial-gradient(900px at 10% 10%, rgba(14, 165, 233, 0.08), transparent),
    radial-gradient(700px at 90% 20%, rgba(37, 99, 235, 0.06), transparent);
  background-size: 140px 140px, 140px 140px, auto, auto;
  mix-blend-mode: screen;
  z-index: 0;
  opacity: 0.5;
}

/* ----- NAVBAR ----- */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

nav .left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.25rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--color-highlight);
  font-family: 'Playfair Display', 'Space Grotesk', serif;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #f8fbff;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
}

.brand-label {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: clamp(1rem, 3vw, 1.15rem);
  letter-spacing: 0.18em;
  position: relative;
  display: inline-block;
  color: var(--color-highlight);
}

.brand-role {
  font-size: clamp(0.7rem, 2.4vw, 0.82rem);
  letter-spacing: 0.32em;
  color: var(--color-text-muted);
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
  margin-top: 6px;
}

nav ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

nav ul li {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-size: clamp(0.78rem, 2vw, 1rem);
  white-space: nowrap;
  color: var(--color-text-muted);
  border: 1px solid transparent;
}

nav ul li:hover {
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-highlight);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-soft);
}

nav ul li a {
  text-decoration: none;
  color: inherit;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px 9px;
  border-radius: 10px;
  transition: var(--transition);
  margin-left: auto;
}

.menu-toggle:hover {
  background: rgba(37, 99, 235, 0.12);
  box-shadow: var(--shadow-soft);
}

/* Mobile-first nav layout */
nav .nav-links {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.5rem 0;
  animation: fadeInUp 0.35s ease;
}

nav.nav-open .nav-links {
  display: flex;
}

nav ul li {
  width: 100%;
  padding: 0.65rem 0.9rem;
}

nav ul li a {
  width: 100%;
  display: block;
}

@media (min-width: 1201px) {
  nav {
    align-items: center;
    gap: 0.75rem;
  }

  .menu-toggle {
    display: none;
  }

  nav .nav-links {
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    animation: none;
  }

  nav ul li {
    width: auto;
    padding: 0.55rem 1.1rem;
  }

  nav ul li a {
    width: auto;
    display: inline;
  }
}

/* ----- SECTIONS ----- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}

/* ----- HERO ----- */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  flex-direction: column-reverse;
  text-align: center;
  position: relative;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(230, 242, 255, 0.96));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    text-align: left;
    padding: 2.5rem;
  }

  .hero-text {
    text-align: left;
  }

  .hero-image {
    text-align: right;
  }
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 18px;
  animation: fadeInUp 0.9s ease-out;
  color: var(--color-highlight);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.typewriter {
  position: relative;
  display: inline-block;
  padding-right: 10px;
}

.typewriter::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 2px;
  height: 1.1em;
  background: var(--color-highlight);
  transform: translateY(-50%);
  animation: caretBlink 0.9s steps(1) infinite;
}

.typewriter.typed::after {
  animation-duration: 1.2s;
}

.hero-text p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 28px;
  color: var(--color-text-muted);
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-strong));
  color: #f8fbff;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: 10px;
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  background: linear-gradient(120deg, var(--color-primary-strong), var(--color-primary));
  color: #f8fbff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-image {
  flex: 1;
  text-align: center;
  max-width: 420px;
}


.hero-image img {
  width: 100%;
  max-width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(37, 99, 235, 0.4);
  box-shadow: 0 12px 45px rgba(37, 99, 235, 0.2), 0 18px 55px rgba(15, 23, 42, 0.2);
  transition: var(--transition);
}

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

/* ----- TITLES ----- */
.section-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 26px;
  padding-left: 14px;
  border-left: 6px solid var(--color-primary);
  color: var(--color-highlight);
  line-height: 1.25;
  font-family: 'Playfair Display', 'Space Grotesk', serif;
  letter-spacing: -0.01em;
}

/* ----- SKILLS ----- */
.skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  justify-content: center;
}

.skills {
  text-align: center;
}

.skills li {
  padding: 13px 22px;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
  border-radius: var(--radius);
  transition: var(--transition);
  font-size: 0.95rem;
  text-align: center;
  min-width: 130px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--color-highlight);
}

.skills li:hover {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.22), rgba(14, 165, 233, 0.18));
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-soft);
  border-color: rgba(37, 99, 235, 0.35);
}

.skills-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.skills .section-title {
  border-left: none;
  padding-left: 0;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-chip);
  color: var(--color-highlight);
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-chip-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.section-lead {
  color: var(--color-text-muted);
  margin-top: 12px;
}

.skills-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skills-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: start;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(232, 239, 252, 0.92));
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--shadow-soft);
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid var(--color-chip-border);
  color: var(--color-highlight);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.skill-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.metric {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), var(--shadow-soft);
}

.metric-label {
  font-weight: 800;
  color: var(--color-highlight);
  letter-spacing: 0.02em;
}

.metric-value {
  color: var(--color-text-muted);
  margin-top: 6px;
}

.skills-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 3vw, 1.25rem);
}

.skill-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(232, 239, 252, 0.9));
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(1rem, 3vw, 1.35rem);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(37, 99, 235, 0.35);
}

.skill-card h3 {
  margin: 0.1rem 0;
  color: var(--color-highlight);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.skill-pills li {
  padding: 0.45rem 0.8rem;
  border-radius: 11px;
  background: var(--color-chip);
  border: 1px solid var(--color-chip-border);
  color: var(--color-highlight);
  font-weight: 600;
  font-size: 0.9rem;
}

.tool-card .tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.skill-heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.25rem;
}

.heat-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: rgba(14, 165, 233, 0.06);
  box-shadow: var(--shadow-soft);
}

.heat-label {
  font-weight: 700;
  color: var(--color-highlight);
}

.heat-bar {
  position: relative;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 12px;
  overflow: hidden;
  min-height: 34px;
}

.heat-bar span {
  display: block;
  height: 100%;
  padding: 0.45rem 0.7rem;
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-strong));
  color: #f8fbff;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: right;
}

.skill-progress.note {
  max-width: 640px;
  text-align: left;
}
.skills-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: 1080px;
  margin: 0 auto;
}

.skill-block {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(232, 239, 252, 0.9));
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: clamp(1rem, 3vw, 1.4rem);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

.skill-block:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(37, 99, 235, 0.35);
}

.skill-block header h3 {
  margin: 0.15rem 0;
  color: var(--color-highlight);
}

.muted {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.tag {
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  background: var(--color-chip);
  border: 1px solid var(--color-chip-border);
  color: var(--color-highlight);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.skills-footer {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  text-align: center;
}

.skill-progress {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--color-highlight);
}

.progress-line {
  position: relative;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 999px;
  overflow: hidden;
  min-width: 220px;
}

.progress-line span {
  display: block;
  padding: 0.4rem 0.7rem;
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-strong));
  color: #f8fbff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ----- CONTACT FORM ----- */
.contact h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
  color: var(--color-highlight);
  font-weight: 600;
  text-align: center;
}

.social-links {
  margin: 1.5rem auto 0;
  max-width: 640px;
  text-align: center;
}

.social-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  color: var(--color-highlight);
  background: rgba(37, 99, 235, 0.08);
  transition: var(--transition);
  text-decoration: none;
  font-weight: 600;
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-links a:hover {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.14));
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.contact-form {
  background: rgba(255, 255, 255, 0.82);
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}


.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 13px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1.6px solid var(--color-border);
  color: var(--color-text);
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(71, 85, 105, 0.75);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.18);
  outline: none;
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button[type="submit"],
.contact-form .btn {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-strong));
  color: #f8fbff;
  border: none;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
  box-shadow: var(--shadow-soft);
  letter-spacing: 0.5px;
  display: block;
}

.contact-form button[type="submit"]:hover,
.contact-form .btn:hover {
  background: linear-gradient(120deg, var(--color-amber), var(--color-primary-strong));
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.contact-form button[type="submit"]:active,
.contact-form .btn:active {
  transform: translateY(-1px);
}

.contact a {
  color: var(--color-primary-strong);
  text-decoration: none;
  font-weight: 600;
}

.contact a:hover {
  color: var(--color-amber);
}

/* ----- SLIDER ----- */
.slider {
  margin: 30px auto;
  width: 95%;
  max-width: 750px;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  background: var(--color-surface);
  box-shadow: 0px 8px 20px rgba(15, 23, 42, 0.12);
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transition: var(--transition);
}

.slider img.active {
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 14px;
  border-radius: 50%;
  background: rgba(0, 88, 158, 0.7);
  cursor: pointer;
  z-index: 10;
  user-select: none;
  transition: var(--transition);
  color: #fff;
  font-size: 1.2rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.arrow:hover {
  background: rgba(0, 142, 222, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.arrow.prev {
  left: 10px;
}

.arrow.next {
  right: 10px;
}

/* ----- FOOTER ----- */
footer {
  text-align: center;
  padding: 25px 20px;
  border-top: 1px solid var(--color-border);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(11, 19, 43, 0.9));
  color: #e2e8f0;
  font-size: 0.92rem;
  margin-top: 40px;
  letter-spacing: 0.02em;
}

/* ----- ANIMATIONS ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes caretBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: 0.7s ease-in-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ----- RESPONSIVE BREAKPOINTS ----- */

@media (max-width: 960px) {
  .skills-head {
    grid-template-columns: 1fr;
  }

  .skills-footer {
    flex-direction: column;
  }

  .skill-progress.note {
    text-align: center;
  }
}

/* Extra Small Devices (320px - 480px) */
@media (max-width: 480px) {
  nav {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  nav .left {
    font-size: 1.3rem;
  }

  nav ul {
    width: 100%;
    gap: 0.4rem 0.6rem;
    justify-content: space-between;
  }

  nav ul li {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .hero {
    gap: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero-text p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

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

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

  .contact-form {
    padding: 1.25rem;
  }

  .skill-icon {
    font-size: 2rem;
  }
}

/* Small Devices (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  nav {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  nav .left {
    font-size: 1.5rem;
  }

  nav ul {
    width: 100%;
    gap: 0.5rem 0.75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .hero {
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    gap: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Tablets and Medium Devices (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  nav {
    padding: 1rem 2rem;
  }

  nav .left {
    font-size: 1.6rem;
  }

  nav ul {
    gap: 0.75rem;
  }

  nav ul li {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .section {
    padding: 4rem 2rem;
  }

  .hero {
    gap: 2.5rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-info {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Devices (1024px and above) */
@media (min-width: 1024px) {
  nav {
    padding: 1rem 2.5rem;
  }

  nav .left {
    font-size: 1.8rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav ul li {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }

  .section {
    padding: 5rem 2rem;
  }

  .hero {
    gap: 3rem;
  }
}

/* Projects Section */
.projects {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(231, 238, 252, 0.9));
  border-radius: 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.project-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(232, 239, 252, 0.9));
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 16px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  backdrop-filter: blur(6px);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(37, 99, 235, 0.35);
}

.project-header h3 {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  color: var(--color-highlight);
  margin: 0;
  font-family: 'Playfair Display', serif;
}

.project-content {
  flex: 1;
  background: var(--color-surface);
  border-radius: 12px;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-description {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
}

.project-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-surface-strong);
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.preview-icon {
  font-size: 1.6rem;
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  border-radius: 10px;
  color: white;
  font-weight: bold;
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
  line-height: 1;
}

.project-preview p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.project-tech {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tech-badge {
  background: var(--color-chip);
  color: var(--color-highlight);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--color-chip-border);
}

.project-btn {
  display: inline-block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-strong));
  color: #f8fbff;
  text-decoration: none;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft);
}

.project-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(255, 255, 255, 0.2);
}



/* Responsive Projects */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .project-content {
    padding: 0.75rem;
  }

  .preview-icon {
    font-size: 1.5rem;
    min-width: 40px;
    height: 40px;
  }

  .project-btn {
    padding: 0.85rem;
    font-size: 0.95rem;
  }
}

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.4rem;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-info {
    grid-template-columns: repeat(3, 1fr);
  }

  .skill-item:hover {
    transform: translateY(-10px);
  }


/* Ultra-wide Devices (1440px and above) */
@media (min-width: 1440px) {
  .section {
    max-width: 1300px;
  }

  .hero-text h1 {
    font-size: 4rem;
  }

  .section-title {
    font-size: 2.6rem;
  }
}

/* ----- BLOG PAGE ----- */
.blog-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(230, 242, 255, 0.92));
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}

.blog-hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  color: var(--color-highlight);
  margin: 0.75rem 0;
  line-height: 1.15;
}

.blog-hero-content .lead {
  color: var(--color-text-muted);
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--color-chip);
  color: var(--color-highlight);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.blog-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin: 1.25rem 0;
}

.blog-hero-meta .meta-label {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.blog-hero-meta .meta-value {
  font-weight: 700;
  color: var(--color-highlight);
}

.blog-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.blog-cta .cta-note {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.blog-hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.panel-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.panel-card.subtle {
  background: rgba(255, 255, 255, 0.9);
  border-style: dashed;
}

.panel-card ul,
.panel-card ol {
  margin-left: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: 0.5rem;
}

.blog-list .section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-subtitle {
  color: var(--color-text-muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 3vw, 1.8rem);
  margin-top: 1.5rem;
}

.blog-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(232, 239, 252, 0.92));
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(37, 99, 235, 0.32);
}

.blog-card h3 {
  margin: 0.3rem 0;
  color: var(--color-highlight);
}

.blog-summary {
  color: var(--color-text-muted);
}

.blog-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-chip);
  color: var(--color-highlight);
  border: 1px solid var(--color-chip-border);
  font-weight: 700;
}

.badge.success {
  background: rgba(16, 185, 129, 0.16);
  color: #0f5132;
  border-color: rgba(16, 185, 129, 0.3);
}

.blog-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-highlight);
  font-weight: 600;
  border: 1px solid var(--color-border);
  font-size: 0.88rem;
}

.blog-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.text-link {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.status-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.status-dot.live::before {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.blog-system {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(231, 238, 252, 0.9));
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.system-card {
  padding: 1.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  color: var(--color-text-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.system-card h3 {
  margin-bottom: 0.4rem;
  color: var(--color-highlight);
}

.blog-post {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(230, 242, 255, 0.92));
  border: 1px solid var(--color-border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.post-meta-stack {
  display: inline-flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--color-chip);
  color: var(--color-highlight);
  font-weight: 700;
  border: 1px solid var(--color-chip-border);
}

.pill.accent {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.3);
  color: #0f5132;
}

.post-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-text-muted);
}

.point-list {
  list-style: disc;
  margin-left: 1.2rem;
  line-height: 1.7;
  display: grid;
  gap: 0.75rem;
}

.point-list.two-col {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  list-style: none;
  margin-left: 0;
}

.point-list.two-col li {
  padding-left: 0;
}

.point-steps {
  list-style: decimal;
  margin-left: 1.3rem;
  line-height: 1.7;
  display: grid;
  gap: 0.6rem;
}

.share-block {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.05);
}

.share-title {
  font-weight: 700;
  color: var(--color-highlight);
  margin-bottom: 0.65rem;
}

.share-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.share-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: white;
  text-decoration: none;
  color: var(--color-highlight);
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.share-btn.facebook {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.share-btn.whatsapp {
  background: #25d366;
  color: #0f172a;
  border-color: #16a34a;
}

.share-btn.linkedin {
  background: #0a66c2;
  color: #fff;
  border-color: #0a66c2;
}

.share-btn.copy {
  background: #f1f5f9;
  color: var(--color-highlight);
}

@media (max-width: 640px) {
  .blog-hero {
    grid-template-columns: 1fr;
  }

  .blog-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Print Styles */
@media print {
  nav,
  footer,
  .contact-form {
    display: none;
  }

  .section {
    page-break-inside: avoid;
  }
}