/* ══════════════════════════════════════════
   PORTFOLIO — PREMIUM DESIGN SYSTEM
   ══════════════════════════════════════════ */

/* ──────────── Theme Variables ──────────── */

:root {
  /* Light Theme — warm sepia tones */
  --background: #f5f0e8;
  --background-secondary: #ece6db;
  --foreground: #2c2418;
  --surface: #faf7f2;
  --surface-elevated: #ffffff;
  --surface-glass: rgba(250, 247, 242, 0.78);
  --surface-glass-border: rgba(255, 255, 255, 0.5);
  --muted: #6b5e50;
  --muted-light: #9a8e7f;
  --border: #ddd5c8;
  --border-light: #ebe5da;
  --accent: #0f766e;
  --accent-light: #14b8a6;
  --accent-dark: #0d6356;
  --accent-muted: rgba(15, 118, 110, 0.07);
  --accent-glow: rgba(15, 118, 110, 0.10);
  --accent-glow-strong: rgba(15, 118, 110, 0.16);
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Spacing */
  --section-gap: 5rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44, 36, 24, 0.05), 0 1px 2px rgba(44, 36, 24, 0.03);
  --shadow-md: 0 4px 16px rgba(44, 36, 24, 0.07);
  --shadow-lg: 0 8px 32px rgba(44, 36, 24, 0.09);
  --shadow-xl: 0 20px 50px rgba(44, 36, 24, 0.12);
  --shadow-accent: 0 4px 24px rgba(15, 118, 110, 0.15);
  --shadow-accent-lg: 0 8px 40px rgba(15, 118, 110, 0.20);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Nav */
  --nav-height: 56px;
  --nav-bg: rgba(245, 240, 232, 0.82);
  --nav-border: rgba(221, 213, 200, 0.6);
}

/* ──────────── Dark Theme ──────────── */

[data-theme="dark"] {
  --background: #0a0b10;
  --background-secondary: #12131a;
  --foreground: #e4e5eb;
  --surface: #16171f;
  --surface-elevated: #1c1d27;
  --surface-glass: rgba(22, 23, 31, 0.75);
  --surface-glass-border: rgba(255, 255, 255, 0.06);
  --muted: #9196a6;
  --muted-light: #5c6272;
  --border: #262836;
  --border-light: #1e2030;
  --accent: #818cf8;
  --accent-light: #a5b4fc;
  --accent-dark: #6366f1;
  --accent-muted: rgba(129, 140, 248, 0.1);
  --accent-glow: rgba(129, 140, 248, 0.12);
  --accent-glow-strong: rgba(129, 140, 248, 0.22);
  --success: #34d399;
  --warning: #fbbf24;
  --info: #60a5fa;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 4px 24px rgba(129, 140, 248, 0.15);
  --shadow-accent-lg: 0 8px 40px rgba(129, 140, 248, 0.2);
  --nav-bg: rgba(10, 11, 16, 0.82);
  --nav-border: rgba(38, 40, 54, 0.6);
}

/* ──────────── Base ──────────── */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 2rem);
}

body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Subtle ambient gradient on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent);
  pointer-events: none;
  z-index: -1;
  transition: background 0.4s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

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

/* ──────────── Layout ──────────── */

.container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 960px;
  padding: 0 1.25rem 3rem 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.25rem 4rem 1.25rem;
  }
}

/* ──────────── Sticky Navigation ──────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.site-nav.scrolled {
  border-bottom-color: var(--nav-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .site-nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  height: var(--nav-height);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  transition: color var(--transition-fast);
}

.nav-brand:hover {
  color: var(--accent);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--foreground);
  background: var(--accent-muted);
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-muted);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }

[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* ──────────── Language Switcher ──────────── */

.lang-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-lang-switcher {
  display: none;
  align-items: center;
  gap: 2px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 2px;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

@media (min-width: 768px) {
  .desktop-lang-switcher {
    display: flex;
  }
}

.desktop-lang-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--muted-light);
  transition: all var(--transition-fast);
}

