/* 
======================
  Responsive Styles
======================
*/

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
      padding: 0 2rem;
    }
    
    .hero-content h1 {
      font-size: 3rem;
    }
    
    .projects-grid {
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
  }
  
  /* Medium devices (tablets, less than 992px) */
  @media (max-width: 991.98px) {
    .section-header h2 {
      font-size: 2.2rem;
    }
    
    .hero-content h1 {
      font-size: 2.7rem;
    }
    
    .hero-content h2 {
      font-size: 1.3rem;
    }
    
    .about-content {
      flex-direction: column;
      gap: 2rem;
    }
    
    .about-text {
      text-align: center;
    }
    
    .skill-item {
      width: 110px;
      height: 110px;
    }
    
    .project-card {
      max-width: 450px;
      margin: 0 auto;
    }
    
    .contact-info {
      flex-direction: column;
      gap: 1.5rem;
    }
  }
  
  /* Small devices (landscape phones, less than 768px) */
  @media (max-width: 767.98px) {
    body {
      font-size: 0.95rem;
    }
    
    #navbar {
      height: 70px;
    }
    
    .sticky {
      height: 60px;
    }
    
    .logo {
      font-size: 1.5rem;
    }
    
    .profile-img {
      width: 130px;
      height: 130px;
    }
    
    .hero-content h1 {
      font-size: 2.3rem;
    }
    
    .hero-content h2 {
      font-size: 1.2rem;
    }
    
    .hero-content p {
      font-size: 1rem;
    }
    
    .section-header h2 {
      font-size: 2rem;
    }
    
    .projects-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    
    .project-img {
      height: 180px;
    }
    
    .cta-buttons {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      max-width: 250px;
      margin: 2rem auto 0;
    }
    
    .cta-buttons .btn {
      margin: 0;
    }
    
    /* Mobile Navigation */
    .nav-links {
      position: fixed;
      right: 0;
      height: 100vh;
      top: 70px;
      background: #fff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-around;
      width: 100%;
      transform: translateX(100%);
      transition: transform 0.5s ease-in;
      z-index: 1;
    }
    
    .nav-links li {
      opacity: 0;
      margin: 0;
    }
    
    .burger {
      display: block;
    }
    
    .nav-active {
      transform: translateX(0%);
    }
  
    /* Dark mode adjustments for mobile nav */
    .dark-mode .nav-links {
      background: #1e1e1e;
    }
    
    /* Adjustments for mobile Contact section */
    #contact {
      text-align: center;
    }
    
    .social-links {
      gap: 1rem;
    }
    
    .social-links a {
      width: 45px;
      height: 45px;
      font-size: 1.3rem;
    }
  }
  
  /* Extra small devices (portrait phones, less than 576px) */
  @media (max-width: 575.98px) {
    .container {
      padding: 0 1.5rem;
    }
    
    #home {
      height: 90vh;
    }
    
    .profile-img {
      width: 120px;
      height: 120px;
    }
    
    .hero-content h1 {
      font-size: 2rem;
    }
    
    .hero-content h2 {
      font-size: 1.1rem;
    }
    
    .section-header h2 {
      font-size: 1.8rem;
    }
    
    .skill-item {
      width: 100px;
      height: 100px;
      padding: 1rem;
    }
    
    .skill-item i {
      font-size: 2rem;
    }
    
    .skills-grid {
      gap: 1.5rem;
    }
    
    .project-info h3 {
      font-size: 1.3rem;
    }
    
    .section-header {
      margin-bottom: 2rem;
    }
    
    #about,
    #skills,
    #projects,
    #contact {
      padding: 4rem 0;
    }
    
    .scroll-top {
      bottom: 1.5rem;
      right: 1.5rem;
      width: 45px;
      height: 45px;
      font-size: 1.3rem;
    }
  }
  
  /* Height-based media queries for smaller screens */
  @media (max-height: 600px) {
    #home {
      height: auto;
      padding: 120px 0 60px;
    }
    
    .profile-img {
      width: 100px;
      height: 100px;
      margin-bottom: 1rem;
    }
    
    .hero-content h1 {
      font-size: 2rem;
      margin-bottom: 0.3rem;
    }
    
    .hero-content h2 {
      margin-bottom: 1rem;
    }
    
    .hero-content p {
      margin-bottom: 1.5rem;
    }
    
    .nav-links {
      height: auto;
      padding: 2rem 0;
    }
  }
  
  /* Print media query for resume printing */
  @media print {
    nav, footer, #contact, #projects, .social-links, .cta-buttons {
      display: none;
    }
    
    body {
      font-size: 12pt;
      line-height: 1.5;
      color: #000;
      background: #fff;
    }
    
    #home, #about, #skills {
      padding: 1cm 0;
      height: auto;
    }
    
    .container {
      width: 100%;
      max-width: none;
    }
    
    .hero-content h1 {
      font-size: 24pt;
    }
    
    .hero-content h2 {
      font-size: 18pt;
    }
    
    a {
      color: #000;
      text-decoration: none;
    }
    
    h2 {
      font-size: 18pt;
      page-break-after: avoid;
    }
    
    p {
      orphans: 3;
      widows: 3;
    }
    
    .skill-item {
      box-shadow: none;
      border: 1px solid #ddd;
    }
  }