:root {
  --blue-500: #1e6fb8;
  --blue-400: #2a85d6;
  --gray-100: #f3f5f7;
  --gray-200: #e1e6ea;
  --text: #0b0b0b;
  --muted: #4a4f58;
  --max-w: 1100px;
  --radius: 10px;
  --bg-dark: #0d0d10;
  --card-bg: #1a1a1f;
  --text-light: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #3b82f6;
  --card-border: rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: var(--text);
  background: linear-gradient(180deg, var(--gray-100), white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

.container {
  width: calc(100% - 32px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
}

/* Topbar */
/* --- Sticky Transparent Navigation --- */
.topbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.75); /* semi-transparent */
  backdrop-filter: blur(10px); /* glass effect */
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  transition: background 0.3s ease, box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

/* When you scroll, it becomes a bit more solid */
.scrolled .topbar {
  background: rgba(255, 255, 255, 0.95); /* slightly less transparent */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(90deg, #00c6ff, #0072ff, #00c6ff);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(-10px);
  animation: logoFadeIn 1.2s ease-out forwards,
    logoGradient 3s ease-in-out infinite 1.2s;
}

.topbar .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoGradient {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 200%;
  }
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
}
.nav a:hover {
  background: var(--gray-200);
}

/* Hero */
.hero {
  padding: 32px 0 20px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: center;
}
.hero-grid {
  margin-bottom: 0;
}

.hero-text h1 {
  margin: 0 0 8px 0;
  font-size: 2rem;
}
.lead {
  color: var(--muted);
  margin-top: 0;
}
.hero-image img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.profile-photo {
  width: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1e3a8a;
  box-shadow: 0 9px 10px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 20px auto;
}

/* small screens */
@media (max-width: 600px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-text h2 {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero-image img {
    width: 80%;
    max-width: 260px;
    margin: 1rem auto 0;
    display: block;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Sections */
.section {
  padding: 24px 0 32px 0;
}
.section.alt {
  background: transparent;
  border: none;
}

.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}

/* Social Links */
#links {
  background: white;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

#links h2 {
  color: var(--text);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

#links p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* Centered social links */
.social-list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap; /* allows multiple rows if needed */
  justify-content: center; /* centers across the page */
  gap: 24px; /* spacing between items */
  text-align: center;
}

/* Style for each link */
.social-list a {
  color: #1e3a8a;
  font-size: 1.1rem;
  text-decoration: none;
  display: flex;
  flex-direction: column; /* icon above text */
  align-items: center;
  transition: color 0.3s ease, transform 0.2s ease;
}

/* Icon styling */
.social-list i {
  font-size: 2rem; /* larger icons */
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}

/* Hover effects with brand colors */
.social-list a:hover i.fa-linkedin {
  color: #0077b5;
}
.social-list a:hover i.fa-github {
  color: #171515;
}
.social-list a:hover i.fa-artstation {
  color: #13aff0;
}
.social-list a:hover i.fa-instagram {
  color: #e4405f;
}
.social-list a:hover i.fa-envelope {
  color: #d44638;
}

/* Subtle hover animation */
.social-list a:hover i {
  transform: translateY(-3px);
}

/* Platform-specific colors */
.fa-linkedin {
  color: #0077b5;
}
.fa-github {
  color: #333;
}
.fa-artstation {
  color: #13aff0;
}
.fa-instagram {
  color: #e1306c;
}
.fa-envelope {
  color: #1e3a8a;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  background-color: #f3f4f6;
  color: #374151;
  font-size: 0.9rem;
  margin-top: 40px;
  border-top: 1px solid #e5e7eb;
}
footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .menu-btn {
    display: block;
  }
  .nav {
    position: absolute;
    right: 16px;
    top: 56px;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(5, 10, 15, 0.08);
    display: none;
    flex-direction: column;
    min-width: 160px;
  }
  .nav.show {
    display: flex;
  }
}
/* Sticky social sidebar (right side) */
.social-sidebar {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 9999;
  pointer-events: auto;
}

.social-list-vertical {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.social-list-vertical a {
  color: #1e3a8a;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  background: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.social-list-vertical a:hover {
  transform: translateY(-4px);
}

/* Official brand hover colors */
.social-list-vertical a:hover .fa-linkedin {
  color: #0077b5;
}
.social-list-vertical a:hover .fa-github {
  color: #171515;
}
.social-list-vertical a:hover .fa-artstation {
  color: #13aff0;
}
.social-list-vertical a:hover .fa-instagram {
  color: #e4405f;
}
.social-list-vertical a:hover .fa-envelope {
  color: #d44638;
}

/* Blog section styling */
#blog {
  padding: 80px 20px;
  text-align: center;
}

#blog h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.blog-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #1e3a8a;
}

.blog-card p {
  color: #555;
  margin-bottom: 15px;
}

.blog-card a {
  color: #0077b5;
  text-decoration: none;
  font-weight: 600;
}

.blog-card a:hover {
  text-decoration: underline;
}

/* Blog Section */
.blog-post {
  max-width: 800px;
  margin: 3rem auto;
  padding: 1.5rem;
  line-height: 1.7;
}

.blog-post h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.blog-post .post-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  margin: 1rem;
  text-decoration: none;
  color: var(--accent-color, #0077b5);
}

.back-link:hover {
  text-decoration: underline;
}

/* Responsive — hide bar on small screens */
@media (max-width: 768px) {
  .social-sidebar {
    display: none;
  }
}
/* --- Blog post navigation --- */
.back-link {
  display: inline-block;
  margin-top: 20px;
  color: #0073e6;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #005bb5;
}
/* --- Blog post layout --- */
.blog-post {
  max-width: 800px;
  margin: 60px auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  line-height: 1.7;
}

.blog-post h1 {
  font-size: 2rem;
  color: var(--blue-500);
  margin-bottom: 16px;
}

.blog-post h2 {
  font-size: 1.4rem;
  color: var(--text);
  margin-top: 32px;
}

.blog-post p {
  color: var(--text);
  margin-bottom: 16px;
}

.blog-post time {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.blog-post img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin: 24px 0;
}

/* Make sure the back link fits this style */
.back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--blue-500);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--blue-500);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.back-link:hover {
  background: var(--blue-500);
  color: white;
}
/* CV */
.cv-content h1 {
  font-size: 2rem;
  color: var(--blue-500);
  margin-bottom: 0.5rem;
}

