/* =========================================================
   NETHMI DIWYANJALEE PORTFOLIO
   Main stylesheet
   ========================================================= */

:root {
  --primary: #2563eb;
  --primary-dark: #1749c4;
  --primary-light: #eaf1ff;
  --text: #111827;
  --muted: #667085;
  --border: #d0e4fe;
  --surface: #ffffff;
  --soft: #f7faff;
  --navy: #101a35;
  --shadow: 0 14px 40px rgba(13, 65, 156, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #f1f4f9;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

.navbar {
  height: 74px;
  background: rgba(245, 247, 251, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(230, 235, 245, 0.8);
  transition: .3s ease;
  z-index: 1000;
}

.navbar.scrolled {
  box-shadow: 0 8px 30px rgba(18, 79, 222, 0.08);
}

.navbar-brand {
  color: var(--text);
  line-height: 1;
}

.navbar-brand strong {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.navbar-brand small {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2d6bff, #2052d5);
  color: white;
  font-size: 18px;
}

.navbar .nav-link {
  color: #151c2e;
  font-size: 14px;
  font-weight: 700;
  margin: 0 8px;
  position: relative;
  transition: .25s ease;
}

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

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: -5px;
  height: 2px;
  border-radius: 5px;
  background: var(--primary);
}

.btn-primary {
  background: linear-gradient(135deg, #2c67f6, #2858dc);
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(37, 99, 235, .18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e56dd, #174bc9);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border-width: 1.5px;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn {
  font-size: 14px;
  font-weight: 700;
  transition: .25s ease;
}


/* HERO */
.hero-section {
  min-height: 0;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(224, 239, 255, .9), transparent 24%),
    linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -90px;
  height: 160px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 50% 50% 0 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(203, 226, 255, .35);
}

.shape-one {
  width: 145px;
  height: 145px;
  right: -45px;
  top: 155px;
}

.shape-two {
  width: 100px;
  height: 100px;
  left: -48px;
  bottom: 130px;
}

.profile-wrapper {
  position: relative;
  max-width: 430px;
  margin: auto;
  padding-top: 10px;
}

.profile-card {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 420px;
  border-radius: 35px 65px 35px 65px;
  overflow: hidden;
  background: rgba(255,255,255,.9);
  border: 9px solid #d0e4fe;
  box-shadow: 0 25px 60px rgba(41, 82, 155, .14);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-fallback {
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  gap: 8px;
  font-weight: 700;
}

.profile-fallback i {
  font-size: 70px;
}

.profile-decoration {
  position: absolute;
  z-index: 1;
  border: 1px solid #b9d7ff;
  border-radius: 50%;
}

.decoration-one {
  width: 310px;
  height: 310px;
  left: -45px;
  bottom: -40px;
}

.decoration-two {
  width: 60px;
  height: 60px;
  right: -22px;
  top: 30px;
  background: #e6f1ff;
  border: 0;
}

.hero-content {
  padding: 15px 0 15px 30px;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  color: var(--primary);
  background: #dde9fe;
  border-radius: 30px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .6px;
}

/* ================= AVAILABILITY STATUS ================= */

.availability-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  margin-left: 15px;
  margin-bottom: 5px;
  border-radius: 30px;
  background: #ecfdf3;
  border: 1px solid #b7ebca;
  color: #16803c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 5px 18px rgba(22, 128, 60, .08);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  animation: statusPulse 1.8s infinite;
}

/* Pulsing green active indicator */
@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.hero-content h1 {
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -2.6px;
  margin: 16px 0 5px;
  font-weight: 800;
}

.hero-content h1 span {
  color: var(--primary);
}

.typing-line {
  min-height: 42px;
  font-size: clamp(22px, 3vw, 27px);
  font-weight: 800;
  color: #151d31;
}

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

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

.hero-description {
  max-width: 620px;
  color: #4b5568;
  font-size: 1.02rem;
  margin: 14px 0 22px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 9px;
}

.highlight-icon {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #eef4ff;
  font-size: 17px;
}

.highlight b,
.highlight small {
  display: block;
  line-height: 1.25;
}

.highlight b {
  font-size: 14px;
}

.highlight small {
  font-size: 12px;
  color: #6d7686;
}

@media (max-width: 768px) {
  .highlight b {
    text-align: left;
  }
  
  .highlight small {
    text-align: left;
  }
}

@media (max-width: 768px) {

  .highlight:nth-child(1) {
    padding-left: 35px; /* ← CHANGED: WordPress */
  }

  .highlight:nth-child(3) {
    padding-left: 35px; /* ← CHANGED: Responsive */
  }

}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  color: #29334a;
  transition: .25s;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.build-line {
  font-size: 14px;
  margin: 12px 0 0 2px;
  color: #4b5563;
  display: inline-block;
  position: relative;
}

.build-line::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--primary);
  margin-top: 3px;
  border-radius: 4px;
}

@media (max-width: 991px) {

  .hero-section {
    padding: 70px 0 55px;        /* ← CHANGED for tablet/mobile */
  }

  .profile-wrapper {
    padding-top: 0;              /* ← CHANGED */
  }

  .hero-content {
    padding: 15px 0 0;            /* ← CHANGED */
  }

}


/* GENERAL SECTIONS */
.section-space {
  padding: 78px 0;
}

.light-section,
.projects-section {
  background: #f4f7fb;
}

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

.section-heading h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 12px 0 6px;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
  margin: 0 auto;
  max-width: 620px;
}

.content-card,
.contact-info-card,
.contact-form-card {
  background: rgba(255,255,255,.96);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.section-mini-title {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .7px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.section-mini-title span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf3ff;
  font-size: 17px;
}

.content-card h2 {
  margin: 9px 0 14px;
  font-size: 24px;
  font-weight: 800;
}

.content-card p {
  font-size: 16px;
  color: #4e5869;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
  margin: 24px 0 10px 0;
}

.about-details > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.about-details > div > i {
  color: var(--primary);
  font-size: 18px;
}

.about-details small,
.about-details span span {
  display: block;
}

.about-details small {
  color: #4c79c7fe;
  font-size: 13px;
  margin-bottom: 2px; /* ← ADDED */
  line-height: 1.1;    /* ← ADDED */
}

.about-details span {
  font-size: 15px;
  font-weight: 600;
}

.about-focus {
	margin-top: 25px;
}

.focus-items {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.focus-items span {
  font-size: 16px;
  line-height: 1.45;
	font-weight: 400;
}

.focus-items div {
	display: flex;
	align-items: center;
	gap: 12px;
	padding:  0 15px;
}

.focus-items i {
	font-size: 20px;
	color: var(--primary);
}

/* SKILLS */
.skill-group {
  margin-top: 20px;
}

.skill-group h6 {
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span,
.tech-list span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 20px;
  background: #f0f4fa;
  color: #4a5568;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #e7ecf3;
  margin-bottom: 6px;
}

.skill-tags span:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #cbdcff;
}

.learning-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f2f7ff;
  border: 1px solid #dfeaff;
  border-radius: 13px;
  padding: 12px;
  margin-top: 27px;
}

.learning-box > i {
  color: var(--primary);
  font-size: 25px;
}

.learning-box strong,
.learning-box small {
  display: block;
}

.learning-box strong {
  font-size: 14px;
}

.learning-box small {
  color: #637086;
  font-size: 13px;
}


/* PROJECTS */
.project-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: white;
  box-shadow: 0 12px 35px rgba(28, 55, 100, .07);
  transition: .3s ease;
}

