 html {
  scroll-behavior:smooth;
}


/* ---- Core variables & theme setup ---*/
:root {
  --indigo:#4b0082;
  --deep-electric-blue:#2c75ff;
  --crimson:#dc143c;
  --white:#ffffff;
  --bg:#000000;
  /* dark base */ --fg:#e7e7ee;
  /* dark text */ --muted:#b9bed6;
  --card:rgba(255,255,255,0.08);
  --glass-border:1px solid rgba(255,255,255,0.22);
  --shadow:0 10px 30px rgba(0,0,0,0.35);
  --accent:var(--deep-electric-blue);
  --accent-2:var(--crimson);
}

header {
  position: fixed;
  top: 0.5rem; 
  left: 0;
  right: 0;
  bottom: 2;
  margin: 0 auto;
  width: calc(100% - 1rem);
  backdrop-filter: blur(5px);
  background: var(--card);
  /* border: var(--glass-border); */
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  padding: 0.6rem 0.1rem;
  z-index: 20;
  transition: transform 0.4s ease; /* 👈 smooth slide */
  
}


body > :first-child {
  padding-top: 100px;
}

#menuIcon, #closeIcon {
  transition: opacity 0.3s ease;
}

#menuIcon[style*="display: none"],
#closeIcon[style*="display: none"] {
  opacity: 0;
}

header.hide {
  transform: translateY(-150%); /* slide out of view */
}



.nav {
  display:flex;
  align-items:left;
  justify-content:space-between;
  gap:1rem;
  padding:.9rem 0;
}

.nav a {
  color:var(--fg);
  text-decoration:none;
  opacity:.85;
  font-weight:600;
}

.nav .links {
  display:flex;
  gap:1rem;
  padding-top: 9px;
  flex-wrap:wrap;
}


/* ------- Reset & base -------*/ 
*,*::before,*::after {
  box-sizing:border-box;
}

html,body {
  height:100%;
}

body {
  margin:0;
  font-family: 'Comic Neue', sans-serif;
  color:var(--fg);
  background:var(--bg);
  line-height:1.6;
  overflow-x:hidden;
}

/* ---- Abstract background (indigo / electric blue / crimson / white) ---*/ 

.bg-abstract {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    rgba(0.1, 0.1, 0.1, 0.5)
    url('https://i.ibb.co/XZvMjL7n/wmremove-transformed.webp') center/cover no-repeat;
  background-attachment: fixed;
  background-blend-mode: overlay;
  will-change: transform, opacity;
  filter: blur(7px);
  opacity: 0.5;

  /* low-res placeholder for faster first paint */
  background: url('https://i.ibb.co/XZvMjL7n/wmremove-transformed.webp') center/cover no-repeat;

  /* Smooth fade-in when high-res loads */
  transition: opacity 1s ease-in-out;
}

/* Desktop adjustments */
@media (min-width: 721px) {
  .bg-abstract {
    filter: blur(2px); /* tweak desktop blur here */
  }
}

/* Mobile adjustments */
@media (max-width: 720px) {
  .bg-abstract {
    filter: blur(6px); /* stronger blur for readability */
  }
}

.grid-overlay {
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.15;
  background-image:linear-gradient(transparent 95%,rgba(255,255,255,.08) 95%),linear-gradient(90deg,transparent 95%,rgba(255,255,255,.08) 95%);
  background-size:24px 24px,24px 24px;
  mix-blend-mode:soft-light;
}

/* --- Layout ---*/ 
  .container {
  width:min(1100px,92vw);
  margin:0 auto;
}



.btn {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.6rem .9rem;
  border-radius:14px;
  border:var(--glass-border);
  background:var(--card);
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow);
  cursor:pointer;
  font-weight:700;
}

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

.btn:active {
  transform:translateY(0);
}

.icon {
  width:18px;
  height:18px;
  display:inline-block;
}

main {
  padding:28px 0 80px;
}

/* Hero */ 
.hero {
  display:grid;
  grid-template-columns:auto 1fr;
  gap:2rem;
  align-items:center;
}

.hero .avatar {
  justify-self:center;
  padding-top: 100px;
  /* centers avatar in its column */
}

.hero .title {
  display:flex;
  flex-direction:column;
  justify-content:center;
  /* vertically center content */
}

/* Hero section spacing to avoid being hidden behind fixed header */
.hero-section {
  padding-top: calc(80px + 0.5rem); /* header height + top margin */
}

