/* ============================================================
   Portfolio - Main Stylesheet
   Dark theme | Poppins | CSS Variables
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --accent:      #09aeea;
  --accent-dark: #0790c2;
  --bg:          #0f0f1a;
  --content-bg:  #1a1a2e;
  --card-bg:     #16213e;
  --text:        #d5d5d5;
  --heading:     #f5f5f5;
  --border:      rgba(255,255,255,.08);
  --sidebar-w:   260px;
  --transition:  .3s ease;
  --radius:      12px;
  --shadow:      0 8px 32px rgba(0,0,0,.4);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; object-fit: cover; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { color: var(--heading); font-weight: 600; line-height: 1.3; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--content-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: transform var(--transition);
}
.sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 2rem 1.5rem;
}
.sidebar-profile { text-align: center; margin-bottom: 1.5rem; }
.profile-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(9,174,234,.3);
}
.profile-photo img { width: 100%; height: 100%; }
.profile-placeholder {
  width: 100%; height: 100%;
  background: var(--card-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--accent);
}
.profile-name { font-size: 1.05rem; margin-bottom: .3rem; }
.profile-titles { color: var(--accent); font-size: .8rem; }
.title-rotating { font-weight: 500; }

.sidebar-social {
  display: flex; justify-content: center; gap: .75rem;
  margin-bottom: 2rem;
}
.sidebar-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: var(--text);
  transition: all var(--transition);
}
.sidebar-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Sidebar Nav */
.sidebar-nav { flex: 1; }
.sidebar-nav ul { display: flex; flex-direction: column; gap: .25rem; }
.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem;
  border-radius: 8px;
  color: var(--text);
  font-size: .85rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.sidebar-nav .nav-link i { width: 18px; text-align: center; font-size: .95rem; }
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: rgba(9,174,234,.12);
  color: var(--accent);
}
.sidebar-nav .nav-link.active::before {
  content: '';
  position: absolute; left: 0;
  top: 25%; bottom: 25%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.nav-cv { color: var(--accent) !important; }

.sidebar-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
}

/* ── Mobile Toggle ───────────────────────────────────────────── */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem; left: 1rem;
  z-index: 200;
  width: 40px; height: 40px;
  background: var(--accent);
  border: none; border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
}
.mobile-menu-toggle span {
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all var(--transition);
}

/* ── Main Content ────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* ── Sections ────────────────────────────────────────────────── */
.section {
  padding: 6rem 0;
  position: relative;
}
.section:nth-child(even) { background: var(--content-bg); }
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-title { font-size: 2.2rem; margin-bottom: .5rem; }
.section-subtitle { color: var(--text); font-size: .95rem; }
.section-divider {
  width: 50px; height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}
.sub-section-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--heading);
  display: flex; align-items: center; gap: .75rem;
}
.sub-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.75rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(9,174,234,.4);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn-back {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--accent);
  font-size: .88rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* ── HOME SECTION ────────────────────────────────────────────── */
.section-home {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}
.home-inner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 6rem 3rem;
}
.home-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.3);
}
.home-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,15,26,.95) 50%, rgba(9,174,234,.1));
}
.home-content {
  position: relative; z-index: 1;
  max-width: 700px;
}
.home-greeting {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.home-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: .75rem;
  background: linear-gradient(135deg, var(--heading), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-title-wrap {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  min-height: 2rem;
}
.home-title-typed { color: var(--accent); font-weight: 600; }
.cursor { color: var(--accent); animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.home-description {
  font-size: .95rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  max-width: 600px;
}
.home-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.home-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.stat-item { text-align: center; }
.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: .78rem; color: var(--text); text-transform: uppercase; letter-spacing: 1px; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.4);
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
  z-index: 1;
}
.mouse {
  width: 22px; height: 34px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 11px;
  display: flex; justify-content: center;
  padding-top: 5px;
}
.wheel {
  width: 3px; height: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll 1.5s ease-in-out infinite;
}
@keyframes scroll { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(10px);opacity:0} }
@keyframes float  { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-5px)} }

