/* ===== GENERAL ===== */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #000000; /* Changed to black for star background */
  color: #FFFFFF;
  line-height: 1.7;

}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #FF9A00;
}

#bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-color: transparent; /* Ensure canvas background is transparent */
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  background: rgba(0,0,0);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, border-bottom 0.3s ease;
}
.logo {
  font-weight: 700;
  color: white;
  font-size: 1.2rem;
}
.nav-right a {
  color: #fff;
  margin-left: 2rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-right a:hover { color: #FF9A00; }

/* Hamburger icon */
.hamburger {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 3rem 2rem;
}
.hero-text {
  flex: 1;
  min-width: 280px;
  text-align: center;
}
.hero-text h1 {
  margin-bottom: 0.5rem;
  font-size: 3.5rem;
  text-decoration: underline;
  text-decoration-color: #FF9A00;
  text-decoration-thickness: 3px;
  color: #FFFFFF;
}
.hero-text p { 
  margin-bottom: 1rem; 
  font-size: 1.3rem; 
  color: #FFFFFF;
}

/* Resume button */
a.button {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 1rem;
  background: linear-gradient(to right, #FFD93D, #FF9A00);
  color: #071533;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 0.5rem;
}
a.button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Contact info */
.hero-contact {
  margin-top: 1rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}
.hero-contact .contact-row {
  display: block;
  margin-bottom: 0.5rem;
}
.hero-contact .link-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-contact .link-row a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #FF9A00;
}
.hero-contact .link-row a:hover {
  text-decoration: underline;
}
.contact-icon-small {
  width: 20px;
  height: 20px;
  margin-right: 0.3rem;
}

/* Hero image */
.hero-image { 
  flex: 1; 
  min-width: 280px; 
  text-align: center; 
  margin-top: 2rem;
}

.hero-image img {
  width: 300px;  
  height: 300px;  
  border-radius: 50%; 
  border: 4px solid #FF9A00; 
  object-fit: cover;
  transition: transform 0.3s ease;
}
.hero-image img:hover { 
  transform: scale(1.05); 
}

/* ===== SECTIONS ===== */
.section-center { 
  max-width: 1000px; 
  margin: auto; 
  padding: 4rem 2rem; 
  text-align: center; 
}
.grid { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 1rem; 
  justify-content: flex-start; 
}
.card {
  background: #A9A9A933;
  padding: 1rem;
  border-radius: 1rem;
  flex: 1 1 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { 
  transform: translateY(-5px) scale(1.02); 
  box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
}

/* CERTIFICATES */
.cert-card .cert-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cert-card .cert-title {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #FFFFFF;
  transition: color 0.3s;
}
.cert-card .cert-title:hover {
  color: #FF9A00;
  text-decoration: underline;
}
.cert-card .cert-bottom {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #FFFFFF;
}
.cert-logo {
  width: 60px;
  height: auto;
  border-radius: 0.3rem;
}

/* FORM */
form input, form textarea { 
  width: 100%; 
  padding: 0.8rem; 
  margin-top: 0.3rem; 
  border: 1px solid #FF9A00; 
  border-radius: 0.5rem; 
  background: #fff3; 
  color: #FFFFFF; 
}
form button { 
  margin-top: 1rem; 
  padding: 0.8rem 1.5rem; 
  border: none; 
  border-radius: 0.7rem; 
  background: linear-gradient(to right, #FFD93D, #FF9A00); 
  color: #071533; 
  font-weight: 600; 
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
form button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
  color: white;
  background-color: black;
}

/* ===== RESPONSIVE ===== */
@media(max-width: 768px) {
  body {
    font-size: 1rem;
  }
  header {
    padding: 0.8rem 1rem;
  }
  .logo {
    font-size: 1.1rem;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .hero-text p {
    font-size: 1.1rem;
  }
  .hero-image img {
    width: 250px;
    height: 250px;
  }
  .section-center {
    padding: 2rem 1rem;
  }
  .grid {
    justify-content: center;
  }
  .card {
    flex: 1 1 100%; /* Make cards take full width on small screens */
  }
  .cert-card .cert-top {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Hamburger menu active on small screens */
  .nav-right {
    display: none;              
    flex-direction: column;     
    background: black;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }
  .nav-right a {
    margin: 1rem 0;
    display: block;
  }
  .nav-right.show {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}
