/* This file contains additional responsive styles */

@media screen and (max-width: 1200px) {
  .container {
    padding: 0 4rem;
  }

  .hero-text h1 {
    font-size: 5rem;
  }

  .hero-subtitle {
    font-size: 2.2rem;
  }
}

@media screen and (max-width: 992px) {
  html {
    font-size: 56.25%;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
    margin-bottom: 4rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
    gap: 5rem;
  }

  .about-image {
    order: 1;
  }

  .about-text {
    order: 2;
  }

  .about-stats {
    justify-content: center;
  }

  .about-cta {
    justify-content: center;
  }

  .color-scheme-toggle {
    right: 7rem;
  }

  /* Show nav toggle on mobile */
  .nav-toggle {
    display: block;
    width: 3rem;
    height: 2.5rem;
    position: relative;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-toggle-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: var(--transition);
  }

  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: var(--transition);
  }

  .nav-toggle-bar::before {
    top: -8px;
  }

  .nav-toggle-bar::after {
    bottom: -8px;
  }

  .nav-toggle.active .nav-toggle-bar {
    background-color: transparent;
  }

  .nav-toggle.active .nav-toggle-bar::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle.active .nav-toggle-bar::after {
    bottom: 0;
    transform: rotate(-45deg);
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .hero-text h1 {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.6rem;
  }

  .featured-projects-grid,
  .services-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .color-scheme-toggle {
    right: 6rem;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 50%;
  }

  .container {
    padding: 0 2rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .hero-text h1 {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .featured-projects-grid,
  .services-preview-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .color-scheme-toggle {
    right: 5.5rem;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 45%;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 2.8rem;
  }

  .section-subtitle {
    font-size: 1.6rem;
  }

  .testimonial-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .color-scheme-toggle {
    right: 5rem;
  }

  .about-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat {
    flex: 0 0 45%;
  }

  .projects-filter {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    margin-bottom: 1rem;
  }

  /* Fix timeline display on mobile */
  .timeline-item {
    padding-left: 6rem;
  }

  .timeline-date {
    position: relative;
    left: 0 !important;
    top: -2rem;
    margin-bottom: 0;
    font-size: 1.4rem;
  }

  .timeline-content {
    margin-top: 1rem;
    width: 100%;
    left: 0 !important;
  }

  .education-item {
    flex-direction: column;
  }

  .education-year {
    margin-bottom: 1rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }
}

@media screen and (max-width: 360px) {
  html {
    font-size: 40%;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .color-scheme-toggle {
    right: 4.5rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .about-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat {
    width: 100%;
    margin-bottom: 2rem;
  }

  .timeline-content {
    width: calc(100% - 5rem);
    left: 5rem !important;
    padding: 1.5rem;
  }
}
