/*==================== DESIGN TOKENS ====================*/
:root {
  --header-height: 3.5rem;

  /* Brand palette — coral-rose signature on warm near-white, deep plum ink */
  --accent: #f4506b;
  --accent-strong: #e6395a;
  --accent-soft: #ffe3e9;
  --accent-glow: rgba(244, 80, 107, 0.35);

  --ink: #1c1420;          /* headings */
  --text: #5c5561;         /* body */
  --muted: #918a97;        /* captions */
  --bg: #fbf7f8;           /* page */
  --surface: #ffffff;      /* cards */
  --surface-2: #fff1f4;    /* tinted fields / soft blocks */
  --plum: #201526;         /* dark bands */
  --line: rgba(28, 20, 32, 0.08);
  --line-strong: rgba(28, 20, 32, 0.14);
  --shadow-sm: 0 2px 8px rgba(28, 20, 32, 0.06);
  --shadow-md: 0 14px 40px rgba(28, 20, 32, 0.10);
  --shadow-accent: 0 16px 34px rgba(244, 80, 107, 0.28);

  /* Type */
  --font-display: "Space Grotesk", "Poppins", sans-serif;
  --font-body: "Inter", "Poppins", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --big-font-size: 3rem;
  --h1-font-size: 1.9rem;
  --h2-font-size: 1.4rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.78rem;

  --font-medium: 500;
  --font-semi-bold: 600;

  --z-fixed: 100;
  --z-modal: 1000;
}

/* Dark theme (toggled by main.js via .dark-theme on body) */
body.dark-theme {
  --ink: #f4eef6;
  --text: #b9b0c1;
  --muted: #8b8194;
  --bg: #141019;
  --surface: #1d1726;
  --surface-2: #241b30;
  --plum: #0f0a14;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.45);
  --accent-soft: rgba(244, 80, 107, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--normal-font-size);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: var(--font-semi-bold);
  line-height: 1.15;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

::selection { background: var(--accent); color: #fff; }

/*==================== LAYOUT HELPERS ====================*/
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.grid { display: grid; gap: 1.5rem; }

.section { padding-block: 6rem; }
section[id] { scroll-margin-top: 5rem; }

/* Shared section header + code-comment eyebrow (the signature motif) */
.section__head {
  max-width: 660px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--smaller-font-size);
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}
.section__title span { color: var(--accent); }

.section__subtitle {
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--normal-font-size);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/*==================== BUTTONS ====================*/
.button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  padding: 0.95rem 1.6rem;
  border-radius: 0.85rem;
  font-weight: var(--font-medium);
  font-family: var(--font-body);
  box-shadow: var(--shadow-accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(244, 80, 107, 0.36);
}

.button__icon { font-size: 1.15rem; margin-left: 0.4rem; transition: transform 0.3s ease; }
.button--flex { display: inline-flex; align-items: center; }
.button--flex:hover .button__icon { transform: translateX(4px); }
.button--small { padding: 0.7rem 1.15rem; font-size: var(--small-font-size); }

.button--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1.5px solid var(--line-strong);
}
.button--ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }

.button--white {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.button--white:hover { background: #fff; }

.button--link {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  padding: 0;
}
.button--link:hover { transform: none; box-shadow: none; color: var(--accent-strong); }

/*==================== HEADER / NAV ====================*/
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.scroll-header { box-shadow: 0 4px 24px rgba(28, 20, 32, 0.08); }

.nav {
  height: calc(var(--header-height) + 1.4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav__logo-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 0.85rem;
  box-shadow: var(--shadow-accent);
}
.nav__logo-dot { color: var(--accent); }

.nav__list { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  position: relative;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text);
  transition: color 0.3s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav__link:hover,
.nav__link.active-link { color: var(--accent); }
.nav__link:hover::after,
.nav__link.active-link::after { width: 100%; }

.nav__btns { display: flex; align-items: center; gap: 1rem; }
.change-theme {
  font-size: 1.25rem;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}
.change-theme:hover { color: var(--accent); transform: rotate(-12deg); }

.nav__toggle {
  display: none;
  font-size: 1.3rem;
  color: var(--ink);
  cursor: pointer;
}
.nav__close { display: none; }

/* Mobile menu */
@media screen and (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(78%, 320px);
    height: 100vh;
    padding: 5rem 2rem 2rem;
    background: var(--surface);
    box-shadow: -10px 0 40px rgba(28, 20, 32, 0.18);
    border-radius: 1.5rem 0 0 1.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-modal);
  }
  .nav__menu.show-menu { right: 0; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
  .nav__link { font-size: 1.05rem; }
  .nav__close {
    display: block;
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 1.6rem;
    color: var(--accent);
    cursor: pointer;
  }
}

/*==================== HOME ====================*/
.home { padding-top: 8rem; }
.home__container { row-gap: 3rem; }

.home__content {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  column-gap: 3rem;
}

.home__data { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }

.home__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.home__status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2fbf71;
  box-shadow: 0 0 0 4px rgba(47, 191, 113, 0.18);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1;} 50%{opacity:0.5;} }

