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

:root {
  /* Primitive Colors (Grey & Yellow Scales) */
  --yellow-100: #FFF9C1;
  --yellow-200: #FFF886;
  --yellow-300: #FFEC41;
  --yellow-400: #FFDB0D;
  --yellow-500: #FFCC00;
  --yellow-600: #D19500;
  --yellow-700: #A66A02;
  --yellow-800: #89530A;
  --yellow-900: #74430F;

  --grey-100: #F8F9FA;
  --grey-200: #E9ECEF;
  --grey-300: #DEE2E6;
  --grey-400: #CED4DA;
  --grey-500: #ADB5BD;
  --grey-600: #6C757D;
  --grey-700: #495057;
  --grey-800: #343A40;
  --grey-900: #212529;

  /* Semantic Colors */
  --fill-yellow: var(--yellow-500);
  --fill-yellow-light: var(--yellow-300);
  --fill-yellow-dark: var(--yellow-600);
  --fill-black: var(--grey-900);
  --fill-grey-dark: var(--grey-800);
  --fill-grey-medium: var(--grey-600);
  --fill-grey-light: var(--grey-500);
  --fill-white: var(--grey-100);

  --stroke-yellow: var(--yellow-500);
  --stroke-yellow-light: var(--yellow-300);
  --stroke-yellow-dark: var(--yellow-600);
  --stroke-black: var(--grey-900);
  --stroke-grey-dark: var(--grey-800);
  --stroke-grey-medium: var(--grey-600);
  --stroke-grey-light: var(--grey-500);
  --stroke-white: var(--grey-100);

  --text-yellow: var(--yellow-500);
  --text-yellow-dark: var(--yellow-600);
  --text-black: var(--grey-900);
  --text-grey-dark: var(--grey-800);
  --text-grey-medium: var(--grey-600);
  --text-grey-light: var(--grey-500);
  --text-white: var(--grey-100);

  /* Status Colors */
  --status-success: #5AC071;
  --status-danger: #E94D5C;
  --status-warning: #EAC965;
  --status-info: #49C2D5;

  /* Typography Families */
  --font-display: 'Google Sans Flex', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Enriqueta', Georgia, serif;
  /* Para revertir fácilmente a Noto Serif, comenta la línea anterior y descomenta la siguiente: */
  /* --font-body: 'Noto Serif', Georgia, serif; */

  /* Spacing Scale (4px Rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;

  /* Shadows */
  --shadow-none: none;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.10);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 35px rgba(0, 0, 0, 0.16);

  /* Border Radii */
  --radius-button: 4px;
  --radius-card: 6px;
  --radius-pill: 20px;

  /* Theme variables (Default: Light Mode with Yellow Header & White Page Background) */
  --bg-page: var(--fill-white);
  --bg-header: var(--fill-yellow);
  --bg-header-rgb: 255, 204, 0; /* rgb for yellow */
  --border-header: var(--stroke-yellow-dark);
  --text-logo: var(--grey-800);    /* grey dark */
  --text-nav: var(--grey-900);     /* black */
  --stroke-nav-active: var(--grey-900);
  
  --bg-card: var(--fill-white);
  --border-card: var(--stroke-grey-light);
  --text-main: var(--grey-900);
  --text-muted: var(--grey-700);
  --text-bold: var(--text-grey-dark);

  /* Hover overrides for buttons inside header */
  --btn-header-border: var(--stroke-black);
  --btn-header-text: var(--text-black);
  --btn-header-hover-bg: rgba(33, 37, 41, 0.08);
}

