/* ========================================
   Reset CSS
   ======================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
  shape-margin: 1rem;
}

/* ========================================
   Fonts
   ======================================== */

@font-face {
  font-family: 'Inter Regular';
  src: url('./fonts/Inter-Regular.woff2') format('woff2'),
      url('./fonts/Inter-Regular.woff') format('woff'),
      url('./fonts/Inter-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Light';
  src: url('./fonts/Inter-Light.woff2') format('woff2'),
      url('./fonts/Inter-Light.woff') format('woff'),
      url('./fonts/Inter-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Bold';
  src: url('./fonts/Inter-Bold.woff2') format('woff2'),
      url('./fonts/Inter-Bold.woff') format('woff'),
      url('./fonts/Inter-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* Root Variables */
:root {
  /* Colors */
  --color-blue-1: #006895;
  --color-blue-2: #0899ba;
  --color-blue-3: #20a6b0;
  --color-teal: #8ec1b8;
  --color-beige: #dfdcd3;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-ubuntu-orange: #ea5321;

  /* Semantic Colors */
  --color-primary: var(--color-blue-1);
  --color-secondary: var(--color-beige);
  --color-success: #20a6b0;
  --color-error: #dc3545;
  --color-warning: var(--color-ubuntu-orange);
  --color-info: var(--color-blue-2);

  /* Fonts */
  --font-family-primary: 'Inter Regular', sans-serif;
  --font-family-light: 'Inter Light', sans-serif;
  --font-family-bold: 'Inter Bold', sans-serif;

  /* Typography Scale */
  --font-size-h1: 3rem;
  --font-size-h2: 2.25rem;
  --font-size-h3: 1.875rem;
  --font-size-h4: 1.5rem;
  --font-size-h5: 1.25rem;
  --font-size-h6: 1rem;
  --font-size-body-large: 1.125rem;
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;
  --font-size-caption: 0.75rem;

  --line-height-h1: 1.2;
  --line-height-h2: 1.3;
  --line-height-h3: 1.4;
  --line-height-h4: 1.4;
  --line-height-h5: 1.5;
  --line-height-h6: 1.5;
  --line-height-body-large: 1.6;
  --line-height-body: 1.6;
  --line-height-small: 1.5;
  --line-height-caption: 1.4;

  --letter-spacing-h1: -0.02em;
  --letter-spacing-h2: -0.01em;
  --letter-spacing-h3: 0;
  --letter-spacing-h4: 0;
  --letter-spacing-h5: 0;
  --letter-spacing-h6: 0;
  --letter-spacing-body-large: 0;
  --letter-spacing-body: 0;
  --letter-spacing-small: 0;
  --letter-spacing-caption: 0.01em;

  --font-weight-h1: 300; /* Light */
  --font-weight-h2: 300;
  --font-weight-h3: normal;
  --font-weight-h4: normal;
  --font-weight-h5: normal;
  --font-weight-h6: normal;
  --font-weight-body-large: normal;
  --font-weight-body: normal;
  --font-weight-small: normal;
  --font-weight-caption: normal;

  /* Spacing Scale */
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;

  /* Specific Spacing */
  --section-padding: var(--space-lg);
  --card-padding: var(--space-md);
  --button-padding: var(--space-sm) var(--space-md);
  --grid-gap: var(--space-md);
  --margin-rule: var(--space-md);

  /* Layout */
  --container-max-width: 1200px;
  --grid-columns: 12;

  /* Breakpoints */
  --breakpoint-mobile: 640px;
  --breakpoint-tablet: 768px;
  --breakpoint-laptop: 1024px;
  --breakpoint-desktop: 1280px;
  --breakpoint-large: 1536px;

  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-timing: 200ms;
  --easing-function: ease-in-out;
}

/* ========================================
   Typography
   ======================================== */

h1 {
  font-family: var(--font-family-light);
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  letter-spacing: var(--letter-spacing-h1);
  font-weight: var(--font-weight-h1);
  color: var(--color-black);
  margin-bottom: var(--space-md);
}

h2 {
  font-family: var(--font-family-light);
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  letter-spacing: var(--letter-spacing-h2);
  font-weight: var(--font-weight-h2);
  color: var(--color-black);
  margin-bottom: var(--space-md);
}

h3 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  letter-spacing: var(--letter-spacing-h3);
  font-weight: var(--font-weight-h3);
  color: var(--color-black);
  margin-bottom: var(--space-md);
}

h4 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-h4);
  line-height: var(--line-height-h4);
  letter-spacing: var(--letter-spacing-h4);
  font-weight: var(--font-weight-h4);
  color: var(--color-black);
  margin-bottom: var(--space-md);
}

h5 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-h5);
  line-height: var(--line-height-h5);
  letter-spacing: var(--letter-spacing-h5);
  font-weight: var(--font-weight-h5);
  color: var(--color-black);
  margin-bottom: var(--space-md);
}

