@media screen and (max-width:1400px) {
    #profile {
        height: 83vh;
    }
    .about-containers {
        flex-wrap: wrap;
    }
    .logo {
        font-size: 100rem;
        color: rgb(1, 140, 103);
     }
     @keyframes wordAnimation {
        0% {
          opacity: 0;
          transform: translateY(-50px);
        }
        50% {
          opacity: 1;
          transform: translateY(0);
        }
        100% {
          opacity: 0;
          transform: translateY(50px);
        }
      }
    
      .logo {
        font-size: 2rem;
        font-weight: bold;
        color: rgb(1, 140, 103);
        animation: wordAnimation 3s ease-in-out infinite;
      }
}



@media screen and (max-width:1200px) {
    #desktop-nav {
        display: none;
    }
    #hamburger-nav {
        display: flex;
    }
    #experience, .experience-details-container {
        margin-top: 2rem;
    }
    #profile, .section-container {
        display: block;
    }
    .arrow {
        display: none;
    }
    section, .section-container {
        height: fit-content;
    }
    section {
        margin:0 5%;
    }
    .section__pic-container {
        width: 275px;
        height: 275px;
        margin: 0 auto 2rem;
    }
    .about-containers {
        margin-top: 0;
    }
    .logo {
        font-size: 5rem;
        color: rgb(1, 140, 103);
     }
     @keyframes wordAnimation {
        0% {
          opacity: 0;
          transform: translateY(-50px);
        }
        50% {
          opacity: 1;
          transform: translateY(0);
        }
        100% {
          opacity: 0;
          transform: translateY(50px);
        }
      }
    
      .logo {
        font-size: 2rem;
        font-weight: bold;
        color: rgb(1, 140, 103);
        animation: wordAnimation 3s ease-in-out infinite;
      }
    
}

@media screen and (max-width:600px) {
    #contact, footer {
        height: 40vh;
    }
    #profile {
        height: 83vh;
        margin-bottom: 0;
    }
    article {
        font-size: 1rem;
    }
    footer, nav {
        height: fit-content;
        margin-bottom: 2rem;
    }
    .about-containers,
     .contact-info-upper-container, 
     .btn-container {
        flex-wrap:wrap;
     }
     .contact-info-container {
        margin: 0;
     }
     .contact-info-container, .nav-links li a {
        font-size: 1rem;
     } 
     .experience-sub-title {
        font-size: 1.25rem;
     }
     .logo {
        font-size: 2rem;
        color: rgb(1, 140, 103);
     }
     @keyframes wordAnimation {
        0% {
          opacity: 0;
          transform: translateY(-50px);
        }
        50% {
          opacity: 1;
          transform: translateY(0);
        }
        100% {
          opacity: 0;
          transform: translateY(50px);
        }
      }
    
      .logo {
        position: relative;
        top: 20px;
        font-size: 2rem;
        font-weight: bold;
        color: rgb(1, 140, 103);
        animation: wordAnimation 3s ease-in-out infinite;
      }
     .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
     }
     .section__pic-conatainer {
        width: auto;
        height: 46vh;
        justify-content: center;
     }
     .section__text__p2 {
        font-size: 1.25rem;
     }
     .title {
        font-size: 2rem;
     }
     .text-container {
        text-align: justify;
     }
}

/* Media Queries for Responsive Design */

/* Large Screens */
@media (max-width: 1400px) {
  section {
    padding: 8rem 4rem 4rem;
  }
  
  #desktop-nav {
    padding: 1.5rem 4rem;
  }
  
  #desktop-nav.scrolled {
    padding: 0.75rem 4rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

/* Medium Screens */
@media (max-width: 1200px) {
  :root {
    --border-radius: 0.6rem;
  }
  
  .hero-content {
    gap: 1rem;
  }
  
  .hero-image {
    max-width: 400px;
  }
  
  .about-image-container {
    max-width: 400px;
  }
  
  .skills-container {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .skill-card {
    padding: 1.25rem;
  }
  
  .project-card {
    gap: 1.5rem;
  }
}

/* Small Screens */
@media (max-width: 992px) {
  section {
    padding: 8rem 3rem 3rem;
  }
  
  #desktop-nav {
    padding: 1.5rem 3rem;
  }
  
  #desktop-nav.scrolled {
    padding: 0.75rem 3rem;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .neo-brutalism-button {
    margin: 0 auto;
  }
  
  .btn-container {
    justify-content: center;
  }
  
  .socials-container {
    justify-content: center;
  }
  
  .hero-image {
    max-width: 350px;
  }
  
  .section-container {
    flex-direction: column;
    text-align: center;
  }
  
  .about-image-container {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .about-content {
    max-width: 100%;
  }
  
  .skill-card h3 {
    font-size: 1rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px;
  }
  
  .timeline-item:nth-child(odd) {
    margin-left: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 12.5px;
  }
  
  .project-card,
  .project-card.reverse {
    flex-direction: column;
  }
  
  .project-content {
    max-width: 100%;
    text-align: center;
  }
  
  .project-tech,
  .project-links {
    justify-content: center;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo {
    max-width: 100%;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

/* Tablet Screens */
@media (max-width: 768px) {
  :root {
    --border-radius: 0.5rem;
  }
  
  section {
    padding: 7rem 2rem 2rem;
  }
  
  #desktop-nav {
    display: none;
  }
  
  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat {
    padding: 1.25rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skill-icon {
    font-size: 2rem;
  }
  
  .experience-tabs {
    flex-wrap: wrap;
  }
  
  .tab-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
  
  .education-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .education-icon {
    margin-bottom: 1rem;
  }
}

/* Mobile Screens */
@media (max-width: 576px) {
  section {
    padding: 6rem 1.5rem 1.5rem;
    min-height: auto;
  }
  
  #hamburger-nav {
    padding: 1.25rem 1.5rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle p {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-image {
    max-width: 280px;
  }
  
  .about-image-container {
    max-width: 280px;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
  }
  
  .experience-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .tab-button {
    width: 100%;
    border-radius: var(--border-radius);
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

/* Small Mobile Screens */
@media (max-width: 400px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .company-info {
    margin-bottom: 1.5rem;
  }
  
  .neo-brutalism-button {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
  
  .btn-container {
    gap: 1rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
  }
  
  .skill-card {
    padding: 1rem;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.6rem 0.75rem;
  }
  
  .contact-card {
    padding: 1rem;
  }
  
  .footer-content {
    margin-bottom: 1.5rem;
  }
}

/* Animation Adjustments for Mobile */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .cursor,
  .cursor-follower {
    display: none;
  }
  
  .profile-image-container {
    animation: none;
    border-radius: 20px;
  }
  
  .hero-title .text-animate {
    opacity: 1;
    animation: none;
  }
  
  .social-icon:hover,
  .skill-card:hover,
  .project-card:hover,
  .contact-card:hover,
  .timeline-content:hover,
  .education-card:hover,
  .stat:hover {
    transform: none;
  }
}

/* High Contrast Mode */
@media (forced-colors: active) {
  :root {
    --primary-color: Highlight;
    --secondary-color: Highlight;
    --accent-color: Highlight;
    --background-color: Canvas;
    --card-background: Canvas;
    --text-color: CanvasText;
    --text-secondary: GrayText;
    --border-color: Highlight;
  }
  
  .btn,
  .nav-link,
  .social-icon,
  .project-link,
  .submit-btn {
    border: 1px solid Highlight;
  }
}