.desktop-lang-btn:hover {
  color: var(--foreground);
}

.desktop-lang-btn.active {
  color: var(--accent);
  background-color: var(--accent-muted);
}

.mobile-lang-switcher {
  position: relative;
}

@media (min-width: 768px) {
  .mobile-lang-switcher {
    display: none;
  }
}

.mobile-lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-lang-trigger:hover {
  color: var(--foreground);
}

.mobile-lang-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

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

.lang-dropdown-menu {
  position: absolute;
  right: 0;
  z-index: 50;
  margin-top: 0.375rem;
  min-width: 120px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 4px 0;
  box-shadow: var(--shadow-lg);
  animation: fade-in-up 0.15s ease both;
}

.lang-dropdown-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  text-align: left;
  font-size: 0.875rem;
  border: none;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.lang-dropdown-btn:hover {
  background-color: var(--border-light);
}

.lang-dropdown-btn.active {
  color: var(--accent);
  background-color: var(--accent-muted);
}

.lang-dropdown-btn span.lang-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  opacity: 0.5;
}

.lang-dropdown-btn .lang-flag {
  font-size: 1rem;
  line-height: 1;
}

/* ──────────── Dividers (hidden by default, kept for optional use) ──────────── */

.divider-glow,
.divider {
  display: none;
}

/* ──────────── Hero Section ──────────── */

.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 0 1rem;
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row-reverse;
    justify-content: center;
    gap: 3.5rem;
    padding: 3rem 0 1.5rem;
  }
}

.hero-body {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 768px) {
  .hero-body {
    text-align: left;
  }
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  animation: hero-entrance 0.8s ease both;
}

.hero-name {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
  background: linear-gradient(135deg, var(--foreground) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-entrance 0.8s ease both;
}

@media (min-width: 768px) {
  .hero-name {
    font-size: 52px;
  }
}

.hero-tagline {
  position: relative;
  margin: 0.5rem 0 0 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
  max-width: 340px;
  animation: hero-entrance 0.8s ease 0.1s both;
}

@media (min-width: 768px) {
  .hero-tagline {
    max-width: 400px;
  }
}

/* Ghost text: invisible, reserves the full height/width */
.typewriter-ghost {
  visibility: hidden;
  white-space: pre-wrap;
  display: block;
}

/* Visible typewriter text: positioned over the ghost */
.typewriter-visible {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  white-space: pre-wrap;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor 0.8s step-end infinite;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: hero-entrance 0.8s ease 0.2s both;
}

@media (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
    gap: 1rem;
  }
}

/* (hero-cta-group removed — single CTA used) */

.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.social-btn:hover {
  border-color: var(--accent);
  background-color: var(--accent-muted);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

/* ──────────── Profile Portrait ──────────── */

.profile-portrait {
  position: relative;
  width: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  z-index: 1;
  animation: hero-entrance 0.8s ease 0.15s both;
}

.profile-portrait-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 768px) {
  .profile-portrait {
    width: 260px;
  }
}

/* ──────────── Sections Common ──────────── */

.section-fade {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
  padding-top: 3.5rem;
}

.section-fade:first-of-type {
  padding-top: 2rem;
}

.section-title {
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

/* ──────────── Reveal Animation System ──────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-left {
  transform: translateX(-28px);
}

.reveal.reveal-right {
  transform: translateX(28px);
}

.reveal.reveal-scale {
  transform: scale(0.95);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 560ms; }

/* ──────────── Animations ──────────── */

@keyframes hero-entrance {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow-strong); }
  50% { box-shadow: 0 0 20px 4px var(--accent-glow); }
}

/* ──────────── CTA Buttons ──────────── */

.cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent), var(--accent-light));
  background-size: 200% 200%;
  box-shadow: var(--shadow-accent);
  transition: all var(--transition-base);
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
}

/* Shimmer effect */
.cta-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.cta-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-lg);
  background-position: 100% 50%;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  text-decoration: none;
  cursor: pointer;
}

.cta-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ──────────── Tab Pills (segmented) ──────────── */

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  text-align: center;
}

