/* ═══════════════════════════════════════
   RESET & VARIABLES
═══════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

:root {
  --color-primary: #F4F4F4;
  --color-secondary: #C0B283;
  --color-white: #2d3436;
  --color-grey-1: #636e72;
  --color-grey-4: #454e56;
  --color-grey-5: #EBEDEF;
  --color-card: #ffffff;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.16);
  --radius: 16px;
  --nav-width: 80px;
}

.dark-mode {
  --color-primary: #12181b;
  --color-secondary: #d4caaa;
  --color-white: #e0e0e0;
  --color-grey-1: #b2becd;
  --color-grey-4: #636e72;
  --color-grey-5: #2a2e35;
  --color-card: #1e2530;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-primary);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: var(--color-white);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow: hidden;
}

a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}

/* ═══════════════════════════════════════
   SCROLL CONTAINER — snaps between sections
═══════════════════════════════════════ */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  /* leave room on left for nav */
  margin-left: var(--nav-width);
}

.scroll-container::-webkit-scrollbar { width: 4px; }
.scroll-container::-webkit-scrollbar-track { background: transparent; }
.scroll-container::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 2px;
}

.section {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-padded {
  overflow-y: auto;
  align-items: flex-start;
}

.section-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem 4rem 2rem;
  position: relative;
}

/* ═══════════════════════════════════════
   SIDEBAR — new full design
═══════════════════════════════════════ */
.sidebar {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem 0;
  gap: 0.5rem;
  background: var(--color-card);
  border-right: 1px solid var(--color-grey-5);
  box-shadow: var(--shadow-md);
  transition: background 0.4s ease, border-color 0.4s ease;
}

/* Brand */
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
  padding: 0.4rem 0;
}
.sidebar-logo-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-logo-ring {
  position: absolute;
  inset: -5px;
  border-radius: 16px;
  border: 1.5px solid var(--color-secondary);
  opacity: 0.5;
  animation: spin-slow 10s linear infinite;
  pointer-events: none;
}
.sidebar-logo-ring-2 {
  inset: -10px;
  border-style: dashed;
  border-width: 1px;
  opacity: 0.2;
  animation-duration: 18s;
  animation-direction: reverse;
  border-radius: 20px;
}
.sidebar-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(192,178,131,0.3), 0 4px 12px rgba(0,0,0,0.2);
  cursor: default;
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}
.sidebar-logo-wrap:hover .sidebar-logo-img {
  transform: scale(1.07);
  box-shadow: 0 0 24px rgba(192,178,131,0.55), 0 4px 16px rgba(0,0,0,0.25);
}
.sidebar-logo-wrap:hover .sidebar-logo-ring {
  opacity: 0.8;
}

/* Generic icon button shared by theme-btn, lang-btn, social-btn */
.sidebar-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-grey-5);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  color: var(--color-grey-1);
  font-size: 0.65rem;
  gap: 1px;
  position: relative;
  text-decoration: none;
}
.sidebar-icon-btn i { font-size: 1rem; pointer-events: none; color: var(--color-grey-1); transition: color 0.25s ease; }
.sidebar-icon-btn:hover { border-color: var(--color-secondary); transform: translateX(2px); }
.sidebar-icon-btn:hover i { color: var(--color-secondary); }

/* Theme button */
.theme-btn:hover { transform: rotate(15deg) scale(1.05); }

