/* Base Theme Variables */
:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --text: #0b0f19;
  --muted: #5b6475;
  --primary: #2563eb;
  --accent: #111827;
  --ring: #94a3b8;
  --border: #e6e8ee;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --beige-dark: #ded4ca;
  --beige-light: #f4eee8;
}

html[data-theme="dark"] {
  --bg: #0a0a0b;
  --surface: #111216;
  --text: #e7e7ea;
  --muted: #a1a6b3;
  --primary: #60a5fa;
  --accent: #d1d5db;
  --ring: #334155;
  --border: #1f2330;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --beige-dark: #2a2520;
  --beige-light: #1a1815;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: color-mix(in hsl, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { font-weight: 800; letter-spacing: 0.2px; color: var(--text); text-decoration: none; font-size: 18px; display: inline-flex; align-items: center; gap: 10px; }
.logo::before { content: ""; width: 10px; height: 10px; background: var(--primary); border-radius: 2px; display: inline-block; }
.logo span { color: var(--primary); }

.primary-nav { display: flex; align-items: center; gap: 16px; }
.nav-list { list-style: none; display: none; gap: 12px; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--text); padding: 10px 12px; border-radius: 999px; font-weight: 700; text-transform: uppercase; font-size: 12px; }
.nav-list a:hover { background: var(--surface); }
.nav-list a.active { color: var(--primary); background: color-mix(in hsl, var(--primary) 12%, transparent); }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: transparent; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: transparent; cursor: pointer; }
.theme-toggle .icon-sun { display: none; fill: var(--text); }
.theme-toggle .icon-moon { display: block; fill: var(--text); }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.mobile-menu { position: fixed; top: 64px; right: 16px; left: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 4px; }
.mobile-menu a { display: block; padding: 12px 14px; color: var(--text); text-decoration: none; border-radius: 10px; }
.mobile-menu a:hover { background: var(--surface); }

/* Hero */
.hero { position: relative; padding: 80px 0 40px; overflow: hidden; min-height: 88vh; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-copy .eyebrow { color: var(--muted); font-weight: 700; letter-spacing: .4px; margin: 0 0 12px; text-transform: uppercase; font-size: 12px; }
.hero-copy .headline { font-size: clamp(56px, 8vw, 96px); line-height: 1; margin: 0 6px 12px 0; letter-spacing: -1.2px; }
.hero-copy .tagline { font-size: clamp(18px, 2.5vw, 20px); color: var(--text); margin: 0 0 24px; font-weight: 500; }
.hero-tags { display: none; }
.hero-copy { max-width: 640px; }
.hero-copy .description { color: var(--muted); font-size: 16px; line-height: 1.6; margin-top: 20px; max-width: 520px; }

.bg-decor { position: absolute; left: 0; top: 0; bottom: 0; width: clamp(340px, 42vw, 580px); background: var(--beige-dark); box-shadow: var(--shadow); z-index: -1; pointer-events: none; }

/* Profile card for hero */
.profile-card { width: min(360px, 88%); background: var(--beige-light); border-radius: 4px; border: 1px solid var(--border); padding: 32px 24px; margin: 0 auto; z-index: 1; box-shadow: 0 20px 60px rgba(0,0,0,.15); min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.profile-card .avatar { width: 200px; height: 200px; border-radius: 50%; position: relative; margin: 0 auto 18px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.profile-card .avatar:before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 4px; background: linear-gradient(180deg, var(--bg), var(--beige-dark)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.profile-card .avatar-initials { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--text); font-size: 44px; letter-spacing: 1px; }
.profile-card .photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-card h3 { margin: 4px 0 0; text-align: center; font-size: 22px; letter-spacing: -.2px; }
.profile-card .sub { text-align: center; color: var(--muted); font-weight: 700; letter-spacing: .3px; margin-top: 12px; font-size: 12px; text-transform: uppercase; }
.profile-card .divider { width: 40px; height: 2px; background: var(--primary); margin: 16px auto; border-radius: 2px; }
.profile-card .contact-bar { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); box-shadow: var(--shadow); }
.profile-card .contact-bar a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text); text-decoration: none; border: 1px solid var(--border); background: var(--bg); transition: transform .15s ease; }
.profile-card .contact-bar a:hover { transform: translateY(-1px); }
.profile-card .contact-bar svg { width: 18px; height: 18px; }

