/* ============================================
   PORTFOLIO - Äáº¬U THU THáº¢O
   Design System - Green Academic Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #1b4332;
  --primary-mid: #2d6a4f;
  --primary-light: #40916c;
  --accent: #52b788;
  --accent-light: #74c69d;
  --bg-light: #d8f3dc;
  --bg-lighter: #f0faf3;
  --bg-white: #ffffff;
  --text-dark: #1a2e22;
  --text-body: #2d4a38;
  --text-muted: #6a9178;
  --text-light: #95b8a2;
  --border: #b7dfc4;
  --border-light: #d8f3dc;
  --shadow-sm: 0 2px 8px rgba(29, 67, 50, 0.08);
  --shadow-md: 0 8px 32px rgba(29, 67, 50, 0.12);
  --shadow-lg: 0 20px 60px rgba(29, 67, 50, 0.15);
  --shadow-hover: 0 12px 40px rgba(29, 67, 50, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --font: 'Be Vietnam Pro', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-lighter);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-lighter); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(45, 106, 79, 0.25);
  box-shadow: 0 2px 12px rgba(45,106,79,0.18);
  transition: var(--transition);
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.nav-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(45,106,79,0.28);
}

.nav-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.nav-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--bg-light);
  color: var(--primary);
}

.nav-links a.active {
  font-weight: 600;
  background: var(--bg-light);
  color: var(--primary-mid);
}

.nav-links .nav-icon {
  font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
  transition: var(--transition);
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.page-wrapper {
  padding-top: 68px;
  min-height: 100vh;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 8rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 50%, var(--primary-light) 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(116, 198, 157, 0.25) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 60px;
  left: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* Animated gradient shimmer on hero */
@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero {
  background-size: 200% 200% !important;
  animation: heroGradientShift 12s ease infinite;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  animation: particleRise linear infinite;
}

@keyframes particleRise {
  0%   { transform: translateY(0) scale(1);    opacity: 0; }
  5%   { opacity: 0.9; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) scale(0.4); opacity: 0; }
}

/* Diagonal light sweep */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.04) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: heroSweep 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroSweep {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* Extra light orb center-right */
.hero-orb {
  position: absolute;
  top: 35%;
  left: 42%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Wave divider at bottom of hero */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 72px;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-greeting {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-name span {
  background: linear-gradient(90deg, var(--accent-light), #b7e4c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.hero-role::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent-light);
  border-radius: 99px;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 480px;
}


/* ---- Hero stagger entrance ---- */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge    { animation: heroSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.hero-greeting { animation: heroSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.25s both; }
.hero-name     { animation: heroSlideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.4s both; }
.hero-role     { animation: heroSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.55s both; }
.hero-desc     { animation: heroSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.7s both; }
.hero-cta      { animation: heroSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.85s both; }
.hero-visual   { animation: heroSlideUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s both; }

/* Name highlight glow pulse */
@keyframes nameGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(183,228,199,0.0); }
  50%       { text-shadow: 0 0 32px rgba(183,228,199,0.45); }
}
.hero-name span { animation: nameGlow 3.5s ease-in-out 1.5s infinite; }
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: var(--bg-lighter);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* Hero Visual - Redesigned */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Decorative ring behind photo */
.photo-ring {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
}

.photo-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(116, 198, 157, 0.9) 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(82, 183, 136, 0.8) 60%,
    rgba(255, 255, 255, 0.3) 80%,
    rgba(116, 198, 157, 0.9) 100%
  );
  animation: spinRing 8s linear infinite;
}

.photo-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--primary);
}

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

.profile-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid rgba(255,255,255,0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* Fallback avatar if no photo */
.profile-avatar-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--bg-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  border: 4px solid rgba(255,255,255,0.25);
}

/* Floating badges around photo */
.float-badge {
  position: absolute;
  z-index: 2;
  background: white;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  white-space: nowrap;
  animation: floatBadge 3s ease-in-out infinite;
}

.float-badge-1 {
  top: 10px;
  right: -50px;
  animation-delay: 0s;
}