h6 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-h6);
  line-height: var(--line-height-h6);
  letter-spacing: var(--letter-spacing-h6);
  font-weight: var(--font-weight-h6);
  color: var(--color-black);
  margin-bottom: var(--space-md);
}

.body-large {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-body-large);
  letter-spacing: var(--letter-spacing-body-large);
  font-weight: var(--font-weight-body-large);
  color: var(--color-black);
}

body, .body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  font-weight: var(--font-weight-body);
  color: var(--color-black);
  background-color: var(--color-white);
}

p {
  margin-bottom: var(--space-md);
}

.small {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
  letter-spacing: var(--letter-spacing-small);
  font-weight: var(--font-weight-small);
  color: var(--color-black);
}

.caption {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-caption);
  line-height: var(--line-height-caption);
  letter-spacing: var(--letter-spacing-caption);
  font-weight: var(--font-weight-caption);
  color: var(--color-black);
}

/* ========================================
   Layout System
   ======================================== */

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Grid System */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gap);
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 768px) {
  /* Tablet styles */
}

@media (min-width: 1024px) {
  /* Laptop styles */
}

@media (min-width: 1280px) {
  /* Desktop styles */
}

@media (min-width: 1536px) {
  /* Large screen styles */
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  padding: var(--button-padding);
  border-radius: var(--border-radius-md);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body);
  font-weight: normal;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-timing) var(--easing-function);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: #005a7a;
  border-color: #005a7a;
}

.btn-primary:active {
  background-color: #004663;
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 104, 149, 0.5);
}

.btn-primary:disabled {
  background-color: var(--color-beige);
  color: var(--color-black);
  cursor: not-allowed;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-black);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: #cac8c0;
}

.btn-secondary:active {
  background-color: #cac8c0;
}

.btn-secondary:focus {
  box-shadow: 0 0 0 3px rgba(170, 169, 168, 0.5);
}

.btn-secondary:disabled {
  background-color: var(--color-beige);
  color: var(--color-black);
  cursor: not-allowed;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-outline:focus {
  box-shadow: 0 0 0 3px rgba(0, 104, 149, 0.5);
}

.btn-outline:disabled {
  color: var(--color-beige);
  border-color: var(--color-beige);
  cursor: not-allowed;
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: rgba(234, 83, 33, 0.1);
}

.btn-ghost:focus {
  box-shadow: 0 0 0 3px rgba(0, 104, 149, 0.5);
}

.btn-ghost:disabled {
  color: var(--color-beige);
  cursor: not-allowed;
}

.btn-danger {
  background-color: var(--color-error);
  color: var(--color-white);
  border-color: var(--color-error);
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-danger:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.5);
}

.btn-danger:disabled {
  background-color: var(--color-beige);
  color: var(--color-black);
  cursor: not-allowed;
}

button {
  font-family: var(--font-family-primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* ========================================
   Forms & Inputs
   ======================================== */

.form-group {
  margin-bottom: var(--margin-rule);
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-small);
  font-weight: normal;
  color: var(--color-black);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-beige);
  border-radius: var(--border-radius-md);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body);
  background-color: var(--color-white);
  color: var(--color-black);
  transition: border-color var(--transition-timing) var(--easing-function);
  margin-bottom: var(--space-sm);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(234, 83, 33, 0.1);
}