/* ── ABOUT SECTION ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid var(--border);
}
.about-photo-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: var(--card-bg);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--accent);
  border: 3px solid var(--border);
}
.availability-badge {
  position: absolute;
  bottom: -1rem; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: .4rem 1.2rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex; align-items: center; gap: .4rem;
}
.badge-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }
.about-bio { margin-bottom: 2rem; line-height: 1.9; }
.about-details-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.detail-item {
  display: flex; gap: .75rem; align-items: flex-start;
}
.detail-item > i {
  color: var(--accent);
  width: 18px; margin-top: .2rem;
  flex-shrink: 0;
}
.detail-label { display: block; font-size: .75rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; }
.detail-value { font-size: .88rem; color: var(--heading); }
.detail-value a:hover { color: var(--accent); }

/* Services */
.services-block { margin-top: 4rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(9,174,234,.15);
}
.service-icon {
  width: 54px; height: 54px;
  background: rgba(9,174,234,.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--accent);
  margin-bottom: 1rem;
}
.service-card h4 { margin-bottom: .5rem; font-size: 1rem; }
.service-card p { font-size: .85rem; line-height: 1.7; }

/* ── RESUME SECTION ──────────────────────────────────────────── */
.timeline-wrapper {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.timeline-heading {
  font-size: 1.15rem; margin-bottom: 1.75rem;
  display: flex; align-items: center; gap: .6rem;
}
.timeline-heading i { color: var(--accent); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute; left: -2rem;
  top: .35rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(9,174,234,.2);
  z-index: 1;
}
.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition);
}
.timeline-content:hover { border-color: rgba(9,174,234,.4); }
.timeline-period {
  display: inline-block;
  background: rgba(9,174,234,.15);
  color: var(--accent);
  font-size: .75rem;
  padding: .2rem .7rem;
  border-radius: 50px;
  margin-bottom: .5rem;
}
.timeline-title { font-size: 1rem; margin-bottom: .2rem; }
.timeline-place { font-size: .82rem; color: var(--accent); margin-bottom: .5rem; }
.timeline-desc { font-size: .83rem; line-height: 1.7; }

