* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      scroll-behavior:smooth;
      scrollbar-width: none;
    }

    body {
      
      font-family:Arial, Helvetica, sans-serif;
      background: #111;
      color: white;
      overflow-x: hidden;
    }

    /* Navbar */
    nav {
      background: #141414;
      color: white;
      padding: 1.2%;
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      position: relative;
    }

    .logo {
      font-size: 2.5em;
      font-weight: bold;
    }

    /* Links */
    .nav-links {
      display: flex;
      list-style: none;
      gap: 40px;
      text-align: center;
    }

    .nav-links li {
      list-style: none;
    }

    .nav-links a {
      color: white;
      text-decoration: none;
      transition: 0.2s;
      font-size: 1.3em;
      text-align: center;
      margin-top: 2px;
    }

    .nav-links a:hover {
      color: #00bfff;
      font-weight: 600;
    }

    /* Hamburger */
    .hamburger {
      display: none;
      flex-direction: column;
      cursor: pointer;
    }

    .hamburger span {
      background: white;
      height: 3px;
      width: 25px;
      margin: 4px 0;
      border-radius: 2px;
    }

    /* Mobile view */
    /* @media (max-width: 768px) {
      .nav-links {
        position: absolute;
        top: 60px;
        right: -100%;
        background: #333;
        flex-direction: column;
        width: 200px;
        padding: 20px;
        transition: right 0.3s ease-in-out;
      }

      .nav-links.active {
        right: 0;
      }

      .hamburger {
        display: flex;
      }
    } */

    /* Home Section */
    .home {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 50px 10%;
      min-height: 90vh;
    }

    .home-left {
      flex: 1;
      
    }

    .home-left h1 {
      font-size: 3.6em;
      margin-bottom: 10px;
    }

    .typing {
      font-size: 1.5em;
      color: #00bcd4 ;
      border-right: 2px solid #00bcd4;
      white-space: nowrap;
      overflow: hidden;
      width: 0ch;
      animation: typing 4s steps(40, end) forwards,
                 blink 0.7s step-end infinite alternate;
    }

    @keyframes typing {
      from { width: 0ch; }
      to { width: 33.5ch; } /* number of characters in text */
    }

    @keyframes blink {
      50% { border-color: transparent; }
    }

    .resume-btn {
      margin-top: 4%;
      padding: 3%;
      font-weight: 700;
      font-size: 1em;
      background: #00bcd4;
      border: none;
      border-radius: 5px;
      color: white;
      cursor: pointer;
      transition: 0.3s;
    }

    .resume-btn:hover {
      background: #0097a7;
    }

    .home-right {
      flex: 1;
      display: flex;
      justify-content: center;
    }

    .home-right img {
      width: 650px;
      border-radius: 15px;
      animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-15px); }
    }

    /* Sparkles */
    .sparkle {
      position: absolute;
      width: 8px;
      height: 8px;
      background: #00bcd4;
      border-radius: 50%;
      pointer-events: none;
      opacity: 0.7;
      animation: fadeOut 1s forwards;
    }

    @keyframes fadeOut {
      from { opacity: 1; transform: scale(1); }
      to { opacity: 0; transform: scale(0.5); }
    }

    /* About Section */
.about {
  padding: 3%;
  background: #111;
  color: white;
  text-align: center;
}

.about-text h2 {
  font-size: 2.5em;
  margin-bottom: 2%;
  color: #00bcd4;
}

.about-text p {
  max-width: 800px;
  margin: 0 auto 6%;
  font-size: 1.5em;
  line-height: 1.5;
}

/* Skill Cards */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  background: #1c1c1c;
  padding: 25px;
  border-radius: 15px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: fit-content;
  position: relative;
  overflow: hidden;
}

/* Hover effect for skill cards */
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.25);
}

/* Different background accents for each skill card */
.skill-card:nth-child(1)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00bcd4, #2196f3);
}

.skill-card:nth-child(2)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2196f3, #3f51b5);
}

.skill-card:nth-child(3)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3f51b5, #00bcd4);
}

.skill-card h3 {
  color: #00bcd4;
  margin-bottom: 25px;
  font-size: 1.8em;
  padding-bottom: 10px;
  border-bottom: 2px solid #00bcd4;
}


/* Skill Bars */
.skill {
  margin-bottom: 20px;
}

.skill label {
  font-size: 1em;
  margin-bottom: 8px;
  display: block;
  color: #fff;
}

.progress {
  position: relative;
  background: rgba(51, 51, 51, 0.8);
  height: 15px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid rgba(0, 188, 212, 0.2);
}

.progress span {
  display: block;
  height: 100%;
  width: var(--percent);
  background: linear-gradient(90deg, #00bcd4, #2196f3);
  position: relative;
  animation: moveBubbles 2s linear infinite;
}

/* Blue bubbles animation inside bar */
.progress span::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 40px;
  background: radial-gradient(circle, rgba(0,188,212,0.6) 20%, transparent 20%) repeat-x;
  background-size: 20px 20px;
  animation: bubbleMove 4s linear infinite;
}

@keyframes bubbleMove {
  0% { background-position-x: 0; }
  100% { background-position-x: 100px; }
}

@keyframes moveBubbles {
  0% { background-position: 0 0; }
  100% { background-position: 200px 0; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: #333;
    width: 200px;
    padding: 20px;
    transition: right 0.3s ease-in-out;
  }
  .nav-links.active {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
}
/* resume */

.resume {
  padding: 3%;
  background: #111;
  color: white;
}

.resume h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #00bcd4;
  letter-spacing: 2px;
}

