/* =========================
   Root Variables & Reset
   ========================= */
:root {
  --system-font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 3rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --color-accent: #8a2be2;
  --color-primary: #1a1a40;
  --color-secondary: #c7d6db;
  --color-light: #fafafa;
  --color-dark: #0c0c0c;
  --color-link: #007bff;
  --color-link-hover: #0056b3;
  --border-radius: 8px;
  --transition: 0.3s ease-in-out;
  --max-width: 1200px;
  --header-height: 64px;
  font-size: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: var(--system-font-stack);
  background: #f5f6fa;
  color: var(--color-dark);
}

ul[class], ol[class] {
  list-style: none;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   My Code Starts Here
   Layout Wrappers
   ========================= */
.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-m);
}

.wrapper_inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================
   Header & Navigation
   ========================= */
.menu-toggle {
  position: absolute;
  opacity: 0;
}

.menu-button {
  display: block;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-xs) var(--space-s);
  z-index: 100;
}

.site_header {
  padding: var(--space-s) 0;
  background: linear-gradient(rgba(26, 26, 64, 0.9), rgba(26, 26, 64, 0.9));
  position: relative;
}

.site_header_nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(26, 26, 64, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 99;
}

.site_header_nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-m);
  text-align: center;
}

.site_header_nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem;
  display: block;
  padding: var(--space-s) 0;
  transition: color var(--transition);
}

.site_header_nav ul li a:hover,
.site_header_nav ul li a:focus {
  color: var(--color-accent);
}

.menu-toggle:checked ~ .site_header_nav {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .menu-button {
    display: none;
  }
  .site_header_nav {
    position: static;
    height: auto;
    background: transparent;
    transform: none;
    transition: none;
    display: block;
  }
  .site_header_nav ul {
    flex-direction: row;
    gap: var(--space-l);
    padding: 0;
  }
  .site_header_nav ul li a {
    font-size: 1rem;
    padding: 0;
  }
}

/* =========================
   Hero Section
   ========================= */
.hero-background {
  background-image: url('/assets/hero-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 0 var(--space-m);
}

.hero_content {
  padding: var(--space-3xl) 0;
  width: 100%;
}

.hero_content h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: var(--space-s);
}

.hero_content p {
  font-size: clamp(1rem, 3vw, 1.5rem);
}

.hero_social {
  padding-top: var(--space-3xl);
}

section {
  padding: var(--space-2xl) var(--space-l);
}

/* Reduce space between hero and about section */
#hero {
  padding-bottom: 2rem;
}
#about {
  padding-top: 2rem;
  padding-bottom: 2rem; }
#skills {
  padding-top: 2rem;
}

/* =========================
   About Section
   ========================= */
#about .wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

#about header.text_center {
  margin-bottom: var(--space-l, 2rem);
}

#about h2 img,
#education h2 img,
#interests h2 img,
#projects h2 img,
#contact h2 img {
  vertical-align: middle;
  margin-right: 0.5rem;
}

#about h2 {
  font-size: 2rem;
  color: var(--color-accent, #8a2be2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.about_intro {
  font-size: 1.15rem;
  color: #444;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about_content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl, 3rem);
  align-items: center;
  justify-content: center;
  width: 100%;
}

.about_figure {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
  background: #f7f7fa;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(26,26,64,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about_img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(26,26,64,0.10);
  display: block;
}

.about_figure figcaption {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-accent, #8a2be2);
}

/* About Details (match interests-article style) */
.about_details {
  background: #fff;
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 2px 8px rgba(26, 26, 64, 0.06);
  padding: var(--space-l, 2rem);
  margin: 0 auto;
  max-width: 500px;
}

.about_highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about_highlights li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  color: #222;
  line-height: 1.6;
  transition: background 0.2s;
  border-radius: 6px;
  padding: 0.5rem 0.5rem 0.5rem 0;
}

.about_highlights li:last-child {
  margin-bottom: 0;
}

.about_highlights img {
  margin-right: 0.75rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(26,26,64,0.10));
}

