* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #000;
  color: white;
  overflow-x: hidden;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ===== NAVBAR ===== */

.nav-bar {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.name p {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.name span {
  color: #00eaff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  justify-content: flex-end;
}

.nav-links li a {
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  padding: 6px;
  border-radius: 8px;
  position: relative;
  transition: 0.3s ease;
  display: inline-block;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #00eaff;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  transition: width 0.3s;
}

.nav-links li a:hover::after {
  width: 70%;
}

.nav-links li a:hover {
  color: #00eaff;
}

.btn {
  padding: 8px 14px;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.5);
}

.btn:active {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #fff;
  z-index: 1100;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 240px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    padding-top: 40px;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.4s;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .name p {
    font-size: 18px;
  }

  .home {
    flex-direction: column;
    text-align: center;
  }

  .home-content {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(100vh - 120px);
  padding: 0 10%;
  position: relative;
  z-index: 2;
  
}

.home-content {
  max-width: 50%;
}

.home-content h1 {
  font-size: 38px;
  margin-bottom: 25px;
}
.typing-container {
  display: flex;
  align-items: center;
  font-size: 32px;
  margin-left: 45px;
  font-weight: bold;
}

.fixed-text {
  color: #fff;
  margin-right: 10px;
}

.typing {
  font-size: 26px;
  font-weight: bold;
  color: #00eaff;
  border-right: 2px solid #00eaff;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  padding-right: 5px;
}

.buttons {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-btn {
  padding: 12px 20px;
  /* border: 2px solid #fff; */
  background: #00eaff;
  /* color: #fff; */
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: left 0.4s ease;
  z-index: -1;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover {
  background: #00d9e9;
  color: #000;
  border-color: #00eaff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 234, 255, 0.5);
}

.social-icons {
  display: flex;
  gap: 18px;
}

.social-icons a {
  color: #fff;
  font-size: 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-block;
}

.fa-github:hover {
  color: #b9b9b9;
  transform: scale(1.6) rotate(8deg);
}

.fa-linkedin:hover {
  color: #00eaff;
  transform: scale(1.6) rotate(-8deg);
}

.fa-envelope:hover{
  color: #6B7280;
  transform: scale(1.6) rotate(8deg);
}

.fa-instagram:hover{
  color: #E4405F;
  transform: scale(1.8) rotate(-8deg);
}

.image img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 2px solid #00eaff;
  box-shadow: 0 0 25px rgba(0, 234, 255, 0.7);
  transition: all 0.5s ease;
}

.image img:hover {
  border-color: #00ffd5;
  box-shadow: 0 0 40px rgba(0, 234, 255, 1), 0 0 60px rgba(0, 255, 213, 0.6);
  transform: scale(1.08) rotate(2deg);
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  color: #00eaff;
  cursor: pointer;
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -12px); }
  60% { transform: translate(-50%, -6px); }
}

.about {
  /* min-height: 100vh; */
  padding: 60px 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: #000; */
  color: #fff;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
}

.about-image img {
  width: 380px;
  height: 380px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 0 25px rgba(0, 234, 255, 0.7);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-image img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 0 40px rgba(0, 234, 255, 1), 0 0 60px rgba(0, 255, 213, 0.5);
}

.about-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.7;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #00eaff;
  position: relative;
  animation: slideInLeft 0.8s ease-out;
}

.about-text h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #00eaff;
  display: block;
  margin-top: 6px;
  border-radius: 5px;
}

.about-text p {
  color: #ddd;
}

.about-text .highlight {
  color: #00eaff;
  font-weight: 600;
}


/* Coding Profiles Section */
.coding-profiles-section {
  margin-top: -120px;
  /* padding-bottom: 80px; */
  text-align: center;
  color: white;
}

/* Heading */
.coding-heading {
  font-size: 32px;
  margin-bottom: 40px;
  text-transform: lowercase;
  color: #ffffff;
}