@media (max-width:720px) {
  .hero {
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.avatar {
  margin:1rem auto;
  display:block;
}

.title .roles {
  justify-content:center;
}

.socials {
  justify-content:center;
}

}
.avatar {
  width:180px;
  height:180px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.55);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.title h1 {
  margin:0;
  font-size:clamp(1.6rem,2vw + 1.2rem,2.4rem);
  line-height:1.15;
  letter-spacing:.3px;
}

.title .roles {
  margin:.4rem 0 0;
  opacity:.9;
  font-weight:600;
}

.socials {
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin-top:.7rem;
}

.socials a {
  text-decoration:none;
  color:var(--fg);
}

/* Cards & sections */ 
section {
  margin-top:26px;
}

.card {
  border-radius:22px;
  border:var(--glass-border);
  background:var(--card);
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
  padding:20px;
}

.section-title {
  display:flex;
  align-items:center;
  gap:.6rem;
  margin:0 0 12px;
  font-size:1.05rem;
  letter-spacing:.4px;
  text-transform:uppercase;
  opacity:.9;
}

.grid {
  display:grid;
  gap:16px;
}

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

.grid.three {
  grid-template-columns:repeat(3,1fr);
}



/* Chips / tags */ 
/* Shared neon outline for chips and skills */
/* Common style for chips and skills */
/* Common wrapper style */
.chip, .skill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px !important; /* force full pill */
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--card);
  color: #fff;
  overflow: hidden;
  z-index: 1;
  min-height: 2rem; /* ensures height looks consistent */
}

/* Animated 1px  outline */
.chip::before,
.skill::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 999px !important; /* matches element perfectly */
  border: 1px solid transparent;
  padding: 0.8px;
  background: linear-gradient(
    95deg,
    indigo,
    crimson,
    indigo
  );
  background-size: 200% 200%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: 1;
  animation: neon-outline 2s linear infinite;
}

/* Gradient animation */
@keyframes neon-outline {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hover glow */
.chip:hover::before,
.skill:hover::before {
  filter: brightness(1.3) drop-shadow(0 0 4px rgba(255,255,255,0.7));
}

/* SVG inside skill scales nicely */
.skill svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Container spacing */
.chips, .skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* separation between items */
}

.chip::before,
.skill::before {
  background-size: 150% 150%; /* smaller size = smoother */
  animation: neon-outline 4s linear infinite; /* slower = less lag */
}

/* Make all SVGs inherit text color */
svg {
  fill: currentColor;  /* uses text color */
}


/* Timeline */ 
.timeline {
  display:grid;
  gap:14px;
}

.item {
  display:grid;
  grid-template-columns:110px 1fr;
  gap:1rem;
  align-items:start;
}

.period {
  font-weight:800;
  opacity:.85;
}

.org {
  font-weight:800;
}

.duties {
  margin:.25rem 0 0 .2rem;
}
/* Skills */ 
.skill-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;
}

.skill {
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.6rem .7rem;
  border-radius:14px;
  border:var(--glass-border);
  background:var(--card);
}

.skill svg {
  width:18px;
  height:18px;
}

/* Languages */ 
.lang {
  display:grid;
  gap:.4rem;
}

.bar {
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);
}

.bar.bg {
  background:rgba(255,255,255,.16);
}

/* Testimonials */ 
.t-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:12px;
}

.t-card {
  padding:14px;
  border-radius:16px;
  border:var(--glass-border);
  background:var(--card);
  font-style:italic;
}

/* Showcase (thumbnail) */ 
.showcase {
  display:grid;
  grid-template-columns:1fr 220px;
  gap:14px;
  align-items:center;
}

.showcase img {
  width:100%;
  height:auto;
  border-radius:16px;
  border:var(--glass-border);
  box-shadow:var(--shadow);
  object-fit:cover;
}

/* Contact */ 
.contact-row {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}

footer {
  text-align:center;
  opacity:.7;
  padding:26px 0 40px;
}

/* Responsive */ 
@media (max-width:720px) {
  .hero {
  grid-template-columns:1fr;
  text-align:center;
}

.title .roles {
  justify-content:center;
}

.socials {
  justify-content:center;
}

.grid.two,.grid.three,.showcase {
  grid-template-columns:1fr;
}

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

.period {
  opacity:.6;
}
}

/* Accessibility helpers */ 
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

