/* ============================================
   YURTS.DEV v2 — Design System & Styles
   Monochrome Premium Theme
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #09090b;
  --bg-surface: #111113;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  line-height: 1.1;
}

/* ---------- Spotlight Glow ---------- */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  will-change: background;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(9, 9, 11, 0.7);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.nav-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  height: 20px;
  transition: color var(--transition);
}

.nav-link span {
  display: block;
  transition: transform var(--transition);
}

.nav-link:hover span,
.nav-link.active span {
  transform: translateY(-100%);
}

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

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--text-primary);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 200px 24px 120px;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
  width: 100%;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 0;
  padding: 0 8px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  will-change: transform;
}

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

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid #3f3f46;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Magnetic button wrapper */
.magnetic-btn {
  display: inline-block;
  will-change: transform;
  transition: transform 0.2s ease-out;
}

/* ---------- Bento Grid — About & Stats ---------- */
.bento-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
  will-change: transform;
}

.bento-card:hover {
  border-color: var(--border-hover);
}

.bento-card.about-card {
  grid-column: span 2;
}

.about-card .section-label {
  margin-bottom: 16px;
}

.about-card p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Tech Stack Marquee ---------- */
.marquee-section {
  position: relative;
  z-index: 1;
  padding: 60px 0;
  overflow: hidden;
}

.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused !important;
}

.marquee-track.forward {
  animation: marquee-forward 30s linear infinite;
}

.marquee-track.reverse {
  animation: marquee-reverse 30s linear infinite;
}

@keyframes marquee-forward {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.marquee-content {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: #71717a;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition);
}

.tech-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

/* ---------- Featured Projects ---------- */
.projects-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.projects-header {
  margin-bottom: 48px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 16px;
}

/* Featured card spans 2 cols and 2 rows */
.project-card.featured {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: scale(1.02);
}

/* Card spotlight on hover */
.project-card .card-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 0;
}

.project-card:hover .card-spotlight {
  opacity: 1;
}

.project-card > *:not(.card-spotlight):not(.project-gradient-bg) {
  position: relative;
  z-index: 1;
}

/* Featured card gradient background */
.project-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.3;
  z-index: 0;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-icon.large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.project-card-info {
  flex: 1;
  min-width: 0;
}

.project-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.project-name.large {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.project-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.project-card:hover .project-arrow {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* See all projects toggle */
.see-all-card {
  grid-column: 1 / -1;
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.see-all-card:hover {
  transform: none;
  border-color: var(--border-hover);
}

.see-all-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.see-all-icons-preview {
  display: flex;
  gap: 0;
}

.see-all-mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid var(--bg-primary);
  margin-left: -8px;
  transition: transform 0.2s ease;
}

.see-all-mini-icon:first-child {
  margin-left: 0;
}

.see-all-card:hover .see-all-mini-icon {
  transform: translateY(-2px);
}

.see-all-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.see-all-card:hover .see-all-text {
  color: var(--text-primary);
}

.see-all-chevron {
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
}

.see-all-card:hover .see-all-chevron {
  color: var(--text-secondary);
}

.see-all-card[aria-expanded="true"] .see-all-chevron {
  transform: rotate(180deg);
}

.see-all-card[aria-expanded="true"] .see-all-text {
  color: var(--text-primary);
}

/* Expanded projects grid */
.expanded-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              margin 0.4s ease;
  margin-top: 0;
}

.expanded-projects.open {
  max-height: 1200px;
  opacity: 1;
  margin-top: 12px;
}

.expanded-projects .project-card {
  grid-column: auto;
}

/* ---------- Aceternity Glowing Border Effect ---------- */
.glow-card {
  --glow-spread: 40;
  --glow-start: 0;
  --glow-active: 0;
  --glow-border-width: 2px;
}

.glow-card .glow-border {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 1;
  z-index: 1;
}

.glow-card .glow-border .glow-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.glow-card .glow-border .glow-inner::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  inset: calc(-1 * var(--glow-border-width));
  border: var(--glow-border-width) solid transparent;
  background: radial-gradient(circle, rgba(255,255,255,0.5) 10%, transparent 20%),
              radial-gradient(circle at 40% 40%, rgba(160,160,180,0.4) 5%, transparent 15%),
              radial-gradient(circle at 60% 60%, rgba(120,120,150,0.4) 10%, transparent 20%),
              repeating-conic-gradient(
                from 236.84deg at 50% 50%,
                rgba(255,255,255,0.5) 0%,
                rgba(160,160,180,0.4) 5%,
                rgba(120,120,150,0.4) 10%,
                rgba(200,200,220,0.3) 15%,
                rgba(255,255,255,0.5) 20%
              );
  background-attachment: fixed;
  opacity: var(--glow-active);
  transition: opacity 0.3s ease;
  mask-clip: padding-box, border-box;
  -webkit-mask-clip: padding-box, border-box;
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--glow-start) - var(--glow-spread)) * 1deg),
      #00000000 0deg,
      #fff,
      #00000000 calc(var(--glow-spread) * 2deg)
    );
  -webkit-mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--glow-start) - var(--glow-spread)) * 1deg),
      #00000000 0deg,
      #fff,
      #00000000 calc(var(--glow-spread) * 2deg)
    );
}

