* { box-sizing: border-box; }

:root {
  --bg: #0b1220;
  --panel: #0f172a;
  --border: #1e293b;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --shadow: 0 10px 18px rgba(2,6,23,.2);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --muted: #4b5563;
    --accent: #2563eb;
    --shadow: 0 10px 18px rgba(2,6,23,.08);
  }
}

html, body {
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: .8rem 1rem;
  display:flex;
  align-items:center;
  justify-content: space-between;
}

.nav a {
  color: var(--muted);
  margin-left: 1rem;
}

.nav a:hover { color: var(--text); }

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.section { margin: 2rem 0 3rem; }

.section-header {
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: .8rem;
}

.view-all { font-size: .95rem; }

.gallery {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction: column;
}

.thumb { display:block; position: relative; }

.thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #0b1220;
  transition: transform .15s ease;
}

.card:hover .thumb img { transform: scale(1.02); }

.card-body { padding: 1rem 1rem 1.2rem; }

.card-title {
  margin: 0 0 .35rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.card-tags {
  margin-top: .55rem;
  font-size: .9rem;
  color: var(--muted);
}

.card-actions {
  margin-top: .8rem;
  display:flex;
  gap:.5rem;
}

.btn {
  display:inline-block;
  background: var(--accent);
  color: white;
  padding:.45rem .7rem;
  border-radius: 10px;
  font-weight: 700;
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.site-footer {
  border-top:1px solid var(--border);
  color: var(--muted);
  text-align:center;
  padding:1rem;
}

/* Lightbox */
.lightbox.hidden { display:none; }

.lightbox {
  position: fixed;
  inset:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lb-backdrop { position:absolute; inset:0; background: rgba(0,0,0,.7); }

.lb-img {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
}

.lb-close {
  position:absolute;
  top: 20px;
  right: 20px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  cursor:pointer;
}

/* About section */
.about-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.about-text { flex: 1; }

/* Carousel scroll buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}

.scroll-btn.left { left: 5px; }
.scroll-btn.right { right: 5px; }

/* Social links */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-links a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  font-size: 1.5rem;
  text-decoration: none;
}

.social-links i {
  font-size: 1.5rem;
  line-height: 1;
  color: inherit;
}

/* Brand colors */
.social-links a[href*="linkedin"] i { color: #0a66c2; }
.social-links a[href*="youtube"]  i { color: #ff0000; }

/* Hover effect */
.social-links a:hover i { opacity: .85; }