/* --- Mobile styles --- */
@media (max-width:720px) {
  .nav {
  flex-wrap:wrap;
  justify-content:space-between;
}

.brand {
  flex:1;
}



.links {
  order:3;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  /* or flex-start if you want */ 
  gap:.7rem;
  margin-top:.6rem;
  padding-top:.6rem;
  border-top:var(--glass-border);
}

.links a {
  padding:.2rem 0;
  width:100%;
}
}

/* Reset nav default */ 
.links {
  display:flex;
  gap:1rem;
}

/* Hide hamburger on desktop */ 
.menu-toggle {
  display:none;
  background:none;
  border:none;
  cursor:pointer;
}

.menu-toggle .icon {
  width:26px;
  height:26px;
  stroke:currentColor;
  stroke-width:2;
  fill:none;
}

/* Crafted by Yakashi [yakadev.netlify.app] – Unauthorized use is prohibited 😉 */

/* Mobile rules */ 
@media (max-width:720px) {
  .menu-toggle {
    display: block;
  }

  /* Default hidden state */
  .links {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    width: 100%;
    margin-top: 0.75rem;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);

    /* Animation */
    transform: translateY(-12px);
    transition: opacity 0.35s ease, max-height 0.35s ease, transform 0.35s ease;
  }

  /* When menu is toggled open */
  .links.show {
    opacity: 1;
    max-height: 500px; /* enough room for all links */
    transform: translateY(0);
  }

  /* Style links inside menu */
  .links a {
    padding: 0.5rem;
    width: 100%;
    border-radius: 10px;
    transition: background 0.25s ease, transform 0.2s ease;
  }

  .links a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
  }
}


/* Scroll-to-top button */ 
#scrollTopBtn {
  position:fixed;
  bottom:20px;
  right:20px;
  width:48px;
  height:48px;
  border:none;
  border-radius:50%;
  font-size:20px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  /* Glassmorphism */ backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  background:rgba(255,255,255,0.1);
  color:#fff;
  /* Effects */ box-shadow:0 4px 20px rgba(0,0,0,0.25);
  transition:opacity 0.3s ease,transform 0.3s ease;
  opacity:0;
  pointer-events:none;
  z-index:999;
}

#scrollTopBtn.show {
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

#scrollTopBtn:hover {
  background:rgba(255,255,255,0.2);
  transform:scale(1.1);
}

/* Default:show links in row */ 
.links {
  display:flex;
  gap:1rem;
}

/* Mobile view */ 
@media (max-width:720px) {
  .links {
  display:none !important;
  /* hidden by default */ flex-direction:column;
  width:100%;
  margin-top:0.5rem;
  text-align:center;
  gap:0.75rem;
  /* spacing between items */ background:none;
  backdrop-filter:none;
  border-radius:0;
  padding:0;
}

.links.show {
  display:flex !important;
  /* visible when toggled */
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border-radius: 1rem;
  border: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.project-card .preview {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.project-card .caption {
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-top: 1px solid var(--accent);
}


/* Remove the default outline */
a:focus, a:active {
  outline: none;
  box-shadow: none;
}

/* Make text red when clicked (active) */
a:active {
  color: crimson;
}

/* Optional: smooth reset when focus leaves */
a href {
  transition: color 0.5s ease;
}

/* Grid layout for responsiveness */
.buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

/* Project card visuals */
.project-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--accent);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}


  dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-card {
  border: var(--glass-border);
  border-radius: 22px;
  padding: 1.5rem;
  max-width: 520px;
  width: 92%;
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: popup 0.3s ease-out;
}

.dialog-card h2 {
  margin-top: 0;
  font-size: 1.2rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.9;
}

.dialog-card .timeline {
  margin-top: 1rem;
}

.dialog-card form {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.dialog-card button {
  padding: 0.6rem 1rem;
  border-radius: 14px;
  border: var(--glass-border);
  background: var(--card);
  color: var(--fg);
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease;
}

.dialog-card button:hover {
  transform: translateY(-1px);
}

.dialog-card button:active {
  transform: translateY(0);
}

@keyframes popup {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
} 

.finish-card {
  text-align: center;
}


.gif-box {
  width: 100%;
  aspect-ratio: 1 / 1; /* keeps it perfectly square */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
}

.gif-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes the gif fill the box nicely */
  border-radius: 16px;
}
   
   
  /* Grid Layout */
.buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
}

/* Card Styles */
.project-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.project-card:hover {
  transform: translateY(-5px);
}

