:root {
  --midnight-bg: #0b101a;
  --line-light: rgba(255,255,255,0.05);
  --accent: #5eb1bf;
  --text-light: #e1e6ed;
  --text-muted: #95a1b3;
  --shadow-glow: rgba(94,177,191,0.2);
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--midnight-bg);
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
}

.navbar {
  border-bottom: 1px solid var(--line-light);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  background: var(--midnight-bg);
  z-index: 10;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--text-light);
}
nav .nav-link {
  margin-left: 1.5rem;
  font-weight: 600;
  padding: 0.3rem;
  transition: color 0.3s, border-bottom 0.3s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s;
}
.nav-link.active, .nav-link:hover {
  color: var(--accent);
}
.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

.hero-section {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10%;
  background-image: linear-gradient(var(--midnight-bg) 50%, transparent),
    repeating-linear-gradient(45deg, transparent, transparent 20px, var(--line-light) 20px, var(--line-light) 21px);
}
.hero-section h2 {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.hero-section p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.cta-button {
  padding: 0.75rem 1.8rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.cta-button:hover {
  background: var(--accent);
  color: var(--midnight-bg);
}

footer {
  margin-top: auto;
  padding: 1rem 2rem;
  text-align: center;
  border-top: 1px solid var(--line-light);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    align-items: center;
    text-align: center;
    padding: 0 5%;
  }
  .hero-section h2 {
    font-size: 2.2rem;
  }
}
/* Projects Page – card grid styling */
/* Projects Page – card grid styling */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background-color: #222;
  color: #eee;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.card p {
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #bbb;
}

.card a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #5c6bc0; /* subtle blue */
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.card a:hover {
  background: #3949ab;
}

/* PDF Viewer styles */
.pdf-viewers-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pdf-viewer {
  background-color: #1f1f1f;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);

  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdf-viewer h2 {
  color: #eee;
  margin-bottom: 1rem;
  font-family: 'Lora', serif;
  font-weight: 700;
  text-align: center;
  font-size: 1.3rem;
}

.card iframe {
  width: 100%;
  height: 300px; /* or more if you want taller preview */
  border: none;
  border-radius: 8px;
  margin-top: 1rem;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}




.tools-section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.tools-section h2 {
  font-family: 'Lora', serif;
  color: #5c6bc0;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* EXACTLY 4 per row */
  gap: 2rem;
  justify-items: center;
}

.tool-card {
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 1rem;
  width: 160px;
  height: 160px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.8);
}

.tool-card img {
  width: 70px;
  height: 70px;
  margin-bottom: 0.5rem;
}

.tool-card p {
  color: #eee;
  font-weight: 600;
  font-size: 0.9rem;
}



/* Contact Page */
.contact-main {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
}

.contact-main h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.contact-main p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem;
  background: #1a1f2e;
  border: none;
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
  resize: none;
}

.contact-form button {
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #ff9933;
}

.contact-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-links a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: #ff9933;
}

/* Certificates Page */
.certs-section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.certs-section h2 {
  font-family: 'Lora', serif;
  color: #5c6bc0;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cert-intro {
  color: #ccc;
  margin-bottom: 2rem;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Exactly 2 per row */
  gap: 2rem;
  justify-content: center;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.cert-card {
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 1rem;
  width: 100%;
  aspect-ratio: 1 / 1; /* Square shape */
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.8);
}

.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.cert-card p {
  color: #ddd;
  font-weight: 600;
  margin-top: 0.8rem;
  text-align: center;
}

/* Add to style.css */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Hide hamburger on desktop */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

/* Mobile navbar */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: var(--midnight-bg);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    border-top: 1px solid var(--line-light);
    padding: 1rem 0;
  }

  nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  nav .nav-link {
    margin: 0.8rem 0;
    text-align: center;
  }
}

