/* 
 * Responsive Stylesheet for Artistic Generation Template
 * Theme: Conjugate learning and style transfer for artistic generation
 */

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  html {
    font-size: 15px;
  }
  
  h1, .hero-title {
    font-size: 3.2rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  section {
    padding: 70px 0;
  }
  
  .hero-section {
    height: 90vh;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  html {
    font-size: 14px;
  }
  
  h1, .hero-title {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
  
  .hero-section {
    height: 80vh;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-info {
    order: -1;
  }
  
  .priceplan-items,
  .services-items {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  html {
    font-size: 13px;
  }
  
  h1, .hero-title {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1rem;
  }
  
  section {
    padding: 50px 0;
  }
  
  .section-title {
    margin-bottom: 30px;
  }
  
  .hero-section {
    height: 70vh;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--text-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 0 0 20px;
    width: 100%;
  }
  
  .nav-menu a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
  
  .hamburger {
    display: block;
    z-index: 1000;
  }
  
  .blog-grid,
  .team-items {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  html {
    font-size: 12px;
  }
  
  h1, .hero-title {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1rem;
  }
  
  h3 {
    font-size: 1.6rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .hero-section {
    min-height: 500px;
  }
  
  .about-features,
  .features-items,
  .coreinfo-items {
    grid-template-columns: 1fr;
  }
  
  .service-item,
  .priceplan-item,
  .team-member,
  .blog-item {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Handle reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .service-item:hover,
  .about-feature:hover,
  .feature-item:hover,
  .priceplan-item:hover,
  .team-member:hover,
  .coreinfo-item:hover,
  .blog-item:hover {
    transform: none;
  }
  
  .service-item:hover .service-image img,
  .team-member:hover .team-image img,
  .blog-item:hover .blog-image img {
    transform: none;
  }
}

/* Handle navigation menu on mobile devices */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hamburger icon animation */
.hamburger-icon {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.hamburger-icon span {
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-icon span:nth-child(1) {
  top: 0;
}

.hamburger-icon span:nth-child(2) {
  top: 9px;
}

.hamburger-icon span:nth-child(3) {
  top: 18px;
}

.hamburger-icon.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.hamburger-icon.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Swiper adjustments for mobile */
@media (max-width: 767.98px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
} 