/* Language selector */
.lang-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: auto;
  padding: 0;
}
.lang-btn {
  width: 46px;
  height: 30px;
  border-radius: 7px;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  transform: none;
}
.lang-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  border-color: rgba(192,178,131,0.5);
}
.lang-flag {
  width: 100%;
  height: 100%;
  display: block;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.lang-code { display: none; }
.active-lang {
  border-color: var(--color-secondary) !important;
  box-shadow: 0 0 0 3px rgba(192,178,131,0.35), 0 3px 10px rgba(0,0,0,0.2) !important;
  transform: scale(1.08) !important;
}
.active-lang i { color: #fff; }

/* Divider */
.sidebar-divider {
  width: 36px;
  height: 1px;
  background: var(--color-grey-5);
  margin: 0.3rem 0;
  flex-shrink: 0;
}

/* Nav links */
.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.control {
  position: relative;
  cursor: pointer;
  background-color: var(--color-grey-5);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.control i {
  font-size: 1rem;
  color: var(--color-grey-1);
  pointer-events: none;
  transition: color 0.25s ease;
}
.control:hover { border-color: var(--color-secondary); transform: translateX(3px); }

.active-btn {
  background-color: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
  box-shadow: 0 4px 16px rgba(192,178,131,0.4);
}
.active-btn i { color: #fff !important; }

.nav-tooltip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-grey-4);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.5px;
  transform: translateY(-50%) translateX(-4px);
}
.control:hover .nav-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Social buttons */
.sidebar-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.social-btn { text-decoration: none; }
.social-btn:hover i { color: var(--color-secondary); }

/* Scroll progress bar */
.sidebar-progress-wrap {
  width: 3px;
  height: 60px;
  margin-top: 0.8rem;
  background: var(--color-grey-5);
  border-radius: 2px;
  overflow: hidden;
}
.sidebar-progress-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--color-secondary), #e8d9a0);
  border-radius: 2px;
  transition: height 0.1s ease;
}

/* ═══════════════════════════════════════
   SECTION SHARED HEADER
═══════════════════════════════════════ */
.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-secondary);
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.section-title span { color: var(--color-secondary); }

.section-line {
  width: 50px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
  margin-top: 0.8rem;
}

/* Background decoration circles */
.section-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.decor-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--color-secondary);
  opacity: 0.08;
}
.decor-circle-1 {
  width: 400px; height: 400px;
  top: -150px; right: -100px;
}
.decor-circle-2 {
  width: 220px; height: 220px;
  bottom: -80px; left: -60px;
  opacity: 0.05;
}

.section-inner > * { position: relative; z-index: 1; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════
   HOME — HERO SECTION
═══════════════════════════════════════ */
.header-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  width: 100%;
  padding: 0 5rem 0 4rem;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

/* animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--color-secondary);
  opacity: 0.15;
  animation: pulse-ring 6s ease-in-out infinite;
}
.hero-circle-1 { width: 420px; height: 420px; top: -80px; right: 12%; animation-delay: 0s; }
.hero-circle-2 { width: 260px; height: 260px; bottom: 10%; left: 5%; animation-delay: 2s; }
.hero-circle-3 { width: 160px; height: 160px; top: 30%; right: 4%; opacity: 0.08; animation-delay: 4s; }
.hero-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  height: 1px;
  opacity: 0.25;
  animation: slide-line 8s linear infinite;
}
.hero-line-1 { width: 300px; top: 35%; left: -300px; animation-delay: 0s; }
.hero-line-2 { width: 200px; bottom: 30%; left: -200px; animation-delay: 3s; }

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50%       { transform: scale(1.06); opacity: 0.25; }
}
@keyframes slide-line {
  0%   { left: -400px; }
  100% { left: 110%; }
}

/* left col */
.left-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: clamp(240px, 28vw, 380px);
  height: clamp(240px, 28vw, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 5s ease-in-out infinite;
}

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

.hero-image-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid var(--color-secondary);
  opacity: 0.45;
  animation: spin-slow 12s linear infinite;
}
.hero-image-ring-2 {
  inset: -26px;
  border-style: dashed;
  opacity: 0.18;
  animation-direction: reverse;
  animation-duration: 18s;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-image-wrapper .image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-secondary);
  box-shadow: 0 0 40px rgba(192,178,131,0.2), var(--shadow-lg);
  background-color: var(--color-grey-5);
}
.hero-image-wrapper .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}
.hero-image-wrapper:hover .image img { transform: scale(1.05); }

/* floating badges */
.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-secondary);
  border-radius: 30px;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 2;
  animation: badge-pop 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
.hero-badge i { color: var(--color-secondary); font-size: 0.8rem; }
.hero-badge-1 { top: 5%;    right: -12%; animation-delay: 0.3s; }
.hero-badge-2 { top: 30%;   left: -18%;  animation-delay: 0.6s; }
.hero-badge-3 { bottom: 18%;right: -15%; animation-delay: 0.9s; }
.hero-badge-4 { bottom: 3%; left: -12%;  animation-delay: 1.2s; }

