    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    html {
      scroll-behavior: smooth;
    }

    /* Global background */
    body {
      font-family: 'Segoe UI', sans-serif;
      background: linear-gradient(to right, #ebf1f5, #9fc4ea);/* Same background everywhere */
      color: #333;
      transition: background 0.3s, color 0.3s;
      position: relative;
      overflow-x: hidden;
    }
    body.dark-mode {
      background: #111; /* Same dark background everywhere */
      color: #e0e0e0;
    }

    /* Navbar */
    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 1rem;
      background: #111;
      color: white;
      position: fixed;
      top: 0;
      width: 100%;
      height: 41px;
      z-index: 1000;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .navbar.scrolled {
      box-shadow: 0 4px 12px rgb(62, 62, 186);
      transition: box-shadow 0.9s ease;
    }
    .dark-mode .navbar.scrolled{
      box-shadow: 0 4px 12px rgb(47, 152, 194);
      transition: box-shadow 0.5s ease;
    }
    .brand {
      font-size: 1.2rem;
      font-weight: bold;
    }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }
    .nav-links a {
      text-decoration: none;
      color: white;
      font-weight: 500;
      transition: color 0.3s;
    }
    .nav-links a:hover {
      color: #00b4d9;
    }
    .toggle-mode {
      cursor: pointer;
      font-size: 1.2rem;
    }
    .menu-toggle {
      display: none;
      font-size: 1.5rem;
      cursor: pointer;
    }
    @media (max-width: 768px) {
      .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: #111;
        flex-direction: column;
        width: 200px;
        padding: 1rem;
        display: none;
      }
      .nav-links.active {
        display: flex;
      }
      .menu-toggle {
        display: block;
      }
    }

    /* Background bubbles - now fixed for whole site */
    .background-circles{
      position: fixed;
      top:0;
      left:0;
      width:100%;
      height:100%;
      z-index:0;
      overflow:hidden;
      pointer-events: none;
    }
    .background-circles li{
      position:absolute;
      list-style:none;
      width:20px;
      display: block;
      list-style: none;
      bottom: -150px;
      height:20px;
      background:rgb(124, 183, 207);   
      bottom:-150px;
      border-radius:50%;
      animation:float linear infinite; 
      box-shadow: 0 0 15px rgba(95, 90, 90, 0.4);
      transition: transform 0.3s ease-in-out;
    }
    .background-circles li:hover {
      transform: scale(1.2);
    }
    .background-circles li:nth-child(1)  { left: 25%; width: 40px; height: 40px; animation-duration: 20s; animation-delay: 0s; }
    .background-circles li:nth-child(2)  { left: 10%; animation-duration: 18s; animation-delay: 4s; }
    .background-circles li:nth-child(3)  { left: 70%; width: 60px; height: 60px; animation-duration: 25s; animation-delay: 2s; }
    .background-circles li:nth-child(4)  { left: 40%; animation-duration: 22s; animation-delay: 6s; }
    .background-circles li:nth-child(5)  { left: 65%; animation-duration: 28s; animation-delay: 1s; }
    .background-circles li:nth-child(6)  { left: 75%; width: 30px; height: 30px; animation-duration: 24s; animation-delay: 3s; }
    .background-circles li:nth-child(7)  { left: 35%; animation-duration: 21s; animation-delay: 5s; }
    .background-circles li:nth-child(8)  { left: 50%; width: 25px; height: 25px; animation-duration: 19s; animation-delay: 7s; }
    .background-circles li:nth-child(9)  { left: 20%; animation-duration: 26s; animation-delay: 2s; }
    .background-circles li:nth-child(10) { left: 85%; width: 35px; height: 35px; animation-duration: 23s; animation-delay: 4s; }




/* Extra smooth floating effect */
@keyframes float {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-25vh) translateX(-20px) scale(1.05);
    opacity: 0.75;
  }
  50% {
    transform: translateY(-55vh) translateX(20px) scale(1.1);
    opacity: 0.9;
  }
  75% {
    transform: translateY(-85vh) translateX(-15px) scale(1.05);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-120vh) translateX(0) scale(1.1);
    opacity: 0;
  }
}



    /* Sections transparent so bubbles visible */
    #home, #about {
      background: transparent;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 100px 50px 50px;
      position: relative;
      z-index: 1;
    }

    /* Home content styling */
    .text,.profile-container{position:relative;z-index:1;}

        #home.text {
            max-width: 50%;
            flex : 1;
        }

        .text h1{
          font-size: 3rem;
          color: #111;
          font-weight: bold;
        }
        .text span {
            color: #00b4d8;
            font-size: 1.8rem;
            font-weight: bold;
        }
                .text p{
          color: black;
          font-weight: 500;
        }
        /* ========= Text Slide + Fade ========= */
