/* ======================
   Variables & Base
   ====================== */
:root {
  --accent: #0b7285;
  --muted: #6b6b6b;
  --bg: #f7f8fb;
  --paper: #ffffff;
  --radius: 12px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #111;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: linear-gradient(180deg, var(--bg), #ffffff);
}

/* ======================
   Container
   ====================== */
.container {
  max-width: 960px;
  margin: 36px auto;
  padding: 28px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(16,24,40,0.08);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

/* ======================
   Sidebar
   ====================== */
.sidebar {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 10px;
  border: 1px solid rgba(11,114,133,0.06);
}

/* Profile photo box */
.photo {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--accent), #0f9ea8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Profile image inside the blue box */
.photo img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Contact info */
.contact {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.46;
  color: var(--muted);
}
.contact strong { color: #111; font-weight: 600; }

/* QR code */
.qr {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.qr img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 1px solid rgba(16,24,40,0.04);
}

/* Footer */
footer {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* ======================
   Main Content
   ====================== */
h1 { font-family:'Playfair Display', serif; font-size:28px; margin:0 0 6px; }
.role { color: var(--accent); font-weight:600; margin-bottom:10px; }

section { margin-bottom: 18px; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.section-title h2 { font-size: 15px; margin: 0; color: #111; }
.divider { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); opacity: 0.16; }

.education p, ul.software li { margin: 6px 0; color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 6px; }
.skills-block {
  background: #fbfdff;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(11,114,133,0.04);
}
.skills-block p { margin:0; color: var(--muted); }
ul.software { margin:0; padding-left:18px; color: var(--muted); }

/* ======================
   Photo Gallery
   ====================== */
.photo-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.photo-gallery .gallery a {
  display: block;
  text-decoration: none;
}

.photo-gallery .gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid rgba(16,24,40,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-gallery .gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(16,24,40,0.12);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: var(--radius);
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover { color: #bbb; }

/* ======================
   Responsive
   ====================== */
@media (max-width:880px){
  .container { grid-template-columns: 1fr; max-width:720px; padding:20px; }
  .photo { height: 140px; }
  .qr img { width:96px; height:96px; }
  .photo-gallery .gallery img { height: 100px; }
}

/* ======================
   Print Friendly
   ====================== */
@media print {
  body { background:white; }
  .container { box-shadow:none; border:none; margin:0; border-radius:0; }
  a[href]:after { content:""; }
}