.cv-content h2 {
  margin-top: 1.5rem;
  color: var(--text);
}

.cv-content .card {
  background: white;
  border: 1px solid var(--gray-200);
  padding: 14px;
  border-radius: 10px;
  margin-top: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cv-content .btn {
  margin-top: 10px;
}

.cv-content .back-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue-500);
  text-decoration: none;
  font-weight: bold;
}

.cv-content .back-link:hover {
  color: var(--blue-400);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--blue-500);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--blue-400);
}
.cv-content ul {
  margin: 0 0 1.2rem 1.5rem;
  padding: 0;
}

.cv-content li {
  margin-bottom: 6px;
  line-height: 1.4;
}
/* --- Enhanced Section Headings --- */
.section h2 {
  text-align: center;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-500);
  font-weight: 800;
}

.section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  border-radius: 2px;
  margin: 10px auto 0; /* centers the line */
}

#blog {
  background: linear-gradient(180deg, #f9fbff, #ffffff);
}

#portfolio {
  background: linear-gradient(180deg, #ffffff, #f4f7fa);
}

#news {
  background: linear-gradient(180deg, #f7faff, #ffffff);
}

.card:hover,
.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card h3,
.portfolio-item h3 {
  color: var(--blue-500);
  margin-bottom: 0.5rem;
}
/* --- Section Title Icons --- */
.section h2 i {
  color: var(--blue-500);
  margin-right: 10px;
  font-size: 1.4rem;
  vertical-align: middle;
  transition: color 0.3s ease;
}

.section h2:hover i {
  color: var(--blue-400);
}
/* --- News Section Cards --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 60px; /* push everything down */
}

