/* =======================================
   Digital Calligraphy Font Creation Studio
   Responsive CSS File
   ======================================= */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-actions {
        text-align: center;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Remove animations on mobile to respect reduced motion */
    .decoration-blob,
    .blob-1,
    .blob-2 {
        display: none;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Service Cards */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Pricing Cards */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    /* Team Members */
    .team-photo img {
        width: 150px;
        height: 150px;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 3rem;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Timeline */
    .timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .timeline-date {
        position: static;
        display: inline-block;
        margin-bottom: 0.5rem;
    }
    
    /* Contact Form */
    .contact-form-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Footer */
    .footer-section {
        padding: 3rem 0;
    }
    
    .footer-section .col-lg-4,
    .footer-section .col-lg-2,
    .footer-section .col-lg-3 {
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    /* Remove animations on mobile */
    .decoration-blob {
        display: none;
    }
    
    /* Team Members */
    .team-photo img {
        width: 180px;
        height: 180px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    /* Process Timeline */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery-item {
        margin-bottom: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 3rem;
    }
    
    /* Timeline */
    .timeline-container::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 100%;
        background-color: var(--primary-color);
        top: 0;
    }
    
    .timeline-item {
        width: 50%;
        padding: 0 2rem;
        margin-bottom: 4rem;
        position: relative;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: right;
    }
    
    .timeline-item:nth-child(even) {
        left: 50%;
        text-align: left;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-item::after {
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 20px;
        margin-left: -10px;
    }
    
    .timeline-item:nth-child(odd)::after {
        right: -10px;
        left: auto;
        transform: none;
        margin-left: 0;
    }
    
    .timeline-item:nth-child(even)::after {
        left: -10px;
        transform: none;
        margin-left: 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    
    /* Container adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
}

/* Extra Extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    
    /* Container adjustments */
    .container {
        max-width: 1320px;
    }
    
    /* Spacing adjustments */
    section {
        padding: 6rem 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    
    .hero-section {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    /* Ensure sharp rendering on retina displays */
    .hero-image img,
    .service-image img,
    .team-photo img,
    .gallery-item {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    
    /* Hide unnecessary elements */
    #header,
    .hero-decoration,
    .btn,
    #footer {
        display: none !important;
    }
    
    /* Ensure good contrast */
    body {
        background: white !important;
        color: black !important;
    overflow-x: hidden;
}
    
    /* Typography adjustments */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    /* Remove shadows and effects */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .blog-card,
    .faq-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove floating animations */
    .blob-1,
    .blob-2 {
        animation: none !important;
    }
    
    /* Remove transform effects */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .team-member:hover .team-photo img,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .gallery-item:hover {
        transform: none !important;
    }
}

/* Dark mode support */

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Ensure touch targets are large enough on mobile */
@media (max-width: 767.98px) {
    
    .btn,
    .nav-link,
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control {
        min-height: 44px;
        padding: 0.75rem;
    }
} 