.text h1,
.text p,
#typing-text {
  opacity: 0;
  transform: translateY(30px);
  animation: slideFade 1s ease forwards;
}

.text h1 { animation-delay: 0.3s; }
#typing-text { animation-delay: 0.6s; }
.text p:nth-of-type(1) { animation-delay: 0.9s; }
.text p:nth-of-type(2) { animation-delay: 1.2s; }

@keyframes slideFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
    .project-box .btn {
  box-shadow: 0 0 5px #15c0e2, 0 0 15px #15c0e2 inset;
  transition: all 0.3s ease-in-out;
}

.project-box .btn:hover {
  box-shadow: 0 0 10px #15c0e2, 0 0 20px #15c0e2 inset;
}

/* NEW: Profile Container Pulse */
@keyframes pulse {
  0% {
    transform: scale(1.02);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1.02);
  }
}
.profile-container {
  animation: pulse 4s infinite ease-in-out;
}

/* ========= Social Links Bounce ========= */
.social-links a {
  opacity: 0;
  animation: bounceIn 0.6s ease-out forwards;
  display: inline-block;
  transform: scale(0.5);
  animation-fill-mode: forwards;
}

.social-links a:nth-child(1) { animation-delay: 1.5s; }
.social-links a:nth-child(2) { animation-delay: 1.7s; }
.social-links a:nth-child(3) { animation-delay: 1.9s; }
.social-links a:nth-child(4) { animation-delay: 2.1s; }

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========= Button Pop-In ========= */


    .profile-container {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  background: #00b4d8;
  animation: bgPulse 4s infinite ease-in-out; /* background pulse */
}

@keyframes bgPulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,180,216,0.7); }
  50%  { transform: scale(1.05); box-shadow: 0 0 30px 10px rgba(0,180,216,0.3); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,180,216,0.7); }
}

.profile-container img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: imgZoom 4s infinite ease-in-out; /* image zoom */
}



    .social-links {
      display: flex;
      gap: 15px;
    }
    .social-links a {
      font-size: 30px;
      color: #0077b6;
      transition: color 0.3s;
    }
    .social-links a:hover {
      color: black;
    }
    
.dark-mode #home h1{
  color: whitesmoke;
}
.dark-mode #home p{
  color: whitesmoke;
}
.project-box .btn{
  border: 2px solid black;
  color: black;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 22px;
  padding: 10px;
  height: 43px;
  width: 124px;
  border-radius: 30px;
  transition: 0.4s ease;
}

.dark-mode .project-box .btn{
  border: 2px solid white;
  color: white;
}
.project-box .btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0%;
  height: 100%;
  background: #29b3cf;
  z-index: -1;
  transition: 0.5s ease;
  box-shadow: #111;
}
.project-box .btn:hover::before {
  width: 100%;
}

.project-box .btn:hover,
.project-box .btn.active {
  color: black;
  transform: scale(1.05);
}
.project-box .btn {
  opacity: 0;
  transform: scale(0.8);
  animation: popIn 0.6s ease forwards;
}

.project-box .btn:nth-child(1) { animation-delay: 2.5s; }
.project-box .btn:nth-child(2) { animation-delay: 2.8s; }

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

 @media (max-width: 768px) {
      #home {
        flex-direction: column;
        text-align: center;
      }
      #home .text,
      .profile-container {
        max-width: 100%;
        margin: 0 auto;
      }
    }


    /* About section */
       #about {
  padding: 60px 20px;
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}
.dark-mode #about{
  background-color: transparent;
}

#about h1 {
  font-size: 2.5rem;
  color: black;
  margin-bottom: 30px;
  margin-right: -1px;
}
.dark-mode #about h1{
  color: #00b4d8;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: auto;
}

.about-container img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 5px solid #00b4d8;
  object-fit: cover;
  margin-bottom: 100px;
}

.about-details {
  max-width: 600px;
}

.about-details p {
  font-size: 1rem;
  line-height: 1.6;
  color: black;
}

#about .btn {
  position: relative;
  display: inline-block;
  margin-top: 20px;
  padding: 14px 35px;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  border-radius: 50px;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  
  background: linear-gradient(135deg, #00b4d8, #0077b6, #90e0ef, #48cae4);
  background-size: 300% 300%;
  animation: gradientMove 6s infinite alternate;

  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
  transition: all 0.4s ease;
}

