/* RESET & BASIC STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f0f0f;
  color: #fff;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.05);
  position: fixed;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.navbar .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #ffd700;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 5%;
  min-height: 100vh;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.profile-img img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffd700;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-text .role {
  font-size: 1.2rem;
  color: #ffd700;
  height: 30px;
}

.hero-text .intro {
  margin: 1rem 0;
  max-width: 500px;
}

.btn-glass {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: 2px solid #ffd700;
  color: #ffd700;
  border-radius: 8px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* SECTIONS */
section {
  padding: 3rem 5%;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ffd700;
}

/* SKILLS */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.skills-column {
  flex: 1;
  min-width: 250px;
}

.skill {
  margin-bottom: 1.5rem;
}

.skill i {
  margin-right: 0.5rem;
  color: #ffd700;
}

.skill-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 10px;
  border-radius: 5px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: #ffd700;
  border-radius: 5px;
  transition: 1s;
}

/* PROJECTS */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  transition: 0.3s;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.2);
}
/* PROJECT CARD IMAGE */
.project-card {
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: 0.3s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 15px;
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card p {
  margin-bottom: 15px;
}

/* CERTIFICATES */
.certificates-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.certificate-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: 0.3s;
}

.certificate-card:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* LIGHTBOX */
.cert-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.cert-modal-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  cursor: pointer;
  color: #ffd700;
}
/* GALLERY MODAL */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  padding: 40px;
  overflow-y: auto;
}

/* CLOSE BUTTON */
.close-gallery {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 45px;
  cursor: pointer;
}

/* IMAGE GRID */
.gallery-content {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
}

.gallery-img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  transition: 0.3s;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* CONTACT */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info, .contact-form {
  flex: 1;
  min-width: 250px;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: auto;
}

.contact-form .form-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-form input {
  flex: 1 1 45%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: 0.3s;
}

.contact-form input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: 0.3s;
}

.contact-form textarea:focus {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.contact-form button {
  align-self: flex-start;
  padding: 12px 30px;
  border-radius: 50px;
  border: 2px solid #ffd700;
  background: transparent;
  color: #ffd700;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #ffd700;
  color: #111;
  transform: scale(1.05);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.05);
}

.footer-social a {
  margin: 0 0.5rem;
  color: #ffd700;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #fff;
}

/* FADE IN */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: 1s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* MEDIA QUERIES */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 60px;
    right: 5%;
    background: rgba(0,0,0,0.9);
    padding: 1rem;
    border-radius: 8px;
  }
  .nav-links a.active-link {
  color: #ffd700;
  font-weight: bold;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 2px;
}
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
    color: #fff;
  }
  .hero-container {
    flex-direction: column;
  }
}