/* AI-Driven Syllabus Generator Template - Responsive Styles */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  
  .hero-decorative {
    display: none;
  }
  
  .hero-section {
    min-height: 90vh;
    padding: 2rem 0;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .section-padding-sm {
    padding: 30px 0;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Card adjustments */
  .service-card,
  .priceplan-card,
  .contact-form {
    padding: 1.5rem;
  }
  
  .team-photo {
    height: 200px;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  /* Form adjustments */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Button adjustments */
  .btn-primary {
    padding: 0.75rem 1.5rem;
    width: 100%;
  }
  
  /* Navbar brand on mobile */
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  /* Process items mobile */
  .process-item {
    margin-bottom: 1rem;
  }
  
  .process-number {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 1rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .section-padding-sm {
    padding: 40px 0;
  }
  
  .service-card,
  .priceplan-card {
    padding: 1.75rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .section-padding-sm {
    padding: 50px 0;
  }
  
  /* Gallery grid adjustments */
  .gallery-item {
    margin-bottom: 1.5rem;
  }
  
  /* Team cards adjustment */
  .team-photo {
    height: 220px;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .section-padding {
    padding: 70px 0;
  }
  
  .section-padding-sm {
    padding: 55px 0;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .team-photo {
    height: 240px;
  }
  
  .gallery-item {
    height: 280px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .section-padding {
    padding: 80px 0;
  }
  
  .section-padding-sm {
    padding: 60px 0;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .team-photo {
    height: 250px;
  }
  
  .gallery-item {
    height: 300px;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Height-based adjustments */
@media (max-height: 600px) {
  .hero-section {
    min-height: 80vh;
  }
}

/* Landscape mobile adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 30px 0;
  }
  
  .section-padding-sm {
    padding: 20px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-img,
  .team-photo,
  .blog-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .hero-decorative,
  .btn,
  .navbar,
  .footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5 {
    page-break-after: avoid;
  }
  
  .card {
    page-break-inside: avoid;
  }
}

/* Hover effects - only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .navbar-toggler {
    padding: 0.5rem 0.75rem;
  }
}

/* Dark mode support */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-decorative {
    animation: none !important;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .blog-card {
    transition: none !important;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: none !important;
  }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  .card {
    border-width: 2px;
  }
  
  .btn-primary {
    border-width: 2px;
  }
}

/* Grid adjustments for different screen sizes */
@media (max-width: 575.98px) {
  .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .row > [class*="col-sm-"] {
    margin-bottom: 1.5rem;
  }
  
  .row > [class*="col-sm-"]:nth-last-child(-n+2) {
    margin-bottom: 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .row > [class*="col-md-"] {
    margin-bottom: 2rem;
  }
  
  .row > [class*="col-md-"]:nth-last-child(-n+3) {
    margin-bottom: 0;
  }
}

/* Spacing utilities responsive */
@media (max-width: 575.98px) {
  .mb-5 { margin-bottom: 2rem !important; }
  .mt-5 { margin-top: 2rem !important; }
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
}

/* Container padding adjustments */
@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
} 

.hero-section h1 {
    padding-top: 200px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