/* Hover */
#about .btn:hover {
  transform: scale(1.12) translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 119, 182, 0.6);
  animation: gradientMove 3s infinite alternate, pulse 1.5s infinite;
}

/* Active (Click) */
#about .btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.5);
}

/* Gradient Animation */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pulse Glow */
@keyframes pulse {
  0%   { box-shadow: 0 0 10px rgba(0, 180, 216, 0.6); }
  50%  { box-shadow: 0 0 25px rgba(0, 180, 216, 0.9); }
  100% { box-shadow: 0 0 10px rgba(0, 180, 216, 0.6); }
}

/* Ripple Effect */
#about .btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  z-index: -1;
}

#about .btn:active::after {
  width: 300px;
  height: 300px;
  opacity: 0;
  transition: 0s;
}

 .dark-mode #about p{
      color: #dde9f2;
    }
    .dark-mode .navbar,
    .dark-mode .navbar.scrolled {
      background: black;
    }
    .dark-mode .nav-links a .navbar{
      color: white;
    }

@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    text-align: center;
  }
}
/* Section full screen */
#skills {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  color: black;
  text-align: center;
  padding: 0 8%;
}

/* Title */
#skills .main-text span {
  color: black;
  font-weight: bold;
}

#skills .main-text h2 {
  font-size: 2.5rem;
  margin: 10px 0 40px;
  color: black;
}

/* Split 50-50 layout */
.skills-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  width: 100%;
  height: 100%;
}

/* Left column (Technical) */
.technical-skills {
  flex: 1;
  max-width: 50%;
  text-align: left;
  align-self: center;
}

.technical-skills h3 {
  text-align: center;
  margin-bottom: 20px;
}

.skill {
  margin-bottom: 20px;
}

.skill label {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 5px;
  color: black;
}

.bar {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  overflow: hidden;
  height: 12px;
}

.bar .progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00b4d8, #4792bb);
  border-radius: 20px;
  transition: width 2s ease;
}
/* Floating up/down */
@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Floating left/right */
@keyframes floatX {
  0% { transform: translateX(0); }
  50% { transform: translateX(8px); }
  100% { transform: translateX(0); }
}

/* Bars float sideways */
.bar .progress.floatingX {
  animation: floatX 4s ease-in-out infinite;
}

/* Circles float up/down */
.circle-box.floatingY {
  animation: floatY 5s ease-in-out infinite;
}


/* Right column (Professional) */
.professional-skills {
  flex: 1;
  max-width: 50%;
  text-align: center;
  align-self: center;
}

.professional-skills h3 {
  margin-bottom: 20px;
}

.professional-skills .circles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.circle-box {
  position: relative;
  width: 120px;
  height: 120px;
}

.circle {
  transform: rotate(-90deg);
}

.circle .bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.1);
  stroke-width: 12;
}

.circle .progress {
  fill: none;
  stroke: #00b4d8;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 326;
  stroke-dashoffset: 326;
  transition: stroke-dashoffset 2s ease;
}

.circle-box .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.circle-box .percent {
  font-size: 20px;
  font-weight: bold;
  color: #00b4d8;
}

.circle-box small {
  color: black;
}

.dark-mode #skills h2{
        color: #00b4d9;
       }
.dark-mode .skills-content h3 {
  color: whitesmoke;
}
.dark-mode .skills-content label{
  color: whitesmoke;
}
.dark-mode .skills-content small{
  color: whitesmoke;
}
.portfolio {
  background: transparent;
  color: black;
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  text-align: center;
}
.dark-mode .portfolio{
  color: #00b4d9;
}

.portfolio .main-text span {
  font-size: 18px;
  color: #373636;
  display: block;
  margin-bottom: 8px;
  animation: fadeInDown 7s ease forwards;
  opacity: 0;
}
.dark-mode .portfolio .main-text span{
  color: #939c9c;
}
.portfolio .main-text h2 {
  font-size: 36px;
  margin-bottom: 40px;
  animation: fadeInUp 2s ease forwards;
  opacity: 0;
}

/* Filter Buttons */
.fillter-buttons {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.fillter-buttons .btn {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 30px;
  border: 2px solid black;
  color: black;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: 0.4s ease;
}
.dark-mode .fillter-buttons .btn {
  border: 2px solid #00b4d9;
  color: #00b4d9;
}

.fillter-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0%;
  height: 100%;
  background: #00b4d9;
  z-index: -1;
  transition: 0.5s ease;
}

