@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ─── Variables ────────────────────────────────────────── */
:root {
  --bg:            #0f0f0f;
  --card-bg:       #1a1a1a;
  --sidebar-bg:    #161616;
  --border:        #2a2a2a;
  --accent:        #00d4ff;
  --accent-dark:   #0099bb;
  --orange:        #ff6b35;
  --orange-dark:   #cc4a18;
  --text:          #e0e0e0;
  --text-muted:    #888;
  --text-light:    #bbb;
  --sidebar-width: 240px;
  --radius:        12px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── Triangle Corner Decorations ───────────────────────── */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 0;
  height: 0;
  z-index: 0;
  pointer-events: none;
}
body::before {
  top: 0; left: 0;
  border-top: 160px solid #00d4ff22;
  border-right: 160px solid transparent;
}
body::after {
  bottom: 0; right: 0;
  border-bottom: 160px solid #ff6b3522;
  border-left: 160px solid transparent;
}

.tri-tl, .tri-br {
  position: fixed;
  width: 0; height: 0;
  z-index: 0;
  pointer-events: none;
}
.tri-tl {
  top: 0; left: 0;
  border-style: solid;
  border-width: 100px 100px 0 0;
  border-color: var(--accent) transparent transparent transparent;
  opacity: 0.15;
}
.tri-br {
  bottom: 0; right: 0;
  border-style: solid;
  border-width: 0 0 100px 100px;
  border-color: transparent transparent var(--orange) transparent;
  opacity: 0.15;
}

/* ─── Page Wrapper ───────────────────────────────────────── */
.page-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ─── Sidebar ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 24px;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  gap: 0;
}

/* Profile photo */
.profile-photo-wrap {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--accent);
  margin-bottom: 14px;
  flex-shrink: 0;
}
.profile-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Name + title */
.profile-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 4px;
}
.profile-title {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.social-icons a {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.2s;
}
.social-icons a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* Sidebar divider */
.sidebar-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 4px 0 14px;
}

/* Info fields */
.info-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.info-item label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.info-item span {
  font-size: 12px;
  color: var(--text-light);
  word-break: break-word;
}
.info-item .status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4caf50;
  margin-right: 5px;
  vertical-align: middle;
}

/* Navigation tabs */
.nav-tabs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 10px;
}
.nav-tabs a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.nav-tabs a i {
  font-size: 14px;
  width: 18px;
  text-align: center;
}
.nav-tabs a:hover {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--border);
}
.nav-tabs a.active {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #000;
  font-weight: 600;
  border-color: var(--accent);
}
.nav-tabs a.active i { color: #000; }

/* ─── Main Content ───────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 30px 28px;
  max-width: 900px;
}

.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
}

/* Section headings */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--orange));
  border-radius: 2px;
}

.subsection-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 28px 0 16px;
}

/* ─── About / What I'm Doing Cards ──────────────────────── */
.about-text {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-light);
  margin: 20px 0 28px;
}

.doing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.doing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.2s;
}
.doing-card:hover { border-color: var(--accent); }
.doing-card i {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 12px;
}
.doing-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.doing-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Timeline ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--orange));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -21px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-header { margin-bottom: 6px; }
.timeline-role {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.timeline-company {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}
.timeline-meta {
  display: flex;
  gap: 16px;
  margin: 4px 0 10px;
  flex-wrap: wrap;
}
.timeline-date, .timeline-location {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.timeline-date i, .timeline-location i { font-size: 10px; }

.timeline-bullets {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.timeline-bullets li {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.6;
  position: relative;
}
.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: -14px;
  color: var(--accent);
  font-size: 10px;
  top: 2px;
}
.timeline-placeholder {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* Education grid */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.edu-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}
.edu-degree {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.edu-field {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 6px;
}
.edu-school {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ─── Skills / Progress Bars ─────────────────────────────── */
.skills-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}
.skill-row {
  margin-bottom: 14px;
}
.skill-row:last-child { margin-bottom: 0; }
.skill-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.skill-name {
  font-size: 12.5px;
  color: var(--text-light);
  font-weight: 500;
}
.skill-level {
  font-size: 11px;
  color: var(--text-muted);
}
.progress-bar-wrap {
  width: 100%;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #0099bb, var(--accent), #00ffcc);
  transition: width 1s ease;
}

/* ─── Portfolio Grid ─────────────────────────────────────── */
.portfolio-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}
.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.cert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.cert-card.hidden { display: none; }

.cert-badge {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  position: relative;
}
.cert-badge.aws    { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #ff9900; }
.cert-badge.comptia { background: linear-gradient(135deg, #1a1a2e, #0d1b2a); color: #d94f3b; }
.cert-badge.isc2   { background: linear-gradient(135deg, #1a2a1a, #0d1f0d); color: #4caf50; }
.cert-badge.isaca  { background: linear-gradient(135deg, #1a1a2e, #12123a); color: #5c6bc0; }
.cert-badge.pmi    { background: linear-gradient(135deg, #1a1a2e, #2a1a0d); color: #ff8c00; }
.cert-badge.coursera { background: linear-gradient(135deg, #1a1a2e, #001f3f); color: #0056d3; }

.cert-category-tag {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}
.tag-cert { background: #00d4ff22; color: var(--accent); border: 1px solid var(--accent); }
.tag-badge { background: #ff6b3522; color: var(--orange); border: 1px solid var(--orange); }

.cert-body { padding: 14px 16px; }
.cert-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.4;
}
.cert-issuer {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.cert-date {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.cert-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cert-link {
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: all 0.2s;
}
.cert-link:hover {
  background: var(--accent);
  color: #000;
}

/* ─── Contact Form ───────────────────────────────────────── */
.contact-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--text-light);
}
.contact-status .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 6px #4caf50;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.form-msg { font-size: 12px; }
.form-msg.success { color: #4caf50; }
.form-msg.error   { color: #f44336; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-submit:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 800px) {
  .sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .main-content { margin-left: 0; padding: 20px 16px; }
  .nav-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
  }
  .doing-grid, .edu-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .page-wrapper { flex-direction: column; }
  .info-list { display: none; }
}
@media (max-width: 500px) {
  .content-card { padding: 20px 18px; }
  .cert-grid { grid-template-columns: 1fr; }
}
