/* Root Variables */
:root {
  --bg-deep: #f0ece4;        /* warm parchment base */
  --bg-mid: #e8e2d8;
  --glass-bg: rgba(255, 255, 255, 0.52);
  --glass-bg-hover: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-border-hover: rgba(255, 255, 255, 0.95);
  --text-primary: #1c1814;
  --text-secondary: rgba(55, 48, 38, 0.72);
  --text-muted: rgba(80, 72, 60, 0.5);

  /* Glass-material accent system */
  --glass-edge: rgba(255, 255, 255, 0.95);   /* bright catch-light on borders */
  --glass-frost: rgba(90, 80, 65, 0.78);      /* warm-dark label colour */
  --glass-gold: #9a7a3a;                      /* deeper amber for light bg */
  --glass-gold-dim: rgba(154, 122, 58, 0.45);
  --glow-edge: rgba(255, 255, 255, 0.6);
  --glow-warm: rgba(154, 122, 58, 0.18);
  --glow-frost: rgba(180, 170, 155, 0.2);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-sm: 13px;
  --font-size-base: 15px;
  --font-size-lg: 17px;
  --font-size-xl: 22px;
  --font-size-2xl: 28px;
  --font-size-3xl: 42px;
  --font-size-4xl: 60px;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 72px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

html { scroll-behavior: smooth; }

/* Background */
body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  /* warm ivory base with very subtle warm-to-cool gradient */
  background-image: linear-gradient(145deg, #f5f0e6 0%, #ede8e0 40%, #e8e2ee 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.65;
  font-size: var(--font-size-base);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated gradient background orbs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}

body::before {
  width: 700px;
  height: 700px;
  /* warm peach-amber orb — gives the glass panels something to blur over */
  background: radial-gradient(circle, rgba(220, 170, 90, 0.28) 0%, rgba(240, 200, 130, 0.12) 45%, transparent 70%);
  top: -180px;
  left: -140px;
}

body::after {
  width: 650px;
  height: 650px;
  /* soft lavender-lilac orb for contrast */
  background: radial-gradient(circle, rgba(180, 160, 210, 0.22) 0%, rgba(200, 185, 230, 0.08) 50%, transparent 70%);
  bottom: -120px;
  right: -120px;
  animation-delay: -9s;
  animation-direction: alternate-reverse;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--text-primary);   /* dark charcoal on light bg */
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--glass-gold);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover { color: var(--text-primary); }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 2;
}

/* ─── Navigation ─────────────────────────────────────── */
.navbar {
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #2a2420 30%, var(--glass-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-2xl);
}

.nav-links a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--glass-edge), var(--glass-gold));
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--spacing-3xl) 0 calc(var(--spacing-3xl) * 1.2);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.hero-text { z-index: 2; }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(150deg, #1c1814 30%, #4a3c28 65%, var(--glass-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--glass-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-base);
}

.hero-description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: var(--spacing-2xl);
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-placeholder {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border-hover);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.7),
    0 0 0 8px rgba(255, 255, 255, 0.3),
    0 0 40px var(--glow-warm),
    0 20px 50px rgba(100, 80, 50, 0.18);
  filter: brightness(1.05) contrast(1.05);
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 11px var(--spacing-xl);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: rgba(28, 24, 20, 0.88);
  color: rgba(245, 238, 225, 0.95);
  border: 1px solid rgba(28, 24, 20, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 16px rgba(60, 45, 25, 0.22);
}

.btn-primary:hover {
  background: rgba(28, 24, 20, 0.78);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 8px 28px rgba(60, 45, 25, 0.28),
    0 0 20px var(--glow-warm);
  color: rgba(245, 238, 225, 0.95);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--glass-edge);
  color: var(--glass-gold);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 6px 20px var(--glow-frost);
}

/* ─── Geometric Shapes (subtle glow orbs) ─────────────── */
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.shape-1 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(196, 162, 90, 0.06) 0%, transparent 65%);
  top: 5%;
  right: 0%;
  opacity: 1;
}

.shape-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  bottom: 8%;
  left: 2%;
  opacity: 1;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(196, 162, 90, 0.04) 0%, transparent 70%);
  top: 40%;
  right: 2%;
  opacity: 1;
}

.shape-4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(210, 215, 235, 0.04) 0%, transparent 70%);
  bottom: 0%;
  left: 0%;
  opacity: 1;
}

