@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url("https://use.typekit.net/cvo4gxt.css");
/* ================================
   TYPOGRAPHY & FONTS
   ================================ */

/* Color Variables */
:root {
  --primary-blue: #4362ac;
  --light-blue: #a9c6e8;
  --cream: #eeece5;
  --black: #1a1a1a;
  --white: #ffffff;
  --text-color: #1a1a1a;
  --border-color: #ddd;
}

/* ================================
   RESET & BASE STYLES
   ================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--cream);
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--light-blue);
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 3.5rem;
  letter-spacing: 0.05em;
  color: var(--primary-blue);
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-color);
}

h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--text-color);
}

p {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.handwriting {
  font-family: "the-youngest", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2.5rem;
  color: var(--primary-blue);
  text-align: center;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */

header {
  background-color: var(--primary-blue);
  color: var(--cream);
  padding: 1.5rem 4rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 90px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
}

.logo {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: var(--cream);
}

/* Navigation Menu */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--light-blue);
}

.nav-menu a.contact-btn {
  background-color: var(--light-blue);
  color: var(--primary-blue) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-menu a.contact-btn:hover {
  background-color: var(--white);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* Hamburger Menu */
.hamburger,
.menu-toggle {
  display: none;
}

/* ================================
   BUTTONS & LINKS
   ================================ */

.cta-button {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: 0.05em;
  background-color: var(--light-blue);
  color: var(--primary-blue);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid var(--light-blue);
  text-transform: uppercase;
}

.cta-button:hover {
  background-color: var(--white);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.secondary-btn {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.95rem;
  background-color: var(--cream);
  color: var(--primary-blue);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--primary-blue);
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.secondary-btn:hover {
  background-color: var(--primary-blue);
  color: var(--cream);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ================================
   HERO SECTION (HOME PAGE)
   ================================ */

body > header + main > .hero {
  margin-top: 0;
}

.hero {
  background-color: var(--primary-blue);
  color: var(--cream);
  padding: 4rem 4rem 6rem 0;
  text-align: left;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-content {
  max-width: none;
  padding-left: 4rem;
  padding-right: 4rem;
}

.hero-header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-logo {
  height: 88px;
  width: auto;
}

.hero h1 {
  color: var(--cream);
  font-size: 3rem;
  margin-bottom: 0;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-btn {
  background-color: var(--cream);
  color: var(--primary-blue);
  border-color: var(--cream);
}

.hero-btn:hover {
  background-color: var(--white);
}

/* ================================
   GALLERY PREVIEW (HOME PAGE)
   ================================ */

.gallery-preview {
  background-color: var(--cream);
  padding: 4rem 2rem;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.masonry-item {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.masonry-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.item-1 {
  grid-column: span 1;
}

.item-2 {
  grid-column: span 1;
}

.item-3 {
  grid-column: span 1;
}

.item-4 {
  grid-column: span 1;
}

/* ================================
   CATEGORIES SECTION (HOME PAGE)
   ================================ */

.categories {
  background: linear-gradient(135deg, var(--light-blue) 0%, #8fb3dd 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.categories-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.category-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--primary-blue);
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0.6rem 1.25rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.category-tag:hover {
  background-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ================================
   CTA SECTION
   ================================ */

.cta-section {
  background-color: var(--cream);
  padding: 6rem 2rem;
  text-align: center;
  border-top: 3px solid var(--light-blue);
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--primary-blue);
}

.cta-section .cta-button {
  font-size: 1.1rem;
}

/* ================================
   FOOTER
   ================================ */

footer {
  background-color: var(--primary-blue);
  color: var(--cream);
  padding: 4rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content h4 {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--light-blue);
  margin-bottom: 1.5rem;
}

.footer-content ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-content a {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.footer-content a:hover {
  color: var(--light-blue);
}

/* ================================
   ABOUT PAGE
   ================================ */

.about-hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #3a4f98 100%);
  color: var(--cream);
  padding: 4rem 2rem;
  text-align: center;
}

.about-hero h1 {
  color: var(--cream);
  font-size: 3rem;
}

.about-content {
  background-color: var(--cream);
  padding: 4rem 2rem;
}

.about-grid {
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(400px, 520px);
  gap: 3.5rem;
  justify-content: center;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-grid > .about-text:first-child {
  align-items: center;
  justify-self: center;
}

.about-grid > .about-text:last-child {
  max-width: 520px;
  justify-self: start;
  align-items: flex-start;
  text-align: left;
}

.about-text h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.9;
}

.about-btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
}

.headshot {
  width: min(100%, 300px);
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.headshot img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.tech-section {
  background: linear-gradient(135deg, var(--light-blue) 0%, #8fb3dd 100%);
  padding: 4rem 2rem;
  text-align: left;
}

.tech-section h2 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.tech-section p {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.tech-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================================
   WORK PAGE & GALLERY
   ================================ */

.work-gallery {
  background-color: var(--cream);
  padding: 4rem 2rem;
}

.work-gallery h1 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-blue);
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.filter-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background-color: var(--white);
  color: var(--primary-blue);
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-blue);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.filter-btn:hover {
  background-color: var(--light-blue);
  border-color: var(--light-blue);
}

.filter-btn.active {
  background-color: var(--primary-blue);
  color: var(--cream);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 4px;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  background-color: transparent;
  border-radius: 8px;
  overflow: visible;
  cursor: pointer;
}

.gallery-item:hover {
  transform: none;
  box-shadow: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover img {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* ================================
   MODAL / PROJECT OVERLAY
   ================================ */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--cream);
  margin: 2rem auto;
  max-width: 1000px;
  max-height: 85vh;
  border-radius: 12px;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
  position: relative;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-blue);
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--light-blue);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem;
  align-items: start;
}

.modal-image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.modal-image img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-text h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.project-category {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--light-blue);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.modal-text p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-color);
}

#projectDescription {
  white-space: pre-line;
}

.modal-supporting {
  padding: 1.75rem 3rem 3rem;
  margin-top: 0.75rem;
  background-color: var(--white);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.modal-supporting-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.modal-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 760px;
}

.modal-gallery img {
  width: auto;
  max-width: 180px;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  display: block;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
}

.modal-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.modal-gallery img.active {
  outline: 2px solid var(--light-blue);
  outline-offset: 3px;
}

/* ================================
   CONTACT PAGE
   ================================ */

.contact-section {
  background-color: var(--cream);
  padding: 4rem 2rem;
}

.contact-section h1 {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  max-width: 820px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  border: 2px solid var(--light-blue);
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: var(--cream);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(67, 98, 172, 0.1);
}

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

.contact-form button {
  width: 100%;
  margin-top: 1.5rem;
  font-size: 1rem;
}

/* ================================
   PRINT STYLES
   ================================ */

@media print {
  header,
  footer,
  .filter-container {
    display: none;
  }
}