/* Dark Mode Theme */
body.dark-theme, html.dark-theme {
  --bg-page: var(--fill-black);
  --bg-header: var(--fill-black);
  --bg-header-rgb: 33, 37, 41; /* rgb for black */
  --border-header: var(--stroke-grey-dark);
  --text-logo: var(--fill-yellow); /* yellow fill logo */
  --text-nav: var(--text-white);    /* link white */
  --stroke-nav-active: var(--text-white); /* underline white */
  
  --bg-card: var(--fill-grey-dark);
  --border-card: var(--stroke-grey-dark);
  --text-main: var(--text-white);
  --text-muted: var(--text-grey-light);
  --text-bold: var(--text-white);
  --text-grey-dark: var(--grey-300);

  --btn-header-border: var(--stroke-white);
  --btn-header-text: var(--text-white);
  --btn-header-hover-bg: rgba(248, 249, 250, 0.1);
}

/* --- CSS Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-page);
  color: var(--text-main);
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Base Root Font Size for Responsive Scaling */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout System --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.section-padding {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: calc(var(--space-12) * 1.5);
    padding-bottom: calc(var(--space-12) * 1.5);
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: var(--space-4);
  transition: color 0.3s ease;
}

h1 {
  font-size: 3.33rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: 2.67rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 {
  font-size: 2.33rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h4 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h5 {
  font-size: 1.67rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h6 {
  font-size: 1.33rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p, ul, ol {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.33rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: var(--space-4);
  transition: color 0.3s ease;
}

strong, b {
  font-weight: 700;
  color: var(--text-bold);
}

.lead-paragraph {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.33rem;
  letter-spacing: 0em;
  line-height: 1.75;
  color: var(--text-grey-light);
}

.label-text {
  font-family: var(--font-body);
  font-size: 1.17rem;
  line-height: 1.5;
}

.label-bold {
  font-weight: 700;
  color: var(--text-bold);
}

.caption-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.caption-bold {
  font-weight: 700;
  color: var(--text-bold);
}

/* --- Fixed Header & Navigation --- */
header.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(var(--bg-header-rgb), 0.95);
  border-bottom: 1px solid var(--border-header);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

header.main-header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.logo-block {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: var(--text-logo);
  transition: color 0.3s ease;
}

.logo-svg {
  display: block;
  height: 23px;
  width: auto;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: var(--space-6);
}

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

.nav-item a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-nav);
  opacity: 0.85;
  transition: all 0.2s ease;
  position: relative;
  padding: var(--space-2) 0;
}

.nav-item a:hover {
  opacity: 1;
}

.nav-item a.active {
  opacity: 1;
}

.nav-item a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--stroke-nav-active);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta {
    display: inline-block;
  }
}

/* Header Dynamic CTA Button style */
header .btn-outline {
  border-color: var(--btn-header-border);
  color: var(--btn-header-text);
  background-color: transparent;
}

header .btn-outline:hover {
  background-color: var(--btn-header-hover-bg);
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--text-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background-color: var(--btn-header-hover-bg);
}

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

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

body.dark-theme .theme-toggle .sun-icon {
  display: block;
}

body.dark-theme .theme-toggle .moon-icon {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-logo);
  margin: 6px 0;
  transition: 0.4s;
}

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

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--bg-page);
  border-left: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px var(--space-6) var(--space-8);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.mobile-nav-links a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-main);
}

.mobile-nav-cta {
  margin-top: auto;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33, 37, 41, 0.3);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Hamburger animations */
.mobile-toggle.open span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.open span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* --- Button Components --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: var(--radius-button);
  padding: var(--space-4) var(--space-6);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-align: center;
  gap: var(--space-2);
}

.btn-fill {
  background-color: var(--fill-yellow);
  border-color: var(--fill-yellow);
  color: var(--fill-black);
}

.btn-fill:hover {
  background-color: var(--fill-yellow-light);
  border-color: var(--fill-yellow-light);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--text-main);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: rgba(33, 37, 41, 0.05);
}

body.dark-theme .btn-outline:hover {
  background-color: rgba(248, 249, 250, 0.08);
}

.btn-text {
  background-color: transparent;
  border-color: transparent;
  color: var(--text-muted);
  text-decoration: underline;
  padding-left: 0;
  padding-right: 0;
}

