/* ==============================
   RESET & ROOT VARIABLES
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #d4af37;
  --accent-light: #e6c84a;
  --border-color: #2a2a2a;
  --card-bg: #111111;
  --terminal-bg: #0d0d0d;
  --glass-bg: rgba(17, 17, 17, 0.95);
  --btn-bg: #d4af37;
  --btn-text: #0a0a0a;
  --btn-hover-bg: #e6c84a;
  --btn-hover-text: #0a0a0a;
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==============================
   BODY & BASE STYLES
   ============================== */
body {
  background-color: var(--bg-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.5;
}

html {
  scroll-behavior: smooth;
}

/* ==============================
   ENTRANCE ANIMATIONS
   ============================== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-15px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(15px); }
  100% { opacity: 1; transform: translateX(0); }
}

.fade-up { animation: fadeUp 0.5s ease forwards; opacity: 0; }
.fade-left { animation: fadeInLeft 0.5s ease forwards; opacity: 0; }
.fade-right { animation: fadeInRight 0.5s ease forwards; opacity: 0; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ==============================
   BACKGROUND EFFECTS
   ============================== */
.bg-orb {
  position: fixed; border-radius: 50%;
  opacity: 0.2; pointer-events: none; z-index: -2;
  animation: floatOrb 25s ease-in-out infinite;
}
.orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,175,55,0.5) 0%, transparent 70%);
  top: 10%; left: -100px;
}
.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(184,150,12,0.5) 0%, transparent 70%);
  bottom: 10%; right: -100px; animation-delay: 5s;
}
.orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(212,175,55,0.4) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation-delay: 10s; opacity: 0.1;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -15px) scale(1.03); }
  66% { transform: translate(-10px, 10px) scale(0.97); }
}

.grid-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(212,175,55,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.03) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.5;
  pointer-events: none; z-index: -1;
}

.particle {
  position: fixed; width: 2px; height: 2px;
  background: var(--accent); border-radius: 50%;
  opacity: 0; pointer-events: none; z-index: -1;
  animation: floatParticle 12s linear infinite;
}
@keyframes floatParticle {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.1; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

/* ==============================
   PROFILE PICTURE (Home)
   ============================== */
.profile-container {
  position: relative; display: flex; justify-content: center; align-items: center;
  margin-bottom: 2rem; width: 100%;
}
.profile-container::before {
  content: ""; position: absolute; width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.3) 0%, transparent 70%);
  opacity: 0.4; animation: pulseGlow 3s ease-in-out infinite; z-index: -1;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.03); }
}
.profile-img {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent); transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 0 2px rgba(212,175,55,0.3);
  border-color: var(--accent-light);
}

/* ==============================
   AVAILABILITY BADGE
   ============================== */
.availability-badge {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(212,175,55,0.15); border: 1px solid var(--accent);
  border-radius: 40px; padding: 0.3rem 0.8rem; font-size: 0.7rem;
  width: fit-content; margin: 0 auto 1rem auto;
}
.availability-dot {
  width: 6px; height: 6px; background: #10b981; border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ==============================
   TERMINAL BOX
   ============================== */
.terminal {
  background: var(--terminal-bg); border: 1px solid var(--border-color);
  border-radius: 12px; padding: 0.8rem; font-family: "Inter", monospace;
  font-size: 0.8rem; color: var(--text-primary);
  display: inline-block; margin: 0 auto 1rem auto; text-align: left;
}

/* ==============================
   CUSTOM SCROLLBAR
   ============================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ==============================
   LAYOUT & TYPOGRAPHY
   ============================== */
.container { max-width: 1200px; margin: 0 auto; padding: 1rem; }
h1 { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; color: var(--text-primary); }
h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: -0.01em; color: var(--text-primary); }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--accent); }

.glass-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 16px; padding: 1.2rem; transition: border-color 0.3s, transform 0.3s;
}
.glass-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.08);
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

