:root {
  --bg: #0c0e10;
  --bg-2: #111418;
  --panel: #171b20;
  --text: #e6f1ff;
  --muted: #99a3ad;
  --accent: #4bf0b3;
  --accent-2: #5ab8ff;
  --danger: #ff6969;
  --shadow: 0 8px 24px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
}
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -10%, #1b2130 0%, var(--bg) 70%);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(1200px 600px at 50% -10%, #1b2130 0%, var(--bg) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  max-width: 600px;
  padding: 40px 20px;
  animation: fadeInUp 1s ease-out;
}

.loading-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  animation: slideInDown 0.8s ease-out 0.2s both;
}

.loading-logo__symbol {
  font-size: 32px;
  color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.loading-logo__name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
}

.loading-quote {
  margin-bottom: 50px;
  animation: fadeIn 1.2s ease-out 0.4s both;
}

.loading-quote blockquote {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px 0;
  font-style: italic;
  position: relative;
}

.loading-quote blockquote::before {
  content: '"';
  font-size: 48px;
  color: var(--accent);
  position: absolute;
  top: -20px;
  left: -20px;
  font-family: serif;
  opacity: 0.3;
}

.loading-quote cite {
  font-size: 14px;
  color: var(--accent-2);
  font-weight: 600;
  font-style: normal;
}

.loading-spinner {
  animation: fadeIn 1.4s ease-out 0.6s both;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(75, 240, 179, 0.2);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-text {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  animation: pulse 2s ease-in-out infinite;
}

/* Loading Screen Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Mobile responsive for loading screen */
@media (max-width: 768px) {
  .loading-content {
    padding: 20px 16px;
  }
  
  .loading-logo__symbol {
    font-size: 24px;
  }
  
  .loading-logo__name {
    font-size: 20px;
  }
  
  .loading-quote blockquote {
    font-size: 16px;
  }
  
  .loading-quote blockquote::before {
    font-size: 36px;
    top: -15px;
    left: -15px;
  }
}

/* Animated Background Stars */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.star {
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.star--1 { width: 2px; height: 2px; top: 20%; left: 10%; animation-duration: 8s; }
.star--2 { width: 3px; height: 3px; top: 30%; left: 80%; animation-duration: 10s; }
.star--3 { width: 1px; height: 1px; top: 60%; left: 20%; animation-duration: 12s; }
.star--4 { width: 2px; height: 2px; top: 40%; left: 60%; animation-duration: 9s; }
.star--5 { width: 4px; height: 4px; top: 70%; left: 90%; animation-duration: 11s; }
.star--6 { width: 1px; height: 1px; top: 15%; left: 50%; animation-duration: 7s; }
.star--7 { width: 2px; height: 2px; top: 80%; left: 30%; animation-duration: 13s; }
.star--8 { width: 3px; height: 3px; top: 25%; left: 70%; animation-duration: 8s; }
.star--9 { width: 1px; height: 1px; top: 50%; left: 5%; animation-duration: 10s; }
.star--10 { width: 2px; height: 2px; top: 85%; left: 75%; animation-duration: 9s; }
.star--11 { width: 1px; height: 1px; top: 10%; left: 40%; animation-duration: 11s; }
.star--12 { width: 3px; height: 3px; top: 65%; left: 15%; animation-duration: 7s; }
.star--13 { width: 2px; height: 2px; top: 35%; left: 85%; animation-duration: 12s; }
.star--14 { width: 1px; height: 1px; top: 75%; left: 55%; animation-duration: 8s; }
.star--15 { width: 2px; height: 2px; top: 45%; left: 25%; animation-duration: 10s; }
.star--16 { width: 1px; height: 1px; top: 5%; left: 25%; animation-duration: 9s; }
.star--17 { width: 3px; height: 3px; top: 55%; left: 45%; animation-duration: 6s; }
.star--18 { width: 2px; height: 2px; top: 90%; left: 60%; animation-duration: 14s; }
.star--19 { width: 1px; height: 1px; top: 35%; left: 15%; animation-duration: 11s; }
.star--20 { width: 4px; height: 4px; top: 65%; left: 80%; animation-duration: 8s; }
.star--21 { width: 2px; height: 2px; top: 12%; left: 70%; animation-duration: 10s; }
.star--22 { width: 1px; height: 1px; top: 78%; left: 5%; animation-duration: 7s; }
.star--23 { width: 3px; height: 3px; top: 42%; left: 35%; animation-duration: 13s; }
.star--24 { width: 2px; height: 2px; top: 88%; left: 40%; animation-duration: 9s; }
.star--25 { width: 1px; height: 1px; top: 18%; left: 85%; animation-duration: 12s; }
.star--26 { width: 2px; height: 2px; top: 52%; left: 65%; animation-duration: 6s; }
.star--27 { width: 1px; height: 1px; top: 72%; left: 25%; animation-duration: 10s; }
.star--28 { width: 3px; height: 3px; top: 38%; left: 90%; animation-duration: 8s; }
.star--29 { width: 2px; height: 2px; top: 8%; left: 55%; animation-duration: 11s; }
.star--30 { width: 1px; height: 1px; top: 95%; left: 10%; animation-duration: 9s; }

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) translateX(-5px);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-30px) translateX(15px);
    opacity: 0.7;
  }
}