input[type="text"]:invalid,
input[type="email"]:invalid,
input[type="password"]:invalid,
textarea:invalid {
  border-color: var(--color-error);
}

input[type="text"]:valid,
input[type="email"]:valid,
input[type="password"]:valid,
textarea:valid {
  border-color: var(--color-success);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  appearance: none;
  background-repeat: no-repeat;
  background-position: right var(--space-sm) center;
  background-size: 1rem;
}

.checkbox,
.radio {
  display: inline-block;
  margin-right: var(--space-sm);
}

.checkbox input,
.radio input {
  margin-right: var(--space-sm);
}

.error-message {
  color: var(--color-error);
  font-size: var(--font-size-small);
  margin-top: var(--space-sm);
}

.success-message {
  color: var(--color-success);
  font-size: var(--font-size-small);
  margin-top: var(--space-sm);
}

.mb-3 {
  margin-bottom: 1rem;
}

/* ========================================
   Cards & Containers
   ======================================== */

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-beige);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--card-padding);
  transition: box-shadow var(--transition-timing) var(--easing-function);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

/* ========================================
   Shadows & Elevation
   ======================================== */

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ========================================
   Logo
   ======================================== */

.primary-logo {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-white);
}

.secondary-logo {
  width: 100%;
  height: auto;
}

.outline-logo {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-blue-1);
}

/* ========================================
   Icons
   ======================================== */

.icon {
  display: inline-block;
  color: var(--color-black);
  transition: color var(--transition-timing) var(--easing-function);
}

.icon:hover {
  color: var(--color-primary);
}

.icon-16 { font-size: 16px; }
.icon-20 { font-size: 20px; }
.icon-24 { font-size: 24px; }

/* ========================================
   Images
   ======================================== */

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

/* Aspect ratios */
.aspect-1-1 { aspect-ratio: 1 / 1; }
.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-4-3 { aspect-ratio: 4 / 3; }

/* ========================================
   Animation & Motion
   ======================================== */

* {
  transition: color var(--transition-timing) var(--easing-function),
              background-color var(--transition-timing) var(--easing-function),
              border-color var(--transition-timing) var(--easing-function);
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none;
  }
}

*:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ========================================
   Component Library & Portfolio Specific
   ======================================== */

/* Header */
header {
  background-color: var(--color-white);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-beige);
}

nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  gap: var(--space-lg);
}

nav ul li a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-timing) var(--easing-function);
}

nav ul li a:hover {
  color: var(--color-blue-2);
  text-decoration: underline;
}

/* Hero section */
#hero {
  /* background: linear-gradient(135deg, var(--color-blue-1) 0%, var(--color-blue-3) 100%); */
  background: url(../images/black-multi-text.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
  padding: var(--section-padding) var(--space-md);
  text-align: center;
  margin-bottom: var(--section-padding);
  border-radius: var(--border-radius-lg);
}

#hero .text-wrapper {
  background-color: rgba(0, 0, 0, 0.3);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  width: 35%;
  margin: 0 auto;
}

#hero h1 {
  color: var(--color-white);
  font-size: var(--font-size-h1);
}

#hero h2 {
  color: var(--color-white);
  font-size: var(--font-size-h2);
  font-weight: normal;
}

#hero .text-wrapper span {
  display: flex;
  justify-content: space-around;
  font-size: 20px;
  gap: var(--space-md);
}

#hero .text-wrapper span a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-timing) var(--easing-function);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-md);
  border: 1px solid white;
}

#hero .text-wrapper span a:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
  animation: bounce 0.3s;
}

.display-on-desktop {
  display: flex;
}

.display-on-mobile {
  display: none !important;
}

#heroTwo {
  background: linear-gradient(135deg, var(--color-blue-1) 0%, var(--color-blue-3) 100%);
  color: var(--color-white);
  text-align: center;
  margin-bottom: var(--section-padding);
  height: 100vh;
  width: 100vw;
}

/* About section */
#about {
  max-width: 700px;
  margin: var(--section-padding) auto;
  text-align: center;
  padding: var(--space-md);
}