/* Sections */
.section { padding: 56px 0; }
.section-title { font-size: 24px; margin: 0 0 18px; letter-spacing: -0.2px; position: relative; display: inline-block; }
.section-title:after { content: ""; position: absolute; left: 0; right: -6px; bottom: -6px; height: 6px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; opacity: .25; }
.lead { font-size: 18px; color: var(--text); margin: 0 0 12px; }
.muted { color: var(--muted); margin: 0; }

/* Timeline */
.timeline { list-style: none; margin: 22px 0 0; padding: 0; position: relative; }
.timeline:before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--border), color-mix(in hsl, var(--primary) 25%, transparent) 40%, var(--border)); }
.timeline-item { position: relative; padding-left: 36px; margin: 0 0 22px; }
.timeline-item:before { content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); box-shadow: 0 0 0 6px color-mix(in hsl, var(--primary) 18%, transparent); }
.timeline-content { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.timeline-content h3 { margin: 0 0 6px; font-size: 18px; }
.timeline-content .at { color: var(--primary); }
.timeline-content .meta { color: var(--muted); margin: 0 0 8px; font-size: 13px; }
.bullets { margin: 0; padding-left: 18px; color: var(--text); }
.bullets li { margin: 8px 0; }

/* Projects - Clean Reference Design */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.projects-grid-home { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1200px) {
  .projects-grid-home { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 739px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid-home { grid-template-columns: 1fr; }
  
  /* Mobile Header Fix */
  .container { padding: 0 20px; } /* Add horizontal padding */
  .site-header { padding: 16px 0; } /* Reduce header padding */
  
  /* Mobile Hero Improvements */
  .hero { padding: 20px 0 40px; min-height: auto; } /* Reduce top, add bottom padding */
  .hero-inner { 
    grid-template-columns: 1fr; 
    gap: 32px; 
    text-align: center; 
    padding: 0 20px; /* Add horizontal padding to hero content */
  }
  .profile-card { 
    width: min(300px, 90%); 
    min-height: 380px; 
    padding: 20px 16px; 
    margin: 0 auto; /* Center the card */
  }
  .profile-card .avatar { width: 120px; height: 120px; margin-bottom: 12px; }
  .profile-card h3 { font-size: 18px; margin-bottom: 8px; }
  .profile-card .sub { font-size: 12px; margin-bottom: 16px; }
  .profile-card .contact-bar { margin-top: 16px; gap: 12px; }
  .profile-card .contact-bar a { width: 36px; height: 36px; }
  .profile-card .contact-bar svg { width: 18px; height: 18px; }
  
  .bg-decor { width: 100%; }
  
  .hero-copy .eyebrow { font-size: 12px; margin-bottom: 8px; }
  .hero-copy .headline { font-size: clamp(32px, 8vw, 40px); margin-bottom: 12px; }
  .hero-copy .tagline { font-size: 14px; margin-bottom: 20px; }
  .hero-copy .description { font-size: 13px; max-width: 100%; line-height: 1.5; margin-bottom: 24px; }
  
  .cta-group { 
    flex-direction: row; 
    gap: 16px; 
    justify-content: center;
  }
  .cta-group .btn { 
    flex: 1;
    max-width: 160px;
    min-height: 48px; 
    font-size: 15px; 
    font-weight: 700;
  }
  
  .scroll-indicator { display: none; }
}
.card { 
  background: var(--bg); 
  border: 1px solid var(--border); 
  border-radius: 20px; 
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08); 
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); 
  cursor: pointer; 
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  border-color: color-mix(in hsl, var(--primary) 40%, var(--border));
}