/* Subtle outer glow shadow when active */
.glow-card.glow-active {
  box-shadow: 0 0 20px -5px rgba(255,255,255,0.08);
}

/* ---------- Hero App Showcase ---------- */
.hero-showcase {
  width: 100%;
  max-width: 600px;
  margin: 32px auto;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
}

.showcase-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.showcase-track.showcase-forward {
  animation: showcase-scroll 25s linear infinite;
}

.showcase-track.showcase-reverse {
  animation: showcase-scroll 25s linear infinite reverse;
  margin-top: 12px;
}

@keyframes showcase-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.showcase-item {
  flex-shrink: 0;
}

.showcase-item img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.showcase-item img:hover {
  transform: scale(1.15);
  border-color: var(--border-hover);
}

.hero-showcase:hover .showcase-track {
  animation-play-state: paused;
}

/* Per-project gradient classes */
.project-gradient.cscstest { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.project-gradient.quitpuff { background: linear-gradient(135deg, #1a2e1a, #162e21); }
.project-gradient.babybloom { background: linear-gradient(135deg, #2e1a2e, #2e1621); }
.project-gradient.uktheorytest { background: linear-gradient(135deg, #1a1a2e, #1e1a2e); }
.project-gradient.scanflow { background: linear-gradient(135deg, #1a2a2e, #162e2e); }
.project-gradient.irishtheorytest { background: linear-gradient(135deg, #1a2e26, #162e1a); }
.project-gradient.lifeinuk { background: linear-gradient(135deg, #2e1a1a, #2e2116); }
.project-gradient.habitflowkit { background: linear-gradient(135deg, #2e2a1a, #2e2616); }
.project-gradient.qrgenerator { background: linear-gradient(135deg, #1a1a2e, #21162e); }
.project-gradient.mottrack { background: linear-gradient(135deg, #1a2e2a, #162e26); }
.project-gradient.pixelperfect { background: linear-gradient(135deg, #2e1a26, #2e1621); }
.project-gradient.globai { background: linear-gradient(135deg, #1a262e, #16212e); }
.project-gradient.mirq { background: linear-gradient(135deg, #1e1e2e, #1a1a26); }
.project-gradient.familyhub { background: linear-gradient(135deg, #2e261a, #2e2116); }
.project-gradient.braingames { background: linear-gradient(135deg, #261a2e, #21162e); }

/* ---------- Contact CTA ---------- */
.contact-section {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  text-align: center;
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03), transparent 70%);
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.contact-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 32px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-link {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-social-link:hover {
  color: var(--text-secondary);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="5"] { transition-delay: 0.5s; }

/* ---------- Focus States (Accessibility) ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Responsive — Tablet ---------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 52px;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card.about-card {
    grid-column: 1 / -1;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 300px;
  }

  .see-all-card {
    grid-column: 1 / -1;
  }

  .expanded-projects {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-title {
    font-size: 40px;
  }
}

/* ---------- Responsive — Mobile ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 140px 20px 80px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-showcase {
    max-width: 100%;
  }

  .showcase-item img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .bento-section {
    padding: 60px 0;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card.about-card {
    grid-column: 1 / -1;
  }

  .bento-card {
    padding: 24px;
  }

  .stat-number {
    font-size: 32px;
  }

  .marquee-section {
    padding: 40px 0;
  }

  .tech-pill {
    padding: 8px 14px;
    font-size: 12px;
  }

  .projects-section {
    padding: 60px 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 250px;
  }

  .project-card {
    padding: 20px;
  }

  .see-all-card {
    grid-column: 1 / -1;
  }

  .expanded-projects {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 80px 0 60px;
  }

  .contact-title {
    font-size: 32px;
  }

  .contact-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 260px;
    margin: 0 auto;
  }

  .contact-buttons .btn {
    justify-content: center;
  }

  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 16px 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .showcase-item img {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .showcase-track {
    gap: 12px;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .bento-card {
    padding: 20px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .container {
    padding: 0 16px;
  }

  .project-name.large {
    font-size: 20px;
  }

  .project-description {
    font-size: 14px;
  }

  .contact-title {
    font-size: 28px;
  }

  .see-all-mini-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
}
