:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --surface: rgba(18, 35, 57, 0.72);
  --surface-solid: #10213a;
  --surface-hover: #142b49;
  --text: #f7fbff;
  --muted: #9fb0c7;
  --primary: #38bdf8;
  --primary-strong: #0ea5e9;
  --secondary: #8b5cf6;
  --border: rgba(148, 163, 184, 0.16);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  --header: rgba(7, 17, 31, 0.84);
  --radius: 24px;
  --transition: 0.3s ease;
}
.profile-placeholder img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}
body.light-theme {
  --bg: #f4f8fc;
  --bg-soft: #eaf1f8;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-hover: #f7fbff;
  --text: #0f1f33;
  --muted: #607086;
  --border: rgba(15, 31, 51, 0.12);
  --shadow: 0 20px 50px rgba(33, 57, 84, 0.13);
  --header: rgba(244, 248, 252, 0.88);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.022) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 110px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1200;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  background: var(--header);
  backdrop-filter: blur(18px);
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.navbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.menu-toggle {
  display: none;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
  transition: var(--transition);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 125px;
  padding-bottom: 90px;
}

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

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.4;
}

.hero-glow-one {
  width: 480px;
  height: 480px;
  top: 5%;
  right: -170px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.26), transparent 68%);
}

.hero-glow-two {
  width: 420px;
  height: 420px;
  bottom: -100px;
  left: -150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 68%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.12);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero h2 {
  min-height: 48px;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 24px;
}

.typing-cursor {
  color: var(--primary);
  animation: blink 0.8s infinite;
}

.hero-description {
  max-width: 660px;
  font-size: 1.06rem;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.btn {
  min-height: 52px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: var(--transition);
}

.btn-primary {
  color: #03111d;
  background: linear-gradient(135deg, var(--primary), #67e8f9);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.22);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 36px rgba(56, 189, 248, 0.32);
}

.btn-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

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

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a,
.footer-socials a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  transition: var(--transition);
}

.social-links a:hover,
.footer-socials a:hover {
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.hero-visual {
  display: grid;
  place-items: center;
}

.profile-card {
  position: relative;
  width: min(410px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.1), rgba(139, 92, 246, 0.08)),
    var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(56, 189, 248, 0.27);
  border-radius: 30px;
  animation: rotate 22s linear infinite;
}

.profile-ring {
  width: 235px;
  height: 235px;
  padding: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 22px 60px rgba(56, 189, 248, 0.22);
  z-index: 2;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-solid);
  border: 7px solid var(--bg);
}

.profile-placeholder span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4.7rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  font-weight: 700;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.floating-badge i {
  color: var(--primary);
}

.badge-code {
  top: 15%;
  left: -8%;
}

.badge-data {
  right: -10%;
  top: 49%;
  animation-delay: 0.8s;
}

.badge-web {
  left: 7%;
  bottom: 8%;
  animation-delay: 1.5s;
}

.scroll-down {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  gap: 5px;
  animation: floatSmall 2.4s ease-in-out infinite;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 58px;
  text-align: center;
}

.section-label {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 25px;
  align-items: stretch;
}

.about-card,
.skill-category,
.timeline-card,
.project-card,
.education-card,
.contact-info,
.contact-form,
.coursework,
.soft-skills {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(15px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-card {
  padding: 35px;
}

.about-icon,
.education-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.12);
  margin-bottom: 23px;
  font-size: 1.2rem;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.about-card p {
  color: var(--muted);
  margin-top: 12px;
}

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

.stat-card {
  padding: 26px 20px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat-card strong,
.stat-card > span {
  display: inline;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-card p {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 10px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.focus-card {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
}

.focus-card:hover {
  transform: translateY(-7px);
  border-color: rgba(56, 189, 248, 0.48);
}

.focus-card i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 17px;
}

.focus-card h3 {
  margin-bottom: 9px;
}

.focus-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.skill-category {
  padding: 28px;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.skill-category-header i {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.11);
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.skill-item:last-child {
  border-bottom: 0;
}

.skill-item i {
  color: var(--primary);
  font-size: 1.05rem;
}

.soft-skills {
  padding: 28px;
  margin-top: 22px;
}

.soft-skills h3 {
  margin-bottom: 18px;
}

.tag-list,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span,
.project-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.07);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
}

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

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 162px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--secondary));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 55px;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
  padding-top: 28px;
}

.timeline-dot {
  position: absolute;
  left: 153px;
  top: 29px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 5px solid var(--bg);
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.17);
  z-index: 2;
}

.section-alt .timeline-dot {
  border-color: var(--bg-soft);
}

.timeline-card {
  padding: 28px;
}

.timeline-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.timeline-top > i {
  color: var(--primary);
  font-size: 1.4rem;
}