@keyframes badge-pop {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}

/* right col */
.right-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  animation: fade-up 0.8s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-greeting {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 1px;
}

.name {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-name-highlight {
  color: var(--color-secondary);
  position: relative;
  display: inline-block;
}
.hero-name-highlight::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 0.8s 0.7s ease forwards;
}
@keyframes underline-grow { to { transform: scaleX(1); } }

.hero-cursor {
  display: inline-block;
  color: var(--color-secondary);
  animation: blink 1s step-start infinite;
  font-weight: 300;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-role {
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 600;
  color: var(--color-grey-1);
  min-height: 1.6rem;
}
.hero-role-text {
  border-right: 2px solid var(--color-secondary);
  padding-right: 3px;
}

.hero-desc {
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  color: var(--color-grey-1);
  line-height: 1.8;
  max-width: 460px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tech-tags .tag {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background-color: var(--color-grey-5);
  border: 1px solid var(--color-secondary);
  color: var(--color-white);
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: default;
}
.tech-tags .tag i { color: var(--color-secondary); font-size: 0.75rem; }
.tech-tags .tag:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}
.tech-tags .tag:hover i { color: var(--color-primary); }

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  background-color: var(--color-secondary);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(192,178,131,0.35);
}
.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(192,178,131,0.5);
}
.hero-btn-primary i { transition: transform 0.3s ease; }
.hero-btn-primary:hover i { transform: translateX(4px); }

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  background-color: transparent;
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--color-grey-5);
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-btn-secondary:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: translateY(-3px);
}

/* scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-secondary), transparent);
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* ═══════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.about-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-grey-1);
  margin-bottom: 1.8rem;
}

.about-platform-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-grey-5);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.platform-item:hover {
  border-color: var(--color-secondary);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-grey-5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.platform-icon i {
  font-size: 1.1rem;
  color: var(--color-secondary);
}
.platform-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}
.platform-item p {
  font-size: 0.78rem;
  color: var(--color-grey-1);
  margin: 0;
}

/* stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--color-card);
  border: 1px solid var(--color-grey-5);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.stat-card:hover {
  border-color: var(--color-secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-grey-1);
  margin-top: 0.3rem;
  font-weight: 600;
}

/* skills */
.skills-block { }
.skills-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--color-grey-1);
  margin-bottom: 1rem;
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}
.skill-row > span:first-child {
  width: 130px;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
}
.skill-bar {
  flex: 1;
  height: 6px;
  background: var(--color-grey-5);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-secondary), #e8d9a0);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.skill-fill.animated { width: var(--w); }
.skill-pct {
  width: 34px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-grey-1);
  text-align: right;
}

/* ═══════════════════════════════════════
   PORTFOLIO SECTION
═══════════════════════════════════════ */
.portfolio-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.4rem 1.1rem;
  border-radius: 30px;
  border: 2px solid var(--color-grey-5);
  background: transparent;
  color: var(--color-grey-1);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.port-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-grey-5);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.port-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}
.port-card.hidden { display: none; }

.port-card-img {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.port-card-icon {
  font-size: 2.4rem;
  color: rgba(255,255,255,0.6);
}

.port-card-body {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.port-cat-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  background: var(--color-grey-5);
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.port-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.port-card-body p {
  font-size: 0.78rem;
  color: var(--color-grey-1);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0.8rem;
}

.port-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-secondary);
  transition: gap 0.2s ease;
}
.port-link:hover { gap: 0.6rem; }

.port-private {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-grey-1);
  opacity: 0.7;
}
.port-private i { font-size: 0.7rem; }

/* Private filter button */
.filter-btn-private {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-color: #c0003c44;
}
.filter-btn-private i { font-size: 0.75rem; }
.filter-btn-private:hover,
.filter-btn-private.active {
  background: linear-gradient(135deg, #6a0036, #c0003c) !important;
  border-color: #c0003c !important;
  color: #fff;
}

/* NDA card */
.port-card-nda {
  grid-column: span 1;
}
@media (min-width: 769px) {
  .port-card-nda { grid-column: span 2; }
}

.port-card-img-nda {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0a1a 40%, #2d0033 100%) !important;
  height: 130px;
  position: relative;
  overflow: hidden;
}
.port-card-img-nda::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(192,0,60,0.06) 12px,
    rgba(192,0,60,0.06) 14px
  );
}
.nda-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  position: relative;
  z-index: 1;
}
.nda-icon-wrap i {
  font-size: 2rem;
  color: rgba(255,255,255,0.5);
}
.nda-count {
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}

