/* Responsive CSS File for StoryAI Template */

/* Mobile First Approach - Base styles for mobile devices */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding-top: 70px;
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    padding-top: 150px;
}
    
    .hero-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Team member images */
    #team img {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    /* Process steps mobile */
    .process-step {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Timeline mobile */
    .timeline-item {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Gallery mobile */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact form mobile */
    .form-control {
        margin-bottom: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Button sizing */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Section padding mobile */
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Footer mobile */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    /* Remove animations on mobile for performance */
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .team img:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
    
    /* Hero section small */
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 150px;
}
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 190px;
    }
    
    /* Team images */
    #team img {
        width: 110px;
        height: 110px;
    }
    
    /* Process steps */
    .process-step .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    /* Gallery grid */
    #gallery .col-lg-3 {
        margin-bottom: 1.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero section tablet */
    .hero-section {
        padding-top: 75px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    padding-top: 150px;
}
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 200px;
    }
    
    /* Team images */
    #team img {
        width: 115px;
        height: 115px;
    }
    
    /* Services grid */
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Features grid */
    .features .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    /* Process steps tablet */
    .process-step .step-number {
        width: 58px;
        height: 58px;
        font-size: 1.4rem;
    }
    
    /* Timeline tablet */
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    /* Pricing cards */
    .priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Typography */
    h1 {
        font-size: 2.4rem;
    }
    
    /* Hero section desktop */
    .hero-section h1 {
        font-size: 2.3rem;
    padding-top: 150px;
}
    
    .hero-section h2 {
        font-size: 1.7rem;
    }
    
    /* Team grid adjustments */
    #team .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    /* Services grid spacing */
    .services .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max width */
    .container {
        max-width: 1140px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    /* Hero section large desktop */
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 150px;
}
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    /* Section spacing large screens */
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    /* Card hover effects enabled on large screens */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 90vh;
        padding-top: 60px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    padding-top: 150px;
}
    
    .hero-section h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high resolution displays */
    .card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    }
    
    .card:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions for accessibility */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-section::before {
        display: none;
    }
    
    .card:hover,
    .btn-primary:hover,
    #gallery img:hover,
    .team img:hover {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and non-essential elements */
    .navbar,
    footer,
    .btn,
    #gallery {
        display: none !important;
    }
    
    /* Optimize text for printing */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    /* Remove background colors for print */
    .hero-section,
    .bg-light {
        background: transparent !important;
    }
} 