/* 1. Career Objective (full width) */
.career-box {
  background: #1c1c1c;
  padding: 2%;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 3%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}
.career-box:hover { transform: translateY(-6px); }
.career-box i {
  font-size: 2rem;
  color: #00bcd4;
  margin-bottom: 25px;
}

.career-box h3 {
  color: #00bcd4 ;
  font-size: 1.5em;
  margin-bottom: 1%;
}



/* 2. Education */
.sub-heading {
  font-size: 2em;
  color: #00bcd4;
  margin-bottom: 20px;
  text-align: center;
}
.education-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.edu-card {
  width: 300px;
  height: 200px;
  background: #1c1c1c;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}
.edu-card:hover { transform: scale(1.05); }
.edu-card i {
  font-size: 1.8rem;
  color: #00bcd4;
  margin-bottom: 10px;
}
.edu-card h4 {
  font-size: 1.2em;
  margin-bottom: 8px;
}
.grade {
  display: inline-block;
  margin-top: 8%;
  background: #00bcd4;
  color: #111;
  padding: 3%;
  font-size: 1em;
  border-radius: 8px;
  font-weight: bold;
}



/* Projects Section */
.projects-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 2px;
  background: #111;
  color: white;
  flex-wrap: wrap;
  margin-bottom: 3%;
}

/* Headings */
.projects-left h2, 
.projects-right h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #00bcd4;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mini Projects Row */
.mini-projects {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* ✅ Wrap if screen small */
}

/* Flip Card */
.flip-card {
  background: transparent;
  width: 200px;
  height: 200px;
  perspective: 1000px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, 
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.flip-card-front {
  background: #444;
  color: white;
  font-size: 1.1em;
  font-weight: bold;
}
.flip-card-back {
  background: #00bcd4;
  color: white;
  transform: rotateY(180deg);
  font-size: 0.95em;
  line-height: 1.4;
}

/* Major Project Card */
.big-project-card {
  background: #1c1c1c;
  flex: 1;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  transition: transform 0.3s ease;
}
.big-project-card:hover {
  transform: translateY(-6px);
}
.big-project-card h3 {
  color: #00bcd4;
  margin-bottom: 15px;
}
.project-content {
  text-align: center;
}
.github-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #00bcd4;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}
.github-btn:hover {
  background: #0097a7;
}
.github-btn i {
  margin-right: 8px;
}

/* Responsive */
@media (max-width: 1100px) {
  .projects-section {
    flex-direction: column;
  }
  .mini-projects {
    justify-content: center;
  }
  .big-project-card {
    width: 100%;
  }
}

/* 4. Skills (3 Flex Boxes) */
/* Skills (3 Flex Boxes same as before) */
.skills-flex {
  display: flex;
  justify-content: center;
  gap: 10px; /* Reduced gap for less space between cards */
  flex-wrap: wrap;
}
.skill-card {
  flex: 1;
  min-width: 280px;
  background: #1c1c1c;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(8, 145, 163, 0.24);
  transition: transform 0.3s ease;
}
.skill-card:hover { transform: translateY(-6px); }
.skill-card i {
  font-size: 2rem;
  color: #00bcd4;
  margin-bottom: 12px;
}
.skill-card h3 {
  color: #00bcd4;
  margin-bottom: 15px;
  text-align: center;
}

/* Inner Boxes */
.inner-skill-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.inner-box {
  background: #2a2a2a;
  color: #00bcd4;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, background 0.3s;
}
.inner-box:hover {
  transform: scale(1.08);
  background: #00bcd4;
  color: #111;
}

/* Area of Interest Section */
.interest-section {
  padding: 60px 8%;
  background: #111;
  color: white;
  text-align: center;
}

.interest-section h2 {
  font-size: 2em;
  font-weight: 600;
  color: #00bcd4;
  margin-bottom: 3%;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Sub Boxes */
.interest-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.interest-card {
  background: #1c1c1c;
  border-radius: 10px;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, background 0.3s;
  min-width: 250px;
  text-align: center;
  margin-bottom: 1%;
}

.interest-card:hover {
  background: #00bcd4;
  color: #111;
  transform: translateY(-6px);
}


/* resume */

/* Contact Section */
.contact-section {
  padding: 60px 8%;
  background: #111;
  color: white;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.2em;
  font-weight: 800;
  color: #00bcd4;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Form */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.contact-form input {
  width: 100%;
  padding: 12px;
  border: none;
  outline: none;
  border-radius: 8px;
  font-size: 1em;
  background: #1c1c1c;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.contact-form input::placeholder {
  color: #aaa;
}
.submit-btn {
  margin-top: 4%;
  padding: 12px 25px;
  background: #00bcd4;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.submit-btn:hover {
  background: #0097a7;
  transform: translateY(-3px);
}

/* Social Icons */
.social-icons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 30px;
}
.social-icons a {
  color: #00bcd4;
  font-size: 2em;
  transition: transform 0.3s, color 0.3s;
}
.social-icons a:hover {
  color: white;
  transform: scale(1.2);
}
.tagline {
  font-size: 1.3em;
  font-weight: 600;
  color: #ccc;
  margin-top: 2%;
  margin-bottom: 25px;
  font-style: italic;
}