:root {
  --dark-bg: #0a0a0a;
  --darker-bg: #050505;
  --accent: #2ecc71;
  --accent-glow: rgba(46, 204, 113, 0.3);
  --text: #ffffff;
  --light-bg: #ffffff;
  --light-text: #000000;
}

body {
  background-color: var(--dark-bg);
  color: var(--text);
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  transition: background 0.3s, color 0.3s;
  scroll-behavior: smooth;
}

body.light {
  background-color: var(--light-bg);
  color: var(--light-text);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light .navbar {
  background: rgba(255, 255, 255, 0.9);
}

.logo {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

body.light .nav-links a {
  color: var(--light-text);
}

.nav-links a:hover {
  color: var(--accent);
}

.theme-toggle {
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.3rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.hero {
  padding: 8rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-content {
  max-width: 600px;
}

.profile-img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  object-fit: cover;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cta-button {
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.skills, .projects, .contact, .about {
  padding: 4rem 5%;
}

.skills-grid, .contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

body.light .skill-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
}

.skill-card:hover {
  box-shadow: 0 10px 20px var(--accent-glow);
  transform: translateY(-5px);
}

.project-card {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

body.light .project-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card ul {
  padding-left: 1.2rem;
}

.contact-list li {
  list-style: none;
  margin-bottom: 1rem;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
}

body.light .contact-list a {
  color: var(--light-text);
}

footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    margin-top: 2rem;
  }

  .profile-img {
    width: 220px;
    height: 220px;
  }

  .nav-links {
    display: none;
  }
}

/* ===== CERTIFICATIONS SECTION ===== */
#certifications {
  padding: 60px 20px;
  background-color: var(--bg);
}

#certifications h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--text);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 0 10px;
}

.cert-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform 0.3s ease;
  text-align: center;
}

.cert-card:hover {
  transform: scale(1.01);
}

.cert-card h3 {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 10px;
}

.cert-card p,
.cert-card ul {
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
}

.cert-card ul {
  padding-left: 20px;
  text-align: left;
}

.cert-card ul li {
  margin-bottom: 6px;
}

.cert-card img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: zoom-in;
}

.cert-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .cert-card {
    padding: 16px;
  }

  .cert-card h3 {
    font-size: 18px;
  }
}

