/* ==========================================================================
   ROKIBUL ISLAM TONMOY - PERSONAL PORTFOLIO DESIGN SYSTEM
   Multi-Page · Liquid Glass Nav · Light/Dark Mode · Botanical Palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Hind+Siliguri:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

/* ==========================================================================
   LIGHT MODE (DEFAULT)
   ========================================================================== */
:root {
  --primary-green: #1a7f4d;
  --primary-green-hover: #14663e;
  --accent-green-light: #229e5e;
  --mint-bg: #e8f6ef;
  --mint-surface: #f3fbf6;

  --coral-accent: #e76f51;
  --coral-bg: #fdeeed;
  --amber-accent: #df912a;
  --amber-bg: #fbf5e8;
  --teal-accent: #0a9396;
  --teal-bg: #e4f6f8;
  --blue-accent: #2a6f97;
  --blue-bg: #ebf3f9;

  --text-dark: #12231a;
  --text-muted: #4e6357;
  --text-light: #83988b;
  --bg-body: #f8fcf9;
  --bg-card: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(18, 35, 26, 0.08);
  --glass-blur: blur(24px) saturate(180%);

  --border-subtle: rgba(26, 127, 77, 0.10);
  --shadow-sm: 0 2px 8px rgba(18, 35, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(18, 35, 26, 0.07);
  --shadow-lg: 0 16px 40px rgba(18, 35, 26, 0.10);

  --font-sans: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-handwriting: 'Caveat', cursive;
  --font-bengali: 'Hind Siliguri', sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --theme-icon-sun: block;
  --theme-icon-moon: none;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */
[data-theme="dark"] {
  --text-dark: #e8f0eb;
  --text-muted: #a3b5aa;
  --text-light: #7c9487;
  --bg-body: #0d1a12;
  --bg-card: #152019;

  --mint-bg: rgba(26, 127, 77, 0.15);
  --mint-surface: #111c15;
  --coral-bg: rgba(231, 111, 81, 0.12);
  --amber-bg: rgba(223, 145, 42, 0.12);
  --teal-bg: rgba(10, 147, 150, 0.12);
  --blue-bg: rgba(42, 111, 151, 0.12);

  --glass-bg: rgba(15, 25, 18, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.3);

  --theme-icon-sun: none;
  --theme-icon-moon: block;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ==========================================================================
   APPLE LIQUID GLASS NAVIGATION
   ========================================================================== */
.liquid-header {
  position: fixed; top: 16px; left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 92%);
  z-index: 1000; transition: var(--transition);
}

.liquid-navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 0 20px; height: 56px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative; transition: var(--transition);
}

.liquid-navbar-sheen {
  position: absolute; inset: 0;
  border-radius: var(--radius-pill);
  overflow: hidden; pointer-events: none; z-index: 0;
}
.liquid-navbar-sheen::before {
  content: ''; position: absolute;
  top: 0; left: -60%; width: 220%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 45%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.25) 55%, transparent 100%);
  transform: rotate(25deg); opacity: 0.6;
}
[data-theme="dark"] .liquid-navbar-sheen::before { opacity: 0.08; }

/* Brand */
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  z-index: 2; flex-shrink: 0; text-decoration: none;
}
.brand-logo-img {
  height: 30px; width: auto;
  object-fit: contain; display: block;
  transition: var(--transition);
}
.brand-logo-img.dark-mode-logo { display: none; }
[data-theme="dark"] .brand-logo-img.light-mode-logo { display: none; }
[data-theme="dark"] .brand-logo-img.dark-mode-logo { display: block; }
.brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary-green), #2ed87b);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(26,127,77,0.25);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem;
  color: var(--text-dark); line-height: 1; letter-spacing: -0.03em;
  white-space: nowrap;
}

/* Desktop Nav Links */
.nav-menu {
  display: flex; align-items: center; gap: 2px;
  list-style: none; z-index: 2; margin: 0; padding: 0;
}
.nav-menu li { display: flex; align-items: center; }

.nav-link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 13px; height: 36px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: var(--transition);
  line-height: 1; white-space: nowrap; position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-green); background: rgba(26,127,77,0.09);
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: rgba(46,216,123,0.1); color: #2ed87b;
}