/* ==============================
   BUTTONS
   ============================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  background: var(--btn-bg); color: var(--btn-text);
  text-decoration: none; font-weight: 600; border-radius: 8px;
  transition: background 0.3s, transform 0.2s; margin: 0.3rem;
  border: 1px solid var(--accent); cursor: pointer; font-size: 0.85rem;
}
.btn:hover {
  background: var(--btn-hover-bg); color: var(--btn-hover-text);
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(212,175,55,0.2);
}
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #0a0a0a; }

.btn-icon {
  flex-shrink: 0;
  width: 16px; height: 16px;
}

/* ==============================
   NAVIGATION BAR
   ============================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.9); backdrop-filter: blur(10px);
  padding: 0.8rem 1.5rem; border-bottom: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-weight: 700; font-size: 1.2rem; color: var(--accent); flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-lang-switch { display: flex; gap: 4px; }
.nav-lang-btn {
  background: transparent; border: 1px solid var(--border-color);
  color: var(--text-secondary); padding: 0.35rem 0.7rem; border-radius: 6px;
  font-size: 0.7rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
  font-family: inherit;
}
.nav-lang-btn:hover, .nav-lang-btn.active { color: var(--accent); border-color: var(--accent); }
.nav-lang-btn.active { background: var(--accent); color: #0a0a0a; }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 4px; background: transparent; border: none; z-index: 2000; }
.hamburger span { width: 22px; height: 2px; background: var(--text-primary); transition: all 0.3s; }

.nav-links {
  display: flex; justify-content: center; gap: 2rem;
  transition: all 0.3s ease; position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  color: var(--text-primary); text-decoration: none; font-weight: 500; font-size: 0.9rem;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent); }

/* Floating language bubble – desktop only */
.control-bar {
  position: fixed; top: 20px; right: 20px; z-index: 200;
  display: flex; gap: 8px; background: rgba(17,17,17,0.9); backdrop-filter: blur(6px);
  padding: 0.5rem; border-radius: 50px; border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.control-btn {
  background: transparent; border: none; color: var(--text-primary);
  padding: 0.4rem 1rem; border-radius: 40px; cursor: pointer;
  font-weight: 500; transition: background 0.3s; font-family: inherit; font-size: 0.75rem;
}
.control-btn:hover, .control-btn.active { background: rgba(212,175,55,0.2); color: var(--accent); }
.control-btn.active { background: var(--accent); color: #0a0a0a; }

/* ==============================
   VIDEO CONTAINER
   ============================== */
.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin: 0 auto 1.5rem;
  max-width: 640px;
  max-height: 360px;
}
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==============================
   SCREENSHOTS GRID
   ============================== */
.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.screenshot-item {
  text-align: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.5rem;
  position: relative;
  cursor: pointer;
}
.screenshot-img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s;
}
.screenshot-img:hover { transform: scale(1.02); border-color: var(--accent); }
.screenshot-caption {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Screenshot zoom icon */
.screenshot-zoom-icon {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transform: scale(0.8);
  transition: opacity 0.25s, transform 0.25s, background 0.25s;
  pointer-events: none;
}
.screenshot-item:hover .screenshot-zoom-icon {
  opacity: 1; transform: scale(1);
}
.screenshot-zoom-icon svg {
  width: 16px; height: 16px;
}

/* ==============================
   TAG & DEMO BUTTON STYLES
   ============================== */
.tag {
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--accent);
}
.demo-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  background: var(--accent);
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
  border: 1px solid var(--accent);
  font-size: 0.75rem;
  margin-top: 0.4rem;
}
.demo-btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-text); transform: translateY(-2px); }

/* ==============================
   CONTACT SECTION
   ============================== */
#contact { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info-item { margin-bottom: 24px; }
.contact-info-item h4 { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; }
.contact-info-item p { font-size: 18px; color: var(--text-primary); }
.contact-info-item a { color: var(--text-primary); text-decoration: none; }
.social-links { display: flex; gap: 20px; margin-top: 40px; }
.social-link { color: var(--text-primary); font-size: 24px; transition: color 0.3s; }
.social-link:hover { color: var(--accent); }

.form-group { margin-bottom: 24px; }
.form-label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 14px; }
.form-input, .form-textarea {
  width: 100%; background: transparent; border: 1px solid var(--border-color);
  border-radius: 8px; padding: 16px; color: var(--text-primary);
  font-family: "Inter", sans-serif; font-size: 16px; transition: border-color 0.3s;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); }
.form-textarea { height: 150px; resize: vertical; }

/* ==============================
   FOOTER
   ============================== */
footer { border-top: 1px solid var(--border-color); padding: 24px 0; text-align: center; margin-top: 80px; }
.footer-content {
  max-width: 1200px; margin: 0 auto; display: flex;
  justify-content: center; align-items: center; gap: 40px;
  color: var(--text-secondary); font-size: 14px;
}

/* ==============================
   SECTION SPACING & SCROLL OFFSET
   ============================== */