.about_details .h5 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .about_content {
    flex-direction: column;
    gap: var(--space-l, 2rem);
    align-items: center;
  }
  .about_figure {
    margin-bottom: 1.5rem;
  }
  .about_details {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  #about h2 {
    font-size: 1.3rem;
  }
  .about_img {
    width: 400px;
    height: 400px;
  }
  .about_details .h5,
  .about_highlights li {
    font-size: 0.98rem;
  }
}

/* =========================
   Skills Section
   ========================= */
#skills {
  background: #f7f9fc;
  padding-bottom: var(--space-xl, 4rem);
}

#skills .wrapper {
  max-width: 900px;
  margin: 0 auto;
}
ul {
    list-style-type: none;
    padding: 0;
}
li {
    margin: 5px;
    display: inline-block; /* This ensures that the list items are displayed in a row. */
}

#skills h2 {
  font-size: 2rem;
  color: var(--color-accent, #8a2be2);
  margin-bottom: var(--space-l, 2rem);
  letter-spacing: 1px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skills-list li {
  background: #fff;
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 2px 8px rgba(26, 26, 64, 0.06);
  padding: 1.5rem 1rem;
  text-align: center;
  min-width: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-list li:hover,
.skills-list li:focus-within {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 6px 16px rgba(26, 26, 64, 0.12);
}

.skills-list img {
  margin-bottom: 0.5rem;
  display: block;
}

.skills-list span {
  font-size: 1.1rem;
  color: #222;
  font-weight: 500;
  margin-top: 0.25rem;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  #skills h2 {
    font-size: 1.3rem;
  }
  .skills-list {
    gap: 1rem;
  }
  .skills-list li {
    min-width: 80px;
    padding: 1rem 0.5rem;
  }
  .skills-list span {
    font-size: 1rem;
  }
}

/* =========================
   Education Section
   ========================= */
#education {
  background: #f9fafc;
  padding: var(--space-xl, 4rem) 0;
}

#education .wrapper {
  max-width: 800px;
  margin: 0 auto;
}

#education header.text_center {
  margin-bottom: var(--space-l, 2rem);
}

#education h2 {
  font-size: 2rem;
  color: var(--color-accent, #8a2be2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.education-details {
  background: #fff;
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 2px 8px rgba(26, 26, 64, 0.06);
  padding: var(--space-l, 2rem);
  margin: 0 auto;
  font-size: 1.1rem;
  color: #222;
  line-height: 1.7;
}

.education-details strong {
  color: var(--color-accent, #8a2be2);
}

.education-details a.download-cv {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  background: var(--color-accent, #8a2be2);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 4px rgba(26,26,64,0.08);
}

.education-details a.download-cv:hover,
.education-details a.download-cv:focus {
  background: #5e189b;
  color: #fff;
}

@media (max-width: 600px) {
  #education h2 {
    font-size: 1.3rem;
  }
  .education-details {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* =========================
   Interests Section
   ========================= */
#interests {
  background: #f9fafc;
  padding: var(--space-xl) 0;
}

#interests .wrapper {
  max-width: 800px;
  margin: 0 auto;
}

#interests h2 {
  font-size: 2rem;
  color: var(--color-accent, #8a2be2);
  margin-bottom: var(--space-l, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.interests-article {
  background: #fff;
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 2px 8px rgba(26, 26, 64, 0.06);
  padding: var(--space-l, 2rem);
  margin: 0 auto;
}

.interests-article ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.interests-article li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  color: #222;
  line-height: 1.6;
  transition: background 0.2s;
  border-radius: 6px;
  padding: 0.5rem 0.5rem 0.5rem 0;
}

.interests-article li:last-child {
  margin-bottom: 0;
}

.interests-article li img {
  margin-right: 0.75rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(26,26,64,0.10));
}

@media (max-width: 600px) {
  #interests .wrapper {
    padding: 0 1rem;
  }
  .interests-article {
    padding: 1rem;
  }
  #interests h2 {
    font-size: 1.3rem;
  }
  .interests-article li {
    font-size: 1rem;
  }
}