.home__greeting {
  font-family: var(--font-mono);
  font-size: var(--small-font-size);
  color: var(--accent);
  letter-spacing: 0.04em;
}

.home__title {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.home__title span {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home__role { min-height: 2.1rem; }
.auto-type {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 600;
  color: var(--accent);
}
.typed-cursor { color: var(--accent); font-weight: 300; }

.home__description {
  color: var(--text);
  max-width: 440px;
  margin-top: 0.25rem;
}
.home__description strong { color: var(--ink); font-weight: 600; }

.home__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; }

.home__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.home__social-label {
  font-family: var(--font-mono);
  font-size: var(--smaller-font-size);
  color: var(--muted);
  margin-right: 0.25rem;
}
.home__social-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.home__social-icon:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

/* Photo */
.home__img-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}
.home__img-blob {
  position: absolute;
  width: 340px; height: 340px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 60%, #ff9aad 100%);
  opacity: 0.16;
  z-index: 0;
  animation: blobMorph 10s ease-in-out infinite;
}
@keyframes blobMorph {
  0%,100% { border-radius: 62% 38% 34% 66% / 60% 34% 66% 40%; }
  33%     { border-radius: 40% 60% 66% 34% / 44% 58% 42% 56%; }
  66%     { border-radius: 55% 45% 40% 60% / 38% 62% 38% 62%; }
}
.home__img-ring {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1.5px dashed var(--accent);
  opacity: 0.35;
  animation: spinRing 26s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }

.home__photo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(28, 20, 32, 0.22));
  transition: transform 0.4s ease;
}
.home__img-box:hover .home__photo { transform: translateY(-6px); }

.home__chip {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: var(--smaller-font-size);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  border-radius: 0.7rem;
  box-shadow: var(--shadow-md);
  animation: floatChip 5s ease-in-out infinite;
}
.home__chip--1 { top: 12%; left: -2%; }
.home__chip--2 { bottom: 16%; right: -4%; animation-delay: 1.2s; }
.home__chip--3 { bottom: 4%; left: 8%; animation-delay: 2.2s; }
.home__chip--4 { top: 10%; right: -4%; animation-delay: 2.2s; }
.home__chip--5 { top: -10%; right: 38%; animation-delay: 2.2s; }
@keyframes floatChip { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

.home__scroll { display: flex; justify-content: center; }
.home__scroll-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--smaller-font-size);
  transition: color 0.3s ease;
}
.home__scroll-button:hover { color: var(--accent); }
.home__scroll-mouse, .home__scroll-arrow { animation: bob 2s ease-in-out infinite; }
.home__scroll-mouse { font-size: 1.4rem; }
@keyframes bob { 0%,100%{transform:translateY(0);} 50%{transform:translateY(5px);} }

/*==================== ABOUT ====================*/
.about__container {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  column-gap: 4rem;
}
.about__img-wrap { position: relative; justify-self: center; max-width: 340px; }
.about__img {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
.about__img-wrap::before {
  content: "";
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 2px solid var(--accent);
  border-radius: 1.5rem;
  z-index: -1;
  opacity: 0.55;
}
.about__img-badge {
  position: absolute;
  bottom: -18px; right: -18px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  font-family: var(--font-mono);
  font-size: var(--smaller-font-size);
  line-height: 1.2;
}
.about__img-badge i { font-size: 1.5rem; color: var(--accent); }

.about__description { margin-bottom: 1.5rem; }

.about__focus { display: grid; gap: 0.6rem; margin-bottom: 1.75rem; }
.about__focus li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--small-font-size);
  color: var(--text);
}
.about__focus i { color: var(--accent); font-size: 1.15rem; }

.about__info {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.about__info-box {
  flex: 1;
  min-width: 120px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.about__info-box:hover { transform: translateY(-4px); border-color: var(--accent); }
.about__info-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
}
.about__info-title span { color: var(--accent); }
.about__info-name {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--muted);
  margin-top: 0.25rem;
}
.about__buttons { display: flex; }

/*==================== SKILLS ====================*/
.skills__container {
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 1.5rem;
}