.section { margin: 4rem 0; }
#home, #about, #projects, #contact { scroll-margin-top: 80px; }

/* ==============================
   DESKTOP
   ============================== */
@media (min-width: 769px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .profile-img { width: 180px; height: 180px; }
  .profile-container::before { width: 210px; height: 210px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 1.8rem; }
  .container { padding: 2rem; }
  .section { margin: 6rem 0; }
  .screenshot-img { max-height: 250px; }

  .control-bar { display: flex; }
  .nav-lang-switch { display: none; }
  .nav-links { position: absolute; left: 50%; transform: translateX(-50%); }
}

/* ==============================
   MOBILE
   ============================== */
@media (max-width: 768px) {
  .container { padding: 0.75rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 1.2rem; }
  .profile-img { width: 110px; height: 110px; }
  .profile-container::before { width: 140px; height: 140px; }
  .section { margin: 3rem 0; }
  .terminal { font-size: 0.65rem; padding: 0.6rem; }
  .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .availability-badge { font-size: 0.65rem; }

  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

  .nav-lang-switch { display: flex; }
  .control-bar { display: none; }

  .nav-links {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(10,10,10,0.97); backdrop-filter: blur(10px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 0; transform: scale(0.95); opacity: 0; visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0s linear 0.3s;
    z-index: 1000;
  }
  .nav-links.active {
    transform: scale(1); opacity: 1; visibility: visible;
    transition: opacity 0.3s, transform 0.3s, visibility 0s linear 0s;
  }
  .nav-links a { font-size: 1.6rem; font-weight: 600; letter-spacing: 2px; padding: 0.8rem 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  #contact { padding: 50px 0; }
  .form-input, .form-textarea { padding: 12px; font-size: 15px; }
  .footer-content { flex-direction: column; gap: 0.5rem; }

  .screenshots-grid { grid-template-columns: 1fr; }
  .screenshot-img { max-height: 200px; }

  .video-container {
    max-width: 100%;
    max-height: 280px;
  }
}

/* ==============================
   PROJECTS SECTION
   ============================== */
.section-subtitle { animation: fadeUp 0.5s ease forwards; opacity: 0; }

.categories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: 1100px; margin: 0 auto;
}

.cat-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 18px; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 16px 30px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,175,55,0.1);
}

.cat-card-inner {
  padding: 1.6rem 1.5rem 1.3rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem;
  cursor: pointer; user-select: none;
}

.cat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(212,175,55,0.08); display: flex;
  align-items: center; justify-content: center; color: var(--accent);
  transition: background 0.3s, transform 0.3s;
}
.cat-card:hover .cat-icon {
  background: rgba(212,175,55,0.16); transform: scale(1.06);
}