/* Work & Projects Sections */
.projects {
  margin: var(--section-padding) 0;
  padding: var(--section-padding) var(--space-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(223, 220, 211, 0.15) 100%);
}

.projects h2 {
  text-align: center;
  margin-bottom: var(--section-padding);
  position: relative;
  padding-bottom: var(--space-lg);
}

.projects h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-blue-2));
  border-radius: 2px;
}

.projects h3 {
  text-align: center;
  margin-bottom: var(--section-padding);
  position: relative;
}



.projects ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
  gap: var(--space-lg);
  list-style: none;
  margin-top: var(--space-lg);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.projects li {
  background: linear-gradient(135deg, #ffffff 0%, #f9f8f6 100%);
  border: 1px solid rgba(223, 220, 211, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  transition: all var(--transition-timing) var(--easing-function);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.projects li p, .projects li a {
  padding: 0 var(--space-lg) !important;
}

.projects li .chrome-link {
  padding: 0 !important;
  margin-top: 0;
}

.projects li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-blue-2), var(--color-blue-3));
  opacity: 0;
  transition: opacity var(--transition-timing) var(--easing-function);
}

.box-hover {
  text-align: left;
}

.box-hover:hover {
  box-shadow: 0 12px 24px rgba(0, 104, 149, 0.12);
  transform: translateY(-6px);
  border-color: rgba(8, 153, 186, 0.3);
}

.box-hover:hover::before {
  opacity: 1;
}

.card-header-img {
  background: url(../images/blue-white-text.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 150px;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: center;  
  align-items: center;
  opacity: .7;
}

.card-header-img:hover {
  opacity: 1;
}

.card-header-img h3 {
  color: var(--color-white) !important;
  font-size: 35px !important;
  font-weight: bold;
}

.project-header-img {
  background: url(../images/black-multi-text.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 150px;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: center;  
  align-items: center;
  opacity: .7;
}

.project-header-img:hover {
  opacity: 1;
}

.project-header-img h3 {
  color: var(--color-white) !important;
  font-size: 35px !important;
  font-weight: bold;
}

.projects li h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
  font-size: 35px !important;
  position: relative;
}

.projects li > p:nth-of-type(1) {
  color: var(--color-blue-2);
  font-size: 0.875rem;
  font-weight: 500;
  /* text-transform: uppercase; */
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.projects li > p:nth-of-type(2) {
  color: var(--color-ubuntu-orange);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.projects li p {
  color: var(--color-black);
  font-size: var(--font-size-body);
  margin-bottom: var(--space-sm);
  flex-grow: 1;
  line-height: 1.6;
}

.projects li a {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-md);
  padding: var(--space-sm) 0;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-timing) var(--easing-function);
  border-bottom: 2px solid transparent;
}

.projects li a:hover {
  color: var(--color-blue-2);
  border-bottom-color: var(--color-blue-2);
  padding-left: var(--space-sm);
}

.hide {
  display: none;
}

/* Metrics inside work cards */
.card-metrics {
  display: flex;
  gap: 0.75rem;
  padding: 0 var(--space-lg) var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.metric {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.6rem;
  border-radius: 10px;
  background-color: rgba(8, 153, 186, 0.06);
  border: 1px solid rgba(8, 153, 186, 0.12);
  font-size: 0.9rem;
  color: var(--color-black);
}

.metric i {
  font-size: 1rem;
  color: var(--color-primary);
  width: 1.1rem;
  text-align: center;
}

.metric-title {
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 660px) {
  .card-metrics {
    gap: 0.5rem;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .metric {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
  }
}

/* Contact section */
#contact {
  margin: var(--section-padding) auto;
  padding: var(--section-padding);
  max-width: 800px;
  background: linear-gradient(135deg, #ffffff 0%, #f9f8f6 100%);
  border: 1px solid rgba(223, 220, 211, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#contact h2 {
  text-align: center;
  margin-bottom: var(--section-padding);
  color: var(--color-primary);
  position: relative;
  padding-bottom: var(--space-lg);
}

#contact h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-blue-2));
  border-radius: 2px;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid rgba(223, 220, 211, 0.8);
  border-radius: 8px;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body);
  background-color: var(--color-white);
  color: var(--color-black);
  transition: all var(--transition-timing) var(--easing-function);
  box-sizing: border-box;
}

#contact input[type="text"]::placeholder,
#contact input[type="email"]::placeholder,
#contact textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 104, 149, 0.1);
  background-color: rgba(0, 104, 149, 0.02);
}

#contact textarea {
  resize: vertical;
  min-height: 150px;
  font-family: var(--font-family-primary);
}

