/* ============================= */
/*        GLOBAL STYLES          */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  transition: background 0.5s, color 0.5s;
  color: #fff;
}

/* ============================= */
/*          NAVBAR               */
/* ============================= */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 8%;
  z-index: 1000;
  transition: background 0.5s, color 0.5s;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(90deg, #f72585, #7209b7);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s, transform 0.2s;
}

.nav-links a:hover {
  color: #4cc9f0;
  transform: scale(1.05);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}




/* Light mode */
body.light .navbar, body.light .nav-links a, body.light .theme-toggle, body.light .hamburger {
  color: #111;
}

/* ============================= */
/*          HERO SECTION         */
/* ============================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 5% 4rem;
  background: #f72585;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #f72585, #7209b7);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: #fff;
  max-width: 600px;
  line-height: 1.6;
}

.hero a.btn {
  background: #7209b7;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 1rem;
  display: inline-block;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero a.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* ============================= */
/*        SECTIONS COLORS        */
/* ============================= */
.about {
  padding: 5rem 5%;
  background: #7209b7;
  color: #fff;
  text-align: center;
}

.projects {
  padding: 5rem 5%;
  background: #3a0ca3;
  color: #fff;
  text-align: center;
}

.skills {
  padding: 5rem 5%;
  background: #4361ee;
  color: #fff;
  text-align: center;
}

.certifications {
  padding: 5rem 5%;
  background: #7209b7;
  color: #fff;
  text-align: center;
}

.contact {
  padding: 5rem 5%;
  background: #f72585;
  color: #fff;
  text-align: center;
}

/* ============================= */
/*          PROJECT CARDS        */
/* ============================= */
.project-grid, .cert-grid, .skill-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card, .cert-card {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.card:hover, .cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.card img, .cert-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.card h3, .cert-card h3 {
  margin: 0.5rem 0;
}

.card p, .cert-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card a, .cert-card a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #f72585;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card a:hover, .cert-card a:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* ============================= */
/*          SKILLS               */
/* ============================= */
.skill {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.skill:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* ============================= */
/*          CONTACT              */
/* ============================= */
.contact a {
  color: #4cc9f0;
  margin: 0 1rem;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* ============================= */
/*        LIGHT MODE             */
/* ============================= */
body.light {
  color: #111;
}

body.light .hero { background: #f72585; }
body.light .about { background: #f72585; color: #fff; }
body.light .projects { background: #7209b7; }
body.light .skills { background: #4cc9f0; color: #111; }
body.light .certifications { background: #3a0ca3; }
body.light .contact { background: #f72585; }

body.light .card, body.light .cert-card {
  background: rgba(255,255,255,0.1);
  color: #111;
}

body.light .skill { background: #fff; color: #111; }

/* ============================= */
/*        RESPONSIVENESS         */
/* ============================= */
@media (max-width: 950px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0,0,0,0.95);
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 0;
    display: none;
  }

  .nav-links.active { display: flex; }
  .hamburger { display: block; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .projects h2, .skills h2 { font-size: 1.8rem; }
  .card, .cert-card { padding: 1rem; }
}
@media (max-width: 480px) {
  .hero p { font-size: 1rem; }
  .nav-buttons { gap: 0.5rem; }
}