/* Retro game typography effect (for big headings) */
.crt {
  font-family: 'Press Start 2P', cursive;
  text-shadow: 0 0 6px rgba(91, 255, 204, 0.6), 0 0 18px rgba(91, 255, 204, 0.2);
}
.accent { color: var(--accent); }

/* Layout: navbar + sidebar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: rgba(17, 20, 24, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #222933;
  z-index: 1000;
}
.brand { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  position: absolute;
  left: 20px;
}
.brand__logo { color: var(--accent); }
.brand__name { font-weight: 800; letter-spacing: 0.5px; }
.navlinks { display: flex; gap: 14px; }
.navlinks a { 
  color: var(--muted); 
  text-decoration: none; 
  font-weight: 600; 
  transition: color 0.3s ease;
  position: relative;
}
.navlinks a:hover { 
  color: var(--text); 
}
.navlinks a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.navlinks a:hover::after {
  width: 100%;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 20px;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile navigation overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 14, 16, 0.95);
  backdrop-filter: blur(8px);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav-overlay.active {
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 16px;
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(23, 27, 32, 0.8);
  border: 1px solid #242b36;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  background: rgba(75, 240, 179, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.sidebar {
  position: fixed;
  top: 80px;
  left: 20px;
  bottom: 20px;
  width: 120px;
  background: rgba(23, 27, 32, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid #242b36;
  border-radius: 16px;
  padding: 16px 8px;
  overflow-y: auto;
  box-shadow: var(--shadow);
  z-index: 100;
}
.sidebar nav { display: flex; flex-direction: column; gap: 8px; }
.sidebar a { 
  color: var(--muted); 
  text-decoration: none; 
  padding: 4px 6px; 
  border-radius: 6px; 
  transition: all 0.3s ease;
  position: relative;
  font-size: 13px;
}
.sidebar a:hover { 
  color: var(--text); 
  background: #1c222a; 
}
.sidebar a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--accent);
  border-radius: 8px 0 0 8px;
  transition: width 0.3s ease;
}
.sidebar a:hover::before {
  width: 3px;
}

#content { margin-left: 200px; padding: 84px 20px 80px; }

/* Sections */
.section { max-width: 1100px; margin: 0 auto 32px; background: var(--panel); border: 1px solid #242b36; border-radius: 16px; box-shadow: var(--shadow); padding: 20px; }
.section--hero { padding-top: 16px; overflow: hidden; }
.section--compact { max-width: 900px; }
.section__title { margin: 0 0 16px; font-size: 22px; letter-spacing: 0.3px; }

/* Hero */
.hero__topbar { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; margin-bottom: 12px; }
.hero__avatar { 
  width: 140px; 
  height: 140px; 
  object-fit: cover; 
  border-radius: 16px; 
  border: 3px solid #2a3340; 
  box-shadow: var(--shadow); 
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero__avatar:hover {
  transform: scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(75, 240, 179, 0.3);
}
.subtitle { color: var(--muted); margin: 8px 0 12px; }
.hero__cta { display: flex; gap: 10px; }

/* About Me */
.about__content {
  max-width: 800px;
  margin: 0 auto;
}

.about__content p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.highlight {
  background: #12161c;
  border: 1px solid #232a36;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.highlight h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--accent-2);
}

.highlight p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}



/* Grid and cards */
.grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 16px; 
  justify-items: center;
}