.port-cat-badge-nda {
  background: rgba(192,0,60,0.12) !important;
  color: #c0003c !important;
}
.dark-mode .port-cat-badge-nda {
  background: rgba(192,0,60,0.2) !important;
  color: #e05080 !important;
}

.nda-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.7rem;
}
.nda-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-grey-1);
  background: var(--color-grey-5);
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
}
.nda-tag i { font-size: 0.65rem; color: var(--color-secondary); }

/* ═══════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-grey-1);
  margin-bottom: 2rem;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-grey-5);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.contact-detail:hover {
  border-color: var(--color-secondary);
  transform: translateX(4px);
}
.contact-detail-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-grey-5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon i { color: var(--color-secondary); font-size: 1rem; }
.contact-detail-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--color-grey-1);
}
.contact-detail-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-availability {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #27ae60;
}
.avail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #27ae60;
  box-shadow: 0 0 0 3px rgba(39,174,96,0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(39,174,96,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(39,174,96,0.1); }
}

/* form */
.contact-form-col {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--color-grey-5);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-grey-1);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 2px solid var(--color-grey-5);
  background: var(--color-primary);
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-secondary);
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  margin-top: 0.5rem;
}

#form-status {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.2rem;
}

/* ═══════════════════════════════════════
   TABLET (≤ 1100px)
═══════════════════════════════════════ */
@media screen and (max-width: 1100px) {
  .header-content { padding: 0 3rem 0 3rem; gap: 2rem; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ═══════════════════════════════════════
   MOBILE (≤ 768px)
═══════════════════════════════════════ */
@media screen and (max-width: 768px) {
  :root { --nav-width: 0px; }

  body { overflow-y: auto; }

  /* sidebar moves to bottom bar */
  .sidebar {
    width: 100%;
    height: auto;
    top: auto;
    bottom: 0;
    flex-direction: row;
    justify-content: space-around;
    padding: 0.5rem 0.8rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    border-right: none;
    border-top: 1px solid var(--color-grey-5);
    gap: 0.3rem;
  }
  .sidebar-brand { display: none; }
  .lang-selector { flex-direction: row; width: auto; padding: 0; gap: 0.4rem; }
  .lang-btn { width: 40px; height: 27px; border-radius: 5px; }
  .lang-code { display: none; }
  .sidebar-divider { display: none; }
  .nav-links { flex-direction: row; flex: 0; justify-content: flex-start; gap: 0.3rem; }
  .control { width: 40px; height: 40px; border-radius: 10px; }
  .nav-tooltip { display: none; }
  .sidebar-social { display: none; }
  .hide-on-mobile { display: none !important; }
  .sidebar-progress-wrap { display: none; }
  .theme-btn { width: 40px; height: 40px; border-radius: 10px; }

  .scroll-container {
    margin-left: 0;
    height: 100vh;
    scroll-snap-type: none;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }

  .section { height: auto; min-height: 100svh; scroll-snap-align: none; scroll-snap-stop: normal; }
  .section-padded { overflow-y: visible; }

  .header-content {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem calc(6rem + env(safe-area-inset-bottom, 0px));
    gap: 2rem;
    height: auto;
    min-height: 100svh;
  }
  .hero-badge { display: none; }
  .hero-image-wrapper {
    width: clamp(160px, 50vw, 240px);
    height: clamp(160px, 50vw, 240px);
    margin: 0 auto;
    animation: none;
  }
  .right-header { align-items: center; text-align: center; }
  .hero-desc, .tech-tags, .hero-cta { justify-content: center; }
  .hero-scroll-hint { display: none; }

  .section-inner { padding: 3rem 1.5rem calc(5rem + env(safe-area-inset-bottom, 0px)); }

  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   SMALL MOBILE (≤ 480px)
═══════════════════════════════════════ */
@media screen and (max-width: 480px) {
  .name { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
