:root {
  --bg: #0b0b0c;
  --bg-elev: #131315;
  --text: #f5f5f7;
  --muted: #b7b7bd;
  --accent: #ffffff;
  --accent-weak: #2a2a2e;
  --border: #1f1f23;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.title-audiowide { font-family: 'Audiowide', cursive; letter-spacing: 0.02em; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}
a{
  color: inherit;
  text-decoration: none;
}
/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,11,12,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
/* Drawer (mobile) */
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 360px);
  background: #0e0e11;
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 200ms ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.drawer-close { background: transparent; color: var(--text); border: 1px solid var(--border); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; }
.drawer-nav { overflow: auto; padding: 10px 12px 18px; }
.drawer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.drawer-links a { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elev); }
.drawer-section { margin-top: 8px; padding: 10px 12px; font-weight: 800; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.drawer-sub a { padding-left: 16px; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.46); opacity: 0; pointer-events: none; transition: opacity 160ms ease; z-index: 90; }
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-logo { width: 36px; height: 36px; object-fit: cover; border-radius: 100px; }
.brand-name { font-family: 'Audiowide', cursive; font-size: 18px; letter-spacing: 0.02em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 500; opacity: 0.9; }
.main-nav a:hover { opacity: 1; }
.main-nav .has-dropdown { position: relative; }
.main-nav .mega {
  position: absolute;
  left: 50%; top: calc(100% + 10px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 220px));
  gap: 18px 28px;
  padding: 16px 18px;
  background: rgba(16,16,18,0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.12s ease, transform 0.12s ease;
}
.main-nav .has-dropdown:hover .mega { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.mega-col .mega-title { font-weight: 700; font-size: 12px; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mega-col a { color: var(--text); text-decoration: none; opacity: 0.9; }
.mega-col a:hover { opacity: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; cursor: pointer; }
.btn-primary { color: #000; background: var(--accent); }
.btn-primary:hover { box-shadow: 0 0 18px rgba(255, 255, 255, 0.7); }
.btn-hackathon{
  color: black;
  border: none;
  padding-block: 13px;
  transition: all 0.5s ease;
  background-color:white;
    &:hover {
  border:white 1px solid !important;

    background-color: black;
    color: white;
  }
}
.btn-join{
  color: white;
  border: white 1px solid;
  transition: all 0.5s ease;
  &:hover {
    background-color: white;
    color: black;
  }
}
.arrow {
  font-size: 12px;
  position: relative;
  top: -3px;
  font-weight: lighter;
  margin-left: 2px;
}
/* new wide button */
.btn-wide {
  color: #000;
  background: var(--accent);
  width: 50%;
  margin: 0px 10px;
  padding: 15px;
  text-align: center;
}

.btn-wide:hover {
  filter:brightness(0.8);
  filter:drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}
.join-buttons {
  display: flex;
  justify-content: center;
  gap: 10px; /* 10px gap between buttons */
}

/* Member button with glowing white look */
/* Member button with glowing white look */
.btn-member {
  background: #fff;
  color: #000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.btn-member:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
  filter: brightness(0.95);
}

/* Head button styled like Operations node */
.btn-head {
  background: radial-gradient(120px 120px at 50% 50%, #121216, #09090c);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: inset 0 0 24px rgba(255,255,255,0.04),
              0 2px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-head:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5),
              inset 0 0 24px rgba(255,255,255,0.06);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 78vh;
  padding: 72px 0 56px;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('bg.png') center / cover no-repeat;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(1200px 600px at 70% 20%, #1a1a1f 0%, transparent 60%),
              radial-gradient(800px 400px at 20% 80%, #16161a 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { text-align: center; z-index: 1; }
.hero .title-audiowide { font-size: clamp(40px, 8vw, 88px); margin: 0 0 8px; }
.hero .subtitle { margin: 0; color: var(--muted); font-size: clamp(14px, 2.2vw, 18px); }
.hero-logo { position: absolute; bottom: 18px; left: 18px; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; opacity: 0.9; border: 1px solid var(--border); }

/* new wide button */
/* Member and Head button variants */
.btn-member {
  background: #fff;
  color: #000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}
.btn-member:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.7);
  filter: brightness(0.95);
}

.btn-head {
  background: radial-gradient(120px 120px at 50% 50%, #121216, #09090c);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: inset 0 0 24px rgba(255,255,255,0.04), 0 2px 10px rgba(0,0,0,0.4);
}
.btn-head:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5), inset 0 0 24px rgba(255,255,255,0.06);
}





/* Sections */
.section { padding: 56px 0; }
.section-title { font-size: 28px; margin: 0 0 14px; }
.section-title-medium { font-size: 22px; font-weight: 600; margin: 0 0 14px; }
.about .about-text { color: var(--muted); line-height: 1.7; max-width: 70ch; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 14px; }
.vm-title { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
.vm-text { color: var(--muted); line-height: 1.7; }
.vm-list { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
@media (max-width: 820px) { .vm-grid { grid-template-columns: 1fr; } }
/* section variant styling */
.section.variant { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.0)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Meet Us carousel */
.meet-us .carousel { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px;}
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 16px; padding: 8px 2px; margin: 0; list-style: none; scroll-behavior: smooth; }
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; min-width: 220px; max-width: 220px; flex: 0 0 auto; overflow: hidden; }
.card-image { width: 100%; height:max-content; aspect-ratio: 3 / 4; height: auto; object-fit: cover; display: block; border-bottom: 1px solid var(--border); }
.card-body { padding: 12px 12px 14px; }
.card-name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.card-role { font-size: 13px; color: #d8d8dd; font-weight: 700; opacity: 0.9; }

.carousel-nav { width: 40px; height: 45px; border-radius: 50%; border: 1px solid var(--border); background: #000; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.08s ease; }
.carousel-nav:hover { transform: translateY(-1px); }
.carousel-nav:disabled { opacity: 0.4; cursor: default; }

.carousel-progress { height: 4px; background: var(--accent-weak); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.carousel-progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width 0.2s ease; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #0c0c0e; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr; align-items: flex-start; gap: 16px; column-gap: 16px; padding: 28px 0 34px; }
.footer-brand .brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-brand .copyright-inline { color: var(--muted); font-size: 14px; }
.footer-logo { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); object-fit: cover; }
.footer-title { font-size: 14px; color: var(--text); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; font-weight: 900; }
.social .footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.social .footer-links a { font-weight: 400; color: #cfd0d6; }
.social .footer-links a:hover { color: var(--text); }
.social a { color: var(--text); text-decoration: none; opacity: 0.9; }
.social a:hover { opacity: 1; }
.footer-committees .committees-columns { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 6px 12px; }
.footer-committees .committees-columns-mobile { display: none; }
.footer-committees ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-committees li { color: #cfd0d6; font-weight: 400; }
/* Committees futuristic graph */
.committees .committees-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; position: relative; }
.committees { position: relative; }
.committees .group-head { font-family: 'Audiowide', cursive; font-size: 18px; margin-bottom: 10px; color: #ffffff; }
.committees .nodes { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 14px; }
.committees .node {
  position: relative;
  background: radial-gradient(120px 120px at 50% 50%, #121216, #09090c);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: inset 0 0 24px rgba(255,255,255,0.04), 0 2px 10px rgba(0,0,0,0.4);
}
.committees .connectors { display: none; }
@media (max-width: 800px) {
  .committees .committees-layout { grid-template-columns: 1fr; }
}

/* Operations grid under committees */
.ops-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 0 0; grid-auto-flow: row; grid-template-areas: "column1" "column2" "column3"; margin-top: 18px; }
.ops-grid .column1 { grid-area: column1; display: grid; align-content: start; gap: 10px; }
.ops-grid .column2 { grid-area: column2; }
.ops-grid .column3 { grid-area: column3; }
.ops-grid .group-head { font-family: 'Audiowide', cursive; font-size: 18px; margin-bottom: 10px; color: #ffffff; }
.ops-grid .nodes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ops-grid .node { position: relative; background: radial-gradient(120px 120px at 50% 50%, #121216, #09090c); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 16px 18px; text-align: center; box-shadow: inset 0 0 24px rgba(255,255,255,0.04), 0 2px 10px rgba(0,0,0,0.4); }
@media (max-width: 800px) { .ops-grid { grid-template-columns: 1fr; grid-template-areas: "column1" "column2" "column3"; } .ops-grid .nodes { grid-template-columns: repeat(2, 1fr); } }
/* removed old footer layout */

/* Responsive */
@media (max-width: 880px) {
  .main-nav ul { gap: 14px; }
  .card { min-width: 200px; max-width: 200px; }
}
@media (max-width: 900px) {
  .header-inner { gap: 10px; }
  .brand-name { display: none; }
  .main-nav { display: none; }
  /* Smaller cards on mobile */
  .card { min-width: 170px; max-width: 170px; }
  .carousel-track { gap: 12px; }
  /* Enable swipe scrolling for Meet Us on mobile */
  .carousel-viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .carousel-viewport::-webkit-scrollbar { display: none; }
  /* Footer mobile layout per request */
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { display: grid; gap: 8px; }
  .footer-brand .brand-row { margin-bottom: 0; }
  .social .footer-links { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .social .footer-links a { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elev); }
  .footer-committees .committees-columns { display: none; }
  .footer-committees .committees-columns-mobile { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
}

/* Enable swipe scrolling for Meet Us on tablets */
@media (max-width: 1024px) {
  .carousel-viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .carousel-viewport::-webkit-scrollbar { display: none; }
}


/* Scroll reveal animations */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 420ms ease, transform 420ms ease; }
  .reveal.in { opacity: 1; transform: none; }
  .card.reveal { transform: translateY(24px); }
}

/* Committees node hover effects */
.committees .node {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.committees .node::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: radial-gradient(120px 80px at 50% 50%, rgba(255,255,255,0.06), transparent 60%);
  opacity: 0; pointer-events: none; transition: opacity 160ms ease;
}
.committees .node:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 18px rgba(0,0,0,0.5), inset 0 0 24px rgba(255,255,255,0.06); }
.committees .node:hover::after { opacity: 1; }

/* Gallery preview section */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  border-radius: 14px;
}
.gallery-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  width: 160px;
  height: max-content;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  border-radius: 14px;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1f 0%, #0f0f12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  border-radius: 14px;
}
.gallery-placeholder::before {
  content: "📷";
  font-size: 24px;
  opacity: 0.5;
}
.gallery-card .show-more {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 2px dashed var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 14px;
}
.gallery-card .show-more:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  border-color: var(--accent);
  width: 100%;
  height: 100%;
  border-radius: 14px;
}
.show-more-content {
  text-align: left;
  color: var(--text);
}
.show-more-text {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.show-more-icon {
  display: block;
  font-size: 24px;
  font-weight: 300;
  transition: transform 160ms ease;
}
.gallery-card.show-more:hover .show-more-icon {
  transform: scale(1.2);
}
@media (max-width: 880px) {
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-preview { grid-template-columns: 1fr; }
}

/* Gallery full page collage */
.gallery-collage {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 0.2475fr 0.2475fr 0.22275fr 0.27225fr 0.2475fr 0.2475fr;
  gap: 6px;
  margin-top: 24px;
  grid-auto-flow: row;
  grid-template-areas:
    "grid4 grid3 grid1"
    "grid4 grid5 grid1"
    "grid6 grid5 grid2"
    "grid6 grid7 grid7"
    "grid8 grid9 grid10"
    "grid8 grid9 grid11";
}
.collage-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.collage-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.collage-item .gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1f 0%, #0f0f12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}
.collage-item .gallery-placeholder::before {
  content: "📷";
  font-size: 24px;
  opacity: 0.5;
}


/* Gallery Masonry Layout */
.gallery-masonry {
  column-count: 4;
  column-gap: 20px;
  margin-top: 24px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

.masonry-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .gallery-masonry { column-count: 3; }
}
@media (max-width: 768px) {
  .gallery-masonry { column-count: 2; }
}
@media (max-width: 480px) {
  .gallery-masonry { column-count: 1; }
}

/* Grid area assignments (Legacy) */
.grid1 { grid-area: grid1; }
.grid2 { grid-area: grid2; }
.grid3 { grid-area: grid3; }
.grid4 { grid-area: grid4; }
.grid5 { grid-area: grid5; }
.grid6 { grid-area: grid6; }
.grid7 { grid-area: grid7; }
.grid8 { grid-area: grid8; }
.grid9 { grid-area: grid9; }
.grid10 { grid-area: grid10; }
.grid11 { grid-area: grid11; }

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}
.lightbox.show {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 160ms ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox-caption {
  color: #fff;
  text-align: center;
  padding: 16px 0 0;
  font-size: 16px;
  max-width: 600px;
}
@media (max-width: 680px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }
  .lightbox-content img {
    max-height: 70vh;
  }
  .lightbox-close {
    top: -35px;
    font-size: 28px;
    width: 35px;
    height: 35px;
  }
  .lightbox-caption {
    font-size: 14px;
    padding: 12px 0 0;
  }
}

/* Projects section */
.projects-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.projects-viewport {
  overflow: hidden;
}
.projects-grid {
  display: flex;
  gap: 16px;
  padding: 8px 2px;
  margin: 0;
  scroll-behavior: smooth;
}
.project-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  min-width: 320px;
  max-width: 320px;
  flex: 0 0 auto;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.project-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.3;
}
.project-description {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.more-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 160ms ease;
}
.project-card:hover .more-link {
  opacity: 0.8;
}
.projects-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.08s ease;
}
.projects-nav:hover {
  transform: translateY(-1px);
}
.projects-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Project Modal */
.project-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}
.project-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-modal-content {
  position: relative;
  width: 80vw;
  height: 350px;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--text);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 160ms ease;
}
.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.project-modal-content-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.project-modal-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.3;
}
.project-modal-description {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 16px;
  flex: 1;
}
.project-show-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: background 160ms ease, transform 160ms ease;
  align-self: flex-start;
  margin-top: auto;
}
.project-show-button:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}
@media (max-width: 1024px) {
  .projects-carousel {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .projects-nav {
    display: none;
  }
  .projects-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .projects-viewport::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 680px) {
  .project-card {
    min-width: 280px;
    max-width: 280px;
    padding: 16px;
  }
  .project-title {
    font-size: 18px;
  }
  .project-modal-content {
    width: 95vw;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    padding: 16px;
  }
  .project-modal-title {
    font-size: 20px;
  }
  .project-modal-description {
    font-size: 14px;
  }
}
