/* 
* Responsive Styles
* Author: Suraj Gardi
*/

/* Large screens (up to 1200px) */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content h2 {
    font-size: 22px;
  }

  .hero-image img {
    max-width: 75%;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .skills-container {
    padding: 20px;
  }

  .project-image {
    height: 180px;
  }

  .contact-info,
  .contact-form {
    padding: 20px;
  }
}

/* Medium screens (up to 991px) */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content h2 {
    font-size: 20px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .hero-image {
    margin-top: 25px;
  }

  .hero-image img {
    max-width: 70%;
  }

  .about-content,
  .skills-container,
  .project-card,
  .resume-section,
  .contact-info {
    margin-bottom: 20px;
  }

  .navbar-nav {
    text-align: center;
    padding: 10px 0;
    /* MODIFIED: Ensure navbar dropdown fits within viewport */
    max-width: 100%;
    overflow-x: hidden;
  }

  .nav-link {
    padding: 6px 8px !important;
    font-size: 15px;
  }

  /* MODIFIED: Adjust navbar-collapse for mobile */
  .navbar-collapse {
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
  }
}

/* Small screens (up to 767px) */
@media (max-width: 767px) {
  .hero-section {
    padding: 80px 0 50px;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content h2 {
    font-size: 18px;
  }

  .hero-content p {
    font-size: 14px;
    max-width: 100%;
  }

  .section-padding {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .section-title .subtitle {
    font-size: 12px;
    padding: 4px 8px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero-image img {
    max-width: 65%;
  }

  .shape-1,
  .shape-2 {
    width: 100px;
    height: 100px;
  }

  .skill-circle {
    width: 90px;
    height: 90px;
  }

  .skill-circle .percent {
    font-size: 16px;
  }

  .skill-circle .percent span {
    font-size: 11px;
  }

  .filter-list {
    gap: 8px;
  }

  .filter-list li {
    padding: 5px 14px;
    font-size: 13px;
  }

  .project-image {
    height: 160px;
  }

  .project-content {
    padding: 15px;
  }

  .project-content h4 {
    font-size: 16px;
  }

  .blog-image {
    height: 160px;
  }

  .blog-content {
    padding: 15px;
  }

  .blog-content h4 {
    font-size: 16px;
  }

  .blog-meta span {
    font-size: 12px;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-item .icon {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .contact-form {
    padding: 15px;
  }

  .form-control {
    height: 40px;
    padding: 8px 12px;
  }

  textarea.form-control {
    min-height: 100px;
  }

  .footer {
    padding: 30px 0 15px;
    text-align: center;
  }

  .footer .social-links {
    justify-content: center;
    margin-top: 15px;
  }

  /* MODIFIED: Ensure back-to-top button stays within viewport */
  .back-to-top {
    right: 10px;
    bottom: 20px;
    width: 36px;
    height: 36px;
  }
}

/* Extra small screens (up to 575px) */
@media (max-width: 575px) {
  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content h2 {
    font-size: 16px;
  }

  .hero-content p {
    font-size: 13px;
  }

  .section-title h2 {
    font-size: 20px;
  }

  .section-title .subtitle {
    font-size: 11px;
  }

  .btn {
    padding: 8px 20px;
    font-size: 12px;
  }

  .hero-image img {
    max-width: 60%;
  }

  .shape-1,
  .shape-2 {
    width: 80px;
    height: 80px;
  }

  .about-content {
    padding: 15px;
  }

  .about-info {
    padding: 15px;
  }

  .info-item {
    flex-direction: column;
    text-align: center;
  }

  .info-title {
    min-width: 0;
    margin-bottom: 8px;
  }

  .skills-container {
    padding: 15px;
  }

  .skill-circle {
    width: 80px;
    height: 80px;
  }

  .skill-box h5 {
    font-size: 13px;
  }

  .project-image {
    height: 140px;
  }

  .project-content {
    padding: 12px;
  }

  .project-content h4 {
    font-size: 15px;
  }

  .project-tags span {
    font-size: 10px;
    padding: 3px 10px;
  }

  .resume-section {
    padding: 15px;
  }

  .resume-item {
    padding-left: 12px;
  }

  .resume-item h4 {
    font-size: 16px;
  }

  .resume-item h5 {
    font-size: 13px;
  }

  .blog-image {
    height: 140px;
  }

  .blog-content {
    padding: 12px;
  }

  .blog-content h4 {
    font-size: 15px;
  }

  .blog-meta span {
    font-size: 12px;
  }

  .contact-info {
    padding: 15px;
  }

  .contact-info h3 {
    font-size: 20px;
  }

  .contact-item .text h5 {
    font-size: 14px;
  }

  .contact-form {
    padding: 15px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-control {
    height: 35px;
    font-size: 13px;
  }

  textarea.form-control {
    min-height: 90px;
  }

  .footer-logo {
    font-size: 18px;
  }

  .footer-logo span {
    font-size: 24px;
  }

  .navbar-brand {
    font-size: 20px;
  }

  .nav-link {
    font-size: 13px;
  }

  /* MODIFIED: Further adjust back-to-top for smaller screens */
  .back-to-top {
    right: 8px;
    bottom: 15px;
    width: 32px;
    height: 32px;
  }
}

/* Extra extra small screens (up to 400px) */
@media (max-width: 400px) {
  .hero-content h1 {
    font-size: 22px;
  }

  .hero-content h2 {
    font-size: 14px;
  }

  .hero-content p {
    font-size: 12px;
  }

  .section-title h2 {
    font-size: 18px;
  }

  .btn {
    padding: 7px 18px;
    font-size: 11px;
  }

  .hero-image img {
    max-width: 55%;
  }

  .shape-1,
  .shape-2 {
    width: 70px;
    height: 70px;
  }

  .skill-circle {
    width: 70px;
    height: 70px;
  }

  .skill-circle .percent {
    font-size: 14px;
  }

  .skill-circle .percent span {
    font-size: 10px;
  }

  .project-image {
    height: 120px;
  }

  .project-content {
    padding: 10px;
  }

  .blog-image {
    height: 120px;
  }

  .blog-content {
    padding: 10px;
  }

  .contact-item .icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .contact-item .text h5 {
    font-size: 13px;
  }

  .form-control {
    height: 32px;
    font-size: 12px;
  }

  .textarea.form-control {
    min-height: 80px;
  }
}

/* Extra extra small screens (up to 320px) */
@media (max-width: 320px) {
  .hero-content h1 {
    font-size: 20px;
  }

  .hero-content h2 {
    font-size: 13px;
  }

  .hero-content p {
    font-size: 11px;
  }

  .section-title h2 {
    font-size: 16px;
  }

  .btn {
    padding: 6px 16px;
    font-size: 10px;
  }

  .hero-image img {
    max-width: 50%;
  }

  .shape-1,
  .shape-2 {
    width: 60px;
    height: 60px;
  }

  .skill-circle {
    width: 60px;
    height: 60px;
  }

  .skill-circle .percent {
    font-size: 12px;
  }

  .project-image {
    height: 100px;
  }

  .blog-image {
    height: 100px;
  }

  .navbar-brand {
    font-size: 18px;
  }

  .nav-link {
    font-size: 12px;
  }

  /* MODIFIED: Final adjustment for back-to-top on smallest screens */
  .back-to-top {
    right: 5px;
    bottom: 10px;
    width: 30px;
    height: 30px;
  }
}   