.coding-heading::after {
  content: "";
  width: 160px;
  height: 3px;
  background: #00eaff;
  display: block;
  margin: 10px auto 0;
  border-radius: 6px;
}

/* Cards container */
.coding-profiles {
  display: flex;
  justify-content: center;
  gap: 35px;
  flex-wrap: wrap;
}

/* Card */
.coding-card {
  width: 140px;
  height: 100px;
  /* border: 2px solid white; */
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  text-decoration: none;
  color: white;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

/* Image */
.coding-card img {
  width: 52px;
  height: 82px;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.coding-card:hover img {
  transform: scale(1.25) rotate(5deg);
  filter: drop-shadow(0 0 12px rgba(0, 234, 255, 0.8));
}

/* Scroll arrow */
.scroll-down-about {
  display: inline-block;
  margin-top: 50px;
  font-size: 28px;
  color: #00eaff;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Responsive */
@media (max-width: 768px) {
  .coding-card {
    width: 150px;
    height: 100px;
    font-size: 15px;
  }

  .coding-card img {
    width: 36px;
    height: 36px;
  }
}


/* Resume Button */
.resume-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 25px;
  color: #fff;
  border: 1px solid whitesmoke;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.resume-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #00eaff;
  transition: left 0.4s ease;
  z-index: -1;
}

.resume-btn:hover::before {
  left: 100%;
}

.resume-btn:hover {
  /* background: #00eaff; */
  color: aqua;
  transform: scale(1.08) translateY(-3px);
  border-color: aqua;
  box-shadow: 0 8px 25px rgba(0, 198, 255, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-image img {
    margin-bottom: 25px;
    width: 300px;
    height: 300px;
  }
}

.skills {
  text-align: center;
  padding: 60px 20px;
}

.skills h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #fff; 
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: auto;
}

.skill-card {
  backdrop-filter: blur(-20px);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1); 
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 234, 255, 0.1);
  transition: left 0.4s ease;
  z-index: -1;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: all 0.4s ease;
}

.skill-card:hover img {
  transform: translateY(-8px) rotate(10deg);
  filter: drop-shadow(0 0 12px rgba(0, 234, 255, 0.8));
}

.skill-card p {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
}

.skill-card:hover p {
  color: #00eaff;
}

.skill-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.6), inset 0 0 20px rgba(0, 234, 255, 0.15);
}

.projects h2{
  text-align: center;
  padding: 60px 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
  transition: all 0.4s ease;
  text-align: left;
  position: relative;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.12) rotate(1deg);
  filter: brightness(1.1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  color: #fff;
  margin-bottom: 10px;
}

.project-info p {
  color: #bbb;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.tech-stack span {
  display: inline-block;
  margin: 3px;
  padding: 5px 10px;
  font-size: 0.8rem;
  background: rgba(100, 127, 188, 0.15);
  color: #1C6EA4;
  border: 1px solid #1C6EA4;
  border-radius: 12px;
}

.project-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: #1C6EA4;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.project-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #00eaff;
  transition: left 0.3s ease;
  z-index: -1;
}

.project-btn:hover::before {
  left: 100%;
}

