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

:root {
  --primary: #2563eb;
  --dark: #0f172a;
  --light: #f8fafc;
  --accent: #10b981;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Inter", sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* NAVBAR */
header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}
nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}
nav a:hover { color: var(--primary); }
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  text-align: center;
  padding: 140px 20px 100px;
  background: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}
.hero h1, .hero p { position: relative; z-index: 1; }
.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero p {
  max-width: 600px;
  margin: 0 auto;
  color: #e2e8f0;
}

/* ABOUT */
section {
  max-width: 1200px;
  margin: auto;
  padding: 60px 24px;
}
h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 32px;
}
.about {
  text-align: center;
  max-width: 700px;
  margin: auto;
  color: #334155;
}

/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.project-card {
  position: relative;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.project-card h3 {
  margin: 16px 0 6px;
  text-align: center;
  font-weight: 600;
}
.project-card p {
  text-align: center;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.certificate-card {
  position: relative;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}

.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.certificate-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.certificate-card h3 {
  margin: 16px 0 6px;
  text-align: center;
  font-weight: 600;
}

.certificate-card p {
  text-align: center;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}

/* CONTACT */
.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact a img {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

.contact a img:hover {
  transform: translateY(-8px);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px;
  background: var(--dark);
  color: white;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  margin-top: 60px;
}

.lightbox-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
}
/* RESPONSIVE */
@media(max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 24px;
    background: white;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 16px;
    border-radius: 8px;
  }
  nav ul.active { display: flex; }
  .menu-toggle { display: block; color: var(--dark); }
}