.project-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform .5s ease;
}

.project-card:hover .project-image::before {
  transform: scale(1.26);
}

.project-actions {
  position: absolute;
  right: 14px;
  top: 13px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.project-actions a {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--primary-light);
  background: var(--navy);
  font-size: 13px;
  transition: .2s;
}

.project-actions a:hover {
  color: white;
  background: var(--primary);
}

.project-type-label {
  position: absolute;
  left: 13px;
  top: 13px;
  z-index: 2;
  max-width: calc(100% - 65px);
  padding: 5px 9px;
  border-radius: 20px;
  color: white;
  background: rgba(16, 26, 53, .82);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .25px;
  text-transform: uppercase;
}

.project-singatours {
  background: url("assets/singatours.png") center/cover;
}

.project-lms {
  background: url("assets/LMS-site.png") center/cover;
  display: grid;
  place-items: center;
}

.project-coffee-site {
  background: url("assets/coffee-site.png") center/cover;
}

.project-saloon {
  background: url("assets/infinity_beauty.png") center/cover;
}

.project-e-commerce {
  background: url("assets/bagage-site.png") center/cover;
}

.project-travique {
  background: url("assets/travique.png") center/cover;
}

.project-italian-restaurant {
  background: url("assets/italian-restaurant.png") center/cover;
}
/* NEW: FixNow UI/UX Design project thumbnail */
.project-fixnow-uiux {
    background: url("assets/fixnow-uiux.png") center/cover;
}

