@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* THEME COLORS */
:root {
  --bg-color: #0d1117;
  --text-color: #e6edf3;
  --header-bg: #1a1a2e;
  --nav-bg: #161b22;
  --nav-link: #58a6ff;
  --nav-link-hover: #2ecc71;
  --section-bg: #1f1f2e;
  --section-title: #58a6ff;
  --project-bg: #2b2d42;
  --footer-bg: #1a1a2e;
  --footer-text: #adb5bd;
}

/* LIGHT THEME OVERRIDES */
#theme-toggle:checked ~ * {
  --bg-color: #f8f9fa;
  --text-color: #212529;
  --header-bg: #ffffff;
  --nav-bg: #e9ecef;
  --nav-link: #0d6efd;
  --nav-link-hover: #198754;
  --section-bg: #ffffff;
  --section-title: #0d6efd;
  --project-bg: #e2e6ea;
  --footer-bg: #f1f3f5;
  --footer-text: #6c757d;
}
.skip-link {
        position: absolute;
        top: -40px;
        left: 0;
        background: #000;
        color: #fff;
        padding: 8px;
        z-index: 1000;
        text-decoration: none;
      }
      .skip-link:focus {
        top: 0;
      }
      /* Visually hidden utility class */
      .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }
/* THEME TOGGLE ICON */
#theme-toggle {
  display: none;
}

.toggle-label {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 999;
}

#theme-toggle + .toggle-label::before {
  content: "🌙";
}

#theme-toggle:checked + .toggle-label::before {
  content: "🌞";
}

/* RESET + BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 0 1rem;
}

/* HEADER */
header {
  text-align: center;
  padding: 3rem 0 2rem;
  background-color: var(--header-bg);
  color: var(--text-color);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-color);
}

/* NAVIGATION */
nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  background-color: var(--nav-bg);
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #2e3a59;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a.active {
  text-decoration: underline;
  font-weight: 700;
}

nav ul li a:hover {
  color: var(--nav-link-hover);
}
.intro {
  color: var(--text-color);
}
.intro:hover,
.intro:active {
  transform: translateX(40px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* INTRO FLEX */
.intro-flex {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--section-bg);
  border-radius: 10px;
  margin-bottom: 3rem;
  color: var(--text-color);
}
.intro-flex:hover,
.intro-flex:active {
  transform: translateX(-10px); 
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); 
}


.intro-flex img {
  width: 150px;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--nav-link);
  transform: translate(-10px)
}

/* MAIN SECTION */
main section {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 2rem;
  background-color: var(--section-bg);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* SECTION HEADINGS */
h2 {
  margin-bottom: 1rem;
  color: var(--section-title);
  font-size: 1.75rem;
  border-left: 5px solid var(--nav-link-hover);
  padding-left: 0.75rem;
}

/* LISTS */
ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
/* BADGES */
.badge {
  display: inline-block;
  background-color: var(--nav-link-hover);
  color: var(--bg-color);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.skills {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
 background-color: var(--section-bg);
 border-radius: 12px;
box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.skills h2 {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;

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

.skills li {
  background: var(--text-color);
  color:var(--header-bg);
  padding: 0.7rem 1.5rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 1.1rem;
  box-shadow: 0 1px 4px rgba(44,62,80,0.07);
  transition: background 0.2s, color 0.2s;
}
.skills li:hover {
  background: #2d3a4b;
  color: #fff;
  cursor: pointer;
}
.certifications{
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--section-bg);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.certifications h2 {
  text-align: center;
  color:var(--section-title);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}
.certifications ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.certifications li {
  font-weight: 600;
  color: var(--header-bg);
  margin-top: 1.2rem;
  font-size: 1.08rem;
  background:var(--text-color);
  padding: 0.7rem 1.2rem 0.3rem 1.2rem;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 1px 4px rgba(44,62,80,0.07);
}
.certifications li + p {
  margin: 0 0 0.5rem 1.5rem;
  color: var(--text-color);
  font-size: 0.98rem;
}

.certifications li + p + p {
  margin: 0 0 0.8rem 1.5rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.certifications li:hover {
  background: var(--bg-color);
  color: #fff;
  transition: background 0.2s, color 0.2s;
}
/* Additional inline styles for the social section */
      .social-links {
        margin-top: 2rem;
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
      }

      .social-links a {
        text-decoration: none;
        color: #0077b5;
        font-weight: bold;
        transition: color 0.3s ease;
      }

      .social-links a:hover {
        color: #ff5e6c; /* Coral pink hover */
      }
/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 0;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 2rem;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  main section {
    padding: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .toggle-label {
    font-size: 1.2rem;
    top: 1rem;
    right: 1rem;
  }

  .intro-flex {
    flex-direction: column;
    text-align: center;
  }

  .intro-flex img {
    margin-bottom: 1rem;
  }
}
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  color: var(--text-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid coral;
}

.submit-btn {
  background-color: coral;
  color: white;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #e65b3d;
}
.project-card a:hover {
  background: #222;
  color: #fff;
  transition: 0.3s;
}