.btn-text:hover {
  color: var(--text-main);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--stroke-white);
  color: var(--text-white);
}

.btn-outline-white:hover {
  border-color: var(--stroke-grey-light);
  color: var(--text-grey-light);
  background-color: rgba(248, 249, 250, 0.1);
}

.btn-text-white {
  background-color: transparent;
  border-color: transparent;
  color: var(--text-white);
  text-decoration: underline;
  padding-left: 0;
  padding-right: 0;
}

.btn-text-white:hover {
  color: var(--text-grey-light);
}

.btn-icon {
  aspect-ratio: 1 / 1;
  padding: var(--space-4);
  flex-shrink: 0;
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 150px;
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--border-card);
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 204, 0, 0.12) 0%, transparent 50%);
}

body.dark-theme .hero-section {
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 204, 0, 0.06) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-content h1 {
  margin-bottom: var(--space-5);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.33rem;
  letter-spacing: 0em;
  line-height: 1.75;
  color: var(--text-grey-dark);
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup-placeholder {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-6);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero-mockup-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--fill-yellow);
}

.mockup-header {
  display: flex;
  gap: var(--space-2);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--fill-grey-light);
}

.mockup-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.mockup-line-h {
  height: 16px;
  background-color: var(--text-main);
  border-radius: 2px;
  width: 80%;
  transition: background-color 0.3s ease;
}

.mockup-line-p1 {
  height: 8px;
  background-color: var(--text-muted);
  border-radius: 2px;
  width: 95%;
  transition: background-color 0.3s ease;
}

.mockup-line-p2 {
  height: 8px;
  background-color: var(--text-muted);
  border-radius: 2px;
  width: 60%;
  transition: background-color 0.3s ease;
}

.mockup-badge {
  background-color: var(--fill-yellow);
  height: 28px;
  width: 120px;
  border-radius: var(--radius-button);
}

.mockup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-card);
  padding-top: var(--space-4);
  transition: border-color 0.3s ease;
}

.mockup-footer-val {
  height: 10px;
  background-color: var(--fill-grey-light);
  width: 50px;
  border-radius: 2px;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: var(--space-10);
  max-width: 700px;
}

.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-yellow-dark);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
  display: block;
}

body.dark-theme .section-label {
  color: var(--fill-yellow);
}

.section-title {
  margin-bottom: var(--space-3);
}

.section-intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.33rem;
  letter-spacing: 0em;
  line-height: 1.75;
  color: var(--text-grey-dark);
}

/* --- Strengths / Fortalezas Section --- */
.strengths-section {
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-card);
}

.strength-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: var(--space-6);
  border-radius: var(--radius-card);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-none);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.strength-card:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-yellow);
  box-shadow: var(--shadow-sm);
}

.strength-icon {
  width: 48px;
  height: 48px;
  background-color: var(--fill-yellow);
  color: var(--fill-black);
  border-radius: var(--radius-button);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: var(--space-5);
}

.strength-card h4 {
  margin-bottom: var(--space-3);
  font-size: 1.4rem;
}

.strength-card p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.17rem;
  letter-spacing: 0em;
  line-height: 1.71;
  color: var(--text-grey-dark);
  margin-bottom: 0;
}

/* --- Projects Section --- */
.projects-section {
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-card);
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  border-color: var(--text-main);
  box-shadow: var(--shadow-md);
}

.project-media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--fill-grey-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.project-media-text {
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 2;
}

.project-card:hover .project-media-placeholder::after {
  opacity: 0.15;
}

.project-media-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--fill-black);
  opacity: 0.05;
  transition: opacity 0.3s ease;
}