/* =========================
   Projects Section
   ========================= */
#projects {
  background: #f5f6fa;
  padding: var(--space-xl, 4rem) 0;
  text-align: center;
}

#projects .wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#projects h2 {
  font-size: 2rem;
  color: var(--color-accent, #8a2be2);
  margin-bottom: var(--space-l, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#projects .h5 {
  color: #444;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.project_image {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
}

.project_image li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(26,26,64,0.06);
  padding: 1.5rem 1rem;
  max-width: 320px;
  min-width: 220px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project_image li:hover,
.project_image li:focus-within {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 16px rgba(26,26,64,0.12);
}

.project_image img {
  border-radius: 8px;
  margin-bottom: 1rem;
  width: 100px;
  height: 100px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(26,26,64,0.08);
}

.project_image h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent, #8a2be2);
}

.project_image p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #222;
}

.project_image a {
  color: var(--color-accent, #8a2be2);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.project_image a:hover,
.project_image a:focus {
  color: #5e189b;
}

@media (max-width: 900px) {
  .project_image {
    gap: 1rem;
  }
  .project_image li {
    max-width: 90vw;
    min-width: 180px;
  }
}

@media (max-width: 600px) {
  #projects h2 {
    font-size: 1.3rem;
  }
  .project_image {
    flex-direction: column;
    gap: 1.5rem;
  }
  .project_image li {
    max-width: 100%;
    min-width: 0;
    padding: 1rem 0.5rem;
  }
  .project_image img {
    width: 80px;
    height: 80px;
  }
}

/* =========================
   Contact Section
   ========================= */
#contact {
  background: #fff;
  padding: var(--space-xl, 4rem) 0;
  text-align: center;
}

#contact .wrapper {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact header.text_center {
  margin-bottom: var(--space-l, 2rem);
  width: 100%;
}

#contact h2 {
  font-size: 2rem;
  color: var(--color-accent, #8a2be2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#contact header p {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 0;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.contact_form {
  background: #f9fafc;
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 2px 8px rgba(26, 26, 64, 0.06);
  padding: var(--space-l, 2rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 500px;
}

.form_group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius, 6px);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(26,26,64,0.04);
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--color-accent, #8a2be2);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

button[type="submit"] {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--border-radius, 6px);
  background-color: var(--color-accent, #8a2be2);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background-color: #5e189b;
}

@media (max-width: 600px) {
  #contact h2 {
    font-size: 1.3rem;
  }
  .contact_form {
    padding: 1rem;
  }
}

/* =========================
   Footer & Social Links
   ========================= */
footer {
  background: var(--color-primary, #1a1a40);
  color: #fff;
  padding: var(--space-l, 2rem) 0 1rem 0;
  text-align: center;
  font-size: 1rem;
  position: relative;
}

footer .social-links {
  margin-bottom: 1.5rem;
}

footer .wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

footer .flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer address {
  font-style: normal;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

footer nav[aria-label="Social media links"] ul {
  display: flex;
  gap: 1rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

footer nav[aria-label="Social media links"] li {
  display: flex;
  align-items: center;
}

footer nav[aria-label="Social media links"] li:first-child {
  font-weight: 500;
  color: #fff;
  margin-right: 0.5rem;
}

footer nav[aria-label="Social media links"] a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, box-shadow 0.2s;
  padding: 0.25rem;
}

footer nav[aria-label="Social media links"] a:hover,
footer nav[aria-label="Social media links"] a:focus {
  background: rgba(138, 43, 226, 0.15);
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.15);
}

footer nav[aria-label="Social media links"] img {
  width: 24px;
  height: 24px;
  display: block;
}

footer p {
  margin: 1.5rem 0 0 0;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

@media (max-width: 700px) {
  footer .flex {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    text-align: left;
  }
  footer .wrapper {
    padding: 0 1rem;
  }
  footer nav[aria-label="Social media links"] ul {
    gap: 0.75rem;
  }
}