.float-badge-2 {
  bottom: 30px;
  left: -55px;
  animation-delay: 1.5s;
}

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

/* Profile info below photo */
.profile-info-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.75rem;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.profile-info-card .p-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.2rem;
}

.profile-info-card .p-role {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.68);
  margin-bottom: 1rem;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.profile-tag {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  background: var(--bg-light);
  padding: 5px 16px;
  border-radius: 99px;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

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

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================
   ABOUT SECTION (index.html)
   ============================================ */
.about-section {
  background: white;
  padding-top: 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

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

.about-highlight {
  color: var(--primary-mid);
  font-weight: 600;
}

/* Info cards */
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  background: var(--bg-lighter);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
  transform: translateX(4px);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-mid), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.card-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.3rem;
}

.card-text p {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ============================================
   GOALS SECTION
   ============================================ */
.goals-section {
  background: var(--bg-lighter);
}

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

.goal-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.goal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-mid), var(--accent));
  border-radius: 99px 99px 0 0;
  transform: scaleX(0);
  transition: var(--transition);
}

.goal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.goal-card:hover::before {
  transform: scaleX(1);
}

.goal-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--bg-light), var(--bg-lighter));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--border-light);
  transition: var(--transition);
}

.goal-card:hover .goal-icon {
  background: linear-gradient(135deg, var(--primary-mid), var(--accent));
  border-color: transparent;
  transform: scale(1.05);
}

.goal-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.goal-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   PORTFOLIO PURPOSE SECTION
   ============================================ */
.purpose-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  padding: 5rem 2rem;
}

.purpose-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.purpose-section .section-label {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

.purpose-section .section-title {
  color: white;
}

.purpose-section .section-title span {
  color: var(--accent-light);
}

.purpose-section .section-desc {
  color: rgba(255,255,255,0.75);
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}

.purpose-item {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.purpose-item:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-3px);
}

.purpose-num {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.purpose-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.3rem;
}

.purpose-item p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, var(--primary-light) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.projects-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(82,183,136,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.projects-hero .section-label {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

.projects-hero .section-title {
  color: white;
}

.projects-hero .section-title span { color: var(--accent-light); }
.projects-hero .section-desc { color: rgba(255,255,255,0.75); }

.progress-bar-wrap {
  max-width: 400px;
  margin: 2rem auto 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
}

.progress-track {
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-light), #b7e4c7);
  border-radius: 99px;
  width: 100%;
  animation: fillBar 1.5s ease forwards;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: 100%; }
}

.projects-section {
  background: var(--bg-lighter);
  padding: 4rem 2rem;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--border);
}

.project-card-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.project-sidebar {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-mid) 100%);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.project-num {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -3px;
}

.project-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.project-sidebar h2 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1.4;
}

.project-icon-large {
  font-size: 2rem;
  margin-top: auto;
}

.project-content {
  padding: 2rem 2.5rem;
}

.project-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.project-goal {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.project-process {
  margin-bottom: 1.25rem;
}

.project-process h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.6rem;
}

.process-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.process-steps li {
  font-size: 0.87rem;
  color: var(--text-body);
  padding-left: 1.25rem;
  position: relative;
}

.process-steps li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.project-output {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-lighter);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.83rem;
  color: var(--text-body);
}

.project-output .output-icon {
  color: var(--primary-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.output-label {
  font-weight: 600;
  color: var(--primary-mid);
}

/* File action buttons */
.project-files {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-files-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.25rem;
}

.file-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  transition: var(--transition);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.file-btn-primary {
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
  color: white;
  box-shadow: 0 3px 12px rgba(45, 106, 79, 0.25);
}

.file-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.35);
}

.file-btn-secondary {
  background: var(--bg-lighter);
  color: var(--primary-mid);
  border-color: var(--border);
}

.file-btn-secondary:hover {
  background: var(--bg-light);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.file-btn-icon {
  font-size: 0.95rem;
}

/* ============================================
   EXPANDABLE DETAILS PANEL (project cards)
   ============================================ */
.details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-mid);
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
  margin-top: 0.75rem;
}

.details-toggle:hover {
  background: var(--bg-light);
  border-color: var(--accent);
  color: var(--primary);
}

.details-toggle[aria-expanded="true"] {
  background: var(--bg-light);
  border-color: var(--accent);
}

.details-toggle-arrow {
  transition: transform 0.3s ease;
  font-size: 0.7rem;
  opacity: 0.6;
}

.details-toggle[aria-expanded="true"] .details-toggle-arrow {
  transform: rotate(180deg);
}

.details-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.details-panel.open {
  max-height: 600px;
}

.details-panel-inner {
  margin-top: 0.6rem;
  background: var(--bg-lighter);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.details-panel-inner ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.details-panel-inner li {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.65;
  padding-left: 1.4rem;
  position: relative;
}

.details-panel-inner li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--primary-mid);
  font-weight: 700;
}

/* ============================================
   SUMMARY PAGE
   ============================================ */
.summary-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, var(--primary-light) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.summary-hero::before {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(116,198,157,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.summary-hero .section-label {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

.summary-hero .section-title { color: white; }
.summary-hero .section-title span { color: var(--accent-light); }
.summary-hero .section-desc { color: rgba(255,255,255,0.75); }

/* Experience Section */
.experience-section {
  background: white;
  padding: 5rem 2rem;
}

.experience-content {
  max-width: 800px;
  margin: 0 auto;
}

.experience-quote {
  background: linear-gradient(135deg, var(--bg-lighter), var(--bg-light));
  border-left: 4px solid var(--primary-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.85;
  font-style: italic;
}

.experience-paragraphs p {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.experience-paragraphs p:last-child { margin-bottom: 0; }

/* Skills Section */
.skills-section {
  background: var(--bg-lighter);
  padding: 5rem 2rem;
}

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

.skill-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.skill-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border);
}

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

.skill-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-mid), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.skill-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.skill-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Challenges Section */
.challenges-section {
  background: white;
  padding: 5rem 2rem;
}

.challenges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.proud-col h3,
.challenge-col h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-light);
}

.proud-item, .challenge-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.proud-item:hover, .challenge-item:hover {
  background: var(--bg-lighter);
  border-color: var(--border);
}

.proud-item .item-icon { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.challenge-item .item-icon { color: #e67e22; font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

.item-text h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.item-text p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Closing Section */
.closing-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  padding: 5rem 2rem;
  text-align: center;
}

.closing-section .section-title { color: white; margin-bottom: 1rem; }
.closing-section .section-title span { color: var(--accent-light); }

.closing-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.85;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.closing-signature {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: 2rem 3rem;
  display: inline-block;
}

.closing-signature .sig-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.25rem;
}

.closing-signature .sig-role {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.25rem;
}

.closing-signature .sig-date {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--text-dark);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid rgba(82, 183, 136, 0.6);
  box-shadow: 0 0 0 5px rgba(82,183,136,0.15), 0 6px 24px rgba(0,0,0,0.35);
  transition: var(--transition);
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.footer-logo:hover {
  box-shadow: 0 0 0 8px rgba(82,183,136,0.2), 0 8px 32px rgba(0,0,0,0.4);
  transform: scale(1.05);
}

.footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.4rem;
}

.footer-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition-fast);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.footer-links a:hover {
  color: var(--accent-light);
  background: rgba(255,255,255,0.06);
}

.footer-copy {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { display: none; }
  .photo-ring { width: 200px; height: 200px; }
  .float-badge { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .goals-grid { grid-template-columns: 1fr 1fr; }
  .project-card-inner { grid-template-columns: 1fr; }
  .project-sidebar { min-height: auto; padding: 1.75rem 2rem; }
  .project-num { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .challenges-grid { grid-template-columns: 1fr; }
  .purpose-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 1.25rem; }
  .navbar { padding: 0 1.25rem; }
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .goals-grid { grid-template-columns: 1fr; }
  .project-content { padding: 1.5rem; }
  .closing-signature { padding: 1.5rem 2rem; }
}