.fillter-buttons .btn:hover::before {
  width: 100%;
}

.fillter-buttons .btn:hover,
.fillter-buttons .btn.active {
  color: black;
  transform: scale(1.05);
}

/* Grid Layout */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  perspective: 1000px;
}

/* Card Styles */
.port-box {
  background: transparent;
  width: 260px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(17, 18, 18, 0.15);
  transform: scale(0.95) translateY(40px);
  opacity: 0;
  transition: 0.7s ease-in-out;
  will-change: transform, opacity;
  animation: zoomFade 7s ease forwards;
  position: relative;
}
.port-box.show-animate {
  opacity: 1;
  transform: translateY(0);
}


.port-box:hover {
  animation: glowPulse 1.5s infinite alternate;
  transform: scale(1.02) rotateX(1deg);
  box-shadow: 0 15px 30px rgba(112, 212, 229, 0.35);
}
.port-content .project-link {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.port-box:hover .project-link {
  opacity: 1;
  visibility: visible;
}
.port-content .project-link i {
  color: #111;
  font-size: 1.5rem;
}
.dark-mode .port-content .project-link i {
  color: #00b4d9;
}


/* Tilt Hover Animation */
.port-box:hover .port-image img {
  transform: scale(1.1) rotate(1deg);
}

.port-box:hover .port-content {
  transform: translateY(-3px);
}

.port-image {
  height: 200px;
  overflow: hidden;
}

.port-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.9s ease;
  display: block;
  border-radius: 8px;
}

/* Content */
.port-content {
  padding: 15px;
  transition: 0.5s ease;
}

.port-content h3 {
  font-size: 18px;
  color: #111;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeInZoom 3s ease forwards;
}
.dark-mode .port-content h3 {
  color: #00b4d9;
}

.port-content p {
  font-size: 13px;
  color: #ccc;
  opacity: 0;
  animation: fadeInZoom 1.9s ease forwards;
}

.port-content a {
  display: inline-block;
  margin-top: 10px;
  color: #00b4d9;
  font-size: 18px;
  transition: transform 0.5s;
  opacity: 0;
  animation: fadeInZoom 2.5s ease forwards;
}

.port-content a:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Glowing Border Pulse */
@keyframes glowPulse {
  from {
    box-shadow: 0 0 10px #00eaff, 0 0 25px #00eaff33;
  }
  to {
    box-shadow: 0 0 20px #00eaff, 0 0 40px #00eaff66;
  }
}

/* Entry Animations */
@keyframes zoomFade {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: scale(0.95) translateY(0);
  }
}

@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}    

/* Contact Section */
/* Contact Section */
.contact-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden; /* for bubbles */
}

/* Dark mode background */

.contact-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 700px;
  background: transparent;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 2;
}


.left-side, .right-side {
  flex: 1;
  min-width: 300px;
  padding: 40px;
}

.left-side {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #fff;
}

.left-side h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.left-side p {
  margin-bottom: 30px;
  line-height: 1.6;
}

.left-side ul {
  list-style: none;
}

.left-side ul li {
  margin-bottom: 15px;
  font-size: 16px;
}

.left-side i {
  margin-right: 10px;
  color: #90e0ef;
}

.right-side form {
  display: flex;
  flex-direction: column;
}

/* Inputs and Textarea */
.right-side input,
.right-side textarea {
  margin-bottom: 20px;
  background: transparent;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid black;
  border-radius: 10px;
  outline: none;
  resize: none;

  /* Animation */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.dark-mode .right-side input {
  border: 1px solid #ccc;
}
.dark-mode .right-side textarea {
  border: 1px solid #ccc;
}

.right-side input:hover,
.right-side textarea:hover {
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Submit Button */
.right-side button {
  padding: 12px 24px;
  font-size: 16px;
  background-color: #00b4d8;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: 
    buttonAppear 0.8s forwards,      /* Load animation */
    buttonPulse 2s infinite ease-in-out 1s, /* Glow pulse */
    buttonColorChange 4s infinite linear 0.5s; /* Color change */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.right-side button:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 180, 216, 0.5);
}

/* Fade-in + slide-up on load */
@keyframes buttonAppear {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle pulsing glow */
@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.6);
  }
}