.project-info {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.project-tag {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: var(--space-1) var(--space-3);
  background-color: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.project-summary {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.17rem;
  letter-spacing: 0em;
  line-height: 1.71;
  color: var(--text-grey-dark);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.project-card .btn-text {
  align-self: flex-start;
}

/* --- About Me / Sobre Mí Section --- */
.about-section {
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-card);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.about-bio {
  max-width: 680px;
}

.about-intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.33rem;
  letter-spacing: 0em;
  line-height: 1.75;
  color: var(--text-grey-dark);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Wireframe Simulator Card Styling */
.wireframe-simulator {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-theme .wireframe-simulator {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wf-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Variables for grid canvas */
:root {
  --grid-dots: rgba(33, 37, 41, 0.08);
}

body.dark-theme {
  --grid-dots: rgba(248, 249, 250, 0.05);
}

/* Animations for SVG elements */
.wf-node-rect {
  transition: stroke 0.3s ease, fill 0.3s ease;
}

.wf-node-group {
  cursor: pointer;
}

.wf-node-group:hover .wf-node-rect {
  stroke: var(--text-yellow-dark);
}

body.dark-theme .wf-node-group:hover .wf-node-rect {
  stroke: var(--fill-yellow);
}

.about-modules {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.about-module-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.about-module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background-color: var(--fill-white);
  border: 1px solid var(--border-card);
  color: var(--text-yellow-dark);
  flex-shrink: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.dark-theme .about-module-icon {
  background-color: var(--fill-grey-dark);
  color: var(--fill-yellow);
}

.about-module-item:hover .about-module-icon {
  border-color: var(--text-yellow-dark);
}

body.dark-theme .about-module-item:hover .about-module-icon {
  border-color: var(--fill-yellow);
}

.about-module-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.17rem;
  letter-spacing: 0em;
  line-height: 1.71;
  color: var(--text-grey-dark);
  margin-bottom: var(--space-1);
}

.about-module-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.17rem;
  letter-spacing: 0em;
  line-height: 1.71;
  color: var(--text-grey-dark);
  margin-bottom: 0;
}


/* --- Contact Section --- */
.contact-section {
  background-color: var(--fill-grey-dark);
  color: var(--text-white);
  border-bottom: 1px solid var(--stroke-grey-dark);
}

body.dark-theme .contact-section {
  background-color: var(--fill-black);
}

.contact-section h2,
.contact-section h3,
.contact-section h4 {
  color: var(--text-white);
}

.contact-section p {
  color: var(--text-grey-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-channel-item {
  display: flex;
  flex-direction: column;
}

/* Centered Layout for Single-Column Contact Section */
.contact-center-layout {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-center-layout .lead-paragraph {
  margin-left: auto;
  margin-right: auto;
}

.contact-center-layout .contact-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

@media (min-width: 640px) {
  .contact-center-layout .contact-channels {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

.contact-center-layout .contact-channel-item {
  align-items: center;
}

.contact-channel-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-yellow);
  margin-bottom: var(--space-1);
}

.contact-channel-val {
  font-size: 1.4rem;
  color: var(--text-white);
  text-decoration: none;
  font-family: var(--font-body);
  transition: color 0.2s ease;
}

.contact-channel-val:hover {
  color: var(--text-yellow);
}

/* Form Styling */
.contact-form,
.contact-card {
  background-color: var(--fill-grey-dark);
  padding: var(--space-8);
  border-radius: var(--radius-card);
  border: 1px solid var(--stroke-grey-dark);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-6);
}

.form-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: var(--space-2);
}

.form-input, .form-textarea {
  font-family: var(--font-body);
  font-size: 1.2rem;
  padding: var(--space-3) var(--space-4);
  background-color: var(--fill-white);
  border: 1px solid var(--stroke-grey-light);
  border-radius: var(--radius-button);
  color: var(--text-black);
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--stroke-yellow);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-help {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-grey-light);
  margin-top: var(--space-1);
}

/* --- Footer --- */
footer.main-footer {
  background-color: var(--fill-black);
  border-top: 1px solid var(--stroke-grey-dark);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  color: var(--text-grey-light);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    text-align: left;
  }
}

.footer-text {
  margin-bottom: 0;
}

.footer-text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0em;
  line-height: 1.67;
  color: var(--text-grey-light);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-links a {
  color: var(--text-grey-light);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-white);
}

/* --- Social Circle Links --- */
.social-circle-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--grey-300);
  color: var(--grey-800);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.dark-theme .social-circle-link {
  background-color: var(--grey-800);
  color: var(--grey-200);
}

.footer-links a.social-circle-link {
  color: var(--grey-800);
}

body.dark-theme .footer-links a.social-circle-link {
  color: var(--grey-200);
}

.social-circle-link:hover {
  color: #ffffff;
}

.footer-links a.social-circle-link:hover {
  color: #ffffff;
}

.social-circle-link.linkedin:hover {
  background-color: #0077b5;
}

.social-circle-link.whatsapp:hover {
  background-color: #25d366;
}

.social-circle-link.behance:hover {
  background-color: #1769ff;
}

.social-circle-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-social-group {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-social-group .social-circle-link {
  width: 48px;
  height: 48px;
}

.hero-social-group .social-circle-link svg {
  width: 22px;
  height: 22px;
}

/* --- Project Detail Template Styles --- */
.project-detail-hero {
  padding-top: 150px;
  padding-bottom: var(--space-10);
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-card);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.project-detail-title {
  margin-bottom: var(--space-2);
}

.project-detail-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: var(--space-6);
  transition: color 0.3s ease;
}

.project-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
  border-top: 1px solid var(--border-card);
  padding-top: var(--space-6);
  transition: border-color 0.3s ease;
}