/* For 4 projects: 2x2 layout on larger screens */
@media (min-width: 600px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
  }
}
.card { background: #14181f; border: 1px solid #232a36; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card.project { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card.project:hover { 
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(75, 240, 179, 0.18);
}

/* Project thumbnails */
.card__thumbnail {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #0f1319;
  border-bottom: 1px solid #202735;
}

.card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card.project:hover .card__thumbnail img {
  transform: scale(1.05);
}

.card__body { padding: 14px; }
.card__title { margin: 0 0 8px; font-size: 16px; }
.card__desc { margin: 0; color: var(--muted); }
.card__footer { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-top: 1px solid #202735; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--text); background: #1b2330; border: 1px solid #263042; font-size: 12px; }
.chip:hover { background: #202a39; }
.chip--muted { color: var(--muted); }

/* Emphasize hover for interactive chips (Demo/Code) inside project cards */
.card.project .card__footer .chip[href] { 
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease; 
}
.card.project .card__footer .chip[href]:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0f12;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(90, 184, 255, 0.18);
}

/* Tech */
.tech { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
  gap: 16px; 
  overflow: visible;
}
.tech__group { 
  background: #12161c; 
  border: 1px solid #232a36; 
  border-radius: 12px; 
  padding: 14px 14px 20px 14px; 
  overflow: visible;
  position: relative;
}
.tech__group h3 { margin: 0 0 15px; font-size: 15px; color: var(--accent-2); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { 
  background: #0f1319; 
  border: 1px solid #232a36; 
  padding: 8px; 
  border-radius: 10px; 
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 48px;
  height: 48px;
  position: relative;
  cursor: pointer;
}
.tags li:hover {
  background: #1a1f26;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 240, 179, 0.2);
}
.tags li img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}
.tags li:hover img {
  filter: brightness(1);
}

/* Tooltip styling */
.tags li::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  border: 1px solid #444;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  min-width: 60px;
  text-align: center;
}

.tags li::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.tags li:hover::before,
.tags li:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Lists */
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: #12161c; border: 1px solid #232a36; border-radius: 10px; padding: 10px 12px; }
.list__title { font-weight: 600; }
.list__meta { color: var(--muted); font-size: 12px; }