/* Color-changing animation */
@keyframes buttonColorChange {
  0%   { background-color: #00b4d8; }
  25%  { background-color: #0096c7; }
  50%  { background-color: #48cae4; }
  75%  { background-color: #90e0ef; }
  100% { background-color: #00b4d8; }
}


/* Success Message */
#successMsg {
  margin-top: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

/* Back to Home Button */
#backHomeBtn {
  display: none;
  margin-top: 10px;
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  background-color: #0077b6;
  color: white;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

#backHomeBtn:hover {
  transform: scale(1.05);
}

/* Visible class to trigger animation */
.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Floating bubbles */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.2);
  animation: floatBubble linear infinite;
  z-index: 1;
}

@keyframes floatBubble {
  0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
  50% { opacity: 0.7; }
  100% { transform: translateY(-50px) scale(1); opacity: 0; }
}



/* ==================== Mobile Optimization (Android & iPhone) ==================== */
@media (max-width: 480px) {

  /* Navbar */
  .navbar {
    padding: 0.5rem 1rem;
    height: 50px;
  }
  .brand {
    font-size: 1rem;
  }
  .nav-links {
    width: 100%;
    top: 50px;
  }

  /* Home */
  #home {
    flex-direction: column;
    text-align: center;
    padding: 80px 20px 40px;
  }
  .text h1 {
    font-size: 2rem;
  }
  .text span {
    font-size: 1.2rem;
  }
  .text p {
    font-size: 0.95rem;
  }
  .profile-container {
    width: 200px;
    height: 200px;
    margin-top: 20px;
  }

  /* About */
  #about {
    padding: 40px 15px;
    height: auto;
  }
  #about h1 {
    font-size: 1.8rem;
  }
  .about-container {
    flex-direction: column;
    gap: 1rem;
  }
  .about-container img {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
  }
  .about-details p {
    font-size: 0.9rem;
  }

  /* Skills */
  #skills {
    padding: 40px 10px;
    height: auto;
  }
  #skills .main-text h2 {
    font-size: 2rem;
  }
  .skills-content {
    flex-direction: column;
    gap: 30px;
  }
  .technical-skills, .professional-skills {
    max-width: 100%;
  }

  /* Portfolio */
  .portfolio .main-text h2 {
    font-size: 2rem;
  }
  .port-box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .port-image img {
    height: 150px;
  }

  /* Contact */
  .contact-box {
    flex-direction: column;
    width: 100%;
    padding: 20px;
  }
  .left-side, .right-side {
    padding: 20px;
  }
  .left-side h2 {
    font-size: 1.5rem;
  }
  .left-side p {
    font-size: 0.9rem;
  }
  .right-side input, .right-side textarea {
    font-size: 0.9rem;
  }
  .right-side button {
    width: 100%;
    padding: 12px;
  }
}
/* ==================== Mobile (Android + iPhone) ==================== */

/* Small phones (older iPhones, small Androids) */
@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem 1rem;
    height: 50px;
  }
  .brand { font-size: 1rem; }
  .nav-links { width: 100%; top: 50px; }

  #home {
    flex-direction: column;
    text-align: center;
    padding: 80px 20px 40px;
  }
  .text h1 { font-size: 1.8rem; }
  .text span { font-size: 1.1rem; }
  .text p { font-size: 0.9rem; }
  .profile-container {
    width: 180px;
    height: 180px;
    margin-top: 15px;
  }

  #about h1 { font-size: 1.6rem; }
  .about-container img {
    width: 160px;
    height: 160px;
  }
  .about-details p { font-size: 0.85rem; }

  #skills .main-text h2 { font-size: 1.8rem; }
  .skills-content { flex-direction: column; gap: 20px; }

  .portfolio .main-text h2 { font-size: 1.8rem; }
  .port-image img { height: 140px; }

  .contact-box { flex-direction: column; width: 100%; }
  .left-side, .right-side { padding: 20px; }
  .right-side input, .right-side textarea {
    font-size: 0.85rem;
  }
  .right-side button { width: 100%; }
}

/* Medium phones (modern Android, iPhone Plus/Max) */
@media (max-width: 600px) {
  .text h1 { font-size: 2rem; }
  .text span { font-size: 1.3rem; }
  .profile-container {
    width: 220px;
    height: 220px;
  }

  #about h1 { font-size: 2rem; }
  .about-container img {
    width: 200px;
    height: 200px;
  }

  #skills .main-text h2 { font-size: 2.2rem; }

  .portfolio .main-text h2 { font-size: 2.2rem; }
  .port-box { width: 100%; }

  .right-side input, .right-side textarea {
    font-size: 0.95rem;
  }
}