.card-image { 
  width: 100%; 
  height: 240px; 
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.card-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform .3s ease;
}
.card:hover .card-image img { transform: scale(1.02); }

.card-content { 
  padding: 24px; 
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-header { 
  display: flex; 
  align-items: flex-start; 
  justify-content: space-between; 
  gap: 16px; 
  margin-bottom: 16px; 
}
.card h3 { 
  margin: 0; 
  font-size: 22px; 
  line-height: 1.3; 
  font-weight: 700; 
  color: var(--text);
  flex: 1;
}
.card p { 
  color: var(--muted); 
  line-height: 1.6; 
  margin: 0 0 20px; 
  font-size: 15px;
  flex: 1;
}

.tags { 
  display: flex; 
  gap: 8px; 
  list-style: none; 
  margin: 0 0 24px; 
  padding: 0; 
  flex-wrap: wrap; 
}
.tags li { 
  font-size: 12px; 
  font-weight: 600;
  color: var(--primary); 
  border: 1px solid color-mix(in hsl, var(--primary) 20%, transparent); 
  padding: 6px 14px; 
  border-radius: 20px; 
  background: color-mix(in hsl, var(--primary) 6%, transparent);
}

.card-actions { 
  margin-top: auto;
}
.card-actions .btn { 
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  transition: all .2s ease;
}
.card-actions .btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

/* Project Modal - Split Layout */
.project-modal { 
  position: fixed; 
  inset: 0; 
  z-index: 100; 
  display: none; 
  align-items: center; 
  justify-content: center; 
  padding: 20px; 
}

@media (max-width: 739px) {
  .project-modal { 
    padding: 10px; 
    align-items: center; /* Center modal vertically */
    justify-content: center; /* Center modal horizontally */
  }
  .project-modal .modal-content { 
    max-width: 100%; 
    max-height: 90vh; 
    width: 95vw; /* Better width control */
    grid-template-columns: 1fr; 
    grid-template-rows: auto 1fr; /* Back to 2 rows */
  }
  .project-modal .modal-header { 
    padding: 16px 20px; 
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .project-modal .modal-header h3 { font-size: 16px; flex: 1; }
  .project-modal .modal-embed-container { 
    min-height: 250px; 
  }
  .project-modal .embed-content { padding: 10px; }
  
  /* Mobile open button styling */
  .project-modal .modal-open-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }
  .project-modal .modal-open-btn svg {
    width: 14px;
    height: 14px;
  }
}
.project-modal .modal-backdrop { 
  position: absolute; 
  inset: 0; 
  background: rgba(0,0,0,.7); 
  backdrop-filter: blur(8px); 
}
.project-modal .modal-content { 
  position: relative; 
  width: 100%; 
  max-width: 1280px; 
  max-height: 96vh; 
  background: var(--bg); 
  border: 1px solid color-mix(in hsl, var(--primary) 20%, var(--border)); 
  border-radius: 20px; 
  box-shadow: 0 40px 120px rgba(0,0,0,.4), 0 0 0 1px color-mix(in hsl, var(--primary) 30%, transparent); 
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.project-modal .modal-header { 
  grid-column: 1 / -1;
  display: flex; 
  align-items: center; 
  gap: 16px;
  padding: 24px 32px; 
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg) 0%, color-mix(in hsl, var(--surface) 60%, transparent) 100%);
}
.project-modal .modal-header h3 { 
  margin: 0; 
  font-size: 24px; 
  font-weight: 700;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex: 1;
}
.project-modal .modal-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in hsl, var(--surface) 80%, transparent);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}
.project-modal .modal-open-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.project-modal .modal-open-btn svg {
  width: 16px;
  height: 16px;
}
.project-modal .modal-close { 
  background: color-mix(in hsl, var(--surface) 80%, transparent); 
  border: 1px solid var(--border); 
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px; 
  color: var(--muted); 
  cursor: pointer; 
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.project-modal .modal-close:hover { 
  background: var(--primary); 
  color: white; 
  transform: scale(1.05);
}

.project-modal .modal-content-left { 
  padding: 32px; 
  overflow-y: auto; 
  background: var(--bg);
}
.project-modal .modal-content-left h4 {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 12px 0;
  position: relative;
}
.project-modal .modal-content-left h4::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.project-modal .modal-content-left ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.project-modal .modal-content-left li {
  position: relative;
  padding-left: 20px;
  margin: 8px 0;
  color: var(--text);
}
.project-modal .modal-content-left li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.project-modal .modal-embed-container { 
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}
.project-modal .embed-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  z-index: 1;
}
.project-modal .embed-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex; /* flex container */
  align-items: flex-start; /* align content to top to prevent cropping */
  justify-content: center; /* center horizontally */
  padding: 20px; /* equal padding */
}
.project-modal .embed-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.project-modal .embed-content .canva-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 0;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}