.project-body {
  padding: 17px 18px 18px;
}

.project-body h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 7px;
}

.project-body p {
  color: #657083;
  font-size: 13px;
  min-height: 58px;
  margin-bottom: 10px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tech-list span {
  font-size: 12px;
  padding: 4px 7px;
}

.tech-list span:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #cbdcff;
}

/* SERVICES */
.service-section {
  background: #101a35;
}


.service-section h2 {
  color: white;
  margin-top: 24px;
}

.service-section p {
  color: #929fb7;
}

.service-card {
  height: 100%;
  padding: 25px 20px;
  text-align: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(25, 50, 100, .05);
  transition: .3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-dark);
  box-shadow: 0 18px 40px rgba(149, 175, 219, 0.2);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #edf3ff;
  font-size: 23px;
}

.service-card h4 {
  font-size: 17px;
  font-weight: 800;
}

.service-card p {
  color: #6c7687;
  font-size: 15px;
  margin: 0;
}


/* EXPERIENCE */
.timeline {
  margin-top: 25px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #d9e3f2;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  padding-bottom: 28px;
}

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

.timeline-dot {
  position: absolute;
  left: 0;
  top: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--primary);
}

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

.timeline-top h4 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.timeline-top span {
  white-space: nowrap;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  background: #edf3ff;
  border-radius: 15px;
  padding: 4px 8px;
}

.timeline-item .company {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 7px;
}

.timeline-item p,
.timeline-item li {
  font-size: 12px;
  color: #647083;
}

.timeline-item ul {
  padding-left: 18px;
  margin: 0;
}

.timeline-item li {
  margin-bottom: 3px;
}

.education-list {
  margin-top: 40px;
}

.education-item {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid #edf0f5;
}

.education-item:first-child {
  padding: 0 0 15px 0;
}
.education-item:last-child {
  border-bottom: 0;
}

.edu-icon {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #edf3ff;
  color: var(--primary);
}

.edu-heading {
  display: flex;
  justify-content:flex-start;
  gap: 15px;
}

.edu-heading h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.edu-heading span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  background: #edf3ff;
  border-radius: 15px;
  padding: 4px 8px;
}

.education-item p {
  margin: 2px 0 0;
  color: #6d7685;
  font-size: 12px;
}

@media (max-width: 767px) {

  .edu-heading {
    align-items: flex-start;
    gap: 8px; /* ← CHANGED: reduced from 15px */
    flex-wrap: wrap; /* ← ADDED: allows duration to move naturally */
  }

  .edu-heading h4 {
    font-size: 14px; /* ← CHANGED: slightly smaller on mobile */
    line-height: 1.45;
    flex: 1;
  }

  .edu-heading span {
    font-size: 10px; /* ← CHANGED: reduced from 11px */
    padding: 3px 6px; /* ← CHANGED: reduced from 4px 8px */
    flex-shrink: 0;
  }

  .education-item p {
    line-height: 1.5;
  }

}