.project-btn:hover {
  background: #0f4a75;
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 5px 15px rgba(28, 110, 164, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}


.projects {
  position: relative; 
  min-height: 100vh; 
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

.contact-section {
  padding: 80px 20px;
  background: transparent;
  text-align: center;
}

.contact-section .container {
  max-width: 600px;
  margin: auto;
  background: rgba(255, 255, 255, 0.05); /* light dark card */
  padding: 40px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(100, 127, 188, 0.3);
}

.contact-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(100, 127, 188, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08); /* <-- light dark inside */
  color: #fff;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #647FBC;
  box-shadow: 0 0 20px #647FBC, inset 0 0 10px rgba(100, 127, 188, 0.2);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.contact-form .btn {
  padding: 12px 25px;
  border: none;
  background: linear-gradient(135deg, #647FBC, #1C6EA4);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 15px rgba(100, 127, 188, 0.6);
  position: relative;
  overflow: hidden;
}

.contact-form .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.contact-form .btn:hover::before {
  width: 300px;
  height: 300px;
}

.contact-form .btn:hover {
  background: linear-gradient(135deg, #1C6EA4, #647FBC);
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 30px #1C6EA4, 0 0 30px rgba(100, 127, 188, 0.8);
}


.footer {
  text-align: center;
  padding: 15px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  margin: 0;
}

/* Mobile respon */
@media (max-width: 768px) {
  /* Navbar */
  .nav-bar {
    height: 60px; 
    padding: 0 5%;
  }

  .name p {
    font-size: clamp(14px, 4vw, 16px); 
  }

  .nav-links {
    width: 80%; /* Responsive width */
    max-width: 300px;
    gap: 20px;
    padding-top: 20px;
    transition: right 0.4s ease-in-out; 
  }

  .nav-links li a {
    font-size: clamp(14px, 3vw, 16px);
  }

  .menu-toggle {
    font-size: clamp(20px, 5vw, 24px);
  }

  .home {
    padding: 20px 5%;
    min-height: calc(100vh - 60px);
  }

  .home-content {
    max-width: 100%;
    text-align: center;
  }

  .home-content h1 {
    font-size: clamp(24px, 6vw, 28px);
    margin-bottom: 15px;
  }

  .typing-container {
    font-size: clamp(18px, 5vw, 22px);
  }

  .typing {
    font-size: clamp(18px, 5vw, 22px);
  }

  .buttons {
    flex-direction: column; 
    align-items: center;
    gap: 10px;
  }

  .contact-btn {
    font-size: clamp(14px, 3vw, 16px);
    padding: 8px 16px;
  }

  .social-icons a {
    font-size: clamp(20px, 5vw, 24px);
  }

  .image img {
    margin-top: -20px;
    width: clamp(150px, 50vw, 250px);
    height: clamp(150px, 50vw, 250px);
  }

  .scroll-down {
    font-size: clamp(24px, 6vw, 28px);
  }

  /* About Section */
  .about {
    padding: 40px 5%;
  }

  .about-container {
    gap: 20px;
  }

  .about-image img {
    width: clamp(150px, 50vw, 250px);
    height: clamp(150px, 50vw, 250px);
    margin-bottom: 20px;
  }

  .about-text {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.6;
  }

  .about-text h2 {
    font-size: clamp(22px, 5vw, 26px);
  }

  .resume-btn {
    font-size: clamp(14px, 3vw, 16px);
    padding: 10px 20px;
    margin: 10px 5px;
  }

  /* Skills Section */
  .skills {
    padding: 40px 5%;
    min-height: auto; 
  }

  .skills h2 {
    font-size: clamp(22px, 5vw, 26px);
    margin-bottom: 20px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Flexible grid */
    gap: 15px;
  }

  .skill-card {
    padding: 15px;
  }

  .skill-card img {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
  }

  .skill-card p {
    font-size: clamp(12px, 3vw, 14px);
  }

  /* Projects Section */
  .projects {
    padding: 40px 5%;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
  }

  .project-card img {
    height: 150px; 
  }

  .project-info h3 {
    font-size: clamp(18px, 4vw, 20px);
  }

  .project-info p {
    font-size: clamp(12px, 3vw, 14px);
  }

  .tech-stack span {
    font-size: clamp(10px, 2.5vw, 12px);
  }

  .project-btn {
    font-size: clamp(12px, 3vw, 14px);
    padding: 8px 12px;
  }

  /* Contact Section */
  .contact-section {
    padding: 40px 5%;
  }

  .contact-section .container {
    padding: 20px;
  }

  .contact-section h2 {
    font-size: clamp(22px, 5vw, 26px);
  }

  .contact-form input,
  .contact-form textarea {
    font-size: clamp(12px, 3vw, 14px);
    padding: 10px;
  }

  .contact-form .btn {
    font-size: clamp(14px, 3vw, 16px);
    padding: 10px 20px;
  }

  .footer {
    font-size: clamp(12px, 2.5vw, 14px);
    padding: 10px;
  }
}
@media (max-width: 480px) {
  .nav-bar {
    
    height: 50px;
  }

  .nav-links {
    width: 90%;
    max-width: 250px;
  }

  .home-content h1 {
    font-size: clamp(20px, 6vw, 24px);
  }

  .typing-container {
    font-size: clamp(16px, 5vw, 18px);
  }

  .typing {
    font-size: clamp(16px, 5vw, 18px);
  }

  .image img {
    width: clamp(120px, 40vw, 200px);
    height: clamp(120px, 40vw, 200px);
  }

  .about-image img {
    width: clamp(120px, 40vw, 200px);
    height: clamp(120px, 40vw, 200px);
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }

  .skill-card img {
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
  }

  .project-card img {
    height: 120px;
  }

  .contact-section .container {
    padding: 15px;
  }
}

@media (max-width: 1200px) {
  .home {
    padding: 0 5%;
  }

  .home-content {
    max-width: 100%;
  }

  .image img {
    width: clamp(300px, 40vw, 350px);
    height: clamp(300px, 40vw, 350px);
  }

  .about-container {
    gap: 30px;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-bar {
    padding: 0 20px;
  }

  .home {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .home-content {
    animation: fadeSlideDown 0.8s ease-out 0.2s forwards;
    opacity: 0;
  }

  .image {
    animation: fadeSlideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
  }

  .coding-profiles {
    gap: 20px;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    animation: fadeInUp 0.6s ease-out;
  }
}

@media (max-width: 600px) {
  .nav-bar {
    height: 50px;
    padding: 0 10px;
  }

  .name p {
    font-size: 14px;
  }

  .home-content h1 {
    font-size: 22px;
  }

  .typing {
    font-size: 16px;
  }

  .about-text h2 {
    font-size: 24px;
  }

  .skills h2 {
    font-size: 24px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .skill-card {
    padding: 12px;
  }

  .coding-profiles {
    flex-wrap: wrap;
    gap: 15px;
  }

  .coding-card {
    width: 120px;
    height: 90px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
    padding: 10px;
  }

  .contact-section .container {
    padding: 15px;
    margin: 10px auto;
  }
}

.home-content h1 {
  animation: fadeSlideDown 1.2s ease-out forwards;
  opacity: 0;
}

.typing-container {
  animation: fadeSlideUp 1.5s ease-out 0.5s forwards;
  opacity: 0;
}

.buttons {
  animation: fadeScale 1.5s ease-out 1s forwards;
  opacity: 0;
}

/* Floating profile image */
.image img {
  animation: floatImage 4s ease-in-out infinite;
}

.scroll-down {
  animation: bounce 1.5s infinite, glowPulse 2.5s infinite;
}

@keyframes fadeSlideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 10px #00eaff, 0 0 20px #00eaff;
  }
  50% {
    text-shadow: 0 0 20px #00eaff, 0 0 40px #00eaff;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 234, 255, 0.8);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleUpOnScroll {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealText {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.theme-toggle {
  cursor: pointer;
  font-size: 20px;
  color: whitesmoke;
  margin-left: 1px;
}

body.light {
  background: #f9f9f9;
  color: #222;
}

body.dark {
  background: #0a0a0a;
  color: #eee;
}

.home-link{
  text-decoration: none;
}

.scroll-zoom {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-zoom.visible {
  opacity: 1;
  transform: scale(1);
}

.scroll-fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.scroll-fade-in.visible {
  opacity: 1;
}

.scroll-slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-slide-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-rotate {
  opacity: 0;
  transform: rotate(-10deg) scale(0.9);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-rotate.visible {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.scroll-bounce {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-bounce.visible {
  opacity: 1;
  transform: translateY(0);
  animation: elasticBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes elasticBounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Bidirectional Scroll Animations */

/* Bidirectional Fade - Elements fade based on scroll position */
.bidirectional-fade {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Bidirectional Slide - Elements slide left/right based on scroll direction */
.bidirectional-slide {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bidirectional-slide.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Bidirectional Scale - Elements grow/shrink as you scroll */
.bidirectional-scale {
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bidirectional-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Bidirectional Rotate - Elements spin continuously as you scroll */
.bidirectional-rotate {
  opacity: 0;
  transform: rotate(0deg) scale(0.8);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bidirectional-rotate.visible {
  opacity: 1;
  transform: rotate(360deg) scale(1);
}

/* Bidirectional Vertical Slide - Elements move up/down with scroll */
.bidirectional-slide-vertical {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bidirectional-slide-vertical.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Counter - Numbers that count up/down with scroll */
.scroll-counter {
  font-weight: 800;
  font-size: 2rem;
  color: #00eaff;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
  transition: all 0.3s ease;
}

.scroll-counter:hover {
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(0, 234, 255, 1);
}

/* Scroll Progress Element */
[data-scroll-progress] {
  transition: all 0.2s ease;
}

/* Top to Bottom Animation */
.animate-top-to-bottom {
  opacity: 0;
  transform: translateY(-40px);
  animation: slideDownEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideDownEnter {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bottom to Top Animation */
.animate-bottom-to-top {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideUpEnter {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered continuous animations */
.continuous-scroll-animation {
  background: linear-gradient(45deg, #00eaff, #00d9e9, #00eaff);
  background-size: 200% 200%;
  animation: scrollGradient 6s ease infinite;
}

@keyframes scrollGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Enhanced scroll animations with direction awareness */
.scroll-aware {
  position: relative;
  overflow: hidden;
}

.scroll-aware::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 234, 255, 0.1);
  animation: none;
  transition: left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-aware.scrolling-down::before {
  left: 100%;
}

.scroll-aware.scrolling-up::before {
  left: -100%;
}

/* Parallax text effect */
.parallax-text {
  position: relative;
  z-index: 1;
}

.parallax-text span {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Stagger effect based on scroll */
.stagger-on-scroll > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-on-scroll > :nth-child(1) { animation-delay: 0.1s; }
.stagger-on-scroll > :nth-child(2) { animation-delay: 0.2s; }
.stagger-on-scroll > :nth-child(3) { animation-delay: 0.3s; }
.stagger-on-scroll > :nth-child(4) { animation-delay: 0.4s; }
.stagger-on-scroll > :nth-child(5) { animation-delay: 0.5s; }
.stagger-on-scroll > :nth-child(6) { animation-delay: 0.6s; }

/* Scroll-triggered backdrop blur */
.scroll-blur-in {
  backdrop-filter: blur(10px);
  transition: backdrop-filter 0.6s ease;
}

.scroll-blur-in.visible {
  backdrop-filter: blur(0px);
}

/* Advanced Scroll Animations */
.parallax {
  position: relative;
  transition: transform 0.1s ease-out;
}

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.text-reveal span {
  opacity: 0;
  animation: revealText 0.6s ease-out forwards;
}

.blur-reveal {
  transition: filter 0.3s ease, opacity 0.3s ease;
  filter: blur(15px);
  opacity: 0;
}

.blur-reveal.visible {
  filter: blur(0);
  opacity: 1;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #00eaff, #00ffd5);
  width: 0%;
  z-index: 2000;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.8);
}

/* Scroll-triggered styles */
[data-scroll-trigger] {
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-scroll-trigger].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Counter animation */
.counter {
  font-size: 2.5rem;
  font-weight: 800;
  color: #00eaff;
  transition: all 0.3s ease;
}

.counter:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(0, 234, 255, 0.8));
}

/* Gradient scroll effect */
[data-scroll-gradient] {
  border: 2px solid #00eaff;
  transition: border-color 0.2s ease;
}

/* Smooth reveal text */
.reveal-text {
  position: relative;
  overflow: hidden;
}

.reveal-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 234, 255, 0.2);
  animation: shimmer 2s infinite;
}

/* Wave animation */
@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.wave {
  display: inline-block;
  animation: wave 1s ease-in-out infinite;
}

.wave:nth-child(1) { animation-delay: 0s; }
.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }
.wave:nth-child(4) { animation-delay: 0.3s; }
.wave:nth-child(5) { animation-delay: 0.4s; }

/* Floating animation */
@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

/* Slide in animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Typewriter effect */
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.typewriter {
  overflow: hidden;
  border-right: 2px solid #00eaff;
  white-space: nowrap;
  animation: typewriter 3s steps(40, end);
}

/* Fade in stages */
@keyframes fadeInStage1 { from { opacity: 0; } to { opacity: 1; } }

.fade-stage-1 { animation: fadeInStage1 0.6s ease-out; }
.fade-stage-2 { animation: fadeInStage1 0.8s ease-out 0.2s forwards; opacity: 0; }
.fade-stage-3 { animation: fadeInStage1 1s ease-out 0.4s forwards; opacity: 0; }

/* Neon glow on scroll */
@keyframes neonGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.5), 0 0 20px rgba(0, 234, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 234, 255, 0.8), 0 0 40px rgba(0, 234, 255, 0.6);
  }
}

.neon-text {
  animation: neonGlow 2s ease-in-out infinite;
}

/* Underline animation on scroll */
.underline-reveal {
  position: relative;
  padding-bottom: 5px;
}

.underline-reveal::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #00eaff;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.underline-reveal.visible::after {
  width: 100%;
}



/* ===============================
   FIX CODING PROFILES RESPONSIVE
   =============================== */

@media (max-width: 480px) {

  .coding-profiles-section {
    padding: 40px 10px;
  }

  .coding-heading {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .coding-profiles {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    justify-items: center;
    align-items: center;
  }

  .coding-card {
    width: 130px;
    height: 110px;
    padding: 10px;
    border-radius: 14px;
  }

  .coding-card img {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }

  .coding-card span {
    font-size: 14px;
    margin-top: 6px;
  }
}

/* Rotate in animation */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.rotate-in {
  animation: rotateIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Fade and scale animation */
@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-scale {
  animation: fadeScale 0.6s ease-out;
}




/* ===============================
   FINAL RESPONSIVE ENHANCEMENTS
   (ADD ONLY — DO NOT MODIFY EXISTING)
================================ */

/* Prevent horizontal overflow globally */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Ultra small phones (320px–380px) */
@media (max-width: 380px) {
  .home-content h1 {
    font-size: 20px;
  }

  .typing,
  .typing-container {
    font-size: 15px;
  }

  .image img {
    width: 140px;
    height: 140px;
  }

  .coding-card {
    width: 110px;
    height: 90px;
  }

  .skill-card {
    padding: 10px;
  }

  .project-card img {
    height: 110px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .home {
    gap: 20px;
  }

  .buttons {
    width: 100%;
  }

  .buttons a,
  .contact-btn {
    width: 100%;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-text p {
    font-size: 14px;
  }
}


/* ===============================
   FIX CODING PROFILES RESPONSIVE
   =============================== */

@media (max-width: 480px) {

  .coding-profiles-section {
    padding: 40px 10px;
  }

  .coding-heading {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .coding-profiles {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    justify-items: center;
    align-items: center;
  }

  .coding-card {
    width: 130px;
    height: 110px;
    padding: 10px;
    border-radius: 14px;
  }

  .coding-card img {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }

  .coding-card span {
    font-size: 14px;
    margin-top: 6px;
  }
}

/* Tablets portrait */
@media (max-width: 768px) {
  .nav-bar {
    padding: 0 12px;
  }

  .home {
    height: auto;
    padding-top: 80px;
  }

  .home-content {
    width: 100%;
  }

  .about-container {
    align-items: center;
  }

  .coding-profiles {
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-section .container {
    max-width: 95%;
  }
}

/* Tablets landscape & small laptops */
@media (max-width: 1024px) {
  .home {
    padding: 60px 6%;
  }

  .image img {
    width: 300px;
    height: 300px;
  }

  .about-image img {
    width: 280px;
    height: 280px;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large desktop safety */
@media (min-width: 1400px) {
  .home {
    max-width: 1400px;
    margin: auto;
  }

  .about-container,
  .skills,
  .projects,
  .contact-section {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Fix long words / overflow */
p, h1, h2, h3, h4, span, a {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ensure images never overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Safer grid behavior */
.skills-grid,
.projects-grid,
.coding-profiles {
  width: 100%;
  box-sizing: border-box;
}

/* Improve tap targets on mobile */
button,
a {
  min-height: 42px;
}

/* Mobile smooth scrolling spacing */
section {
  scroll-margin-top: 80px;
}




/* === FORCE SOCIAL ICONS IN ONE ROW (MOBILE FIX) === */
@media (max-width: 600px) {
  .social-icons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    margin-top: 15px;
  }

  .social-icons a {
    font-size: 22px;
  }
}


/* =====================================================
   FINAL MOBILE FIX — ABOUT + CODING PROFILES
   (SAFE OVERRIDE — DO NOT REMOVE OTHER CODE)
===================================================== */

/* Prevent overlap & overflow */
html, body {
  overflow-x: hidden;
}

/* ---------- ABOUT SECTION FIX ---------- */
@media (max-width: 768px) {
  .about {
    padding: 40px 16px !important;
    min-height: auto !important;
  }

  .about-container {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
  }

  .about-image img {
    width: 220px !important;
    height: 220px !important;
    margin: 0 auto !important;
  }

  .about-text {
    text-align: center !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .about-text h2 {
    font-size: 24px !important;
    margin-bottom: 12px !important;
  }
}

/* Remove negative spacing that breaks layout */
.coding-profiles-section {
  margin-top: 0 !important;
  /* padding-top: 40px !important; */
  position: relative;
  overflow: hidden;
}

/* ---------- CODING PROFILES FIX ---------- */
@media (max-width: 600px) {
  .coding-profiles {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    max-width: 320px;
    margin: 0 auto;
    justify-items: center;
  }

  .coding-card {
    width: 130px !important;
    height: 110px !important;
    padding: 10px !important;
    border-radius: 14px;
    text-align: center;
  }

  .coding-card img {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain;
  }

  .coding-card span {
    font-size: 13px !important;
    margin-top: 6px;
  }
}

/* Extra-small phones */
@media (max-width: 360px) {
  .coding-card {
    width: 115px !important;
    height: 100px !important;
  }

  .coding-card img {
    width: 36px !important;
    height: 36px !important;
  }

  .coding-card span {
    font-size: 12px !important;
  }
}

/* Safety: prevent section overlap */
section {
  clear: both;
}


/* ================================
   CLEAN RESPONSIVE NAVBAR (FINAL)
================================ */

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

/* Logo */
.name p {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.name span {
  color: #00eaff;
}

/* Desktop menu */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  padding: 6px 4px;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #00eaff;
  transform: translateX(-50%);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 70%;
}

.nav-links a:hover {
  color: #00eaff;
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: white;
  z-index: 1100;
}

/* ================= MOBILE MENU ================= */
@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);

    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding-top: 40px;

    transition: right 0.35s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    font-size: 18px;
    padding: 12px 0;
    display: block;
  }
}

/* Prevent body scroll when menu open */
body.menu-open {
  overflow: hidden;
}
