/* Reset + Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #000428, #004e92);
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header */
.main-header {
  background: #111;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  z-index: 10;
  position: sticky;
  top: 0;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #00ffe0;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: #00ffe0;
  color: #000;
  font-weight: bold;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 100px 50px;
  background: url('../img/hero-bg.jpg') no-repeat center center/cover;
}

.hero-text {
  max-width: 600px;
}

.hero-text h2 {
  font-size: 48px;
  color: #00ffe0;
}

.hero-text h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hero-img img {
  width: 300px;
  border-radius: 50%;
  border: 5px solid #00ffe0;
  box-shadow: 0 0 20px #00ffe0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #00ffe0;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  transition: 0.3s ease;
}

.btn:hover {
  background: #00ccbb;
  transform: scale(1.05);
}

/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 80px 50px;
  background: #111;
}

.about-img img {
  width: 300px;
  border-radius: 10px;
  border: 4px solid #00ffe0;
  box-shadow: 0 0 20px #00ffe0;
}

.about-content {
  max-width: 600px;
}

.about-content h2 {
  font-size: 36px;
  color: #00ffe0;
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
}

/* Skills */
.skills {
  padding: 80px 50px;
  background: #0a0a0a;
  text-align: center;
}

.skills h2 {
  font-size: 36px;
  color: #00ffe0;
  margin-bottom: 30px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-card {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #00ffe0;
  font-weight: bold;
  transition: transform 0.3s;
}

.skill-card:hover {
  transform: scale(1.05);
  background: #00ffe0;
  color: #000;
}

/* Projects */
.projects {
  padding: 80px 50px;
  text-align: center;
  background: #111;
}

.projects h2 {
  font-size: 36px;
  color: #00ffe0;
  margin-bottom: 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background: #222;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 12px #00ffe0;
  transition: 0.3s ease;
  font-size: 18px;
  font-weight: bold;
}

.project-card:hover {
  background: #00ffe0;
  color: #000;
  transform: translateY(-5px);
}

/* Contact */
.contact {
  padding: 80px 50px;
  text-align: center;
  background: #0a0a0a;
}

.contact h2 {
  font-size: 36px;
  color: #00ffe0;
  margin-bottom: 30px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 5px;
  border: none;
  background: #222;
  color: #fff;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #00ffe0;
}

.socials {
  margin-top: 30px;
}

.socials a {
  display: inline-block;
  margin: 0 10px;
  color: #00ffe0;
  font-weight: bold;
  transition: 0.3s ease;
}

.socials a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: #888;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero, .about {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .hero-img, .about-img {
    margin-top: 30px;
  }
}
/* Certifications page */
.certifications-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.certifications-container h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: #0077cc;
}
.certifications-container p {
  text-align: center;
  margin-bottom: 2rem;
  color: #555;
}
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.cert-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.cert-card img {
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #f9f9f9;
}
.cert-card h3 {
  margin-bottom: 0.5rem;
  color: #0077cc;
}
.cert-card p {
  margin: 0.25rem 0;
  color: #555;
}
.cert-card .btn-primary,
.cert-card .btn-secondary {
  margin-top: auto;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  transition: background 0.2s ease;
  font-weight: 600;
}
.cert-card .btn-primary {
  background: #0077cc;
  color: #fff;
}
.cert-card .btn-primary:hover {
  background: #005fa3;
}
.cert-card .btn-secondary {
  background: #ccc;
  color: #333;
}
.cert-card .btn-secondary.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