/* CONTACT */
.contact-section {
  background: linear-gradient(180deg, #f4f7fb, #edf2f8);
}
.contact-info-card h3,
.contact-form-card h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-info-card > p {
  color: #667085;
  font-size: 15px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eef1f6;
  color: var(--text);
  transition: all 0.3s ease;
  border-radius: 10px;
}

.contact-item:hover {
  color: var(--primary);
  transform: translateX(8px);
  background: rgba(26, 62, 124, 0.06);
  box-shadow: 0 5px 18px rgba(26, 62, 124, 0.10);
}

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

.contact-item > span {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #edf3ff;
  color: var(--primary);
}

.contact-item small,
.contact-item strong {
  display: block;
}

.contact-item small {
  color: #2c66e2da;
  font-size: 13px;
  font-weight: bold;
}

.contact-item strong {
  font-size: 14px;
}

.contact-form-card label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 700;
}

.form-control {
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 2px;
  font-size: 13px;
  box-shadow: none !important;
}

.form-control:focus {
  border-color: #8eb1ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.08) !important;
}

.form-message {
  display: none;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #edf8f0;
  color: #2e7b43;
  font-size: 12px;
}

.send-btn {
  margin-top: 27px;
}

.send-btn .btn {
  padding: 8px 0;
}

/* FOOTER */
footer {
  background: #101a35;
  color: #d7deec;
  padding: 42px 0 20px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  padding-bottom: 25px;
}

.footer-brand {
  color: white;
  font-size: 22px;
  font-weight: 800;
}

.footer-brand span {
  color: #4e80ff;
}

.footer-main p {
  max-width: 450px;
  margin: 5px 0 0;
  color: #AAB3C4;
  font-size: 12px;
}

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

.footer-socials a {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(226, 216, 216, 0.12);
  color: #d1dff9;
  border-radius: 50%;
  transition: .5s;
}

.footer-socials a:hover {
  background: var(--primary);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  color: #AAB3C4;
  font-size: 13px;
}

.footer-bottom a {
  color: #c9d4e7;
}

/* BACK TO TOP */
#backToTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px rgba(37,99,235,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s;
  z-index: 999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   SMOOTH SECTION SCROLL ANIMATION
   ========================================================= */

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Sections/content slide up */
.reveal {
  transform: translateY(45px);
}

/* Slide from left */
.reveal-left {
  transform: translateX(-45px);
}

/* Slide from right */
.reveal-right {
  transform: translateX(45px);
}

/* Visible state */
.reveal.show,
.reveal-left.show,
.reveal-right.show {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
  .navbar {
    height: auto;
    min-height: 70px;
  }

  .navbar .nav-link {
    padding: 10px 0;
  }

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

  .navbar-collapse {
    padding: 14px 0 18px;
  }

  .hero-section {
    padding-top: 105px;
  }

  .hero-content {
    padding-left: 0;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-highlights,
  .hero-buttons,
  .social-links {
    justify-content: center;
  }

  .build-line {
    margin-left: auto;
    margin-right: auto;
  }

  .profile-wrapper {
    max-width: 350px;
  }

  .profile-card {
    height: 380px;
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding: 60px 0;
  }

  .hero-section {
    padding: 105px 0 60px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .typing-line {
    font-size: 21px;
  }

  .profile-wrapper {
    max-width: 310px;
  }

  .profile-card {
    height: 340px;
  }

  .hero-highlights {
    gap: 14px;
  }

  .highlight {
    width: 42%;
    justify-content: flex-start;
  }

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

  .timeline-top {
    flex-direction: column;
    gap: 7px;
  }

  .timeline-top span {
    align-self: flex-start;
  }

  .footer-main,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-socials {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 34px;
  }

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

  .hero-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .highlight {
    width: 100%;
  }

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

  .project-image {
    height: 165px;
  }
}

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

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

/* =========================================================
   ADVANCED / MODERN UI FEATURES
   ========================================================= */
:root {
  --bg: #f1f4f9;
  --card: #ffffff;
  --heading: #111827;
}

body {
  background: var(--bg);
  transition: background .35s ease, color .35s ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), #155ffe);
  z-index: 2000;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-right: 10px;
  transition: .25s ease;
}

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

.stats-section {
  background: var(--bg);
  padding: 0 0 25px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat-item {
  text-align: center;
  padding: 24px 15px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { 
  border-right: 0; 
}

.stat-number, .stat-plus { 
  color: var(--primary); 
  font-size: 30px; 
  font-weight: 800; 
  line-height: 1; 
}

.stat-item small { 
  display:block; 
  color: var(--muted); 
  margin-top: 8px; 
  font-size: 12px; 
  font-weight: 700; 
}

.project-filters {
  display:flex; 
  flex-wrap:wrap; 
  justify-content:center; 
  gap:8px;
   margin: -15px 0 30px;
}

.filter-btn {
  border:1px solid var(--border); 
  background:var(--surface); 
  color:var(--muted);
  padding:8px 15px; 
  border-radius:30px; 
  font-size:12px; 
  font-weight:800; 
  transition:.25s;
}

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

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

.project-details-btn {
  border:0; 
  background:transparent; 
  color:var(--primary); 
  padding:7px 0 0;
  font-size:12px; 
  font-weight:800; 
  transition:.2s;
}

.project-details-btn:hover { 
  transform:translateX(4px); 
}

.project-card {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: #bfd7ff;
  box-shadow: 0 20px 45px rgba(28, 55, 100, .12);
}

.project-image {
  height: 190px;
}

.project-body {
  display: flex;
  flex-direction: column;
}

.project-body .tech-list {
  min-height: 30px;
}

.project-details-btn {
  margin-top: auto;
}

.modal-project-type {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.modal-description {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.modal-info-card {
  padding: 14px 15px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.modal-info-label {
  display: block;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .7px;
  margin-bottom: 4px;
}

.modal-info-card strong {
  color: var(--text);
  font-size: 13px;
}

.modal-feature-section {
  margin-top: 20px;
}

.modal-feature-section h5 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.modal-feature-section h5 i {
  color: var(--primary);
}

.modal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-features span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.modal-repository-note {
  display: none;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--muted);
  font-size: 12px;
}

.modal-repository-note i {
  color: var(--primary);
}

.project-modal {
  background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:20px;
}
.project-modal .modal-header { border-bottom:1px solid var(--border); }
.project-modal h3 { margin:8px 0 0; font-weight:800; }
.project-modal .modal-body { padding:25px; color:var(--muted); }
.modal-tech { display:flex; flex-wrap:wrap; gap:7px; margin:20px 0; }
.modal-tech span { padding:6px 10px; border-radius:20px; background:var(--primary-light); color:var(--primary); font-size:12px; font-weight:700; }
.modal-actions { display:flex; gap:10px; flex-wrap:wrap; }

body.dark-mode {
  --text:#e8edf7;
  --heading:#f5f7fb;
  --muted:#aab5c8;
  --border:#293750;
  --surface:#121b2e;
  --soft:#172238;
  --bg:#0a1220;
  color:var(--text);
  background:var(--bg);
}
body.dark-mode .navbar { background:rgba(10,18,32,.92); border-color:#24324a; }
body.dark-mode .navbar .nav-link, body.dark-mode .navbar-brand { color:#e8edf7; }
body.dark-mode .navbar-toggler { color:#fff; }
body.dark-mode .hero-section { background:radial-gradient(circle at 80% 20%, rgba(37,99,235,.15), transparent 26%), linear-gradient(180deg,#0d1728,#0a1220); }
body.dark-mode .hero-section::after { background:var(--bg); }
body.dark-mode .hero-description, body.dark-mode .content-card p, body.dark-mode .project-body p,
body.dark-mode .timeline-item p, body.dark-mode .timeline-item li, body.dark-mode .education-item p { color:var(--muted); }
body.dark-mode .typing-line, body.dark-mode .hero-content h1, body.dark-mode .content-card h2,
body.dark-mode .section-heading h2, body.dark-mode .project-body h4 { color:var(--heading); }
body.dark-mode .light-section, body.dark-mode .projects-section, body.dark-mode .contact-section { background:var(--bg); }
body.dark-mode .content-card, body.dark-mode .contact-info-card, body.dark-mode .contact-form-card,
body.dark-mode .project-card, body.dark-mode .service-card, body.dark-mode .stats-grid { background:var(--surface); border-color:var(--border); }
body.dark-mode .skill-tags span, body.dark-mode .tech-list span { background:#19243a; color:#b8c3d5; border-color:#2a3953; }
body.dark-mode .learning-box { background:#14223a; border-color:#293c5d; }
body.dark-mode .form-control { background:#0f192b; color:#e8edf7; border-color:#2b3a54; }
body.dark-mode .form-control::placeholder { color:#73819a; }
body.dark-mode .service-section { background:#070e19; }
body.dark-mode .project-modal { background:var(--surface); }
body.dark-mode .modal-info-card,
body.dark-mode .modal-features span { background:#172238; }
body.dark-mode .modal-repository-note { background:#14223a; }

body.dark-mode .btn-close { filter:invert(1); }
body.dark-mode .theme-toggle { background:#172238; }
body.dark-mode .project-filters .filter-btn { background:var(--surface); color:var(--muted); }
body.dark-mode .project-filters .filter-btn.active { background:var(--primary); color:#fff; }

/* Dark-mode overrides for elements that used hard-coded light colours */
body.dark-mode .eyebrow,
body.dark-mode .section-kicker,
body.dark-mode .highlight-icon,
body.dark-mode .section-mini-title span,
body.dark-mode .service-icon,
body.dark-mode .edu-icon,
body.dark-mode .contact-item > span,
body.dark-mode .timeline-top span,
body.dark-mode .edu-heading span { background: rgba(37, 99, 235, .16); color: #7fa6ff; }
body.dark-mode .highlight small,
body.dark-mode .learning-box small { color: var(--muted); }
body.dark-mode .social-links a { background: var(--surface); color: var(--text); border-color: var(--border); }
body.dark-mode .social-links a:hover { background: var(--primary); color: #fff; }
body.dark-mode .profile-card { background: var(--surface); border-color: #22365a; }
body.dark-mode .profile-decoration { border-color: #22365a; }
body.dark-mode .decoration-two,
body.dark-mode .hero-shape { background: rgba(37, 99, 235, .12); }
body.dark-mode .timeline::before { background: var(--border); }
body.dark-mode .education-item,
body.dark-mode .contact-item { border-color: var(--border); }
body.dark-mode .build-line { color: var(--muted); }
body.dark-mode .availability-status { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .35); color: #4ade80; }
body.dark-mode .form-message { background: rgba(34, 197, 94, .12); color: #4ade80; }

@media (max-width: 991.98px) {
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right:0; }
  .stat-item:nth-child(-n+2) { border-bottom:1px solid var(--border); }
  .theme-toggle { margin:10px 0 12px; }
}
@media (max-width: 575.98px) {
  .stats-grid { 
    grid-template-columns:repeat(2,1fr); 
  }
  .stat-item { border-right:0; border-bottom:1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right:1px solid var(--border); }
  .stat-item:nth-last-child(-n+2) { border-bottom:0; }
}

/* =========================================================
   REFINED LIGHT-MODE SECTION BACKGROUNDS
   ========================================================= */
body:not(.dark-mode) {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --soft: #eef4ff;
}

body:not(.dark-mode) .hero-section {
  background:
    radial-gradient(circle at 82% 18%, rgba(219, 234, 254, .9), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
}

body:not(.dark-mode) .stats-section {
  background: #f6f8fc;
}

body:not(.dark-mode) #about {
  background: #ffffff;
}

body:not(.dark-mode) .projects-section {
  background: linear-gradient(180deg, #f1f5f9 0%, #eaf1f8 100%);
}

body:not(.dark-mode) #experience {
  background: #f8fafc;
}

body:not(.dark-mode) .contact-section {
  background: linear-gradient(180deg, #eef5ff 0%, #e8f0fa 100%);
}

/* Make cards stand out naturally against the new section tones */
body:not(.dark-mode) .content-card,
body:not(.dark-mode) .project-card,
body:not(.dark-mode) .service-card,
body:not(.dark-mode) .contact-info-card,
body:not(.dark-mode) .contact-form-card {
  background: rgba(255, 255, 255, .98);
}

body:not(.dark-mode) .skill-tags span,
body:not(.dark-mode) .tech-list span {
  background: #f1f5f9;
}

body:not(.dark-mode) .learning-box {
  background: #eff6ff;
}