.shape-5 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  top: 15%;
  right: 4%;
  opacity: 1;
}

/* ─── Section Title ───────────────────────────────────── */
.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, #1c1814 40%, var(--glass-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

/* ─── Projects Section ────────────────────────────────── */
.projects {
  position: relative;
  padding: var(--spacing-3xl) 0;
  background: transparent;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.project-list-item {
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.project-list-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.project-list-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow:
    0 4px 24px var(--glow-warm),
    0 16px 40px rgba(80, 60, 30, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.project-list-item:hover::before { opacity: 1; }

/* Accent side bar */
.project-list-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 2px;
  background: linear-gradient(180deg, var(--glass-edge), var(--glass-gold-dim));
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-list-item:hover::after { opacity: 1; }

.project-body {
  display: flex;
  gap: var(--spacing-xl);
  align-items: flex-start;
}

.project-content {
  flex: 1;
  min-width: 0;
}

.project-thumbnail {
  flex-shrink: 0;
  width: 130px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 12px rgba(80, 60, 30, 0.1);
  background: rgba(255, 255, 255, 0.4);
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-list-item:hover .project-thumbnail img {
  transform: scale(1.06);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
  gap: var(--spacing-md);
}

.project-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}

.project-description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.tech-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 3px var(--spacing-md);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--glass-gold);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all 0.25s ease;
}

.project-link:hover {
  color: var(--text-primary);
  gap: 10px;
}

.loading {
  text-align: center;
  padding: var(--spacing-3xl) 0;
  color: var(--text-muted);
  font-size: var(--font-size-base);
}

/* ─── About Section ───────────────────────────────────── */
.about {
  position: relative;
  padding: var(--spacing-3xl) 0;
}

.about-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: var(--spacing-2xl);
}

.skills-section { margin-bottom: var(--spacing-3xl); }

.skills-title,
.experience-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  position: relative;
  display: inline-block;
}

.skills-title::after,
.experience-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 36px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--glass-edge), var(--glass-gold-dim));
  border-radius: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
}

.skill-category {
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg) var(--spacing-xl);
  transition: all 0.3s ease;
}

.skill-category:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-edge);
  transform: translateY(-3px);
  box-shadow:
    0 8px 28px rgba(80, 60, 30, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.skill-category h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--glass-gold);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.3px;
}

.skill-category p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.experience-section { margin-top: var(--spacing-2xl); }

.experience-item {
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--glass-edge), var(--glass-gold-dim));
  border-radius: 0 2px 2px 0;
}

.experience-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-edge);
  box-shadow:
    0 8px 28px rgba(80, 60, 30, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.experience-item h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.experience-company {
  font-size: var(--font-size-sm);
  color: var(--glass-gold);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.experience-item p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ─── Contact / Social Icons ──────────────────────────── */
.contact-links-row {
  display: flex;
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) auto;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-icon-link:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--glass-edge);
  color: var(--glass-gold);
  transform: translateY(-4px);
  box-shadow:
    0 8px 24px var(--glow-warm),
    inset 0 1px 0 rgba(255,255,255,1);
}

.contact-icon-link svg { stroke-width: 1.5; }

/* ─── Footer ──────────────────────────────────────────── */
.footer {
  display: grid;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--glass-border);
  padding: var(--spacing-xl) 0;
  text-align: center;
  margin-top: var(--spacing-3xl);
  position: relative;
  z-index: 2;
}

.footer p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: var(--font-size-sm);
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .hero-title { font-size: var(--font-size-2xl); }
  .hero-subtitle { font-size: var(--font-size-base); }

  .profile-placeholder {
    width: 220px;
    height: 220px;
  }

  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }

  .nav-links {
    gap: var(--spacing-lg);
    font-size: var(--font-size-sm);
  }

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

  .section-title { font-size: var(--font-size-2xl); }

  .shape { opacity: 0.5; }

  .project-body {
    flex-direction: column-reverse;
    gap: var(--spacing-md);
  }

  .project-thumbnail {
    width: 100%;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--spacing-md); }

  .nav-wrapper {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .nav-links {
    flex-direction: row;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title { font-size: var(--font-size-xl); }

  .section-title { font-size: var(--font-size-xl); }

  .btn {
    padding: 10px var(--spacing-lg);
    font-size: var(--font-size-sm);
  }
}