/* Certificates Grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.certificate-card {
  background: #12161c;
  border: 1px solid #232a36;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.certificate-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(75, 240, 179, 0.2);
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate-card:hover::before {
  opacity: 1;
}

.certificate-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.certificate-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0a0f12;
  font-weight: bold;
  overflow: hidden;
  position: relative;
}

.certificate-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.certificate-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.certificate-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.certificate-issuer {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 8px 0;
}

.certificate-date {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

.certificate-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.certificate-btn {
  background: #1a2230;
  border: 1px solid #273347;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.certificate-btn:hover {
  background: var(--accent);
  color: #0a0f12;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.certificate-btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0f12;
  border-color: var(--accent);
}

.certificate-btn--primary:hover {
  filter: brightness(1.1);
}

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: #223040; }
.timeline li { position: relative; padding-left: 28px; margin: 12px 0; }
.timeline__dot { position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px rgba(75,240,179,0.6); }

/* Education list */
.edu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.edu-list li { background: #12161c; border: 1px solid #232a36; border-radius: 10px; padding: 10px 12px; }

/* Buttons */
.btn { 
  background: #1a2230; 
  border: 1px solid #273347; 
  color: var(--text); 
  padding: 8px 12px; 
  border-radius: 10px; 
  text-decoration: none; 
  cursor: pointer; 
  font-weight: 600; 
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover { 
  background: #1e2838; 
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.btn--primary { 
  background: linear-gradient(180deg, #38f1b4, #2cc497); 
  border-color: #2cc497; 
  color: #0a0f12; 
}
.btn--primary:hover { 
  filter: brightness(0.95); 
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 241, 180, 0.3);
}
.btn--secondary {
  background: linear-gradient(180deg, #5ab8ff, #3f86ff);
  border-color: #3f86ff;
  color: #061018;
}
.btn--secondary:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(90, 184, 255, 0.3);
}

/* Modal & FAB */
.fab { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(180deg, #5ab8ff, #3f86ff); border: 1px solid #3f86ff; color: #061018; box-shadow: var(--shadow); cursor: pointer; z-index: 1200; }
.fab:hover { filter: brightness(1.05); }

.modal { border: none; border-radius: 12px; padding: 0; background: transparent; }
.modal::backdrop { background: rgba(5, 8, 12, 0.7); backdrop-filter: blur(2px); }
.modal__content { background: #12161c; border: 1px solid #232a36; border-radius: 12px; padding: 14px; width: min(480px, 92vw); color: var(--text); }
.modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.icon-btn { background: #161b22; border: 1px solid #263042; color: var(--muted); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; }
.icon-btn:hover { color: var(--text); background: #1b2330; }
.field { display: grid; gap: 6px; margin-bottom: 10px; }
.field input, .field textarea { background: #0f1319; border: 1px solid #263042; color: var(--text); border-radius: 10px; padding: 10px; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; }

/* Contact Section */
.contact__content {
  max-width: 600px;
  margin: 0 auto;
}

.contact__content p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact__form-container {
  background: #12161c;
  border: 1px solid #232a36;
  border-radius: 12px;
  padding: 24px;
}

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

.contact__actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.contact__actions .btn {
  min-width: 140px;
}

/* Success/Error Messages */
.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 500;
  display: none;
}

.message--success {
  background: rgba(75, 240, 179, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.message--error {
  background: rgba(255, 105, 105, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.message.show {
  display: block;
}

/* Profile Modal */
.profile-modal {
  max-width: 600px;
  text-align: center;
}

.profile-modal__image {
  padding: 20px 0;
}

.profile-modal__image img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

/* Responsive tweaks */
@media (max-width: 860px) {
  .sidebar { display: none; }
  #content { margin-left: 0; padding: 84px 16px 80px; }
  
  /* Hero section mobile */
  .hero__topbar { 
    grid-template-columns: 1fr; 
    gap: 16px; 
    text-align: center; 
  }
  .hero__avatar { 
    width: 120px; 
    height: 120px; 
    margin: 0 auto; 
  }
  
  /* Navigation mobile */
  .navbar { 
    padding: 0 12px; 
    justify-content: space-between; 
  }
  .navlinks { 
    display: none; 
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .brand__name { font-size: 14px; }
  
  /* Sections mobile */
  .section { 
    margin: 0 auto 24px; 
    padding: 16px; 
    border-radius: 12px; 
  }
  .section__title { font-size: 20px; }
  
  /* About section mobile */
  .about__highlights { 
    grid-template-columns: 1fr; 
    gap: 16px; 
  }
  .highlight { padding: 16px; }
  
  /* Tech section mobile */
  .tech { grid-template-columns: 1fr; }
  .tech__group { padding: 12px; }
  
  /* Buttons mobile */
  .hero__cta { 
    flex-direction: column; 
    gap: 8px; 
    align-items: center; 
  }
  .btn { 
    width: 100%; 
    max-width: 200px; 
    text-align: center; 
    min-height: 44px; /* Better touch target */
  }
  
  /* Cards mobile */
  .grid { grid-template-columns: 1fr; }
  .card { margin-bottom: 16px; }
  
  /* Certificates mobile */
  .certificates-grid { 
    grid-template-columns: 1fr; 
    gap: 16px; 
  }
  .certificate-card { 
    padding: 16px; 
  }
  .certificate-header { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 8px; 
  }
  .certificate-actions { 
    flex-direction: column; 
    gap: 6px; 
  }
  .certificate-btn { 
    width: 100%; 
    justify-content: center; 
  }
  
  /* Modal mobile */
  .modal__content { 
    width: 95vw; 
    margin: 20px auto; 
  }
  .modal__actions { 
    flex-direction: column; 
    gap: 8px; 
  }
  .modal__actions .btn { width: 100%; }
  
  /* FAB mobile */
  .fab { 
    right: 16px; 
    bottom: 16px; 
    width: 48px; 
    height: 48px; 
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  #content { padding: 70px 12px 60px; }
  
  .hero__avatar { 
    width: 100px; 
    height: 100px; 
  }
  
  .section { 
    padding: 12px; 
    margin: 0 auto 20px; 
  }
  
  .section__title { font-size: 18px; }
  
  .highlight { padding: 12px; }
  .highlight h3 { font-size: 16px; }
  
  .navbar { padding: 0 8px; }
  .brand__name { font-size: 12px; }
  
  .fab { 
    right: 12px; 
    bottom: 12px; 
    width: 44px; 
    height: 44px; 
  }
}