#contact button[type="submit"] {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-blue-2) 100%);
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 1rem var(--space-lg);
  border-radius: 8px;
  font-size: var(--font-size-body);
  font-family: var(--font-family-primary);
  font-weight: 600;
  transition: all var(--transition-timing) var(--easing-function);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-md);
}

#contact button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 104, 149, 0.25);
}

#contact button[type="submit"]:active {
  transform: translateY(0);
}

#helloHal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  margin: var(--section-padding) 0;
  padding: var(--space-lg);
}

#helloHal a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--transition-timing) var(--easing-function);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-md);
}

#helloHal a:hover {
  color: var(--color-blue-2);
  background-color: rgba(0, 104, 149, 0.08);
}

.helloHalHeader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  margin: 0;
  padding: var(--space-sm);
}

.helloHalHeader a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--transition-timing) var(--easing-function);
  font-weight: 500;
  padding: var(--space-sm) var(--space-sm);
  border-radius: var(--border-radius-md);
}

.helloHalHeader a:hover {
  color: var(--color-blue-2);
  background-color: rgba(0, 104, 149, 0.08);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--color-black) 0%, #1a1a1a 100%);
  color: var(--color-white);
  padding: var(--section-padding) var(--space-md);
  margin-top: var(--section-padding);
  border-top: 3px solid var(--color-primary);
}

footer .container {
  max-width: var(--container-max-width);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--section-padding);
  margin-bottom: var(--section-padding);
  padding-bottom: var(--section-padding);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-body);
  margin: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all var(--transition-timing) var(--easing-function);
  font-size: var(--font-size-small);
  display: inline-flex;
  align-items: center;
}

.footer-col ul li a:hover {
  color: var(--color-beige);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-small);
  margin: 0;
}

/* Main content */
main {
  padding: var(--space-md);
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-timing) var(--easing-function);
}

a:hover {
  text-decoration: underline;
  color: var(--color-blue-2);
}


@media (max-width: 1150px) {

  #hero .text-wrapper {
    width: 55% !important;
  }

}

/* Media Queries */
@media (max-width: 960px) {
  .projects li {
    flex-basis: 100%;
  }
  .hide {
    display: none;
  }
  nav ul {
    gap: var(--space-md);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 800px) {
  #hero .text-wrapper {
    width: 85% !important;
  }
}

@media (max-width: 768px) {
  .projects ul {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  #contact {
    margin: var(--section-padding) var(--space-md);
    padding: var(--space-lg);
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  nav ul {
    flex-direction: column;
    gap: var(--space-sm);
    font-size: 0.95rem;
  }
}

@media (max-width: 660px) {

  main {
    padding: 0 !important;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .projects ul {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .projects li {
    padding: var(--space-md);
  }
  
  nav ul {
    flex-direction: column;
    gap: var(--space-sm);
  }

  nav ul li:first-child {
    margin-left: 0;
  }

  #hero {
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #hero .text-wrapper {
    width: 87% !important;
    padding: 0 !important
  }

  #hero .text-wrapper span a {
    margin-bottom: var(--space-sm);
  }

  .display-on-desktop {
    display: none !important;
  }

  .display-on-mobile {
    display: block !important;
  }

  .display-on-mobile a {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-md);
    border: 1px solid white;
    display: block;
  }
  
  #contact {
    max-width: 100%;
    margin: var(--space-md);
  }
  
  .projects li h3 {
    font-size: 1.25rem;
  }
  
  footer {
    padding: var(--space-lg) var(--space-md);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}