/* Responsive Design - Mobile First Approach */

/* Base styles for mobile devices (up to 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        text-align: center;
    }
    
    .hero-image img {
        max-width: 100%;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .feature-item,
    .service-item,
    .price-item,
    .review-item,
    .casestudy-item,
    .process-step,
    .timeline-item,
    .career-item,
    .coreinfo-item,
    .blog-item,
    .faq-item {
        margin-bottom: 1.5rem;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .blob-1,
    .blob-2 {
        display: none;
    }
    
    .timeline-item {
        margin-left: 1rem;
    }
    
    .timeline-item::before {
        left: -20px;
    }
    
    .timeline-item::after {
        left: -12px;
    }
    
    .service-price,
    .price-value {
        font-size: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-item i {
        font-size: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-photo {
        width: 175px;
        height: 175px;
    }
    
    .timeline-item {
        margin-left: 1.5rem;
    }
    
    .timeline-item::before {
        left: -25px;
    }
    
    .timeline-item::after {
        left: -17px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content {
        padding-right: 2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    .feature-item,
    .service-item,
    .price-item {
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 175px;
        height: 175px;
    }
    
    .blob-1 {
        display: block;
        width: 150px;
        height: 150px;
    }
    
    .blob-2 {
        display: block;
        width: 120px;
        height: 120px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-content {
        padding-right: 3rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .team-photo {
        width: 200px;
        height: 200px;
    }
    
    .blob-1 {
        display: block;
        width: 175px;
        height: 175px;
    }
    
    .blob-2 {
        display: block;
        width: 135px;
        height: 135px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-content {
        padding-right: 4rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .team-photo {
        width: 200px;
        height: 200px;
    }
    
    .blob-1 {
        display: block;
        width: 200px;
        height: 200px;
    }
    
    .blob-2 {
        display: block;
        width: 150px;
        height: 150px;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .hero-content {
        padding-right: 5rem;
    }
}

/* Landscape orientation optimizations */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .blob-1,
    .blob-2,
    .btn {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    .hero-title,
    .section-title {
        color: black !important;
    }
    
    .hero,
    .section-bg,
    .services,
    .priceplan,
    .reviews,
    .process,
    .career,
    .contact,
    .faq {
        background: white !important;
        color: black !important;
    }
    
    .feature-item,
    .service-item,
    .price-item,
    .review-item,
    .casestudy-item,
    .process-step,
    .timeline-item,
    .career-item,
    .coreinfo-item,
    .blog-item,
    .faq-item {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #2C1810;
        --secondary-color: #4A352A;
        --accent-color: #B8935B;
        --text-color: #000000;
        --text-light: #333333;
        --bg-color: #FFFFFF;
        --border-color: #666666;
    }
    
    .feature-item,
    .service-item,
    .price-item,
    .review-item,
    .casestudy-item,
    .process-step,
    .timeline-item,
    .career-item,
    .coreinfo-item,
    .blog-item,
    .faq-item {
        border: 2px solid var(--border-color);
    }
    
    .navbar-nav .nav-link {
        color: white !important;
    }
    
    .navbar-nav .nav-link:hover {
        color: yellow !important;
    }
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
    .hero,
    .feature-item,
    .service-item,
    .price-item,
    .review-item,
    .casestudy-item,
    .process-step,
    .timeline-item,
    .career-item,
    .coreinfo-item,
    .blog-item,
    .faq-item,
    .gallery-item,
    .btn-primary,
    .navbar-nav .nav-link {
        transition: none !important;
        animation: none !important;
    }
    
    .blob-1,
    .blob-2 {
        animation: none !important;
    }
    
    .animate-fade-in-up {
        animation: none !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-item:hover,
    .service-item:hover,
    .price-item:hover,
    .review-item:hover,
    .casestudy-item:hover,
    .process-step:hover,
    .timeline-item:hover,
    .career-item:hover,
    .coreinfo-item:hover,
    .blog-item:hover,
    .faq-item:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus management */
@media (max-width: 991.98px) {
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
    }
}

/* Container spacing adjustments */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Form responsiveness */
@media (max-width: 767.98px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Grid system adjustments */
@media (max-width: 575.98px) {
    .col-md-6,
    .col-lg-4,
    .col-xl-3 {
        margin-bottom: 1rem;
    }
}

/* Navigation improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(107, 78, 61, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
} 