/* --- Modern Color Scheme & Variables --- */
:root {
  --primary-bg: linear-gradient(120deg, #0f2027, #2c5364 80%);
  --accent: #00eaff;
  --accent-gradient: linear-gradient(90deg, #00eaff 0%, #ff6ec4 100%);
  --text-main: #f4f4f4;
  --text-accent: #00eaff;
  --card-bg: rgba(34, 34, 34, 0.95);
  --shadow: 0 4px 24px rgba(0, 234, 255, 0.12);
}
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(120deg, #0f2027 0%, #2c5364 100%); /* Use a single gradient for smooth background */
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
header {
  background: rgba(20, 30, 40, 0.85);
  box-shadow: 0 2px 24px rgba(0,234,255,0.08);
  border-bottom: 1px solid rgba(0,234,255,0.12);
  padding: 0.5rem 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
}
/* --- Subtle Animated Gradient Background for Header --- */
.header-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  background: linear-gradient(120deg, #0f2027 0%, #2c5364 100%);
  background-size: cover;
  opacity: 0.18;
  pointer-events: none;
}
/* --- Navigation Interactive Indicator --- */
.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li {
  position: relative;
}
.nav-list a {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.5em 1em;
  border-radius: 2em;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.nav-list a:hover, .nav-list a:focus {
  color: var(--accent);
  background: rgba(0,234,255,0.08);
  box-shadow: 0 2px 12px var(--accent);
}
.nav-icon {
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, filter 0.2s;
}
.nav-list a:hover .nav-icon, .nav-list a:focus .nav-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px var(--accent));
}
.nav-label {
  letter-spacing: 0.01em;
}
/* --- Micro-interactions for Cards, Icons, Certificates --- */
.card, .icon, .certificate, .project, .blog-post {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 1em;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover, .icon:hover, .certificate:hover, .project:hover, .blog-post:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 8px 32px var(--accent);
}
.card:focus, .icon:focus, .certificate:focus, .project:focus, .blog-post:focus {
  outline: 2px solid var(--accent);
}
.badge {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,234,255,0.08);
  transition: transform 0.18s, box-shadow 0.18s;
}
.badge:hover, .badge:focus {
  transform: scale(1.08);
  box-shadow: 0 4px 16px var(--accent);
}
/* --- Full Screen Content Boxes with Visible Borders --- */
section {
  width: calc(100% - 2vw); /* Reduce left/right gap */
  margin-left: 1vw;
  margin-right: 1vw;
  padding: 1.5rem 1vw; /* Reduce horizontal padding */
  background: rgba(34,34,34,0.7);
  border-radius: 1.2em;
  box-shadow: 0 2px 24px rgba(0,234,255,0.08);
  border: 2px solid #5a7ca8; /* Lighter border color for better visibility */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1);
  text-align: left;
  box-sizing: border-box;
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
}
section:first-of-type {
  margin-top: 0.3rem;
}
section:last-of-type {
  margin-bottom: 0.3rem;
}
section.visible {
  opacity: 1;
  transform: none;
}
.section-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 2vw;
  /* Remove top padding to reduce gap above box title */
  box-sizing: border-box;
}
@media (max-width: 900px) {
  section {
    width: calc(100% - 1vw); /* Reduce left/right gap for tablet */
    margin-left: 0.5vw;
    margin-right: 0.5vw;
    padding: 2.2rem 0.5vw; /* Reduce horizontal padding */
  }
  .section-inner {
    padding: 0 0.5vw;
  }
}
@media (max-width: 600px) {
  section {
    width: calc(100% - 32px); /* Add gap outside border on mobile */
    margin-left: 16px;
    margin-right: 16px;
    border-radius: 0.7em;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 16px;
    padding-right: 16px;
    /* Ensure gap between border and content on mobile */
  }
  .section-inner {
    padding-left: 0;
    padding-right: 0;
  }
  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    font-size: 0.85rem;
    width: 100%;
    padding: 0;
    justify-content: center;
  }
  .nav-list li {
    width: auto;
  }
  .nav-list a {
    width: auto;
    padding: 0.2em 0.5em;
    font-size: 0.85rem;
    border-radius: 0.7em;
    justify-content: center;
  }
}
h2, h3 {
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.2rem; /* Reduce gap above box title */
  margin-bottom: 0.7rem; /* Slightly less gap below title */
}
/* --- Accessibility & Responsiveness --- */
:focus-visible {
  outline: 2px solid var(--accent);
}
@media (max-width: 600px) {
  .nav-list {
    gap: 0.7rem;
    font-size: 0.98rem;
  }
  .nav-list a {
    padding: 0.4em 0.7em;
    font-size: 1rem;
  }
  h1 { font-size: 2rem; }
  .card, .icon, .certificate, .project, .blog-post { font-size: 1em; }
  .header-bg { height: 40vh; }
}
/* --- Footer Modernization --- */
footer {
  background: rgba(20, 30, 40, 0.92);
  border-top: 1px solid rgba(0,234,255,0.12);
  box-shadow: 0 -2px 24px rgba(0,234,255,0.08);
  padding: 2rem 0 1rem 0;
  text-align: center;
  color: var(--text-main);
  margin-top: 2rem;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.footer-flex {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}
.footer-trademark {
  margin-right: auto;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.social-icons {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: flex-end;
  width: auto;
}
.social-icons a {
  color: var(--accent);
  font-size: 1.15rem;
  text-decoration: none;
  padding: 0.3em 0.7em;
  border-radius: 1.5em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  background: rgba(0,234,255,0.07);
}
.social-icons a:hover, .social-icons a:focus {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent);
}
@media (max-width: 600px) {
  .footer-flex {
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem;
  }
  .footer-trademark {
    margin-bottom: 0.7rem;
    font-size: 1rem;
  }
  .social-icons {
    justify-content: center;
    width: 100%;
  }
}
/* --- Projects & Achievements Section Styling --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.project {
  background: rgba(34, 46, 58, 0.85); /* Transparent dark background similar to nav */
  border-radius: 0.4em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 0.4em;
  color: #00eaff;
  transition: box-shadow 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1), border-color 0.3s;
  border: 2px solid transparent;
  position: relative;
}
.project:hover {
  box-shadow: 0 8px 32px var(--accent);
  transform: scale(1.08) translateY(-4px);
  background: rgba(34, 46, 58, 0.95);
  color: #fff;
  border: 2px solid transparent;
  z-index: 2;
}
.project h3 {
  color: #00eaff;
  font-size: 0.9em;
}
.project p {
  color: #f4f4f4;
  font-size: 0.85em;
}
.project .badge {
  background: linear-gradient(90deg, #00eaff 0%, #ff6ec4 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 1em;
  padding: 0.3em 0.9em;
  font-size: 0.95em;
  margin-right: 0.3em;
  box-shadow: 0 1px 8px rgba(0,234,255,0.13);
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: inline-block;
}
.project .badge:hover, .project .badge:focus {
  background: linear-gradient(90deg, #ff6ec4 0%, #00eaff 100%);
  color: #222e3a;
  transform: scale(1.08);
  box-shadow: 0 2px 16px #00eaff;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.blog-post {
  background: rgba(34, 46, 58, 0.85); /* Transparent dark background similar to nav */
  border-radius: 0.4em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 0.4em;
  color: #00eaff;
  transition: box-shadow 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1);
}
.blog-post h3 {
  color: #00eaff;
  font-size: 0.9em;
}
.blog-post p {
  color: #f4f4f4;
  font-size: 0.85em;
}
.blog-post .badge {
  background: linear-gradient(90deg, #00eaff 0%, #ff6ec4 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 1em;
  padding: 0.3em 0.9em;
  font-size: 0.95em;
  margin-right: 0.3em;
  box-shadow: 0 1px 8px rgba(0,234,255,0.13);
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: inline-block;
}
.blog-post .badge:hover, .blog-post .badge:focus {
  background: linear-gradient(90deg, #ff6ec4 0%, #00eaff 100%);
  color: #222e3a;
  transform: scale(1.08);
  box-shadow: 0 2px 16px #00eaff;
}
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 0.2rem;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 0.5em;
}
.skills-list .badge {
  background: #222e3a;
  color: #00eaff;
  font-weight: 600;
  border-radius: 1em;
  padding: 0.4em 1em;
  font-size: 1em;
  box-shadow: 0 1px 6px rgba(0,234,255,0.10);
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.skills-list .badge:hover, .skills-list .badge:focus {
  background: #00eaff;
  color: #fff;
  box-shadow: 0 2px 12px #00eaff;
}
.certificate {
  background: rgba(34, 46, 58, 0.85);
  border-radius: 0.4em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 0.4em;
  color: #00eaff;
  border: 2px solid #22303a;
  transition: box-shadow 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1), border-color 0.3s;
  will-change: transform;
  display: inline-block;
}
.certificate:hover, .certificate:focus {
  box-shadow: 0 8px 32px var(--accent);
  transform: scale(1.08) translateY(-4px);
  background: rgba(34, 46, 58, 0.95);
  color: #fff;
  border: 2px solid transparent;
  z-index: 2;
}
.certificate h3, .certificate img {
  background: var(--card-bg);
}
.about-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.about-name {
  text-align: center;
}
.role {
  text-align: center;
}