.cat-title { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.cat-desc { font-size: 0.8rem; line-height: 1.55; color: var(--text-secondary); margin: 0; flex-grow: 1; }

.cat-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
.cat-tag {
  background: rgba(212,175,55,0.07); border: 1px solid rgba(212,175,55,0.2);
  color: var(--accent); padding: 0.2rem 0.65rem; border-radius: 20px;
  font-size: 0.68rem; font-weight: 500;
}

.cat-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.2rem; background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.35); color: var(--accent);
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  border-radius: 10px; cursor: pointer; transition: all 0.3s;
  margin-top: 0.3rem; align-self: flex-start;
}
.cat-btn:hover { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.cat-btn-icon { transition: transform 0.3s; }

/* Modal project items */
.project-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  align-items: start;
  background: rgba(17,17,17,0.5); border: 1px solid var(--border-color);
  border-radius: 16px; padding: 2rem;
}
.project-media { border-radius: 12px; overflow: hidden; }
.project-info { display: flex; flex-direction: column; gap: 0.8rem; }
.project-badge { font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
.project-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.project-desc { font-size: 0.85rem; line-height: 1.7; color: var(--text-secondary); margin: 0; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0; }
.project-info .demo-btn { align-self: flex-start; margin-top: 0.5rem; padding: 0.6rem 1.4rem; font-size: 0.8rem; }

/* --- MODAL OVERLAY --- */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.modal-overlay.active {
  opacity: 1; visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* --- MODAL CONTAINER --- */
.modal-container {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 24px; width: 95vw; max-width: 1200px; max-height: 90vh;
  padding: 2.5rem 2rem 2rem; position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.9), 0 0 0 1px rgba(212,175,55,0.2);
  transform: translateY(20px); transition: transform 0.3s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-overlay.active .modal-container { transform: translateY(0); }

.modal-close {
  position: absolute; top: 16px; right: 20px; font-size: 2rem;
  background: transparent; border: none; color: var(--text-secondary);
  cursor: pointer; transition: color 0.3s; line-height: 1;
  z-index: 10;
}
.modal-close:hover { color: var(--accent); }

/* --- MODAL SLIDESHOW --- */
.modal-slideshow {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding-right: 0.5rem; margin-bottom: 1rem;
}
.modal-slideshow .slides-wrapper {
  display: flex; transition: transform 0.45s ease-in-out;
}
.modal-slideshow .slide {
  min-width: 100%; padding: 0 1rem;
}

/* --- MODAL NAVIGATION --- */
.modal-nav {
  display: flex; justify-content: center; align-items: center;
  gap: 1.2rem; padding: 1rem 0 0;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}
.modal-nav .nav-btn {
  background: transparent; border: 1px solid var(--border-color);
  color: var(--text-primary); width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.3s; font-size: 1.2rem;
}
.modal-nav .nav-btn:hover {
  background: var(--accent); color: var(--btn-text); border-color: var(--accent);
}
.slide-indicators { display: flex; gap: 0.5rem; }
.indicator {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-color); cursor: pointer; transition: all 0.3s;
}
.indicator.active { background: var(--accent); width: 22px; border-radius: 4px; }

/* --- RESPONSIVE for modal & slides --- */
@media (max-width: 900px) {
  .categories-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-item { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
  .project-title { font-size: 1.2rem; }
  .project-desc { font-size: 0.8rem; }
  .modal-container { width: 98vw; padding: 1.5rem 1rem 1rem; border-radius: 18px; max-height: 92vh; }
  .modal-slideshow .slide { padding: 0 0.5rem; }
}

/* ==============================
   ABOUT SECTION
   ============================== */
.about-section {
  margin: 6rem 0;
}

.about-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
}
.about-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.about-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.about-bio {
  padding: 1.8rem;
}
.about-bio h3 { margin-bottom: 0.8rem; }
.about-bio p { font-size: 0.92rem; line-height: 1.7; }

.skills-section { margin-bottom: 3rem; }
.skills-section h3 { text-align: center; margin-bottom: 1.5rem; }

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.skill-card {
  background: rgba(17,17,17,0.7);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  width: 160px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(212,175,55,0.1);
}
.skill-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.skill-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.skill-card p {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin: 0;
}

.learning-section { margin-bottom: 3rem; }
.learning-section h3 { text-align: center; margin-bottom: 1.5rem; }

.learning-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.learning-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,175,55,0.06);
  border: 1px dashed rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
  transition: border-color 0.3s, background 0.3s;
}
.learning-card:hover {
  border-color: var(--accent);
  background: rgba(212,175,55,0.1);
}
.learning-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.learning-card span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.focus-section {
  margin-bottom: 3rem;
}
.focus-section h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.focus-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.focus-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  min-width: 280px;
  max-width: 360px;
  flex: 1 1 auto;
}
.focus-card-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  flex-shrink: 0;
}
.focus-card-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.focus-card-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.about-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive About */
@media (max-width: 768px) {
  .about-header { margin-bottom: 2rem; }
  .about-heading { font-size: 1.5rem; }
  .about-bio-grid { grid-template-columns: 1fr; }
  .skill-card { width: 140px; }
  .focus-cards-grid { flex-direction: column; align-items: stretch; }
  .focus-card { max-width: 100%; }
  .learning-card { padding: 0.6rem 1rem; }
}

/* ==============================
   IMAGE LIGHTBOX
   ============================== */
.lightbox-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 20000; opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.lightbox-overlay.active {
  opacity: 1; visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.lightbox-container {
  position: relative; max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
  transform: scale(0.9); transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.lightbox-overlay.active .lightbox-container {
  transform: scale(1);
}

.lightbox-close {
  position: absolute; top: -48px; right: 0;
  font-size: 2rem; background: transparent; border: none;
  color: var(--text-secondary); cursor: pointer;
  transition: color 0.3s; line-height: 1; z-index: 10;
}
.lightbox-close:hover { color: var(--accent); }

.lightbox-image {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,175,55,0.1);
}

.lightbox-caption {
  margin-top: 1rem; font-size: 0.85rem; color: var(--text-secondary);
  text-align: center; max-width: 600px;
}