.section-kicker {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--foreground);
}

.section-description {
  max-width: 640px;
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.tab-pill {
  min-height: 32px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-align: center;
  flex: 1 1 0;
}

.tab-pill:hover {
  color: var(--foreground);
}

.tab-pill.active {
  color: var(--foreground);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.segmented-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--background-secondary);
  border: 1px solid var(--border-light);
}

.segmented-tabs-compact {
  align-self: center;
  min-width: 0;
}

@media (min-width: 640px) {
  .tab-pill {
    flex: 0 0 auto;
    padding: 6px 16px;
  }
}

@media (min-width: 900px) {
  .section-heading {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
  }

  .segmented-tabs {
    width: auto;
    min-width: 0;
  }

  .segmented-tabs-compact {
    align-self: flex-start;
  }
}

/* ──────────── Services ──────────── */

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.service-card {
  min-height: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.service-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.service-card h4 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--foreground);
}

.service-card-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent);
  font-weight: 500;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--border-light);
}

.service-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.service-check {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .service-check {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.service-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 8px;
  border: solid var(--success);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .service-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ──────────── Example Sites ──────────── */

.example-site-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.example-site-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.example-site-row:hover {
  color: inherit;
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.example-site-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: var(--accent-muted);
  transition: transform var(--transition-base);
}

.example-site-row:hover .example-site-icon {
  transform: scale(1.08);
}

.example-site-icon > svg {
  display: block;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex: 0 0 20px;
}

.example-site-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.example-site-title {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--foreground);
}

.example-site-description {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.row-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1;
  transition: color var(--transition-base), background var(--transition-base), transform var(--transition-base);
}

.example-site-row:hover .row-action,
.project-item:hover .row-action {
  color: var(--accent);
  background: var(--accent-muted);
  transform: translateX(2px);
}

@media (min-width: 768px) {
  .example-site-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ──────────── Project List ──────────── */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  width: 100%;
  overflow: hidden;
}

/* Animated gradient border on hover */
.project-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--success), var(--accent));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  animation: gradient-rotate 3s ease infinite;
  pointer-events: none;
}

.project-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: inherit;
}

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

.project-item-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform var(--transition-spring);
}

.project-item:hover .project-item-icon {
  transform: scale(1.08) rotate(2deg);
}

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

.project-item-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}

.project-item-name {
  font-size: 16px;
  font-weight: 650;
  color: var(--foreground);
  transition: color var(--transition-fast);
}

.project-item:hover .project-item-name {
  color: var(--accent);
}

.project-dot-separator {
  margin: 0 0.5rem;
  font-size: 11px;
  color: var(--border);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  padding: 2px 8px 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
}

.project-status[data-status="building"] {
  background: rgba(245, 158, 11, 0.08);
}

.project-status[data-status="planned"] {
  background: rgba(59, 130, 246, 0.08);
}

.project-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.project-status-dot.live {
  box-shadow: 0 0 8px var(--success);
  animation: pulse-glow 2s ease-in-out infinite;
  --accent-glow-strong: rgba(16, 185, 129, 0.3);
  --accent-glow: rgba(16, 185, 129, 0.15);
}

.project-item-summary {
  margin-top: 0.375rem;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.project-item-stack {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-light);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: center;
  flex-shrink: 0;
}



.project-row-action {
  flex: 0 0 auto;
}

/* ──────────── Timeline (History) ──────────── */

.timeline-item {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.timeline-period {
  display: none;
  width: 120px;
  flex-shrink: 0;
  padding-top: 0.625rem;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-light);
}

@media (min-width: 768px) {
  .timeline-period {
    display: block;
  }
}

.timeline-badge {
  position: relative;
  z-index: 10;
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  padding-top: 0.5rem;
}

.timeline-content {
  flex: 1;
  padding-top: 0.375rem;
}

.timeline-period-mobile {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

@media (min-width: 768px) {
  .timeline-period-mobile {
    display: none;
  }
}

.timeline-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--foreground);
}