/* Right-side actions */
.nav-actions {
  display: flex; align-items: center; gap: 8px;
  z-index: 2; flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(26,127,77,0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted); cursor: pointer;
  font-size: 1rem; transition: var(--transition);
}
.theme-toggle:hover { background: rgba(26,127,77,0.15); color: var(--primary-green); }
.theme-toggle .fa-sun { display: var(--theme-icon-moon); }
.theme-toggle .fa-moon { display: var(--theme-icon-sun); }

/* Mobile Toggle */
.mobile-toggle {
  display: none; width: 36px; height: 36px;
  background: rgba(26,127,77,0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 50%; cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; padding: 0;
  transition: var(--transition); z-index: 2;
}
.mobile-toggle span {
  display: block; width: 16px; height: 2px;
  background-color: var(--primary-green);
  border-radius: 2px; transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   SHARED BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary-green); color: white;
  font-weight: 700; font-size: 1rem;
  padding: 14px 30px; border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(26,127,77,0.25);
  transition: var(--transition);
}
.btn-primary:hover {
  background: var(--primary-green-hover); transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26,127,77,0.35);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-card); color: var(--text-dark);
  font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.btn-secondary:hover {
  border-color: var(--primary-green); color: var(--primary-green);
  transform: translateY(-2px);
}

/* ==========================================================================
   INNER PAGE HERO HEADER
   ========================================================================== */
.page-hero {
  padding: 140px 0 60px;
  background: var(--mint-surface);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.page-hero .container { text-align: center; }

.page-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 700;
  color: var(--primary-green); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 12px;
}
[data-theme="dark"] .page-hero-label { color: #2ed87b; }

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 3rem; font-weight: 800;
  color: var(--text-dark); line-height: 1.15;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.page-hero-title span { color: var(--primary-green); }
[data-theme="dark"] .page-hero-title span { color: #2ed87b; }

.page-hero-desc {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 620px; margin: 0 auto; line-height: 1.6;
}

/* ==========================================================================
   HOME HERO SECTION
   ========================================================================== */
/* ==========================================================================
   HOME HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative; width: 100%;
  min-height: 520px;
  background: url('../images/hero-bg.png') no-repeat center center / cover;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 130px; padding-bottom: 70px; overflow: visible;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(248,253,250,0.78) 0%, rgba(248,253,250,0.45) 55%, transparent 100%);
  pointer-events: none; z-index: 1;
}
[data-theme="dark"] .hero-section::before {
  background: linear-gradient(90deg, rgba(13,26,18,0.88) 0%, rgba(13,26,18,0.55) 55%, transparent 100%);
}

.hero-container {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: center; gap: 30px;
  position: relative; z-index: 2; flex-grow: 1;
}
.hero-content { max-width: 540px; }

.greeting-tag {
  font-family: var(--font-handwriting);
  font-size: 2.6rem; color: var(--primary-green);
  font-weight: 700; margin-bottom: -8px; display: block;
}
[data-theme="dark"] .greeting-tag { color: #2ed87b; }

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.6rem; font-weight: 800;
  color: var(--text-dark); line-height: 1.05;
  margin-bottom: 12px; letter-spacing: -0.03em;
}
.hero-title span { color: var(--primary-green); display: block; }
[data-theme="dark"] .hero-title span { color: #2ed87b; }

.hero-subtitle {
  font-size: 1.15rem; font-weight: 800;
  color: var(--text-dark); margin-bottom: 18px;
}
.hero-description {
  font-size: 0.98rem; color: var(--text-muted);
  margin-bottom: 28px; line-height: 1.6; font-weight: 500;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-section { margin-top: -35px; margin-bottom: 50px; position: relative; z-index: 10; }

.stats-card-container {
  background: var(--bg-card); border-radius: 24px;
  padding: 26px 32px; box-shadow: 0 10px 32px rgba(18, 35, 26, 0.07);
  border: 1px solid var(--border-subtle);
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 20px 24px; transition: var(--transition);
  align-items: center;
}
.stat-item { display: flex; align-items: center; gap: 14px; min-width: 0; }

.stat-icon-wrapper {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.stat-icon-wrapper.mint { background: var(--mint-bg); color: var(--primary-green); }
.stat-icon-wrapper.blue { background: var(--blue-bg); color: var(--blue-accent); }
.stat-icon-wrapper.coral { background: var(--coral-bg); color: var(--coral-accent); }
.stat-icon-wrapper.amber { background: var(--amber-bg); color: var(--amber-accent); }
.stat-icon-wrapper.teal { background: var(--teal-bg); color: var(--teal-accent); }

.stat-info { display: flex; flex-direction: column; min-width: 0; }
.stat-number {
  font-family: var(--font-heading); font-size: 1.65rem;
  font-weight: 800; color: var(--text-dark); line-height: 1.1;
}
.stat-label {
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); line-height: 1.25; margin-top: 2px;
  white-space: normal; word-break: break-word;
}

/* ==========================================================================
   ABOUT ME
   ========================================================================== */
.about-section {
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-body);
}

[data-theme="dark"] .about-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46, 216, 123, 0.08) 0%, rgba(26, 127, 77, 0.03) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(40px);
}

