/******Small Devices******/

@media (max-width: 700px) {

  * {
    max-width: 100%;
  }

   html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

   .header, .bio-section, .projects-section, .skills-section, .footer-section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 0 1rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    transform: translateY(0) !important;
    padding-top: 2rem;
  }
  
  .hero-visual {
    margin-top: 0.7rem;
    display: none !important;
  }

   .hero-text {
    margin: 0 auto;
    max-width: 100%;
  }

  /* Fix button text wrapping on mobile */
  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
    width: fit-content;
    margin: 0 auto;
  }

  .btn i {
    font-size: 0.85rem;
  }

  /* Reset mobile heading sizes */
  .main-heading {
    font-size: 2rem;
  }

  .rotating-title {
    font-size: 1.5rem;
  }

  .sub-heading {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .nav-links {
    position: absolute;
    background-color: var(--card-bg);
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;
    text-align: left;
    z-index: 2;
    padding: 0 1rem;
    transition: right 1s ease;
  }

  .nav-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
  }

  .nav-links ul li {
    display: block;
    width: 100%;
  }

  .nav-links ul li a {
    display: block;
    padding: 1rem 1.5rem;
    margin: 0.2rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-links ul li a:hover {
    background: rgba(255, 235, 59, 0.1);
  }

  nav .fa-bars, nav .fa-xmark {
    display: block;
    color: var(--primary-color);
    font-size: 22px;
    cursor: pointer;
    margin: 10px;
  }

  /******************************************BIO*******/
  
}

/****** Tablet Devices (701px - 900px) ******/
@media (min-width: 701px) and (max-width: 900px) {

 * {
    max-width: 100%;
  }

   html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

   .header, .bio-section, .projects-section, .skills-section, .footer-section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 0 1rem;
  }
  
  /* Navigation adjustments */
  nav {
    padding: 1rem 4%;
  }
  
  .nav-links ul {
    gap: 1.5rem;
  }
  
  .nav-links a {
    font-size: 1rem;
    padding: 8px 12px;
  }
  
  .logo {
    font-size: 1.3rem;
    gap: 12px;
  }
  
  .logo i {
    font-size: 2.2rem;
  }

  /* Hero content adjustments */
  .hero-content {
    padding: 0 4%;
    gap: 2.5rem;
  }
  
  .hero-text {
    max-width: 450px;
  }
  
  .main-heading {
    font-size: 2.5rem;
  }
  
  .rotating-title {
    font-size: 1.8rem;
  }
  
  .typewriter-container {
    height: 55px;
  }
  
  .sub-heading {
    font-size: 1rem;
  }
  
  .hero-buttons {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .btn {
    padding: 0.75rem 1.3rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* Right side visual adjustments */
  .hero-visual {
    height: 350px;
  }
  
  .shape-container {
    width: 300px;
    height: 300px;
  }
  
  .profile-container {
    width: 220px;
    height: 220px;
  }
  
  .profile-icon {
    font-size: 4.5rem;
  }
  
  .shape-1 {
    width: 150px;
    height: 150px;
    top: 30px;
    left: 30px;
  }
  
  .shape-2 {
    width: 110px;
    height: 110px;
    top: 110px;
    left: 150px;
  }
  
  .shape-3 {
    width: 80px;
    height: 80px;
    top: 180px;
    left: 70px;
  }

  /* Stats adjustments */
  .hero-stats {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.7rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

/****** Small Tablet Devices Demi-Split-Second Lag ******/
@media (max-width: 765px) {

   * {
    max-width: 100%;
  }

   html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

   .header, .bio-section, .projects-section, .skills-section, .footer-section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 0 1rem;
  }
  

   nav {
    padding: 1rem 2%;
  }
  
  .nav-links ul {
    gap: 1.5rem;
  }
  
  .nav-links a {
    font-size: 1rem;
    padding: 8px 12px;
  }

  .hero-content {
    gap: 2rem;
    transform: translateY(0) !important;
    padding-top: 1.5rem;
  }
  
  .main-heading {
    font-size: 2.3rem;
  }
  
  .rotating-title {
    font-size: 1.7rem;
  }
  
  .hero-visual {
    height: 320px;
    transform: translateY(0) !important;
  }
  
  .icon-animation-container {
    transform: scale(0.85);
  }
  
  .shape-container {
    width: 280px;
    height: 280px;
  }
}

/****** Small Tablet Devices (701px - 765px) ******/
@media (min-width: 701px) and (max-width: 765px) {

    * {
    max-width: 100%;
  }

   html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

   .header, .bio-section, .projects-section, .skills-section, .footer-section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 0 1rem;
  }
  

  .nav-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
  }

  .nav-links ul li {
    display: block;
    width: 100%;
  }

  .nav-links ul li a {
    display: block;
    padding: 1rem 1.5rem;
    margin: 0.2rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-links ul li a:hover {
    background: rgba(255, 235, 59, 0.1);
  }

  .nav-links {
    position: absolute;
    background-color: var(--card-bg);
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;
    text-align: left;
    z-index: 2;
    padding: 0 1rem;
    transition: right 1s ease;
  }

  nav .fa-bars, nav .fa-xmark {
    display: block;
    color: var(--primary-color);
    font-size: 22px;
    cursor: pointer;
    margin: 10px;
  }

  .hero-content {
    gap: 1rem;
    transform: translateY(0) !important;
    padding-top: 1.5rem;
  }
  
  .main-heading {
    font-size: 2.3rem;
  }
  
  .rotating-title {
    font-size: 1.7rem;
  }
  
  .hero-visual {
    height: 320px;
    transform: translateY(0) !important;
  }
  
  .icon-animation-container {
    transform: scale(0.85);
  }
  
  .shape-container {
    width: 280px;
    height: 280px;
  }
}