/* ==========================================================================
   Base Variables & Global Styles
   ========================================================================== */
:root {
  --primary: #0077b5;
  --accent: #0062a8;
  --muted: #6b7280;
  --bg: #f4f4f4;
  --card: #ffffff;
  --max-width: 1100px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --post-padding: 22px;
  --gap: 18px;
  --text: #222;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .2s ease, color .2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  background: var(--card);
  padding: .9rem 0;
  border-bottom: 1px solid #eee;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 20;
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .2px;
}

header h1,
header h1 a {
  color: var(--accent);
}

header h1 a:hover {
  text-decoration: none;
}

header nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}

header nav a {
  color: #555;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: color .18s ease, background .18s ease, transform .12s ease;
  background: transparent;
  border: 1px solid transparent;
}

header nav a i,
header nav .dropbtn i:first-child {
  width: 18px;
  text-align: center;
}

header nav a:hover {
  color: var(--primary);
  background: rgba(0, 119, 181, 0.06);
  transform: translateY(-2px);
}

/* ==========================================================================
   Dropdown Nav
   ========================================================================== */
.dropdown {
  position: relative;
  display: inline-flex;
}

.dropbtn {
  color: #555;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: color .18s ease, background .18s ease, transform .12s ease;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.dropbtn:hover,
.dropdown:focus-within .dropbtn,
.dropdown:hover .dropbtn {
  color: var(--primary);
  background: rgba(0, 119, 181, 0.06);
  transform: translateY(-2px);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--card);
  min-width: 260px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 30;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

header nav .dropdown-content a {
  padding: 10px 14px;
  justify-content: flex-start;
  width: 100%;
  border-radius: 6px;
  margin: 2px 0;
  white-space: nowrap;
}

/* Social icons specific styling */
nav a.youtube-link {
  color: #d93025;
  font-weight: 700;
}

nav a.youtube-link:hover {
  color: #b1271a;
}

nav a[href*="instagram.com"],
nav a.instagram-link {
  color: #e1306c;
  font-weight: 700;
}

nav a[href*="instagram.com"]:hover,
nav a.instagram-link:hover {
  color: #c21a5a;
}

nav a.github-link,
nav a[href*="github.com"] {
  color: #0f1720;
  font-weight: 700;
}

nav a.github-link:hover,
nav a[href*="github.com"]:hover {
  color: #000000;
}

nav a.blogs-link,
nav a[href*="blogs"] {
  color: #0062a8;
  font-weight: 700;
}

nav a.blogs-link:hover,
nav a[href*="blogs"]:hover {
  color: #05478a;
}

nav a.certifications-link {
  color: #0f9d58;
  font-weight: 700;
}

nav a.certifications-link:hover {
  color: #0b7d46;
}

nav a.projects-link {
  color: #8e24aa;
  font-weight: 700;
}

nav a.projects-link:hover {
  color: #6a1b9a;
}


/* ==========================================================================
   Home Page specific (Hero, Hero Card)
   ========================================================================== */
.hero {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8px;
}

.hero-card {
  width: 100%;
  max-width: var(--max-width);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--post-padding);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: #eee;
  transition: transform .22s ease, box-shadow .22s ease;
  display: block;
  margin: 0 auto;
}

.profile-img:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.hero-name {
  margin: 0;
  font-size: 1.5rem;
  color: #243041;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.2px;
}

.quote {
  font-size: 1.25rem;
  font-style: italic;
  color: #2b3440;
  margin: 0;
  max-width: 820px;
  line-height: 1.45;
  text-align: center;
}

.author {
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 8px;
  text-align: center;
}

.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(10, 60, 120, 0.14);
  transition: transform .16s ease, box-shadow .16s ease;
  align-self: center;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(10, 60, 120, 0.18);
}

.btn.secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.btn.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.95rem;
  border-radius: 999px;
}


/* ==========================================================================
   Articles & Grid specific
   ========================================================================== */
main {
  padding: 2.25rem 0;
}

h2 {
  border-left: 5px solid var(--primary);
  padding-left: 12px;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.post {
  background: var(--card);
  padding: var(--post-padding);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  transition: transform .18s ease, box-shadow .18s ease;
}

.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

.post h3 {
  margin-top: 0;
}

.post h3 a {
  color: #222;
  text-decoration: none;
  font-weight: 700;
}

.post h3 a:hover {
  color: var(--primary);
}

.meta {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Blogs & Articles extra specific
   ========================================================================== */
.articles {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8px;
}

.techpana-card {
  width: 100%;
  max-width: var(--max-width);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--post-padding);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.techpana-card img {
  max-width: 50%;
  height: auto;
  display: block;
}

.techpana-card .btn {
  max-width: 50%;
  display: block;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
  margin-top: 18px;
}

.post-card {
  display: flex;
  gap: 14px;
  background: var(--card);
  border-radius: 12px;
  padding: var(--post-padding);
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  align-items: flex-start;
  min-height: 120px;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

.post-cover {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f8;
  color: #9aa6b2;
  font-weight: 700;
  font-size: 28px;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-title {
  margin: 0;
  font-size: 1.05rem;
  color: #111;
  line-height: 1.2;
  font-weight: 700;
}

.post-excerpt {
  margin: 0;
  color: #555;
  font-size: .95rem;
  line-height: 1.45;
}

.post-info {
  margin-top: auto;
  color: var(--muted);
  font-size: .9rem;
}

.load-more-wrap {
  text-align: center;
  margin: 22px 0;
}

.no-posts {
  text-align: center;
  color: var(--muted);
  padding: 40px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Certifications Slideshow specific
   ========================================================================== */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

.mySlides {
  display: none;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  background-color: rgba(0, 0, 0, 0.4);
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.caption_text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer,
.site-footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--muted);
  margin-top: 28px;
}

footer .container p,
.site-footer .container p {
  margin: 0;
}

/* ==========================================================================
   Focus & Accessibility
   ========================================================================== */
.post-card:focus,
.post-card a:focus,
.btn:focus,
header nav a:focus {
  outline: 3px solid rgba(11, 116, 218, 0.18);
  outline-offset: 3px;
  border-radius: 8px;
}


/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 980px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  :root {
    --post-padding: 18px;
  }

  .hero-card {
    padding: 18px;
    gap: 12px;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  .quote {
    font-size: 1.05rem;
    padding: 0 8px;
    max-width: 720px;
  }

  header h1 {
    font-size: 1.35rem;
  }

  nav {
    gap: 10px;
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --post-padding: 14px;
  }

  .container {
    width: 94%;
  }

  .hero-card {
    padding: 14px;
  }

  .profile-img {
    width: 110px;
    height: 110px;
  }

  .hero-name {
    font-size: 1.15rem;
  }

  .quote {
    font-size: 0.98rem;
  }

  .btn {
    padding: 9px 16px;
    font-size: 0.95rem;
  }

  header h1 {
    font-size: 1.25rem;
  }

  .post-cover {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    font-size: 24px;
  }

  .post-card {
    padding: 16px;
    min-height: auto;
  }

  .post-title {
    font-size: 1rem;
  }

  .post-excerpt {
    font-size: .95rem;
  }

  .posts-grid {
    gap: 14px;
  }
}