.news-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.news-card h3 {
  color: var(--blue-500);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.news-card p {
  color: var(--muted);
  margin-bottom: 10px;
}

.news-link {
  color: var(--blue-500);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: var(--blue-400);
  text-decoration: underline;
}
/* --- Portfolio Section --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  justify-items: center;
  margin-top: 24px;
}

.portfolio-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.portfolio-card h3 {
  color: var(--blue-500);
  margin: 12px 0 4px;
  font-size: 1.2rem;
}

.portfolio-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  padding: 0 12px;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.portfolio-images {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.portfolio-images img {
  width: 48%;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-images img:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.4);
}
.lightbox-prev {
  left: 30px;
}
.lightbox-next {
  right: 30px;
}

/* === Portfolio Card Styling === */
.portfolio-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Project Title */
.portfolio-card h3 {
  color: #4ea2ff; /* Bright accent blue */
  font-weight: 600;
  margin: 10px 0 5px;
  transition: color 0.3s ease;
}

.portfolio-card:hover h3 {
  color: #00c6ff; /* Light cyan on hover */
}

/* Project Description */
.portfolio-card p {
  color: #b0bac5; /* Soft gray-blue */
  font-size: 0.95rem;
  margin-bottom: 15px;
}

/* Image styling */
.portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.portfolio-card:hover img {
  transform: scale(1.03);
}

/* ---------- DARK THEME BASE ---------- */
:root {
  --bg: #0b0b10;
  --card: #0f1116;
  --muted: #98a0aa;
  --accent: #1fb77a; /* green for CV button */
  --accent-2: #0072ff; /* blue accent */
  --logo-grad-1: #00c6ff;
  --logo-grad-2: #0072ff;
  --glass: rgba(255, 255, 255, 0.06);
}

/* overall background */
body {
  background: linear-gradient(180deg, var(--bg), #0f1114);
  color: #e6eef6;
}

/* container adjustments */
.container {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px;
}

/* Topbar - centered nav, glass effect */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(15, 16, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* center nav items */
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: center; /* center everything horizontally */
  gap: 12px;
  padding: 18px 24px;
}

/* logo placed left visually but keep centered nav - we will position absolute for logo */
.logo {
  position: absolute;
  left: 40px;
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--logo-grad-1), var(--logo-grad-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(-8px);
  animation: logoAppear 0.9s ease-out forwards;
  letter-spacing: 0.2px;
}
@keyframes logoAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* nav links centered */
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  color: rgba(230, 238, 246, 0.85);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 4px;
}
.nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.02);
}

/* Hero layout */
.hero {
  padding: 84px 0 60px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: center;
}

/* Left text column */
.hero-text h1 {
  font-size: 3.2rem;
  margin: 0 0 8px 0;
  letter-spacing: -0.6px;
}
.hero-text h2 {
  margin: 0 0 18px 0;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
}

/* lead paragraph */
.lead {
  color: rgba(230, 238, 246, 0.8);
  max-width: 680px;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* CTA buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}
.btn.primary {
  background: linear-gradient(180deg, var(--accent), #0fa96a);
  color: white;
  box-shadow: 0 8px 24px rgba(31, 183, 122, 0.16);
}
.btn.ghost {
  background: transparent;
  color: rgba(230, 238, 246, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-left: 12px;
}

/* right image styling (big circular photo) */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image .profile-photo {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  object-fit: cover;
  border: 12px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.55);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.25)
  );
}

.social-sidebar {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 9999; /* make sure it’s always above menus */
  pointer-events: auto; /* allow taps on iPhone */
}

.social-list-vertical {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.social-list-vertical a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  pointer-events: auto; /* explicitly enable taps */
}

.social-list-vertical a:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

/* hero responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 40px;
  }
  .logo {
    left: 20px;
    font-size: 1.4rem;
  }
  .hero-image .profile-photo {
    width: 220px;
    height: 220px;
    border: 8px solid rgba(0, 0, 0, 0.35);
  }
}
/* ===== GLOBAL DARK THEME FIX ===== */
html,
body {
  background: #0b0b10;
  color: #e6eef6;
}

.section,
.container,
main {
  background: transparent !important;
  color: #e6eef6 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ffffff;
}

/* Cards in CV section */
.card {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #e6eef6 !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}

/* Section headings */
.section h2,
#cv h2,
#cv h3 {
  color: #4ea2ff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Professional experience divider */
.section h2::after,
#cv h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  border-radius: 2px;
}

/* Footer fix */
footer {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(230, 238, 246, 0.7);
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Keep topbar visible for all sections/pages */
.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(15, 16, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
/* === SECTION BACKGROUND TRANSITIONS === */

/* Hero & first sections (dark mode) */
#home,
#blog,
#news {
  background: linear-gradient(180deg, #0b0b10 0%, #14161c 100%);
  color: #e6eef6;
}

/* CV section switches to light background */
#cv,
#links,
footer {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  color: #111;
}

#cv h2,
#cv h3,
#cv p,
#cv li {
  color: #111 !important;
}

#cv .card {
  background: white;
  border: 1px solid #e5e7eb;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Smooth transition between dark and light */
.section {
  transition: background 0.8s ease, color 0.8s ease;
}

/* Sticky navbar only for top part */
body.scrolled .topbar {
  background: rgba(15, 16, 20, 0.85);
  backdrop-filter: blur(10px);
}

body.light-section .topbar {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
}
/* --- Fix: Make BLOG section dark like the hero --- */
#blog {
  background: linear-gradient(180deg, #0b0b10 0%, #14161c 100%) !important;
  color: #e6eef6 !important;
}

#blog h2,
#blog h3,
#blog p {
  color: #e6eef6 !important;
}

.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e6eef6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.blog-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

.blog-card a {
  color: #4ea2ff;
}

.blog-card a:hover {
  color: #00c6ff;
}
/* === Consistent DARK THEME for Blog + News === */

/* Match backgrounds */
#blog,
#news {
  background: linear-gradient(180deg, #0b0b10 0%, #10121a 100%) !important;
  color: #e6eef6 !important;
}

/* Headings and text */
#blog h2,
#news h2,
#blog h3,
#news h3,
#blog p,
#news p {
  color: #e6eef6 !important;
}

/* Cards (both Blog & News) */
.blog-card,
.news-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e6eef6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover,
.news-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

/* Links */
.blog-card a,
.news-link {
  color: #4ea2ff;
  font-weight: 600;
  text-decoration: none;
}

.blog-card a:hover,
.news-link:hover {
  color: #00c6ff;
  text-decoration: underline;
}

/* === Dark Footer to match theme === */
footer {
  background: rgba(15, 16, 20, 0.6) !important;
  color: rgba(230, 238, 246, 0.8) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}
/* === DARK THEME CV SECTION === */

#cv,
.cv-content {
  background: linear-gradient(180deg, #0b0b10 0%, #10121a 100%) !important;
  color: #e6eef6 !important;
}

.cv-content h1,
.cv-content h2,
.cv-content h3 {
  color: #4ea2ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Cards inside CV */
.cv-content .card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e6eef6 !important;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  transition: all 0.3s ease;
}

.cv-content .card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

/* Skills list */
.cv-content ul {
  list-style: none;
  padding: 0;
}

.cv-content li::before {
  content: "•";
  color: #4ea2ff;
  margin-right: 8px;
}

.cv-content li {
  color: rgba(230, 238, 246, 0.9);
  margin-bottom: 6px;
}

/* Buttons */
.cv-content .btn {
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 18px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

.cv-content .btn:hover {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
}

/* Divider line under titles */
#cv h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  border-radius: 2px;
}

/* --- Portfolio Grid Layout: 3 per row on desktop --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  justify-content: center;
  align-items: start;
  margin-top: 40px;
}

/* --- Fixed Carousel inside Portfolio Card (no empty slides) --- */
.carousel {
  position: relative;
  width: 100%;
  height: 240px; /* slightly taller for better proportion, adjust if needed */
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-inner img,
.carousel-inner video {
  flex: 0 0 100%; /* each slide takes 100% width */
  width: 100%;
  height: 100%;
  object-fit: cover; /* use contain if you prefer full image visible */
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.carousel-inner img:hover,
.carousel-inner video:hover {
  transform: scale(1.02);
}

/* Navigation arrows */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 1.4rem;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 5;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* --- Mobile Navigation Fix for Dark Theme --- */
@media (max-width: 900px) {
  .menu-btn {
    display: block;
    color: white;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 24px;
    top: 18px;
    z-index: 1201;
  }

  .nav {
    position: absolute;
    top: 64px;
    right: 16px;
    background: rgba(20, 22, 28, 0.95); /* dark glass instead of white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: none;
    flex-direction: column;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}
/* --- FIX: Make social sidebar links always clickable --- */
.social-sidebar {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 999999 !important; /* very high priority */
  pointer-events: auto !important;
}

.social-list-vertical a,
.social-list-vertical i {
  pointer-events: auto !important;
}

/* Make sure overlays don't block clicks */
.lightbox,
.modal {
  pointer-events: none; /* overlay inactive by default */
}

.lightbox.show,
.modal[aria-hidden="false"] {
  pointer-events: auto; /* only clickable when active */
}
/* === LINKS SECTION (Dark Theme Consistent) === */
#links {
  background: linear-gradient(180deg, #0b0b10 0%, #10121a 100%);
  color: #e6eef6;
  text-align: center;
  padding: 80px 20px;
}

#links h2 {
  color: #4ea2ff;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 16px;
}

#links p {
  color: rgba(230, 238, 246, 0.7);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* Horizontal social icon list */
.social-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.social-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #e6eef6;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-list i {
  font-size: 2rem;
  margin-bottom: 6px;
  color: #4ea2ff;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

/* Glow & hover */
.social-list a:hover i {
  color: #00c6ff;
  transform: translateY(-4px) scale(1.1);
  text-shadow: 0 0 12px rgba(0, 198, 255, 0.6);
}

.social-list span {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  #links {
    padding: 60px 16px;
  }
  .social-list {
    gap: 20px;
  }
  .social-list i {
    font-size: 1.8rem;
  }
}
/* --- MODAL FIX --- */
.modal {
  display: none; /* hide by default */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-body {
  position: relative;
  background: #1c1c1c;
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Hide the ✕ when the modal isn't visible */
.modal:not(.show) .modal-close {
  display: none;
}
/* === iPhone Portrait & Small Devices Fix === */
@media (max-width: 480px) {
  /* Hero section */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-text h2 {
    font-size: 1rem;
    line-height: 1.4;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .hero-image .profile-photo {
    width: 200px;
    height: 200px;
    border-width: 6px;
    margin: 0 auto;
  }

  /* Portfolio grid */
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 0 10px;
  }

  .portfolio-card {
    width: 100%;
    border-radius: 12px;
  }

  /* Blog and news cards */
  .blog-grid,
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
    padding: 0 12px;
  }

  .blog-card,
  .news-card {
    padding: 16px;
    border-radius: 12px;
  }

  /* Social sidebar - hidden on portrait iPhone */
  .social-sidebar {
    display: none !important;
  }

  /* Adjust navigation overlay */
  .nav {
    top: 58px;
    right: 10px;
    min-width: 150px;
  }

  /* Fix hero buttons */
  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .btn.primary,
  .btn.ghost {
    width: 90%;
    text-align: center;
  }

  /* Text padding */
  .section {
    padding: 40px 0;
  }

  footer {
    font-size: 0.8rem;
  }
}
/* === Fix: Add spacing above "More Projects" button on Portfolio === */
#portfolio .center {
  margin-top: 40px; /* add breathing room below the portfolio grid */
}

@media (max-width: 480px) {
  #portfolio .center {
    margin-top: 30px; /* a bit tighter for phones */
  }
}
/* === Glow animation for "More Projects" button === */
#portfolio .center .btn.ghost {
  position: relative;
  border: 1px solid rgba(78, 162, 255, 0.6);
  color: #4ea2ff;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(78, 162, 255, 0);
}

#portfolio .center .btn.ghost:hover {
  color: #00c6ff;
  border-color: #00c6ff;
  box-shadow: 0 0 12px rgba(0, 198, 255, 0.5);
  transform: translateY(-2px);
}

/* Optional subtle pulse animation */
@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 rgba(0, 198, 255, 0);
  }
  50% {
    box-shadow: 0 0 12px rgba(0, 198, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 198, 255, 0);
  }
}

#portfolio .center .btn.ghost {
  animation: buttonPulse 3s infinite ease-in-out;
}

/* === Safe Global Button Glow & Hover Effect (no layout interference) === */
.btn {
  position: relative;
  border: 1px solid rgba(78, 162, 255, 0.5);
  color: #4ea2ff;
  background: transparent;
  transition: all 0.3s ease;
  animation: buttonPulse 3s infinite ease-in-out;
  box-shadow: none;
  z-index: auto;
}

.btn.primary {
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  border: none;
  color: white;
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.3);
}

.btn.ghost {
  border: 1px solid rgba(78, 162, 255, 0.6);
  color: #4ea2ff;
}

/* Hover Glow */
.btn:hover {
  transform: translateY(-2px);
  color: #00c6ff;
  box-shadow: 0 0 12px rgba(0, 198, 255, 0.5);
}

/* For primary buttons: brighter hover */
.btn.primary:hover {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.6);
}

/* Subtle pulse animation */
@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 rgba(0, 198, 255, 0);
  }
  50% {
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 198, 255, 0);
  }
}
/* === iPhone / Small Screen Layout Fix === */
@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 12px;
  }

  .blog-grid {
    grid-template-columns: 1fr; /* Single clean column */
    gap: 20px;
  }

  .blog-card {
    width: 100%;
    max-width: none;
    padding: 20px;
    margin: 0 auto;
    border-radius: 12px;
  }

  .blog-card h3 {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .blog-card p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text h2 {
    font-size: 1rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portfolio-card {
    width: 100%;
    margin: 0 auto;
  }

  .social-sidebar {
    display: none; /* hide floating icons on small screens */
  }
}
/* Fix: Keep lightbox arrows away from sidebar */
.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 80px; /* push in to avoid overlapping social sidebar */
}
#about {
  background: linear-gradient(180deg, #0b0b10 0%, #10121a 100%);
  color: #e6eef6;
  text-align: center;
  padding: 80px 20px;
}

