/* DESIGN TOKENS */
:root {
  --primary-color: #ffb700; /* Gold/Accent */
  --secondary-color: #1d2b38; /* Dark Blue/Charcoal */
  --text-primary: #1c1c1c;
  --text-secondary: #434344; /* Muted text */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F8F8; /* Light card/section background */
  --border-color: #e0e0e0;
  --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  --border-radius-base: 0.75rem;
}

/* RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a{
  text-decoration: none;
  color: inherit;
}
body {
  background: linear-gradient(135deg, var(--bg-primary), #F5F5F5);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.7; 
  scroll-behavior: smooth;
}

/* TYPOGRAPHY REFINEMENTS */
h1, h2, h3, .logo {
    font-weight: 700;
    line-height: 1.2;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 7vw;
  /* Dark Blue Background */
  background: var(--secondary-color); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: #FFFFFF; /* White text for logo */
  margin-right: 1.5rem;
}
.navbar nav {
  display: flex;
  gap: 1.5rem;
}
.navbar nav a {
  /* Light grey text */
  color: rgba(255, 255, 255, 0.85); 
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.navbar nav a:hover {
  /* Turns Gold on hover */
  color: var(--primary-color); 
}

/* ===== SECTIONS ===== */
main {
  padding-bottom: 5rem;
}
.section {
  padding: 4rem 7vw;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.section-inner {
  display: flex;
  gap: 3rem;
}
.section-inner.two-col > div {
  flex: 1;
}

/* ===== ME ===== */
.me {
  padding: 5rem 7vw 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.me-text h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}
.me-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.5;
  max-width: 40rem;
  margin-bottom: 2rem;
}
/* BUTTONS */
.me-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: 2px solid var(--primary-color);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn.primary {
  background: var(--primary-color);
  color: var(--secondary-color);
}
.btn.primary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}
.btn.outline {
  background: transparent;
  color: var(--primary-color);
}
.btn.outline:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}
.me-image {
  display: flex;
  justify-content: center;
}
.me-image img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-base);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== GENERIC CARDS & GRIDS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-base);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}
.skill-card h3 {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}
.skill-card p {
    color: var(--text-secondary);
}

/* SIMPLE SKILLS (page 4 style) */
.simple-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}
.simple-skill-box {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: var(--border-radius-base);
  padding: 1.2rem;
  text-align: center;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ===== HOVER CARDS (Projects + Education) ===== */
.hover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.hover-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-base);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  background: var(--bg-primary);
}
.hover-title {
  font-size: 1.25rem;
  color: var(--secondary-color);
  font-weight: 700;
}
.hover-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(15px);
  transition:
    max-height 0.5s ease-in-out,
    opacity 0.4s ease-in-out,
    transform 0.4s ease-in-out;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}
.hover-card:hover .hover-body {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
}
.hover-body h4 {
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}
.hover-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ===== CERTIFICATIONS (LINKED) ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.cert-item { /* now an <a> tag */
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-base);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}
.cert-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}
.cert-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}
.cert-item h3 {
    margin-bottom: 0.2rem;
    color: var(--secondary-color);
}
.cert-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* SIDE IMAGE */
.side-image-placeholder img {
  width: 100%;
  border-radius: var(--border-radius-base);
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.contact-grid h3 {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}
.contact-grid a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  padding: 1.5rem 7vw;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .me {
    grid-template-columns: 1fr;
  }
  .section-inner {
    flex-direction: column;
  }
}
@media (max-width: 720px) {
  .navbar nav {
    display: none;
  }
  .section {
    padding: 3rem 5vw;
  }
  .me {
    padding-inline: 5vw;
  }
  .me-image img {
      width: 100%;
      height: auto;
  }
  .me-buttons {
      flex-direction: column;
  }
  .btn {
      text-align: center;
  }
}
.repo-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #0000FF;
  text-decoration: none;
}

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