/* Skills */
.skills-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.5rem; }
.skills-cat-title { font-size: .95rem; color: var(--accent); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; font-size: .78rem; }
.skill-item { margin-bottom: 1rem; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.skill-name { font-size: .85rem; color: var(--heading); }
.skill-percent { font-size: .8rem; color: var(--accent); font-weight: 600; }
.skill-bar {
  height: 6px; background: var(--border);
  border-radius: 3px; overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 3px;
  transition: width 1.2s ease;
}

/* Knowledge Tags */
.knowledge-block { margin-top: 3rem; }
.knowledge-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.knowledge-tag {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  transition: all var(--transition);
}
.knowledge-tag:hover { border-color: var(--accent); color: var(--accent); }

/* Fun Facts */
.fun-facts-block { margin-top: 3rem; }
.fun-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.fun-fact-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.fun-fact-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.fun-fact-item > i { font-size: 2rem; color: var(--accent); margin-bottom: .75rem; }
.fun-fact-value { display: block; font-size: 2.5rem; font-weight: 700; color: var(--heading); }
.fun-fact-label { font-size: .8rem; color: var(--text); }

/* Certificates */
.certificates-block { margin-top: 3rem; }
.certificates-list { display: flex; flex-direction: column; gap: 1rem; }
.certificate-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex; gap: 1rem; align-items: center;
  transition: border-color var(--transition);
}
.certificate-item:hover { border-color: rgba(9,174,234,.4); }
.cert-image { width: 60px; height: 60px; border-radius: 8px; object-fit: contain; }
.cert-icon { width: 50px; height: 50px; background: rgba(9,174,234,.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.5rem; flex-shrink: 0; }
.cert-info h4 { font-size: .95rem; }
.cert-issuer { font-size: .82rem; color: var(--accent); }
.cert-date { font-size: .78rem; color: rgba(255,255,255,.4); }

/* ── PORTFOLIO SECTION ───────────────────────────────────────── */
.portfolio-filters {
  display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .45rem 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50px;
  font-size: .82rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.portfolio-item { transition: all var(--transition); }
.portfolio-item.hidden { display: none; }
.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.portfolio-card:hover { border-color: rgba(9,174,234,.4); transform: translateY(-4px); box-shadow: var(--shadow); }
.portfolio-image { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-card:hover .portfolio-image img { transform: scale(1.05); }
.portfolio-placeholder {
  width: 100%; height: 100%;
  background: rgba(9,174,234,.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(9,174,234,.3);
  min-height: 200px;
}
.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(9,174,234,.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-actions { display: flex; gap: .75rem; }
.portfolio-btn {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.2);
  border: none; border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.portfolio-btn:hover { background: rgba(255,255,255,.4); }
.portfolio-info { padding: 1.25rem; }
.portfolio-info h4 { font-size: .95rem; margin-bottom: .3rem; }
.portfolio-tech { font-size: .78rem; color: var(--accent); }

/* Portfolio Modal */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.modal.active { display: flex; align-items: center; justify-content: center; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.8); backdrop-filter: blur(4px); }
.modal-box {
  position: relative;
  background: var(--content-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 700px; width: 90%;
  max-height: 85vh; overflow-y: auto;
  padding: 2rem;
  z-index: 1;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from{opacity:0;transform:scale(.9)} to{opacity:1;transform:scale(1)} }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.modal-project-img { width: 100%; border-radius: 8px; margin-bottom: 1.5rem; aspect-ratio: 16/9; object-fit: cover; }
.modal-project-title { font-size: 1.4rem; margin-bottom: 1rem; }
.modal-project-desc { font-size: .9rem; line-height: 1.8; margin-bottom: 1rem; }
.modal-project-tech { font-size: .82rem; color: var(--accent); margin-bottom: 1.5rem; }
.modal-project-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── TESTIMONIALS ────────────────────────────────────────────── */
.section-testimonials { background: var(--bg); }
.testimonial-swiper { padding-bottom: 3rem !important; }
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
}
.testimonial-quote-icon {
  font-size: 2rem; color: rgba(9,174,234,.3);
  margin-bottom: 1rem;
}
.testimonial-text { font-size: .9rem; line-height: 1.9; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-rating { color: #f39c12; margin-bottom: 1.5rem; gap: .2rem; display: flex; }
.testimonial-rating .filled { color: #f39c12; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.author-avatar-placeholder {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author h5 { font-size: .9rem; margin: 0; }
.testimonial-author span { font-size: .78rem; color: var(--accent); }
.swiper-button-prev, .swiper-button-next { color: var(--accent) !important; }
.swiper-pagination-bullet-active { background: var(--accent) !important; }

/* ── BLOG SECTION ────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover { border-color: rgba(9,174,234,.4); transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-link { display: block; color: inherit; }
.blog-card-image { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-placeholder {
  width: 100%; height: 100%;
  background: rgba(9,174,234,.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(9,174,234,.3);
  min-height: 180px;
}
.blog-category {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--accent);
  color: #fff; font-size: .72rem;
  padding: .2rem .6rem; border-radius: 50px;
}
.blog-card-content { padding: 1.25rem; }
.blog-meta { font-size: .75rem; color: rgba(255,255,255,.4); margin-bottom: .6rem; display: flex; gap: 1rem; }
.blog-title { font-size: .95rem; margin-bottom: .5rem; line-height: 1.4; }
.blog-excerpt { font-size: .82rem; line-height: 1.7; margin-bottom: .75rem; }
.blog-read-more { font-size: .82rem; color: var(--accent); display: inline-flex; align-items: center; gap: .4rem; }
.blog-card:hover .blog-read-more i { transform: translateX(4px); }
.blog-read-more i { transition: transform var(--transition); }

/* Blog post page */
.blog-post-article { padding: 5rem 0; }
.post-header { margin-bottom: 2rem; }
.post-category { display: inline-block; background: rgba(9,174,234,.15); color: var(--accent); font-size: .78rem; padding: .25rem .75rem; border-radius: 50px; margin-bottom: .75rem; }
.post-title { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.post-meta { display: flex; gap: 1.5rem; font-size: .82rem; color: rgba(255,255,255,.4); }
.post-featured-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; max-height: 500px; }
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.post-content { font-size: .92rem; line-height: 1.9; }
.post-content h1, .post-content h2, .post-content h3 { margin: 2rem 0 1rem; }
.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.2rem; }
.post-content p { margin-bottom: 1rem; }
.post-content pre { background: var(--card-bg); padding: 1.5rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1rem; border: 1px solid var(--border); }
.post-content code { font-family: 'Courier New', monospace; font-size: .85rem; background: rgba(9,174,234,.1); padding: .1em .4em; border-radius: 3px; color: var(--accent); }
.post-content pre code { background: none; color: var(--text); padding: 0; }
.post-content ul, .post-content ol { margin: 1rem 0 1rem 1.5rem; }
.post-content li { margin-bottom: .4rem; }
.post-related { margin-top: 4rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.post-related h3 { margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.related-card { display: block; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: all var(--transition); color: var(--text); }
.related-card:hover { border-color: rgba(9,174,234,.4); color: var(--heading); }
.related-card img { aspect-ratio: 16/9; object-fit: cover; }
.related-placeholder { aspect-ratio: 16/9; background: rgba(9,174,234,.05); display: flex; align-items: center; justify-content: center; color: rgba(9,174,234,.3); font-size: 2rem; }
.related-card span { display: block; padding: .6rem; font-size: .8rem; }

/* ── CONTACT SECTION ─────────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon {
  width: 46px; height: 46px;
  background: rgba(9,174,234,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1rem;
  flex-shrink: 0;
}
.contact-info-item h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4); margin-bottom: .2rem; }
.contact-info-item p { font-size: .88rem; }
.contact-info-item a:hover { color: var(--accent); }
.contact-social { display: flex; gap: .75rem; margin-top: 1rem; }
.contact-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: all var(--transition);
}
.contact-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .82rem; margin-bottom: .4rem; color: var(--heading); font-weight: 500; }
.form-group label span { color: var(--accent); }
.form-control {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem 1rem;
  color: var(--heading);
  font-family: inherit; font-size: .88rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: rgba(255,255,255,.25); }
textarea.form-control { resize: vertical; min-height: 140px; }
.btn-submit { width: 100%; justify-content: center; }
.form-alert {
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: .85rem;
  margin-bottom: 1rem;
}
.form-alert.success { background: rgba(39,174,96,.15); border: 1px solid rgba(39,174,96,.3); color: #2ecc71; }
.form-alert.error   { background: rgba(231,76,60,.15);  border: 1px solid rgba(231,76,60,.3);  color: #e74c3c; }
.contact-map { border-radius: var(--radius); overflow: hidden; height: 350px; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ── Scroll-to-top ───────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 42px; height: 42px;
  background: var(--accent);
  border: none; border-radius: 50%;
  color: #fff;
  font-size: .9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: all var(--transition);
  z-index: 90;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ── Admin link (tiny) ───────────────────────────────────────── */
.admin-link-tiny {
  position: fixed; bottom: 2rem; left: var(--sidebar-w);
  transform: translateX(-50%);
  font-size: .7rem; color: rgba(255,255,255,.15);
  transition: color var(--transition); z-index: 50;
}
.admin-link-tiny:hover { color: var(--accent); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 260px 1fr; gap: 2.5rem; }
  .timeline-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-260px); --sidebar-w: 260px; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-menu-toggle { display: flex; }
  .section { padding: 4rem 0; }
  .section-container { padding: 0 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 280px; margin: 0 auto; }
  .about-details-grid { grid-template-columns: 1fr; }
  .home-inner { padding: 5rem 1.5rem; }
}

@media (max-width: 600px) {
  .section-title { font-size: 1.7rem; }
  .form-row { grid-template-columns: 1fr; }
  .home-stats { gap: 1.5rem; }
  .portfolio-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .skills-tabs { grid-template-columns: 1fr; }
  .fun-facts-grid { grid-template-columns: 1fr 1fr; }
}

/* ── AOS override for dark theme ─────────────────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }
