/* ------------------- Base Reset ------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
}

/* ------------------- Header ------------------- */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 999;
  animation: slideDown 0.8s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ------------------- Logo ------------------- */
.logo a {
  color: #00ffff;
  font-size: 1.7rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.logo span {
  color: #fff;
}

.logo a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: #00ffff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

.logo a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ------------------- Nav Links ------------------- */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #00ffff;
  transition: width 0.3s ease;
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-links a:hover {
  color: #00ffff;
}

/* ------------------- Button ------------------- */
.btn {
  padding: 8px 18px;
  border: 1px solid #00ffff;
  border-radius: 6px;
  background: transparent;
  transition: 0.3s ease;
  color: #00ffff !important;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  background: #00ffff;
  color: #000 !important;
  box-shadow: 0 0 15px #00ffff;
}

/* ------------------- Hamburger ------------------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  transition: transform 0.3s ease;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #00ffff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* ------------------- Responsive ------------------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    gap: 20px;
    animation: fadeIn 0.4s ease forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}
/* ------------------- Hero Section ------------------- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  background: linear-gradient(120deg, #050505, #0f0f0f);
  gap: 40px;
}

.hero-content {
  max-width: 600px;
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-content h1 span {
  color: #00ffff;
}

.hero-content h2 {
  font-size: 1.6rem;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 20px;
}

.hero-content h2 span {
  color: #00ffff;
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #aaa;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  
}

.btn-outline {
  padding: 8px 18px;
  border: 1px solid #00ffff;
  border-radius: 6px;
  background: transparent;
  transition: 0.3s ease;
  color: #00ffff;
  font-weight: 600;
  text-decoration: none;
}

.btn-outline:hover {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 15px #00ffff;
}

/* ------------------- Hero Image ------------------- */
.hero-image img {
  width: 350px;
  animation: float 4s ease-in-out infinite;
  border-radius: 35%;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ------------------- Responsive ------------------- */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    height: auto;
    padding: 100px 5%;
  }

  .hero-image img {
    width: 280px;
  }
}
/* ------------------- Typing Effect ------------------- */
.highlight {
  color: #00ffff;
}

.typing {
  color: #00ffff;
  border-right: 3px solid #00ffff;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* ------------------- Social Icons ------------------- */
.social-links {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.social-links a {
    color: #00ffff;
    font-size: 1.3rem;
    transition: 0.3s ease;
    text-decoration: none;


}

.social-links a:hover {
  color: #fff;
  transform: scale(1.2);
  text-shadow: 0 0 10px #00ffff;
}

/* ------------------- Scroll Down Animation ------------------- */
.scroll-down {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #aaa;
  font-size: 0.9rem;
}

.scroll-down span {
  width: 25px;
  height: 40px;
  border: 2px solid #00ffff;
  border-radius: 20px;
  position: relative;
  display: block;
}

.scroll-down span::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #00ffff;
  border-radius: 50%;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 10px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
}
/* ------------------- About Section ------------------- */
.about {
  padding: 100px 8%;
  background: #0f0f0f;
  color: #ccc;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.about-text {
  max-width: 600px;
}

.about-text h2 {
  font-size: 2.2rem;
  color: #00ffff;
  margin-bottom: 20px;
}

.about-text p {
  line-height: 1.7;
  margin-bottom: 25px;
}

.about-text h3 {
  margin-top: 20px;
  color: #fff;
  margin-bottom: 10px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid #00ffff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #00ffff;
  transition: all 0.3s ease;
}

.skills span:hover {
  background: #00ffff;
  color: #000;
  cursor: default;
}

.achievements {
  display: flex;
  gap: 25px;
  margin-top: 15px;
}

.achievements div {
  text-align: center;
}

.achievements div strong {
  font-size: 1.5rem;
  color: #00ffff;
  display: block;
}

/* ------------------- About Image ------------------- */
.about-image img {
  width: 350px;
  border-radius: 15%;
  display: flex;
  flex-flow: wrap;
  gap: 10px;
  border: 2px solid #00ffff;
  animation: float 4s ease-in-out infinite;
}

/* Reuse hero float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ------------------- Responsive ------------------- */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }

  .about-image img {
    width: 280px;
  }
}
/* ------------------- Skills + Projects ------------------- */
.skills-projects {
  padding: 100px 8%;
  background: #0a0a0a;
  color: #ccc;
}

.skills-section h2,
.projects-section h2 {
  font-size: 2.2rem;
  color: #00ffff;
  color: #00fbfb;
  margin-bottom: 30px;
  text-align: center;
}

.skill {
  margin-bottom: 20px;
}

.skill p {
  font-weight: 600;
  margin-bottom: 6px;
}

.skill-bar {
  width: 100%;
  height: 10px;
  background: rgba(0,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #00ffff;
  border-radius: 6px;
  transition: width 1s ease;
}

/* Projects */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-top: 30px;
}

.project-card {
  background: #111;
  padding: 15px;
  width: 300px;
  border-radius: 12px;
  border: 1px solid #00ffff;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0; /* for scroll animation */
  transform: translateY(30px); /* initial position */
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-card h3 {
  color: #00ffff;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 15px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #00ffff;
}

/* ------------------- Responsive ------------------- */
@media(max-width:900px){
  .projects-container{
    flex-direction: column;
    align-items: center;
  }
}
/* ------------------- Contact Section ------------------- */
.contact {
  background: #0f0f0f;
  color: #ccc;
  padding: 100px 8%;
  text-align: center;
}

.contact-container h2 {
  font-size: 2.2rem;
  color: #00ffff;
  margin-bottom: 10px;
}

.contact-container p {
  margin-bottom: 40px;
  color: #aaa;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: auto;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #00ffff;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  resize: none;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fff;
}

.contact-form button {
  width: 150px;
  margin: auto;
}

/* ------------------- Social ------------------- */
.contact-social {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.contact-social a {
  color: #00ffff;
  font-size: 1.4rem;
  transition: 0.3s ease;
}

.contact-social a:hover {
  color: #fff;
  transform: scale(1.2);
  text-shadow: 0 0 10px #00ffff;
}

/* ------------------- Footer ------------------- */
.footer {
  background: #0a0a0a;
  color: #555;
  text-align: center;
  padding: 25px 8%;
  position: relative;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #00ffff;
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: #fff;
  color: #00ffff;
}
/* Project  */
/* ------------------- Projects Section ------------------- */
.projects-section {
  padding: 100px 8%;
  background: #0f0f0f;
  color: #ccc;
  text-align: center;
}

.projects-section h2 {
  font-size: 2.2rem;
color: #00fbfb;
  margin-bottom: 30px;
}

/* Filter Buttons */
.filter-buttons {
  margin-bottom: 30px;
}

.filter-btn {
  background: transparent;
  border: 1px solid #00ffff;
  color: #00ffff;
  padding: 8px 15px;
  border-radius: 6px;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #00ffff;
  color: #000;
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #00ffff;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.project-card img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* Hover overlay */
.project-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,255,255,0.85);
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 15px;
  text-align: center;
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-card .overlay h3 {
  margin-bottom: 10px;
  color: #000;
}

.project-card .overlay p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #000;
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #00ffff;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

/* Hover scale effect */
.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ffff;
}

/* Overlay */
.project-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,255,255,0.9);
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  padding: 15px;
  text-align: center;
  border-radius: 12px;
}

.project-card:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}
.project-card .overlay {
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