.about-grid {
  display: grid; grid-template-columns: 0.88fr 1.12fr;
  gap: 50px; align-items: center; position: relative; z-index: 2;
}
.about-image-wrapper { position: relative; padding-bottom: 20px; padding-left: 20px; }

.about-dot-grid {
  position: absolute; bottom: 0; left: 0;
  width: 120px; height: 100px;
  background-image: radial-gradient(var(--primary-green) 2px, transparent 2px);
  background-size: 16px 16px; opacity: 0.35; z-index: 0;
  border-radius: 8px;
}

.profile-frame {
  position: relative; border-radius: 28px;
  overflow: visible; box-shadow: 0 20px 40px rgba(18, 35, 26, 0.12);
  z-index: 1;
}

.profile-img-container {
  border-radius: 24px; overflow: hidden; height: 480px;
  position: relative; background: var(--mint-bg);
}
.profile-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.badge-overlay {
  position: absolute; bottom: 24px; left: -24px;
  background: linear-gradient(135deg, rgba(26, 127, 77, 0.92), rgba(34, 158, 94, 0.95));
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: white; padding: 16px 20px; border-radius: 18px;
  box-shadow: 0 14px 30px rgba(26, 127, 77, 0.35);
  max-width: 260px; border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex; align-items: flex-start; gap: 14px; z-index: 3;
}