.company,
.institution {
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

.timeline-card ul {
  list-style: disc;
  padding-left: 18px;
  color: var(--muted);
}

.timeline-card li + li {
  margin-top: 7px;
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.filter-btn {
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  border-radius: 999px;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  color: #03111d;
  border-color: var(--primary);
  background: var(--primary);
}

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

.project-card {
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.42);
}

.project-card.hidden {
  display: none;
}

.project-image {
  min-height: 210px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 12px;
  overflow: hidden;
  position: relative;
}

.project-image::before,
.project-image::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.project-image::before {
  width: 170px;
  height: 170px;
  top: -70px;
  right: -50px;
}

.project-image::after {
  width: 130px;
  height: 130px;
  left: -45px;
  bottom: -55px;
}

.project-image i {
  font-size: 3.8rem;
  color: rgba(255, 255, 255, 0.94);
  z-index: 1;
}

.project-image span {
  color: white;
  font-weight: 800;
  z-index: 1;
}

.project-image-one { background: linear-gradient(135deg, #0f766e, #0891b2); }
.project-image-two { background: linear-gradient(135deg, #7c3aed, #db2777); }
.project-image-three { background: linear-gradient(135deg, #0369a1, #2563eb); }
.project-image-four { background: linear-gradient(135deg, #be123c, #f43f5e); }
.project-image-five { background: linear-gradient(135deg, #1d4ed8, #7c3aed); }
.project-image-six { background: linear-gradient(135deg, #b45309, #ea580c); }

.project-content {
  padding: 28px;
}

.project-type {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.project-content h3 {
  font-size: 1.35rem;
  margin-bottom: 11px;
}

.project-content p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 18px;
}

.project-links {
  margin-top: 20px;
}

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

.project-links a i {
  margin-left: 6px;
  transition: var(--transition);
}

.project-links a:hover i {
  transform: translate(3px, -3px);
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.education-card {
  padding: 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
}

.education-date {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 7px;
}

.education-card h3 {
  font-size: 1.2rem;
}

.education-card p:last-child {
  color: var(--muted);
  margin-top: 10px;
  font-size: 0.92rem;
}

.coursework {
  padding: 28px;
  margin-top: 24px;
}

.coursework h3 {
  margin-bottom: 18px;
}

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

.course-grid span {
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--border);
}

.course-grid i {
  color: var(--primary);
  margin-right: 8px;
}

.contact-section {
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -230px;
  top: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 68%);
}

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

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

.contact-info > p {
  color: var(--muted);
  margin: 12px 0 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item > span {
  flex: 0 0 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
}

.contact-item small {
  display: block;
  color: var(--muted);
}

.contact-item strong {
  font-size: 0.91rem;
  word-break: break-word;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;
  padding: 14px 15px;
  transition: var(--transition);
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.form-submit {
  border: 0;
}

.form-note {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 13px;
}

.footer {
  padding: 38px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

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

.footer-content > div:first-child p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 3px;
}

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

.copyright {
  color: var(--muted);
  font-size: 0.84rem;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  color: #03111d;
  background: var(--primary);
  box-shadow: 0 12px 25px rgba(56, 189, 248, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  z-index: 800;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.12); }
  50% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0.03); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

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

@keyframes floatSmall {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -7px); }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    order: 3;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    left: 20px;
    right: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    display: block;
    padding: 11px 12px;
  }

  .nav-link::after {
    display: none;
  }

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

  .hero-grid {
    gap: 60px;
  }

  .hero-content {
    text-align: center;
  }

  .eyebrow,
  .hero-actions,
  .social-links {
    justify-content: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-visual {
    order: -1;
  }

  .profile-card {
    width: min(360px, 90%);
  }

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

  .skill-category:last-child {
    grid-column: span 2;
  }

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

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

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

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

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .section {
    padding: 82px 0;
  }

  .navbar {
    height: 70px;
  }

  .nav-links {
    top: 70px;
    left: 14px;
    right: 14px;
  }

  .hero {
    padding-top: 105px;
  }

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

  .profile-card {
    width: 290px;
    border-radius: 28px;
  }

  .profile-ring {
    width: 180px;
    height: 180px;
  }

  .profile-placeholder span {
    font-size: 3.5rem;
  }

  .floating-badge {
    padding: 9px 11px;
    font-size: 0.72rem;
  }

  .badge-code { left: -6%; }
  .badge-data { right: -7%; }
  .badge-web { left: 4%; }

  .about-stats,
  .focus-grid,
  .skills-grid,
  .course-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .skill-category:last-child {
    grid-column: auto;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 38px;
  }

  .timeline-date {
    text-align: left;
    padding-top: 0;
  }

  .timeline-dot {
    left: 1px;
    top: 5px;
  }

  .education-card {
    grid-template-columns: 1fr;
  }

  .education-icon {
    margin-bottom: 0;
  }

  .contact-info,
  .contact-form,
  .about-card,
  .skill-category,
  .timeline-card,
  .education-card,
  .project-content {
    padding: 24px;
  }

  .scroll-down {
    display: none;
  }
}

@media (max-width: 440px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .profile-card {
    width: 250px;
  }

  .floating-badge span {
    display: none;
  }

  .floating-badge {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .project-image {
    min-height: 180px;
  }
}