#about h2 {
  color: #4ea2ff;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 16px;
}

#about p {
  color: rgba(230, 238, 246, 0.8);
  max-width: 800px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
}
.logo img {
  height: 36px; /* size of the logo */
  width: auto;
  display: block;
  object-fit: contain;
}

.logo {
  display: flex;
  align-items: center;
}
/* Logo displayed in the hero section */
.hero-logo {
  width: 180px; /* adjust size */
  height: 180px;
  border-radius: 50%; /* makes it circular */
  object-fit: cover;

  display: block;
  margin-top: 40px; /* move it lower */
  margin-left: 20px; /* adjust horizontal position if needed */

  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* If using inside hero grid and you want it centered */
.hero-grid .hero-logo {
  justify-self: start; /* move left */
  align-self: start; /* move down slightly */
}
/* --- FORCE BLOG POST PAGES TO DARK THEME --- */
.blog-post-page,
.blog-post-page body {
  background: linear-gradient(180deg, #0b0b10 0%, #14161c 100%) !important;
  color: #e6eef6 !important;
}

.blog-post-page h1,
.blog-post-page h2,
.blog-post-page h3,
.blog-post-page p,
.blog-post-page time {
  color: #e6eef6 !important;
}

.blog-post-page .back-link {
  color: #4ea2ff !important;
  border-color: #4ea2ff !important;
}

.blog-post-page .back-link:hover {
  background: #4ea2ff !important;
  color: #0b0b10 !important;
}
/* Fix blog card titles color */
.blog-card h3 {
  color: #ffffff !important; /* White titles */
}

/* Keep blog card text readable */
.blog-card p {
  color: #d1d5db !important; /* Light gray */
}

/* Keep Read More link blue */
.blog-card a {
  color: #4ea2ff !important;
}
/* ============================
   ABOUT SECTION
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.about-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.about-text h2 {
  color: #4ea2ff;
  margin-bottom: 12px;
  font-size: 2rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(230, 238, 246, 0.9);
  margin-bottom: 16px;
}

/* Mobile layout */
@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo img {
    margin: 0 auto;
    height: 220px;
    width: 220px;
  }
}
/* ABOUT: image left, text flows naturally */
.about-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* Photo stays on the left */
.about-photo img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Text can be VERY long and continues downward normally */
.about-text {
  flex: 1;
}

.about-text h2 {
  color: #4ea2ff;
  margin-bottom: 12px;
  font-size: 2rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(230, 238, 246, 0.9);
  margin-bottom: 16px;
}

/* Mobile behavior — image centered, text below */
@media (max-width: 800px) {
  .about-layout {
    flex-direction: column;
    text-align: center;
  }

  .about-photo img {
    margin: 0 auto;
  }
}
/* ABOUT layout: photo left, text right */
.about-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* Circular photo */
.about-photo img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Text area grows naturally downward */
.about-text {
  flex: 1;
}

.about-text h2 {
  color: #4ea2ff;
  margin-bottom: 12px;
  font-size: 2rem;
}

/* DO NOT style p here — let `.muted` keep your global style */

/* Mobile layout */
@media (max-width: 800px) {
  .about-layout {
    flex-direction: column;
    text-align: center;
  }

  .about-photo img {
    margin: 0 auto;
  }
} /* ← closes media query */

/* Correctly outside media query */
#about {
  scroll-margin-top: 120px;
}

/* FINAL — FIXED + TRANSPARENT NAVBAR */
.topbar {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.25); /* transparent */
  transition: background 0.3s ease;
}

/* Keep nav container aligned */
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Make sure NOTHING prevents sticky */
body,
header,
.topbar,
main,
.container {
  overflow: visible !important;
}

.news-full-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
  list-style: none;
}

.news-full-item h3 {
  color: white;
  margin-bottom: 0.3rem;
}

.news-full-item p {
  margin: 0.2rem 0;
}

.news-full-item .news-link {
  color: #4da3ff;
  font-weight: bold;
}
#cv h1,
.cv-title {
  text-align: center;
  width: 100%;
  margin: 0 auto 20px;
}
.cv-header {
  text-align: center;
  margin-bottom: 30px; /* optional, but helps spacing */
}

.cv-header h1 {
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
}
.cv-content > .muted:first-of-type {
  text-align: center;
}