.skills__content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.skills__content:hover { box-shadow: var(--shadow-md); }
.skills__content.skills__open { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

.skills__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.skills__badge {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 0.85rem;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.skills__icon { font-size: 1.5rem; color: var(--accent); }
.skills__title { font-size: var(--h3-font-size); }
.skills__subtitle { font-size: var(--smaller-font-size); color: var(--muted); }
.skills__arrow {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.4s ease;
}

.skills__list {
  row-gap: 1.4rem;
  padding-top: 0;
  overflow: hidden;
  transition: height 0.4s ease;
}
.skills__data .skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.skills__name { font-size: var(--small-font-size); font-weight: var(--font-medium); color: var(--ink); }
.skills__number { font-family: var(--font-mono); font-size: var(--smaller-font-size); color: var(--accent); }

.skills__bar, .skills__percentage { height: 8px; border-radius: 999px; }
.skills__bar { background: var(--surface-2); border: 1px solid var(--line); }
.skills__percentage {
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 12px var(--accent-glow);
  transform-origin: left;
  animation: growBar 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Skill widths (preserved) */
.skills__java { width: 80%; }
.skills__spring { width: 70%; }
.skills__php { width: 80%; }
.skills__python { width: 70%; }
.skills__sql { width: 60%; }
.skills__html { width: 90%; }
.skills__bootstrap { width: 80%; }
.skills__js { width: 70%; }
.skills__react { width: 60%; }
.skills__blender { width: 60%; }
.skills__maya { width: 40%; }
.skills__cnn{ width: 50%; }
.skills__tensorflow{ width: 40%; }
.skills__opencv{ width: 50%; }

/* Tags variant */
.skills__list--tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0;
}
.skills__tag {
  font-family: var(--font-mono);
  font-size: var(--smaller-font-size);
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.45rem 0.85rem;
  border-radius: 0.7rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.skills__tag:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* Accordion state (JS toggles skills__open / skills__close) */
.skills__close .skills__list { height: 0; margin-top: 0; }
.skills__open .skills__list { height: max-content; margin-top: 1.75rem; }
.skills__open .skills__arrow { transform: rotate(-180deg); }

/*==================== QUALIFICATION ====================*/
.qualification__container { max-width: 780px; }
.qualification__tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.qualification__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.qualification__icon { font-size: 1.25rem; }
.qualification__button:hover { color: var(--accent); border-color: var(--accent); }
.qualification__button.qualification__active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

.qualification__sections { display: grid; justify-content: center; }
.qualification__data {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
}
.qualification__title { font-size: var(--normal-font-size); font-weight: var(--font-semi-bold); }
.qualification__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
  color: var(--text);
  margin-bottom: 0.75rem;
}
.qualification__calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: var(--smaller-font-size);
  color: var(--muted);
}
.qualification__rounder {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.qualification__line {
  display: block;
  width: 2px; height: 100%;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translate(6px, -7px);
}
.qualification__content[data-content] { display: none; }
.qualification__active[data-content] { display: block; }

/*==================== SERVICES ====================*/
.services__container {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.services__content {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.services__content::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
/* faint icon watermark for depth */
.services__content::after {
  content: "";
  position: absolute;
  right: -30px; bottom: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.services__content:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}
.services__content:hover::before { transform: scaleX(1); }
.services__content:hover::after { opacity: 0.5; }

.services__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 1.15rem;
  background: var(--accent-soft);
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.services__content:hover .services__icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
  box-shadow: var(--shadow-accent);
}

.services__title {
  position: relative;
  z-index: 1;
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.75rem;
}
.services__desc {
  position: relative;
  z-index: 1;
  font-size: var(--small-font-size);
  color: var(--text);
  margin-bottom: 1.5rem;
}
.services__list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  margin-top: 0.25rem;
}
.services__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--small-font-size);
  color: var(--text);
}
.services__list i {
  color: var(--accent);
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
  transition: transform 0.3s ease;
}
.services__content:hover .services__list i { transform: scale(1.15); }

/*==================== PORTFOLIO ====================*/
.portfolio__container { padding-block: 1rem; }
.portfolio__content {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2.5rem;
  padding: 0 1.5rem;
}
.portfolio__img-wrap {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
}
.portfolio__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio__img-wrap:hover .portfolio__img { transform: scale(1.05); }
.portfolio__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--smaller-font-size);
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.portfolio__title { font-size: var(--h2-font-size); margin-bottom: 0.75rem; }
.portfolio__description { margin-bottom: 1.25rem; color: var(--text); }
.portfolio__button:hover .button__icon { transform: translateX(4px); }

.swiper-button-prev::after, .swiper-button-next::after { content: ""; }
.swiper-portfolio-icon { font-size: 2rem; color: var(--accent); }
.swiper-button-prev, .swiper-button-next {
  width: 46px; height: 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.swiper-button-prev:hover, .swiper-button-next:hover { background: var(--accent); }
.swiper-button-prev:hover .swiper-portfolio-icon,
.swiper-button-next:hover .swiper-portfolio-icon { color: #fff; }
.swiper-button-prev { left: -0.25rem; }
.swiper-button-next { right: -0.25rem; }
.swiper-container-horizontal > .swiper-pagination-bullets { bottom: -2rem; }
.swiper-pagination-bullet { background: var(--muted); }
.swiper-pagination-bullet-active { background: var(--accent); }
.swiper-button-prev, .swiper-button-next, .swiper-pagination-bullet { outline: none; }

/*==================== AWARDS & ACHIEVEMENTS ====================*/
.awards__container { max-width: 780px; }
.awards__list { position: relative; padding-left: 0; }
.awards__list::before {
  content: "";
  position: absolute;
  left: 27px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
}
.awards__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}
.awards__item:last-child { padding-bottom: 0; }
.awards__badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--shadow-accent);
}
.awards__body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.awards__item:hover .awards__body {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.awards__meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.awards__year {
  font-family: var(--font-mono);
  font-size: var(--smaller-font-size);
  font-weight: 500;
  color: var(--accent);
}
.awards__tag {
  font-family: var(--font-mono);
  font-size: var(--smaller-font-size);
  color: var(--muted);
  background: var(--surface-2);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}
.awards__title { font-size: var(--h3-font-size); margin-bottom: 0.2rem; }
.awards__issuer {
  display: block;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--accent-strong);
  margin-bottom: 0.6rem;
}
.awards__desc { font-size: var(--small-font-size); color: var(--text); margin: 0; }

/*==================== PROJECT CTA ====================*/
.project { text-align: center; }
.project__bg {
  background: linear-gradient(135deg, var(--plum) 0%, #3a1f34 100%);
  border-radius: 1.75rem;
  padding: 3.5rem 2rem;
  max-width: 1120px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}
.project__bg::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}
.project__container { position: relative; z-index: 1; }
.project__data { max-width: 620px; margin-inline: auto; }
.project__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--smaller-font-size);
  color: #ffb3c1;
  letter-spacing: 0.04em;
}
.project__title { font-size: clamp(1.6rem, 4vw, 2.3rem); color: #fff; margin: 0.75rem 0; }
.project__description { color: rgba(255,255,255,0.8); margin-bottom: 1.75rem; }

/*==================== TESTIMONIALS ====================*/
.testimonial__container {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr;
  align-items: center;
  gap: 1.5rem;
}

/* Left intro */
.testimonial__intro { text-align: left; }
.testimonial__heading { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.testimonial__subtitle {
  color: var(--muted);
  max-width: 340px;
  margin: 0;
  text-align: left;
}

/* Middle rail: vertical line + arrows */
.testimonial__rail {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2.25rem;
}
.testimonial__rail::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--accent) 14%, var(--accent) 86%, transparent);
  opacity: 0.55;
}
.testimonial__arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.testimonial__arrow:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

/* Right slider */
.testimonial__slider { position: relative; min-width: 0; }
.testimonial__swiper { overflow: hidden; }
.testimonial__content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-right: 0.5rem;
}
.testimonial__mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.7;
  font-weight: 700;
  color: var(--accent);
}
.testimonial__description {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}
.testimonial__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.testimonial__img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-soft);
  background: var(--surface-2);
}
.testimonial__name { font-size: var(--h3-font-size); font-weight: 700; }
.testimonial__client { font-size: var(--small-font-size); color: var(--muted); }

/* Pagination (custom element, styled as pills) */
.testimonial__pagination {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.25rem;
}
.testimonial__pagination .swiper-pagination-bullet {
  width: 11px; height: 11px;
  margin: 0 !important;
  background: transparent;
  border: 1.5px solid var(--accent);
  opacity: 0.5;
  transition: width 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.testimonial__pagination .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 1;
}

/* Responsive: stack the three columns */
@media screen and (max-width: 968px) {
  .testimonial__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .testimonial__intro { text-align: center; }
  .testimonial__subtitle { text-align: center; margin-inline: auto; }
  .testimonial__slider { order: 2; }
  .testimonial__rail {
    order: 3;
    flex-direction: row;
    padding: 0;
  }
  .testimonial__rail::before { display: none; }
  .testimonial__content { align-items: center; text-align: center; padding-right: 0; }
  .testimonial__footer { justify-content: center; }
  .testimonial__pagination { justify-content: center; margin-top: 1.5rem; }
}

/*==================== CONTACT ====================*/
.contact__container {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  column-gap: 3.5rem;
}
.contact__information {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact__icon-box {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 0.85rem;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.contact__icon { font-size: 1.35rem; color: var(--accent); }
.contact__title { font-size: var(--normal-font-size); font-weight: var(--font-semi-bold); }
.contact__subtitle { font-size: var(--small-font-size); color: var(--muted); }

.contact__socials { display: flex; gap: 0.75rem; margin-top: 2rem; }
.contact__social {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 1.15rem;
  transition: all 0.3s ease;
}
.contact__social:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

.contact__form { gap: 1.25rem; }
.contact__inputs { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.contact__content {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.25rem 1rem 0.5rem;
  transition: border-color 0.3s ease;
}
.contact__content:focus-within { border-color: var(--accent); }
.contact__label {
  position: absolute;
  left: 1rem; top: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--smaller-font-size);
  color: var(--muted);
  pointer-events: none;
  transition: all 0.2s ease;
}
.contact__input {
  width: 100%;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--normal-font-size);
  border: none;
  outline: none;
  padding-top: 0.4rem;
  resize: vertical;
}
.contact__input:focus + .contact__label,
.contact__input:not(:placeholder-shown) + .contact__label { color: var(--accent); }
.contact__send { justify-content: center; width: 100%; }

/*==================== FOOTER ====================*/
.footer {
  background: linear-gradient(180deg, var(--plum) 0%, #170d1c 100%);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 4rem 1.75rem;
  margin-top: 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.footer__logo span { color: var(--accent); }
.footer__tagline { margin: 1rem 0 1.5rem; max-width: 320px; font-size: var(--small-font-size); }
.footer__socials { display: flex; gap: 0.65rem; }
.footer__social {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.footer__social:hover { background: var(--accent); transform: translateY(-3px); }

.footer__heading {
  color: #fff;
  font-size: var(--normal-font-size);
  margin-bottom: 1.1rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__link {
  font-size: var(--small-font-size);
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer__link:hover { color: var(--accent); padding-left: 4px; }

.footer__contact-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--small-font-size);
  margin-bottom: 0.6rem;
}
.footer__contact-line i { color: var(--accent); }
.footer__cta { margin-top: 1rem; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.75rem;
}
.footer__copy, .footer__made {
  font-family: var(--font-mono);
  font-size: var(--smaller-font-size);
  color: rgba(255, 255, 255, 0.55);
}
.footer__made i { color: var(--accent); }

/*==================== SCROLL UP ====================*/
.scrollup {
  position: fixed;
  right: 1.25rem; bottom: -30%;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: 0.8rem;
  box-shadow: var(--shadow-accent);
  z-index: var(--z-fixed);
  transition: bottom 0.4s ease, transform 0.3s ease;
}
.scrollup:hover { transform: translateY(-4px); }
.scrollup__icon { font-size: 1.4rem; color: #fff; }
.show-scroll { bottom: 1.75rem; }

/*==================== SCROLLBAR ====================*/
::-webkit-scrollbar { width: 0.6rem; background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 45%, var(--muted)); border-radius: 0.5rem; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/*==================== RESPONSIVE ====================*/
@media screen and (max-width: 968px) {
  .home__content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .home__data { align-items: center; }
  .home__img-box { order: -1; }
  .home__description { margin-inline: auto; }
  .home__social { justify-content: center; }

  .about__container { grid-template-columns: 1fr; row-gap: 4rem; }
  .about__data { text-align: center; }
  .about__focus { justify-items: center; }
  .about__focus li { justify-content: center; }
  .about__buttons { justify-content: center; }

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

  .services__container { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }

  .portfolio__content { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .portfolio__button { margin-inline: auto; }

  .contact__container { grid-template-columns: 1fr; row-gap: 3rem; }
  .contact__socials { justify-content: flex-start; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}

@media screen and (max-width: 560px) {
  :root { --header-height: 3rem; }
  .section { padding-block: 4.5rem; }
  .container { padding-inline: 1.15rem; }

  .home { padding-top: 6.5rem; }
  .home__actions { justify-content: center; width: 100%; }
  .home__actions .button { flex: 1; justify-content: center; }
  .home__img-box { min-height: 300px; }
  .home__img-blob { width: 260px; height: 260px; }
  .home__img-ring { width: 250px; height: 250px; }
  .home__photo { max-width: 240px; }
  .home__chip { font-size: 0.68rem; padding: 0.3rem 0.55rem; }

  .about__info { flex-direction: column; }
  .about__img-badge { right: 0; }

  .qualification__data { column-gap: 0.75rem; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/*==================== REDUCED MOTION ====================*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}