.badge-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: white; flex-shrink: 0;
}
.badge-text-group { display: flex; flex-direction: column; }
.badge-text { font-size: 0.88rem; font-weight: 700; line-height: 1.35; color: #ffffff; }
.badge-signature { font-family: var(--font-handwriting); font-size: 1.4rem; text-align: right; opacity: 0.95; margin-top: 2px; color: #ffffff; }

.about-content { position: relative; z-index: 2; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700;
  color: var(--primary-green); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 12px;
}
[data-theme="dark"] .section-label { color: #2ed87b; }

.section-title {
  font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800;
  color: var(--text-dark); line-height: 1.15;
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.section-title span { color: var(--primary-green); }
[data-theme="dark"] .section-title span { color: #2ed87b; }

.about-text { font-size: 1.02rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.author-signature {
  font-family: var(--font-handwriting); font-size: 2.5rem;
  color: var(--text-dark); margin: 22px 0 24px; font-weight: 700;
}

.btn-primary-with-icon {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--primary-green); color: white;
  font-weight: 700; font-size: 0.98rem;
  padding: 8px 10px 8px 26px; border-radius: var(--radius-pill);
  box-shadow: 0 8px 22px rgba(26,127,77,0.28);
  transition: var(--transition); text-decoration: none;
}
.btn-primary-with-icon .btn-arrow-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95); color: var(--primary-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition);
}
.btn-primary-with-icon:hover {
  background: var(--primary-green-hover); transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26,127,77,0.38);
}
.btn-primary-with-icon:hover .btn-arrow-circle { transform: translateX(3px); background: #ffffff; }

.about-tree-bg {
  position: absolute; right: -5%; bottom: 0;
  height: 95%; max-width: 55%;
  object-fit: contain; object-position: bottom right;
  pointer-events: none; z-index: 1; opacity: 0.85;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse at 80% 80%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 85%);
  mask-image: radial-gradient(ellipse at 80% 80%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 85%);
}

[data-theme="dark"] .about-tree-bg {
  opacity: 0.65;
  mix-blend-mode: multiply;
  filter: brightness(1.8) contrast(1.25) saturate(1.3);
  -webkit-mask-image: radial-gradient(ellipse at 80% 85%, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(ellipse at 80% 85%, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
}

/* ==========================================================================
   RESEARCH FOCUS (AREAS OF INTEREST) - MATCHING REFERENCE DESIGN
   ========================================================================== */
.research-section {
  padding: 80px 0 100px;
  background-color: var(--bg-body);
  position: relative;
}
.section-header-center { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.research-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.interest-card {
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 4px 20px rgba(18, 35, 26, 0.04);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-card);
  text-decoration: none;
  min-height: 250px;
}

.interest-card.green {
  background: linear-gradient(180deg, #f7fcf9 0%, #edf9f2 100%);
  border-color: rgba(34, 197, 94, 0.18);
}
.interest-card.blue {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  border-color: rgba(59, 130, 246, 0.18);
}
.interest-card.amber {
  background: linear-gradient(180deg, #fffcf8 0%, #fff7ed 100%);
  border-color: rgba(249, 115, 22, 0.18);
}
.interest-card.teal {
  background: linear-gradient(180deg, #f8fafc 0%, #f0fdfa 100%);
  border-color: rgba(20, 184, 166, 0.18);
}

[data-theme="dark"] .interest-card.green {
  background: linear-gradient(180deg, #132219 0%, #0d1a12 100%);
  border-color: rgba(34, 197, 94, 0.2);
}
[data-theme="dark"] .interest-card.blue {
  background: linear-gradient(180deg, #131c2a 0%, #0d1420 100%);
  border-color: rgba(59, 130, 246, 0.2);
}
[data-theme="dark"] .interest-card.amber {
  background: linear-gradient(180deg, #261912 0%, #1a110c 100%);
  border-color: rgba(249, 115, 22, 0.2);
}
[data-theme="dark"] .interest-card.teal {
  background: linear-gradient(180deg, #112423 0%, #0c1817 100%);
  border-color: rgba(20, 184, 166, 0.2);
}

.interest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(18, 35, 26, 0.08);
}

/* Card Header (Icon + Title side-by-side) */
.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.interest-card.green .card-icon { background: #dcfce7; color: #16a34a; }
.interest-card.blue .card-icon { background: #dbeafe; color: #2563eb; }
.interest-card.amber .card-icon { background: #ffedd5; color: #ea580c; }
.interest-card.teal .card-icon { background: #ccfbf1; color: #0d9488; }

[data-theme="dark"] .interest-card.green .card-icon { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
[data-theme="dark"] .interest-card.blue .card-icon { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
[data-theme="dark"] .interest-card.amber .card-icon { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
[data-theme="dark"] .interest-card.teal .card-icon { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; }

.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 500;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

/* Arrow button on bottom left */
.card-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  border: none;
}

.interest-card.green .card-arrow-btn { color: #16a34a; }
.interest-card.blue .card-arrow-btn { color: #2563eb; }
.interest-card.amber .card-arrow-btn { color: #ea580c; }
.interest-card.teal .card-arrow-btn { color: #0d9488; }

[data-theme="dark"] .card-arrow-btn {
  background: #1e2923;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.interest-card:hover .card-arrow-btn {
  transform: translateX(4px);
}

.interest-card.green:hover .card-arrow-btn { background: #16a34a; color: #ffffff; }
.interest-card.blue:hover .card-arrow-btn { background: #2563eb; color: #ffffff; }
.interest-card.amber:hover .card-arrow-btn { background: #ea580c; color: #ffffff; }
.interest-card.teal:hover .card-arrow-btn { background: #0d9488; color: #ffffff; }

/* Cloudy watercolor overlay inside cards */
.card-cloud-overlay {
  position: absolute;
  bottom: -10px;
  right: -10px;
  left: 0;
  height: 70%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.card-cloud-overlay svg {
  width: 110%;
  height: 100%;
  display: block;
}



/* ==========================================================================
   INFINITE LOGO MARQUEE TICKER (NEWS HEADLINE STYLE)
   ========================================================================== */
.partners-section {
  padding: 15px 0 55px;
  background-color: var(--bg-body);
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.partners-title-sm {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 26px;
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: logoMarquee 50s linear infinite;
}

.ticker-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes logoMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  height: 60px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: var(--transition);
  flex-shrink: 0;
  cursor: pointer;
}

.partner-logo-card img {
  height: 48px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  filter: grayscale(15%) opacity(0.88);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-logo-card:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

[data-theme="dark"] .partner-logo-card img {
  filter: brightness(1.15) contrast(1.1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.85)) opacity(0.92);
}

[data-theme="dark"] .partner-logo-card:hover img {
  filter: brightness(1.25) contrast(1.2) drop-shadow(0 0 4px rgba(255, 255, 255, 0.95)) opacity(1);
  transform: scale(1.08);
}

/* ==========================================================================
   THE POLIS ESSAYS SECTION ON HOME
   ========================================================================== */
.polis-home-section {
  padding: 80px 0 90px;
  background-color: var(--mint-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.polis-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.polis-card-home {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  border: 1px solid var(--border-subtle);
  border-left: 5px solid var(--amber-accent);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.polis-card-home:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber-accent);
}

.polis-card-header {
  margin-bottom: 16px;
}

.polis-tag-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--amber-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.polis-title-home {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 10px;
}

.polis-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.polis-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

.polis-read-link {
  color: var(--primary-green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .polis-read-link {
  color: #2ed87b;
}

@media (max-width: 1024px) {
  .polis-home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .polis-home-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FEATURED PROJECTS
   ========================================================================== */
.projects-section { padding: 80px 0; }

.projects-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 40px;
}
.filter-tabs { display: flex; align-items: center; gap: 10px; list-style: none; flex-wrap: wrap; }

.filter-btn {
  padding: 8px 20px; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill); cursor: pointer;
  transition: var(--transition); font-family: var(--font-sans);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary-green); color: white;
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(26,127,77,0.25);
}
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.project-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle); transition: var(--transition);
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.project-thumb-wrapper { position: relative; height: 210px; overflow: hidden; background: var(--mint-bg); }
.project-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-img { transform: scale(1.05); }

.project-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 700; color: white; backdrop-filter: blur(8px);
}
.project-tag.evaluation { background: rgba(26,127,77,0.85); }
.project-tag.resilience { background: rgba(42,111,151,0.85); }
.project-tag.youth { background: rgba(223,145,42,0.85); }
.project-tag.migration { background: rgba(10,147,150,0.85); }

.project-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.project-title {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 8px; line-height: 1.35;
}
.project-partner {
  font-size: 0.82rem; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ==========================================================================
   PAPERS & THE POLIS
   ========================================================================== */
.papers-section { padding: 80px 0; background: var(--mint-surface); transition: var(--transition); }
.dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.paper-item {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 24px; margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.paper-item:hover { transform: translateX(4px); border-color: var(--primary-green); }

.paper-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--coral-bg); color: var(--coral-accent); margin-bottom: 8px;
}
.paper-title {
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 8px;
}
.paper-meta { font-size: 0.85rem; color: var(--text-muted); }

.polis-card {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 24px; margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
  border-left: 5px solid var(--amber-accent);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.polis-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.polis-tag {
  font-size: 0.78rem; font-weight: 700; color: var(--amber-accent);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
}
.polis-title {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 8px;
}

/* ==========================================================================
   CONTACT & FOOTER
   ========================================================================== */
.contact-section { padding: 80px 0; }

.contact-card {
  background: linear-gradient(135deg, #122c1e, #1a7f4d);
  border-radius: var(--radius-lg); padding: 60px; color: white;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 50px; box-shadow: var(--shadow-lg);
}
.contact-info .section-title { color: white; }
.contact-text { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 30px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail-item { display: flex; align-items: center; gap: 14px; font-size: 1rem; }
.contact-detail-item i { color: #2ed87b; }

.form-group { margin-bottom: 20px; }
.form-control {
  width: 100%; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1); color: white;
  font-family: var(--font-sans); font-size: 16px;
  outline: none; transition: var(--transition);
}
.form-control::placeholder { color: rgba(255,255,255,0.6); }
.form-control:focus { background: rgba(255,255,255,0.18); border-color: #2ed87b; }
textarea.form-control { resize: vertical; min-height: 120px; }

.btn-submit {
  width: 100%; background: #2ed87b; color: #0b2214;
  font-weight: 800; font-size: 1rem; padding: 16px;
  border-radius: var(--radius-pill); border: none;
  cursor: pointer; transition: var(--transition);
  font-family: var(--font-sans);
}
.btn-submit:hover { background: #ffffff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

/* --- COMPACT PREMIUM FOOTER (MATCHING DESIGN MOCKUP) --- */
.site-footer {
  position: relative;
  background: #ffffff;
  color: #12231a;
  padding: 40px 0 20px;
  overflow: hidden;
  border-top: 1px solid rgba(18, 35, 26, 0.08);
}

[data-theme="dark"] .site-footer {
  background: #0d1a12;
  color: #e8f0eb;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr 0.8fr 1.6fr;
  gap: 20px 16px;
  align-items: start;
}

.footer-motto {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  color: #a0a5a2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: 170px;
}

[data-theme="dark"] .footer-motto {
  color: #6e7872;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: #222523;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .footer-col-title {
  color: #e2e8e4;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-links a {
  color: #b0b5b2;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

[data-theme="dark"] .footer-links a {
  color: #5c6660;
}

.footer-links a:hover {
  color: var(--primary-green);
}

[data-theme="dark"] .footer-links a:hover {
  color: #2ed87b;
}

/* Newsletter Column */
.footer-newsletter-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-newsletter-text {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #b0b5b2;
}

[data-theme="dark"] .footer-newsletter-text {
  color: #5c6660;
}

.footer-newsletter-form-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.footer-input-box {
  display: flex;
  align-items: center;
  border: 1px solid #e2e5e3;
  border-radius: 4px;
  padding: 2px 4px 2px 10px;
  background: #ffffff;
  flex: 1;
}

[data-theme="dark"] .footer-input-box {
  background: #111e16;
  border-color: #233228;
}

.footer-input-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.75rem;
  color: #222523;
  font-family: var(--font-sans);
}

[data-theme="dark"] .footer-input-box input {
  color: #ffffff;
}

.footer-input-box input::placeholder {
  color: #a0a5a2;
}

.btn-red-dots {
  background: #db4437;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-arrow-next {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e5e3;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #808582;
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

[data-theme="dark"] .btn-arrow-next {
  background: #111e16;
  border-color: #233228;
  color: #808582;
}

.btn-arrow-next:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

/* Secondary Meta Row */
.footer-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 15px;
}

.footer-legal-block {
  text-align: right;
}

.footer-legal-copy {
  font-size: 0.72rem;
  font-weight: 700;
  color: #222523;
  margin-bottom: 4px;
}

[data-theme="dark"] .footer-legal-copy {
  color: #ffffff;
}

.footer-legal-links {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.footer-legal-links a {
  font-size: 0.68rem;
  font-weight: 600;
  color: #b0b5b2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

[data-theme="dark"] .footer-legal-links a {
  color: #5c6660;
}

.footer-legal-links a:hover {
  color: var(--primary-green);
}

/* Bottom Large SVG Outline Logo */
.footer-bottom-logo {
  margin-top: 25px;
  width: 100%;
}

.footer-bottom-logo svg {
  width: 100%;
  height: auto;
  max-height: 180px;
  display: block;
}

.svg-outline-path {
  stroke: #12231a;
}

[data-theme="dark"] .svg-outline-path {
  stroke: #ffffff;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
  }
  .footer-sub-row {
    flex-direction: column;
    gap: 15px;
  }
  .footer-legal-block {
    text-align: left;
  }
  .footer-legal-links {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ==========================================================================
   DIGITAL CV PAGE
   ========================================================================== */
.cv-page-section { padding: 80px 0; }

/* CV Header Card */
.cv-header-card {
  background: linear-gradient(135deg, #122c1e, #1a7f4d);
  border-radius: var(--radius-lg); padding: 48px;
  color: white; display: flex; align-items: center; gap: 40px;
  box-shadow: var(--shadow-lg); margin-bottom: 50px;
  position: relative; overflow: hidden;
}
.cv-header-card::after {
  content: ''; position: absolute; top: -50%; right: -15%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(46,216,123,0.08); pointer-events: none;
}
.cv-profile-photo {
  width: 140px; height: 140px; border-radius: 50%;
  object-fit: cover; border: 4px solid rgba(255,255,255,0.3);
  flex-shrink: 0; z-index: 1;
}
.cv-header-info { z-index: 1; }
.cv-header-info h1 {
  font-family: var(--font-heading); font-size: 2.2rem;
  font-weight: 800; margin-bottom: 6px;
}
.cv-header-info .cv-title-role {
  font-size: 1.15rem; font-weight: 600;
  color: #2ed87b; margin-bottom: 16px;
}
.cv-contact-row {
  display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.cv-contact-row span { display: inline-flex; align-items: center; gap: 8px; }
.cv-contact-row i { color: #2ed87b; font-size: 0.85rem; }

/* CV Section Block */
.cv-block { margin-bottom: 50px; }
.cv-block-title {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800;
  color: var(--text-dark); margin-bottom: 24px;
  padding-bottom: 12px; border-bottom: 3px solid var(--primary-green);
  display: inline-block;
}
[data-theme="dark"] .cv-block-title { border-color: #2ed87b; }

/* CV Timeline */
.cv-timeline { position: relative; padding-left: 32px; }
.cv-timeline::before {
  content: ''; position: absolute; left: 10px; top: 6px;
  bottom: 6px; width: 2px; background: var(--border-subtle);
}
.cv-timeline-item { position: relative; margin-bottom: 32px; }
.cv-timeline-item::before {
  content: ''; position: absolute; left: -26px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary-green); border: 3px solid var(--bg-body);
  box-shadow: 0 0 0 2px var(--primary-green);
}
.cv-timeline-item h3 {
  font-family: var(--font-heading); font-size: 1.15rem;
  font-weight: 700; color: var(--text-dark); margin-bottom: 4px;
}
.cv-timeline-item .cv-meta {
  font-size: 0.88rem; font-weight: 600; color: var(--primary-green); margin-bottom: 8px;
}
[data-theme="dark"] .cv-timeline-item .cv-meta { color: #2ed87b; }
.cv-timeline-item p {
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.6;
}

/* CV Skills Grid */
.cv-skills-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.cv-skill-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-size: 0.88rem; font-weight: 600;
  background: var(--mint-bg); color: var(--primary-green);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.cv-skill-tag:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cv-skill-tag.blue { background: var(--blue-bg); color: var(--blue-accent); }
.cv-skill-tag.amber { background: var(--amber-bg); color: var(--amber-accent); }
.cv-skill-tag.teal { background: var(--teal-bg); color: var(--teal-accent); }
.cv-skill-tag.coral { background: var(--coral-bg); color: var(--coral-accent); }

/* CV Languages */
.cv-lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cv-lang-item {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 20px; border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.cv-lang-item h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.cv-lang-level {
  display: flex; gap: 4px; margin-bottom: 6px;
}
.cv-lang-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-subtle);
}
.cv-lang-dot.filled { background: var(--primary-green); }
[data-theme="dark"] .cv-lang-dot.filled { background: #2ed87b; }
.cv-lang-item span { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

/* CV Download Button */
.cv-download-section {
  text-align: center; padding: 50px 0 0;
}
.btn-cv-large {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--primary-green), var(--accent-green-light));
  color: white; font-weight: 800; font-size: 1.15rem;
  padding: 18px 40px; border-radius: var(--radius-pill);
  box-shadow: 0 8px 28px rgba(26,127,77,0.3);
  transition: var(--transition); border: none; cursor: pointer;
  text-decoration: none;
}
.btn-cv-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(26,127,77,0.4);
}
.btn-cv-large i { font-size: 1.2rem; }

/* CV Publications List */
.cv-pub-list { list-style: none; }
.cv-pub-list li {
  padding: 16px 0; border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.6;
}
.cv-pub-list li:last-child { border-bottom: none; }
.cv-pub-list li strong { color: var(--text-dark); font-weight: 700; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-section { padding-bottom: 70px; }
  .stats-card-container { grid-template-columns: repeat(3, 1fr); gap: 20px 24px; padding: 24px; }
}

@media (max-width: 1024px) {
  .hero-section { min-height: 480px; padding-top: 120px; padding-bottom: 60px; background-size: cover; background-position: center; }
  .hero-container { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: clamp(2.4rem, 5.5vw, 3.4rem); }
  .stats-card-container { grid-template-columns: repeat(3, 1fr); padding: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-tree-bg { max-width: 70%; opacity: 0.5; }
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .dual-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { grid-template-columns: 1fr; padding: 40px; gap: 40px; }
  .cv-header-card { flex-direction: column; text-align: center; padding: 36px 28px; }
  .cv-contact-row { justify-content: center; }
  .page-hero-title { font-size: 2.4rem; }
}

@media (max-width: 992px) {
  .liquid-header { width: 94%; top: 12px; }
  .mobile-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: calc(100% + 12px);
    left: 0; width: 100%;
    background: #ffffff;
    border: 1px solid rgba(26,127,77,0.1);
    border-radius: var(--radius-md);
    flex-direction: column; align-items: stretch;
    padding: 12px; gap: 2px;
    box-shadow: 0 16px 48px rgba(18,35,26,0.18);
    display: none; z-index: 1000;
  }
  .nav-menu.open { display: flex; }
  [data-theme="dark"] .nav-menu { background: #152019; border-color: rgba(255,255,255,0.08); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
  .nav-menu li { width: 100%; height: auto; }
  .nav-link {
    width: 100%; justify-content: flex-start;
    padding: 12px 18px; height: 44px;
    font-size: 0.98rem; font-weight: 700;
    border-radius: var(--radius-sm); color: var(--text-dark);
  }
  .nav-link:hover, .nav-link.active { background: rgba(26,127,77,0.1); color: var(--primary-green); }
}

@media (max-width: 768px) {
  .hero-section { padding-top: 100px; padding-bottom: 50px; min-height: auto; }
  .greeting-tag { font-size: 2rem; }
  .hero-title { font-size: 2.3rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-description { font-size: 0.92rem; margin-bottom: 22px; }
  .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 0.92rem; width: auto; justify-content: center; }
  .hero-actions { width: 100%; }

  .stats-section { margin-top: 0; }
  .stats-card-container { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 20px 16px; }
  .stat-icon-wrapper { width: 44px; height: 44px; font-size: 1.1rem; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.78rem; }

  .about-image-wrapper { padding-left: 0; padding-bottom: 0; }
  .about-dot-grid { display: none; }
  .profile-img-container { height: 380px; }
  .badge-overlay { left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .about-tree-bg { opacity: 0.35; max-width: 90%; }

  .projects-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .filter-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 28px 20px; border-radius: var(--radius-md); }

  .page-hero { padding: 120px 0 40px; }
  .page-hero-title { font-size: 2rem; }
  .page-hero-desc { font-size: 0.98rem; }

  .cv-header-card { gap: 24px; padding: 28px 20px; }
  .cv-profile-photo { width: 110px; height: 110px; }
  .cv-header-info h1 { font-size: 1.7rem; }
  .cv-contact-row { gap: 12px; font-size: 0.82rem; }
  .btn-cv-large { padding: 16px 32px; font-size: 1rem; }
}

@media (max-width: 520px) {
  .stats-card-container { grid-template-columns: 1fr; gap: 14px; }
  .research-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.9rem; }
  .hero-title { font-size: 2rem; }
  .profile-img-container { height: 320px; }
  .cv-contact-row { flex-direction: column; gap: 8px; }
  .cv-lang-grid { grid-template-columns: 1fr; }
}