.timeline-desc {
  margin: 0.375rem 0 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.history-icon-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.timeline-item:hover .history-icon-frame {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.history-icon-image {
  width: 36px;
  height: 36px;
  opacity: 0.8;
  object-fit: contain;
  transition: opacity var(--transition-base);
}

.timeline-item:hover .history-icon-image {
  opacity: 1;
}

/* ──────────── Testimonials ──────────── */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.testimonial-quote {
  font-size: 14px;
  line-height: 1.6;
  color: var(--foreground);
  font-style: italic;
  margin: 0 0 16px 0;
  position: relative;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.testimonial-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--foreground);
}

.testimonial-role {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
}

/* ──────────── Skills (chips) ──────────── */

.skills-category {
  margin-bottom: 1.75rem;
}

.skills-category:last-child {
  margin-bottom: 0;
}

.skills-category-label {
  margin-top: 0;
  margin-bottom: 0.875rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.7;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 10px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.skill-chip:hover {
  color: var(--foreground);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-3px) scale(1.02);
}

.skill-chip-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform var(--transition-spring);
}

.skill-chip:hover .skill-chip-logo {
  transform: rotate(12deg) scale(1.15);
}

/* ──────────── About Card ──────────── */

.about-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  background-color: var(--surface);
  padding: 2rem 2rem 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.about-card:hover {
  box-shadow: var(--shadow-md);
}

.about-bio {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--foreground);
  letter-spacing: 0.01em;
}

.about-bio .bio-highlight {
  color: var(--accent);
  font-weight: 600;
}

.about-bio .bio-sentence {
  display: block;
  margin-bottom: 0.6rem;
}

.about-bio .bio-sentence:last-child {
  margin-bottom: 0;
}

/* ──────────── Contact Card ──────────── */

.contact-card {
  position: relative;
  border-radius: var(--radius-2xl);
  border: 1px solid transparent;
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-muted), var(--surface), var(--accent-muted));
  box-shadow: var(--shadow-md);
}

/* Subtle animated gradient overlay */
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-glow-strong), transparent, var(--accent-glow-strong));
  background-size: 200% 200%;
  animation: gradient-rotate 5s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.contact-card h4 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.contact-card p {
  margin: 0.625rem auto 0 auto;
  max-width: 28rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.contact-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#experience-timeline-container {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light), var(--border), transparent);
  border-radius: var(--radius-full);
}

@media (min-width: 768px) {
  .timeline-line {
    left: 139px;
  }
}

/* ──────────── Footer ──────────── */

footer {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.footer-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-light);
  margin-top: 1rem;
}

/* ──────────── Scrollbar ──────────── */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-light);
}

/* ──────────── Back to Top ──────────── */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ──────────── Glass UI ──────────── */

.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid var(--surface-glass-border);
}

/* ──────────── Mobile Nav Menu ──────────── */

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
  color: var(--foreground);
  background: var(--accent-muted);
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

[data-theme="dark"] .mobile-nav-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 201;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.mobile-nav-panel.open {
  transform: translateX(0);
}

.mobile-nav-close {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  margin-bottom: 0.5rem;
}

.mobile-nav-close:hover {
  color: var(--foreground);
  background: var(--accent-muted);
}

.mobile-nav-close svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent);
  background: var(--accent-muted);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.5rem 0;
}

/* ──────────── Contact Form Layout ──────────── */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
  }
}

.contact-form-container {
  padding: 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-submit-btn {
  justify-content: center;
  align-self: flex-start;
  min-width: 140px;
  padding: 12px 32px;
}

@media (max-width: 640px) {
  .form-submit-btn {
    width: 100%;
  }
}

.contact-actions-vertical {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.whatsapp-large-btn {
  justify-content: center;
  width: 100%;
  padding: 12px;
}

.direct-email-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.email-label {
  font-size: 12px;
  color: var(--muted);
}

.email-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.email-link:hover {
  opacity: 0.85;
}

/* Toast notification styling */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--success);
  color: var(--foreground);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-notification::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
}

.toast-notification.error-toast::before {
  content: "✗";
  color: #ef4444;
}