/* Larger PDF height inside modal */
.project-modal .embed-content iframe[data-kind="pdf"],
.project-modal .embed-content iframe.pdf-iframe {
  width: 100%;
  height: calc(96vh - 120px); /* account for header + padding */
  max-height: calc(96vh - 120px);
  min-height: 600px; /* ensure minimum readable height */
}
.project-modal .embed-content .canva-embed iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: none;
  padding: 0;
  margin: 0;
}

/* Photo Gallery Carousel */
.gallery-carousel {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  background: var(--surface);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  color: var(--text);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: var(--primary);
  opacity: 0.7;
}

@media (max-width: 739px) {
  .carousel-slide img {
    height: 350px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; border-radius: 12px; padding: 12px 18px; min-height: 44px; font-weight: 700; border: 1px solid var(--border); color: var(--text); background: var(--bg); transition: all .15s ease; }
.btn-primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); box-shadow: 0 10px 20px color-mix(in hsl, var(--primary) 25%, transparent); border-radius: 999px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 999px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px color-mix(in hsl, var(--primary) 20%, transparent); }
.btn-small { padding: 8px 10px; font-size: 13px; border-radius: 10px; }
.btn:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in hsl, var(--primary) 25%, transparent); }

/* Utility */
.hidden { display: none !important; }

/* Contact */
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.contact-form .grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form span { font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 12px; padding: 10px 12px; font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: color-mix(in hsl, var(--primary) 50%, var(--border)); box-shadow: 0 0 0 4px color-mix(in hsl, var(--primary) 20%, transparent); }
.contact-form input:invalid, .contact-form textarea:invalid { border-color: #ef4444; }
.contact-form .cta-group { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

/* Override mobile button styling for contact page */
@media (max-width: 739px) {
  .contact-form .cta-group { 
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: flex-start !important;
  }
  .contact-form .cta-group .btn { 
    flex: none !important;
    max-width: none !important;
    min-height: 44px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }
}

/* Footer */
.site-footer { padding: 28px 0; border-top: 1px solid var(--border); background: color-mix(in hsl, var(--bg) 88%, transparent); margin-top: 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.social { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.social a { color: var(--muted); text-decoration: none; }
.social a:hover { color: var(--text); }

/* Toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 10px; box-shadow: var(--shadow); }

/* Animations */
[data-animate] { opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .6s ease, transform .6s ease; }
[data-animate].in-view { opacity: 1; transform: none; }

/* Desktop */
@media (min-width: 740px) {
  .nav-list { display: flex; }
  .nav-toggle { display: none; }
  .hero { padding: 100px 0 40px; }
  .section { padding: 72px 0; }
  .contact-form .grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid-home { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr 1fr; }
}

/* Scroll indicator */
.scroll-indicator { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); text-decoration: none; color: var(--muted); font-size: 12px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-indicator .mouse { width: 22px; height: 34px; border: 2px solid var(--border); border-radius: 16px; position: relative; }
.scroll-indicator .wheel { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 2px; height: 8px; background: var(--primary); border-radius: 2px; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 8px); } }

@media (min-width: 1040px) {
  .projects-grid { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