@media (min-width: 768px) {
  .project-overview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.overview-item {
  display: flex;
  flex-direction: column;
}

.overview-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.overview-val {
  font-size: 1.2rem;
  color: var(--text-main);
}

.overview-results-card {
  grid-column: 1 / -1;
  background-color: var(--bg-card);
  border: 1px solid var(--stroke-yellow);
  padding: var(--space-5);
  border-radius: var(--radius-card);
  margin-top: var(--space-4);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 1024px) {
  .overview-results-card {
    grid-column: span 4;
  }
}

.overview-results-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: var(--space-3);
  color: var(--text-yellow-dark);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

body.dark-theme .overview-results-title {
  color: var(--fill-yellow);
}

.overview-results-list {
  padding-left: var(--space-5);
  margin-bottom: 0;
}

.overview-results-list li {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: var(--space-2);
  color: var(--text-main);
}

.case-body-section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border-card);
  transition: border-color 0.3s ease;
}

.case-body-section:last-of-type {
  border-bottom: none;
}

.case-grid-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .case-grid-content {
    grid-template-columns: 0.3fr 0.7fr;
  }
}

.case-section-sidebar h2 {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--text-main);
  position: sticky;
  top: 100px;
}

.case-section-main h3 {
  font-size: 1.67rem;
  margin-bottom: var(--space-4);
  color: var(--text-main);
}

.case-section-main h4 {
  font-size: 1.33rem;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--text-main);
}

.case-section-main p, .case-section-main ul {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.case-section-main ul {
  padding-left: var(--space-5);
}

.case-section-main li {
  margin-bottom: var(--space-2);
}

.mockup-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

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

.gallery-item {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-card);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-image: linear-gradient(135deg, var(--fill-grey-dark) 0%, var(--fill-black) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  padding: var(--space-4);
}

.gallery-caption {
  padding: var(--space-4);
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-card);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.gallery-caption h5 {
  font-size: 1.15rem;
  margin-bottom: var(--space-1);
}

.gallery-caption p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0;
  color: var(--text-muted);
}

.case-cta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-10);
  border-top: 1px solid var(--border-card);
  padding-top: var(--space-8);
  transition: border-color 0.3s ease;
}

/* --- Utility Animations --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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