* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #0b0c10;
  color: #d9dadb;
  transition: background-color 0.5s ease, color 0.5s ease;
  line-height: 1.6;
}

section { padding: 60px 10%; }

h1, h2, h3 {
  background: linear-gradient(90deg, #3FA0C2, #f6e6b5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#theme-toggle {
  position: fixed;
  top: 20px;
  right: 25px;
  background: #1f2833;
  color: #f6e6b5;
  border-radius: 50%;
  padding: 10px;
  font-size: 22px;
  cursor: pointer;
  z-index: 999;
}

/* HERO SECTION */
.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 80px 10%;
}

.hero-left {
  flex: 1;
  min-width: 300px;
}

.hero-right {
  flex: 1;
  text-align: right;
  min-width: 250px;
}

.hero-gif {
  width: 350px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(241,230,181,0.3);
  mix-blend-mode: screen;
  transition: 0.4s ease-in-out;
}

.light-mode .hero-gif {
  mix-blend-mode: multiply;
  opacity: 0.9;
  filter: brightness(0.95);
}

.hero-gif:hover {
  transform: scale(1.03);
}

/* SOCIAL ICONS */
.hero-icons {
  margin: 15px 0;
}

.social-img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-img:hover {
  transform: scale(1.15);
  filter: brightness(1.3);
}

/* BUTTONS */
.hero-right button {
  display: block;
  width: 200px;
  margin: 10px 0 10px auto;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #3FA0C2, #f6e6b5);
  color: #0b0c10;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.hero-right button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(246,230,181,0.4);
}

/* CARDS & GRIDS (unchanged, responsive) */
.cert-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.cert-card,
.skill-card,
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 20px;
  transition: 0.3s;
}

.card {
  border-left: 5px solid #3FA0C2;
}

.cert-card:hover,
.skill-card:hover,
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(63,160,194,0.4);
}

/* CONTACT FORM */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: auto;
}

#contact-form input,
#contact-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: 1.5px solid #3FA0C2;
  background-color: transparent;
  color: inherit;
}

#contact-form button {
  padding: 12px;
  background: linear-gradient(135deg, #3FA0C2, #f6e6b5);
  border: none;
  border-radius: 6px;
  color: #0b0c10;
  font-weight: bold;
  cursor: pointer;
}

#contact-form button:hover {
  box-shadow: 0 0 15px rgba(246,230,181,0.4);
}

/* REACH OUT SECTION */
#reach {
  text-align: center;
  background: rgba(255,255,255,0.03);
  padding: 80px 10%;
}

.reach-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.reach-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid #3FA0C2;
  box-shadow: 0 0 20px rgba(241,230,181,0.3);
}

footer {
  text-align: center;
  padding: 25px;
  background: #1f2833;
  color: #c5c6c7;
}

/* LIGHT MODE FIXES */
.light-mode {
  background-color: #f5f5f5;
  color: #0b0c10;
}

.light-mode .cert-card,
.light-mode .skill-card,
.light-mode .card {
  background: #fff;
  border: 1px solid #ccc;
  color: #0b0c10;
}

.light-mode .cert-card h4,
.light-mode .skill-card h4 {
  color: #0b0c10;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .hero-right button {
    margin: 10px auto;
  }

  .hero-gif {
    width: 80%;
    max-width: 300px;
  }

  .reach-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 5%;
  }

  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 0.95rem;
  }

  .hero-gif {
    width: 90%;
  }
}
