/* =========================
 ROOT VARIABLES
========================== */

:root {
  --bg: #0b1120;
  --bg-secondary: #111827;
  --card: rgba(17, 24, 39, 0.8);
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --accent: #38bdf8;
  --accent-secondary: #818cf8;
  --header-bg: rgba(11, 17, 32, 0.85);
  --shadow: rgba(0, 0, 0, 0.3);
}

body.light {
  --bg: #f8fafc;
  --bg-secondary: #eef2ff;
  --card: rgba(255, 255, 255, 0.85);
  --text: #0f172a;
  --text-secondary: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --accent: #0284c7;
  --accent-secondary: #4f46e5;
  --header-bg: rgba(248, 250, 252, 0.88);
  --shadow: rgba(15, 23, 42, 0.12);
}

/* =========================
 RESET
========================== */

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-padding-top: 90px;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  background:
    radial-gradient(
      circle at top right,
      rgba(56, 189, 248, 0.08),
      transparent 35%
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  max-width: 100%;
  font: inherit;
}

/* Prevent long URLs, emails, and code-like text from breaking layouts */
p,
li,
h1,
h2,
h3,
span,
label {
  overflow-wrap: anywhere;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
  max-width: 100%;
}

/* =========================
 HEADER
========================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo span {
  color: var(--accent);
}

nav {
  min-width: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.resume-btn {
  padding: 9px 15px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

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

.theme-btn,
.menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-btn {
  display: none;
}

/* =========================
 HERO
========================== */

.hero {
  min-height: 100vh;
  padding: 150px 0 80px;
  display: flex;
  align-items: center;
  max-width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 70px;
}

.hero-content {
  min-width: 0;
  width: 100%;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -4px;
  margin-bottom: 15px;
}

.hero h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  max-width: 650px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 25px;
}
.hero-extra {
  display: inline;
  color: var(--text);
  font-weight: 500;

  color: var(--text);
  font-weight: 500;
}

.hero-extra::before {
  color: var(--accent-secondary);
  text-shadow: 0 0 8px var(--accent-secondary);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 25px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
}

.btn-secondary {
  background: var(--card);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* =========================
 HERO SOCIAL ICONS
========================== */

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 25px;
  margin-bottom: 25px;
  margin-left: 90px;
}

.hero-socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: var(--card);
  font-size: 19px;
  transition: all 0.3s ease;
}

.hero-socials a:hover {
  transform: translateY(-4px);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 20px var(--shadow);
}

/* =========================
 CURRENTLY LEARNING
========================== */

.currently-learning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.learning-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
}

.learning-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-tag {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.07);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* =========================
 STACK TAGS
========================== */

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.stack-tag {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-secondary);
  background: var(--card);
  font-size: 0.76rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* =========================
 PROFILE
========================== */

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  min-width: 0;
}

.profile-wrapper {
  position: relative;
  width: min(350px, 80vw);
}

.profile-ring {
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  box-shadow: 0 25px 70px var(--shadow);
}

.profile-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid var(--bg);
  background: var(--bg-secondary);
}

.profile-badge {
  position: absolute;
  bottom: 15px;
  right: -20px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 15px 30px var(--shadow);
  max-width: 60%;
  overflow-wrap: anywhere;
}

/* =========================
 PROOF BAR
========================== */

.proof-bar {
  padding: 25px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.proof-item strong {
  display: block;
  font-size: 1.7rem;
  color: var(--accent);
}

.proof-item span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* =========================
 SECTIONS
========================== */

section {
  padding: 100px 0;
  scroll-margin-top: 70px;
  max-width: 100%;
}

.section-heading {
  margin-bottom: 45px;
}

.section-label {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.section-heading p {
  margin-top: 12px;
  color: var(--text-secondary);
  max-width: 700px;
}

/* =========================
 ABOUT
========================== */

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

.about-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  min-width: 0;
}

.about-card p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

/* =========================
 SKILLS
========================== */

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

.skill-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
  min-width: 0;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.skill-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  font-size: 20px;
}

.skill-card h3 {
  margin-bottom: 10px;
}

.skill-card p {
  color: var(--text-secondary);
  font-size: 0.87rem;
}

/* =========================
 PROJECTS
========================== */

.featured-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.project-content {
  min-width: 0;
}

