* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'poppins', Ubonto Mono;
  color: white;
}

body {
  background: linear-gradient(to bottom, #0a0a1f, #000011);
  overflow-x: hidden;
}

canvas#stars {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

/** HEADER SECTION **/

header {
  background: linear-gradient(to bottom, #0a0a1f, #000011);
  padding: 1.1rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.nav_logo {
  color: #00ffff;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}
.animated-name {
  font-size: 2rem;
  background: linear-gradient(90deg, #c92f72, #dc9736, #00ffff);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: animate 3s linear infinite;
  display: inline-block;
}

@keyframes animate {
  to {
    background-position: -200% center;
  }
}


/* Active menu item styling */

nav ul li a.active {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  position: relative;
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00ffff;
  box-shadow: 0 0 5px #00ffff;
}

.nav_link {
  color: #ccc;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.nav_link:hover {
  color: #00ffe5;
}

.nav_link.active {
  color: #00ffe5;
  font-weight: bold;
  border-bottom: 2px solid #00ffe5;
}


nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  color: #00ffff;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}

nav ul li a {
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #00ffff;
}

section {
  padding: 4rem 2rem;
  text-align: center;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00ffff;
}

section p,
li,
input,
textarea {
  font-size: 1.1rem;
}

ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cert,
.project {
  margin: 2rem auto;
  max-width: 300px;
 }

.cert img,
.project img {
  width: 100%;
  border-radius: 8px;
}

form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

button {
  padding: 0.75rem;
  background: #00ffff;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #00cccc;
}

/* Home Section */

.home-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #00ffff;
  box-shadow: 0 0 10px #00ffff;
}

.home_social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.home_social-icon {
  font-size: 2rem;
  color: white;
  transition: transform 0.3s ease, color 0.3s ease;
}

.home_social-icon:hover {
  transform: scale(1.2);
  color: #00ffff;
}

.resume-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.resume-button {
  padding: 0.6rem 1.4rem;
  background: #00ffff;
  color: black;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.resume-button:hover {
  background: #00cccc;
}


/** About Section **/

#about {
  margin-bottom: 4rem;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
  line-height: 1.8;
  font-size: 1.1rem;
  border-radius: 12px;
  background: linear-gradient(to bottom, #0a0a1f, #000011);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  background-image: url('assets/stars-bg.png'); /* optional */
  background-size: cover;
  background-position: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid #00ffff;
  box-shadow: 0 0 10px #00ffff;
}






/** Skill Section **/

#skills {
  margin-top: 4rem;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  color: #ffffff;
  line-height: 1.8;
  font-size: 1.1rem;
  border-radius: 12px;
  background: linear-gradient(to bottom, #0a0a1f, #000011);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  background-image: url('assets/stars-bg.png'); 
  background-size: cover;
  background-position: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns */
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: scale(1.1);
}

.skill-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.section-divider {
  height: 0px;
  width: 0%;
  margin: 3rem auto;
  background: linear-gradient(to right, transparent, #00ffff, transparent);
}






/* ===== Certification Section ===== */


#certificates {
  padding: 3rem 2rem;
  margin: 3rem auto;
  max-width: 1100px;
  border-radius: 20px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  background: linear-gradient(to bottom, #0a0a1f, #000011);
  box-shadow: 0 8px 32px 0 rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
}

/* Section Title */

#certificates .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #00ffff;
  position: relative;
}

#certificates .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #00ffff;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Certificates Grid */

.certificates_container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
}

/* Individual Certificate Card */

.certificate_item {
  background: linear-gradient(to bottom, #0a0a1f, #000011);
  border: 1.5px solid rgba(0, 255, 255, 0.3);
  border-radius: 16px;
  padding: 1rem;
  max-width: 240px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: white;
  cursor: default;
}

.certificate_item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

/* Certificate Image */

.certificate_item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

/* Certificate Title */

.certificate_item h3 {
  font-size: 1rem;
  margin: 0.5rem 0 0.3rem;
  color: #00ffff;
}

/* Issuer or Description */

.certificate_item p {
  font-size: 0.85rem;
  margin: 0;
  color: white;
}

/* Responsive Grid */

@media (max-width: 992px) {
  .certificates_container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .certificates_container {
    grid-template-columns: 1fr;
  }
}






/* Lightbox */

.lightbox {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 20, 0.9);
  flex-direction: row;
  perspective: 1000px;
}

.cube-container {
  transition: transform 0.5s ease-in-out;
  transform-style: preserve-3d;
}

#lightboxImage {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 20px #00ffff;
}

.close,
.nav-btn {
  position: absolute;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

.close {
  top: 20px;
  right: 30px;
}

.nav-btn.prev {
  left: 30px;
}

.nav-btn.next {
  right: 30px;
}

.cube-container {
  transition: transform 0.4s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

.lightbox {
  perspective: 1200px;
}


/* PROJECTS SECTION */

.projects.section {
  padding: 3rem 1rem;
  background: none !important;
  color: #fff;
  text-align: center;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #00ffff;
  font-family: 'Orbitron', sans-serif;
}

.projects_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  justify-content: center;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Swiper Styles */

.swiper {
  padding: 2rem 0;
}

.project_card {
  width: 300px;
  height: 425px;
  background: #0a0a1f;
  border-radius: 20px;
  padding: 20px;
  color: #fff;
  border: 1.5px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 4px 10px rgba(0, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project_card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

.project_img {
  width: 178px;
  height: 178px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #0ff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}



.project_title {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #0ff;
}

.project_desc {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.4;
  max-height: 4em;         
  overflow: hidden;
  text-overflow: ellipsis;
}

.project_tech {
  font-size: 0.8rem;
  color: #88f;
  margin: 10px 0;
}

.project_link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #0ff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.project_link:hover {
  background: #0cc;
  color: #111;
}


/* Swiper Buttons */

.swiper-button-next,
.swiper-button-prev {
  color: #00ffff;
}

.swiper-pagination-bullet {
  background: #00ffff;
}

/* Responsive */

.projects_container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* adjust if needed */
  margin: 0 auto; /* Centers the container */
  max-width: 1200px; /* Optional */
}

@media screen and (max-width: 992px) {
  .projects_container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .projects_container {
    grid-template-columns: 1fr;
    margin :150px;
  }
}

@media screen and (max-width: 768px) {
  .project_img {
    width: 178px;
    height: 178px;
    box-sizing: border-box;
  }
}




/** Contact Section **/

.contact .section-title {
  font-size: 1.8rem;
}

/* Contact content wrapper */

.contact_content {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.contact_content p {
  margin-bottom: 0.8rem;
}

/* Paragraph with introduction message */

.contact-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: white;
}

/* Email block styling */

.contact-email {
  font-size: 1.3rem;
  margin-top: 10px;
}

/* Email and SVG aligned */

.email-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.email-line svg {
  vertical-align: middle;
  color: #00aaff;
}

.email-line a {
  color: #00aaff;
  text-decoration: none;
  font-weight: bold;
}

/* Form styling */

.contact_form,
.contact_form input,
.contact_form textarea,
.contact_form button {
  font-size: 0.9rem;
}

/* Horizontal line spacing */

.contact hr {
  margin: 1.5rem 0;
}


/** FOOTER SECTION **/

.footer {
  background-color: #000011;
  padding: 20px 0;
  text-align: center;
  color: white;
}

.footer-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.social-icons {
  margin: 10px 0;
}

.social-icons a {
  margin: 0 10px;
  color: #00aaff;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}


.footer p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ccc;
}




/* Universal Section Title Style */
.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #00ffff;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Glowing Animated Underline */
.section-title::after {
   margin-bottom: 4rem;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
  line-height: 1.8;
  font-size: 1.1rem;
  border-radius: 12px;
  background: linear-gradient(to bottom, #0a0a1f, #000011);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  background-image: url('assets/stars-bg.png'); /* optional */
  background-size: cover;
  background-position: center;
}

/* Glow Animation Keyframes */
@keyframes glow-line {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