/* Image & Title Overlay */
.thumb {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.thumb .title {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: crimson;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Description Box */
.desc {
  background: rgba(0,0,0,0.5);
  padding: 15px;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.desc p {
  margin: 0;
  color: white;
 }
}


/* Outer card same vibe as other sections */
.project-switcher {
  margin: 3rem auto;
  padding: 2rem;
  max-width: 1000px;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Title */
.project-switcher .section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

a {
  outline: none; /* normal focus outline */
  -webkit-tap-highlight-color: transparent; /* mobile Safari / Chrome */
}

/* Optional: remove focus box on desktop */
a:focus {
  outline: none;
}

/* Make text red when clicked */
a:active {
  color: red;
}


/* Contact links style */
#contact a {
  text-decoration: none; /* remove underline */
  color: #00FFFF; /* neon cyan for a cyberpunk vibe */
  font-weight: 600;
  transition: color 0.3s, text-shadow 0.3s;
}

/* Optional hover glow effect */
#contact a:hover {
  color: #00FFFF;
  text-shadow: 0 0 6px #00FFFF, 0 0 10px #00FFFF;
}

.logo-img {
  width: 180px !important; /* adjust to your desired size */
  height: auto !important;
  display: block; /* remove inline spacing */
  padding-left: 10px;
}

/* Optional: make it responsive */
@media (max-width: 600px) {
  .logo-img {
    width: 180px !important;
    height: auto !important;
    display: block;
  }
}


/* Fullscreen overlay */
#prepage {
  position: fixed;
  inset: 0; /* top/right/bottom/left 0 */
  backdrop-filter: blur(13px) saturate(180%);
  background: rgba(255, 255, 255, 0.1); /* frosted glass */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 9999; /* on top of everything */
  opacity: 1;
  transition: transform 1s ease, opacity 0.8s ease;
}

/* Content inside */
.prepage-content h1 {
  font-size: 2rem;
  color: #DC143C; /* color */
  text-shadow: 0 0 8px #000000;
}

.prepage-content p {
  font-size: 1.2rem;
  color: #fff;
  margin-top: 0.5rem;
}

/* Slide-up animation like garage door */
#prepage.hide {
  transform: translateY(-100%); /* slides up */
  opacity: 0;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  border-radius: 22px;
  background: var(--card);
  backdrop-filter: blur(14px);
  border: var(--glass-border);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 2rem 0;
}

/* Avatar */
.hero-avatar .avatar {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid coral;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  justify-self: center;
}

/* Info column */
.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Name + verified icon */
.hero-name {
  margin: 0;
  font-size: clamp(1.6rem, 2vw + 1.2rem, 2.4rem);
  line-height: 1.15;
  display: flex;
  align-items: center;
}

/* Roles */
.hero-info .roles {
  margin-top: 0.4rem;
  opacity: 0.9;
  font-weight: 600;
}

/* Chip / badge glassmorphism */
.badge.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: var(--glass-border);
  background: var(--card);
  margin-top: 0.6rem;
}

/* Socials icons */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.social-icon {
  font-size: 2rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

/* Responsive: Mobile stacking */
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }
  
  .hero-info {
    margin-top: 1rem;
    align-items: center;
  }
  
  .hero-name {
    justify-content: center;
  }
  
  .roles {
    justify-content: center;
  }
  
  .socials {
    justify-content: center;
  }
}

.naked-hero .hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  padding: 0; /* no card padding */
  border: none; /* remove card border */
  border-radius: 0; /* remove rounded corners */
  background: transparent; /* no background */
  box-shadow: none; /* no shadow */
  backdrop-filter: none; /* remove glass effect */
  margin-bottom: 2rem; /* spacing from other content */
}

@media (max-width: 720px) {
  .naked-hero .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-info {
    margin-top: 1rem;
    align-items: center;
  }
  .hero-name {
    justify-content: center;
  }
  .roles {
    justify-content: center;
  }
  .socials {
    justify-content: center;
  }
}

.social-icon.github i {
  color: #f2f2f2; /* makes GitHub icon light */
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-img {
  height: 35px; /* adjust to fit header */
  width: auto;
  display: block;
  margin-right: 10px;
}


  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x1 layout always */
    gap: 1rem;
    padding: 0;
    list-style: none;
  }

  .project-card {
    background: #1c1c1c;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  }

  .project-card .thumb {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 0.5rem;
    font-weight: bold;
  }

  .project-card .desc {
    padding: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
  }

  @media (max-width: 480px) {
    .projects-grid {
      grid-template-columns: repeat(2, 1fr); /* still 2 columns on mobile */
    }
 }
