/* ===========================
   Global Styles
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0a;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===========================
   Video Background
=========================== */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.25;
}

/* Canvas background (stars/particles) */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ===========================
   Header / Navigation
=========================== */
header {
  position: absolute;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 15px 0;
}

nav ul li {
  margin: 0 18px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

nav ul li a:hover {
  color: #ff5050;
  text-shadow: 0 0 10px rgba(255, 80, 80, 0.6);
}

/* ===========================
   Hero Section
=========================== */
.hero-image-and-icons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 120px;
  text-align: center;
  position: relative;
}

.photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff5050;
  box-shadow: 0 0 25px rgba(255, 80, 80, 0.4);
}

.home-content {
  max-width: 700px;
  margin-top: 25px;
}

.home-content h1 {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 10px;
}

.home-content p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.hire-me-button {
  display: inline-block;
  background: #ff5050;
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hire-me-button:hover {
  background: #fff;
  color: #ff5050;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 80, 80, 0.4);
}

/* ===========================
   Social Icons
=========================== */
.icons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.icons a {
  color: #fff;
  font-size: 22px;
  transition: all 0.3s ease;
}

.icons a:hover {
  color: #ff5050;
  transform: scale(1.2);
}

/* ===========================
   About Section
=========================== */
#about {
  padding: 100px 10%;
  text-align: center;
}

#about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

#about p {
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* ===========================
   Services Section
=========================== */
#services {
  padding: 80px 10%;
  text-align: center;
}

#services h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255, 80, 80, 0.3);
}

@media (min-width: 768px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   Portfolio Section
=========================== */
#portfolio {
  padding: 80px 10%;
  text-align: center;
}

#portfolio h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(255, 80, 80, 0.3);
}

.project-card h3 {
  color: #ff5050;
  margin-bottom: 10px;
}

.project-card p {
  color: #ddd;
  margin-bottom: 15px;
}

.view-btn {
  display: inline-block;
  color: #fff;
  background: #ff5050;
  padding: 8px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-btn:hover {
  background: #fff;
  color: #ff5050;
}

@media (min-width: 768px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   Testimonials Section
=========================== */
#testimonials {
  position: relative;
  padding: 100px 50px;
  background: transparent;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #ff5050;
  text-shadow: 0 0 10px rgba(0,191,255,0.4);
}

.testimonial-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testimonial-slider {
  overflow: hidden;
  width: 80%;
  max-width: 800px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  min-width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(255, 80, 80, 0.3);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.03);
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff5050;
  margin-bottom: 15px;
}

.testimonial-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.testimonial-card .role {
  color: #ff5050;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.testimonial-card .msg {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.5;
}

/* Arrow buttons */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 191, 255, 0.1);
  color: #ff5050;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ff5050;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  z-index: 10; /* make sure it's above cards */
}
.arrow-btn:hover {
  /* background: rgba(0, 191, 255, 0.3); */
   background: rgba(255, 255, 255, 0.05);
  transform: translateY(-50%) scale(1.1);
}

.arrow-btn.left { left: 5%; }
.arrow-btn.right { right: 5%; }

@media (max-width: 768px) {
  .testimonial-slider { width: 90%; }
  .arrow-btn { font-size: 1.6rem; }
}

/* ===========================
   Certifications Section
=========================== */
#certifications {
  padding: 80px 10%;
  text-align: center;
}

#certifications h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #fff;
}

.certification-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.cert-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(255, 80, 80, 0.3);
}

.cert-card h3 {
  color: #ff5050;
  margin-bottom: 10px;
}

.cert-card p {
  color: #ddd;
  margin-bottom: 15px;
}

.cert-card .view-btn {
  display: inline-block;
  color: #fff;
  background: #ff5050;
  padding: 8px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cert-card .view-btn:hover {
  background: #fff;
  color: #ff5050;
}

@media (min-width: 768px) {
  .certification-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .certification-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===========================
   Resume Section
=========================== */
#resume {
  padding: 80px 10%;
  text-align: center;
}

#resume h2 {
  font-size: 2rem;
  margin-bottom: 25px;
}

.download-btn {
  background: #ff5050;
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: #fff;
  color: #ff5050;
}

/* ===========================
   Contact Section
=========================== */
#contact {
  padding: 80px 10%;
  text-align: center;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

input,
textarea {
  padding: 10px 15px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

button {
  background: #ff5050;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background: #fff;
  color: #ff5050;
  box-shadow: 0 0 15px rgba(255, 80, 80, 0.3);
}

/* ===========================
   Footer
=========================== */
.footer {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px 10%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer a {
  color: #ff5050;
  text-decoration: none;
}

.social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  font-size: 22px;
  color: #fff;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #ff5050;
}

.copyright {
  margin-top: 20px;
  color: #aaa;
  font-size: 0.9rem;
}

/* ===========================
   Animations
=========================== */
.click-circle {
  position: absolute;
  width: 15px;
  height: 15px;
  background: rgba(255, 80, 80, 0.6);
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  animation: ripple 0.5s linear;
}

@keyframes ripple {
  to {
    transform: scale(10);
    opacity: 0;
  }
}

/* Fade-in on scroll */
.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.fade-section.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .photo img {
    width: 130px;
    height: 130px;
  }

  .home-content h1 {
    font-size: 1.8rem;
  }

  .icons {
    display: none;
  }
}
/* ===========================
   ONE-LINE MOBILE NAV
=========================== */
@media (max-width: 768px) {

  nav ul {
    display: flex;
    justify-content: center;
    gap: 10px;        /* Smaller spacing */
    flex-wrap: nowrap; /* Force 1 line */
    overflow-x: auto;  /* Allow slide left/right */
    padding: 10px 5px;
  }

  nav ul::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
  }

  nav ul li {
    margin: 0; /* Remove big margins */
  }

  nav ul li a {
    font-size: 12px; /* Make text smaller so it fits */
    white-space: nowrap; /* Prevent text wrapping */
  }

}


