:root {
  --primary: #006a4e;
  --secondary: #444444;
  --tertiary: #ffffff;
  --neutral: #e5e7eb;
  --surface: #ffffff;
  --on-surface: #000000;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --text: #444444;
  --text-dim: #666666;
  --text-muted: #999999;
  --accent: #006a4e;
  --accent-hover: #00523d;
  --border: #e5e7eb;
  --border-hover: #006a4e;
  --error: #c0392b;

  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --space-xs: 16px;
  --space-sm: 26px;
  --space-md: 40px;
  --space-lg: 56px;
  --space-xl: 194px;

  --t: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --primary: #006a4e;
  --secondary: #cccccc;
  --tertiary: #ffffff;
  --neutral: #333333;
  --surface: #1e1e1e;
  --on-surface: #ffffff;
  --bg: #121212;
  --bg-alt: #1a1a1a;
  --text: #e0e0e0;
  --text-dim: #aaaaaa;
  --text-muted: #777777;
  --accent: #00a87a;
  --accent-hover: #00c48e;
  --border: #333333;
  --border-hover: #00a87a;
  --error: #e74c3c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 27px;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.45px;
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: var(--tertiary);
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition:
    background 0.3s,
    padding 0.3s;
}

.navbar.scrolled {
  background: var(--surface);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-link {
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--t);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
}

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

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  transition:
    border-color 0.3s,
    color 0.3s;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="light"] .theme-toggle .fa-moon {
  display: inline;
}

[data-theme="light"] .theme-toggle .fa-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
  display: inline;
}

:not([data-theme]) .theme-toggle .fa-moon {
  display: none;
}

:not([data-theme]) .theme-toggle .fa-sun {
  display: inline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 15px 25px;
  height: 58px;
  min-width: 151px;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--tertiary);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: var(--surface);
  color: var(--on-surface);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-link {
  background: transparent;
  color: var(--secondary);
  padding: 0;
  height: auto;
  min-width: 0;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.45px;
  text-transform: none;
}

.btn-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.btn i {
  transition: transform 0.2s;
  font-size: 14px;
}

.btn:hover i {
  transform: translateX(4px);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--space-sm) var(--space-lg);
}

.hero-content {
  text-align: center;
  max-width: 720px;
  width: 100%;
}

.hero-label {
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-family: "Raleway", sans-serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.hero-sub {
  font-family: "Raleway", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto var(--space-md);
}

.hero-actions {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}


.section {
  padding: var(--space-lg) 0;
}

.section-num {
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  display: block;
}

.section-heading {
  font-family: "Raleway", sans-serif;
  font-size: 31px;
  font-weight: 800;
  line-height: 34px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}

.about-section {
  background: var(--bg);
}

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

.about-profile {
  margin-top: var(--space-sm);
}

.about-profile-img {
  width: 280px;
  height: 280px;
  overflow: hidden;
  border: 2px solid var(--primary);
  margin-bottom: var(--space-xs);
}

.about-profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-lead {
  font-family: "Raleway", sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 30.6px;
  letter-spacing: 1.8px;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.about-body {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: 0.45px;
  color: var(--text-dim);
  margin-bottom: var(--space-xs);
}

.about-highlights {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  align-items: stretch;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
  text-align: center;
  flex: 1;
}

.about-stat:hover {
  border-color: var(--primary);
}

.about-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.about-stat strong {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text);
  margin-bottom: 2px;
}

.about-stat span {
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.3px;
  color: var(--text-dim);
}

.skills-section {
  background: var(--bg-alt);
}

.skills-header {
  margin-bottom: var(--space-md);
}

.skills-grid {
  display: flex;
  flex-direction: column;
}

.skill-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.skill-row:first-child {
  border-top: 1px solid var(--border);
}

.skill-row:hover {
  background: rgba(0, 106, 78, 0.03);
}

.skill-number {
  font-family: "Raleway", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--primary);
}

.skill-content h3 {
  font-family: "Raleway", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--text);
  margin-bottom: 4px;
}

.skill-content p {
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.3px;
  color: var(--text-dim);
}

.skill-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.skill-tags span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  text-transform: uppercase;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.skill-tags span:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cases-section {
  background: var(--bg);
}

.cases-header {
  margin-bottom: var(--space-md);
}

.cases-sub {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: 0.45px;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  max-width: 500px;
}

.case-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  margin-bottom: var(--space-xs);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
  cursor: pointer;
  position: relative;
}

.case-row:hover {
  border-color: var(--primary);
}

.case-tag {
  display: inline-block;
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.case-name {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 34px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.case-desc {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: 0.45px;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
}

.case-stats {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.case-stat-val {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 34px;
  letter-spacing: 3.2px;
  color: var(--primary);
}

.case-stat-label {
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--primary);
  text-transform: uppercase;
  transition: gap 0.3s;
}

.case-row:hover .case-link {
  gap: 14px;
}

.case-preview-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.case-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--t);
}

.case-row:hover .case-preview-img img {
  transform: scale(1.03);
}

.contact-section {
  background: var(--bg-alt);
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: stretch;
}

.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-right {
  display: flex;
}

.contact-body {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: 0.45px;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
}

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

.contact-link-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 18px 20px;
  border: 1px solid var(--border);
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.45px;
  color: var(--text-dim);
  transition:
    border-color 0.3s,
    color 0.3s;
}

.contact-link-item i {
  color: var(--primary);
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.contact-link-item:hover {
  border-color: var(--primary);
  color: var(--text);
}

.contact-form {
  padding: var(--space-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  display: flex;
  flex-direction: column;
}

.contact-form .btn-submit {
  margin-top: auto;
}

.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
}

.form-group {
  margin-bottom: var(--space-xs);
}

.form-group label {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 25px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--secondary);
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.45px;
  transition: border-color 0.3s;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.btn-submit {
  width: 100%;
  justify-content: center;
}

.footer {
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

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

.footer-logo img { height: 36px; width: auto; }

.footer-links {
  display: flex;
  gap: var(--space-xs);
}

.footer-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  transition:
    border-color 0.3s,
    color 0.3s;
}

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

.footer-copy {
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--text-muted);
}

.anim-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--t),
    transform 0.6s var(--t);
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-xs);
  }

  .nav-container {
    padding: 0 var(--space-xs);
  }

  .hero {
    padding: 120px var(--space-xs) var(--space-md);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-sm);
    transition: right 0.3s var(--t);
    border-left: 1px solid var(--border);
    z-index: 101;
    padding: 0 var(--space-sm);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: block;
    z-index: 102;
  }

  .hero-title {
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: 2px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .about-split,
  .contact-split {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .about-highlights {
    flex-direction: column;
  }

  .skill-row {
    grid-template-columns: 40px 1fr;
  }

  .skill-tags {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 8px;
  }

  .case-row {
    grid-template-columns: 1fr;
    padding: var(--space-xs);
  }

  .case-row-right {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}