.project-content h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-list span {
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.project-links a {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Project image */
.project-image {
  width: calc(100% + 50px);
  height: 210px;
  margin: -25px -25px 22px;
  overflow: hidden;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.project-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--card);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
  min-width: 0;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 15px;
}

/* Featured project screenshot */
.project-showcase {
  min-width: 0;
  align-self: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
}

.project-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================
   OTHER PROJECT LINKS
========================= */

.project-card .project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 5px;
}

.project-card .project-links a {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.project-card .project-links a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

/* =========================
 EXPERIENCE
========================== */

.timeline {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 45px;
  margin-bottom: 35px;
}

.timeline-dot {
  position: absolute;
  left: 4px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.timeline-item h3 {
  margin-bottom: 4px;
}

.timeline-date {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.timeline-item p {
  color: var(--text-secondary);
}

/* =========================
 HOW I WORK
========================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  min-width: 0;
}

.process-number {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 15px;
}

.process-card h3 {
  margin-bottom: 8px;
}

.process-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* =========================
 EDUCATION
========================== */

.education-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  max-width: 800px;
}

.education-card h3 {
  margin-bottom: 5px;
}

.education-card .institution {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.education-card p {
  color: var(--text-secondary);
}
/* =========================
   TRAINING COURSES
========================= */

.training-card {
  margin-top: 20px;
  padding: 25px 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  max-width: 800px;
}

.training-card h3 {
  margin-bottom: 18px;
}

.training-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.training-logo {
  width: 55px;
  height: 55px;
  padding: 8px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.training-institute {
  color: var(--accent);
  font-weight: 700;
}

.training-details {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px 15px;
}

.training-details .label {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
}

.training-details .value {
  color: var(--text);
  font-size: 0.92rem;
}

@media (max-width: 650px) {
  .training-card {
    padding: 20px;
  }

  .training-details {
    grid-template-columns: 1fr;
    gap: 3px;
    margin-bottom: 12px;
  }

  .training-details .value {
    margin-bottom: 8px;
  }
}

/* =========================
 CONTACT
========================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 35px;
}

.contact-info,
.contact-form {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  min-width: 0;
}

.contact-info h3 {
  margin-bottom: 10px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-item i {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
}

.contact-item span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  min-width: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

/* =========================
 FOOTER
========================== */

footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  max-width: 100%;
}

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

.footer-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: var(--text-secondary);
  font-size: 18px;
  transition: color 0.25s ease;
}

.footer-socials a:hover {
  color: var(--accent);
}

/* =========================
 SCROLL REVEAL
========================== */

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

/* =========================
 ACCESSIBILITY / TOUCH
========================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (pointer: coarse) {
  button,
  a,
  input[type="submit"],
  input[type="button"] {
    min-height: 44px;
  }
}

/* =========================
 RESPONSIVE
========================== */

@media (max-width: 1200px) {
  .container {
    width: min(100% - 40px, 1100px);
  }
}

@media (max-width: 1100px) {
  .container {
    width: min(94%, 1000px);
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 45px;
  }

  .hero h1 {
    font-size: clamp(3rem, 7vw, 4.8rem);
  }
  .hero-socials {
    margin-left: 100px;
    gap: 10px;
  }

  .profile-wrapper {
    width: min(320px, 80vw);
  }

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

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

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

@media (max-width: 950px) {
  .container {
    width: min(94%, 850px);
  }

  header .container {
    min-height: 70px;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 15px 4%;
    border-bottom: 1px solid var(--border);
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

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

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .menu-btn {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-visual {
    order: -1;
  }

  .profile-wrapper {
    width: min(280px, 65vw);
  }

  .hero h1 {
    font-size: clamp(3rem, 10vw, 4.8rem);
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-socials {
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: 110px;
  }

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

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

  .featured-project {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

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

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

  .timeline {
    padding-left: 0;
  }
}

@media (max-width: 750px) {
  .container {
    width: min(92%, 680px);
  }

  section {
    padding: 80px 0;
  }

  .nav-menu {
    top: 72px;
  }

  .resume-btn {
    display: none;
  }

  .hero {
    padding-top: 125px;
    padding-bottom: 70px;
  }

  .hero-grid {
    gap: 40px;
  }

  .profile-wrapper {
    width: min(250px, 65vw);
  }

  .profile-badge {
    right: -5px;
    bottom: 10px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
    letter-spacing: -2px;
  }

  .hero h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-buttons .btn {
    flex: 1 1 auto;
  }

  .hero-socials {
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: 120px;
    gap: 10px;
  }

  .stack-tags {
    gap: 7px;
  }

  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

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

  .contact-form .form-group input,
  .contact-form .form-group textarea {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
  }
}

@media (max-width: 650px) {
  .container {
    width: 92%;
  }

  .navbar {
    min-height: 64px;
    gap: 10px;
  }

  .nav-menu {
    top: 64px;
    padding: 12px 4%;
  }

  .logo {
    font-size: 1.25rem;
  }

  .theme-btn,
  .menu-btn {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .hero-grid {
    gap: 35px;
  }

  .hero-visual {
    width: 100%;
  }

  .profile-wrapper {
    width: min(230px, 68vw);
    margin-inline: auto;
  }

  .profile-ring {
    padding: 6px;
  }

  .profile-image {
    border-width: 6px;
  }

  .profile-badge {
    right: -5px;
    bottom: 5px;
    padding: 9px 11px;
    font-size: 0.7rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 14vw, 3.5rem);
    letter-spacing: -2px;
    line-height: 1.05;
  }

  .hero h2 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    flex: none;
  }

  .btn {
    width: 100%;
    padding: 11px 16px;
  }

  .hero-socials {
    margin-top: 15px;
    margin-bottom: 20px;
    margin-left: 130px;
    gap: 10px;
  }

  .hero-socials a {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .currently-learning {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
  }

  .learning-tags {
    gap: 11px;
    margin-left: 0px;
  }

  .stack-tags {
    gap: 6px;
  }

  .stack-tag {
    font-size: 0.72rem;
    padding: 5px 8px;
  }

  .proof-bar {
    padding: 25px 0;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .proof-item strong {
    font-size: 1.5rem;
  }

  section {
    padding: 65px 0;
    scroll-margin-top: 65px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .section-heading p {
    font-size: 0.92rem;
  }

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

  .about-card {
    padding: 20px;
  }

  .about-card p {
    font-size: 0.9rem;
  }

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

  .skill-card {
    padding: 20px;
  }

  .featured-project {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
    margin-bottom: 20px;
  }

  .project-content h3 {
    font-size: 1.5rem;
  }

  .project-content p {
    font-size: 0.9rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-card {
    padding: 20px;
  }

  .timeline {
    max-width: 100%;
  }

  .timeline-item {
    padding-left: 35px;
    margin-bottom: 30px;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-dot {
    left: 2px;
    width: 13px;
    height: 13px;
  }

  .timeline-item h3 {
    font-size: 1rem;
  }

  .timeline-item p {
    font-size: 0.9rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .process-card {
    padding: 20px;
  }

  .education-card {
    padding: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-info,
  .contact-form {
    padding: 20px;
  }

  .contact-info > p {
    font-size: 0.9rem;
  }

  .contact-item {
    align-items: flex-start;
  }

  .contact-item span {
    font-size: 0.82rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-socials {
    gap: 18px;
  }
}

@media (max-width: 420px) {
  .container {
    width: 90%;
  }

  .hero {
    padding-top: 100px;
  }

  .profile-wrapper {
    width: min(205px, 65vw);
  }

  .profile-badge {
    font-size: 0.65rem;
    padding: 8px 9px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 14vw, 3rem);
  }

  .hero h2 {
    font-size: 1.3rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .availability {
    font-size: 0.72rem;
    padding: 6px 9px;
  }
  .hero-socials {
    margin-left: 90px;
  }

  .learning-tag {
    font-size: 0.7rem;
    padding: 4px 8px;
    margin-left: 0px;
  }

  .stack-tag {
    font-size: 0.68rem;
  }

  .hero-socials a {
    width: 40px;
    height: 40px;
  }

  .section-heading h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 340px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .profile-wrapper {
    width: 185px;
  }

  .profile-badge {
    display: none;
  }

  .hero-socials {
    gap: 6px;
  }

  .hero-socials a {
    width: 38px;
    height: 38px;
  }

  .proof-item strong {
    font-size: 1.35rem;
  }
}

/* =========================
   DJANGO ADDITIONS
   (contact-form feedback + spam honeypot; nothing else changed)
========================== */

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.form-status:empty {
  display: none;
}

.form-status.success {
  color: #22c55e;
}

.form-status.error {
  color: #f87171;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
