/* Responsive Design - Mobile First Approach */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .service-card img {
        height: 220px;
    }
    
    .team-member img {
        width: 140px;
        height: 140px;
    }
}

/* Medium Devices (992px and up) */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        margin: 0 1rem;
    }
    
    .hero-content {
        padding-right: 2rem;
    }
    
    .testimonial-card {
        margin: 1rem 0.5rem;
    }
}

/* Small Devices (768px and up) */
@media (min-width: 768px) {
    .about-feature {
        margin-bottom: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .feature-item {
        margin-bottom: 1.5rem;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .coreinfo-item {
        margin-bottom: 2rem;
    }
    
    .blog-card {
        margin-bottom: 2rem;
    }
}

/* Mobile Devices (767px and down) */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
    
    /* Header */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        margin: 0.2rem 0;
    }
    
    .navbar-collapse {
        background: rgba(139, 126, 216, 0.95);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-section {
        padding: 5rem 0 1rem;
    }
    
    .breadcrumb-img {
        height: 40px;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 80px;
        min-height: auto;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    /* Sections */
    .py-5 {
        padding: 2.5rem 0;
    }
    
    /* About Section */
    .about-feature {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .about-feature i {
        font-size: 2rem;
    }
    
    /* Services */
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card img {
        height: 180px;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .price {
        font-size: 1.2rem;
        padding: 0.8rem;
    }
    
    /* Features */
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .feature-item i {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* Price Plans */
    .price-plan-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .price-plan-card.featured {
        transform: none;
        margin-bottom: 1.5rem;
    }
    
    .plan-price {
        font-size: 2rem;
    }
    
    /* Team */
    .team-member {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Reviews */
    .testimonials-swiper {
        padding-bottom: 2rem;
    }
    
    .testimonial-card {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .testimonial-card p {
        font-size: 1rem;
    }
    
    /* Core Info */
    .coreinfo-item {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .coreinfo-item i {
        font-size: 2rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 1rem;
    }
    
    /* Blog */
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-card img {
        height: 180px;
    }
    
    .blog-content {
        padding: 1rem;
    }
    
    /* FAQ */
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
overflow-x: hidden;
        padding: 1rem;
    }
    
    /* Gallery */
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Additional Pages */
    .element-card {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
}

/* Extra Small Devices (576px and down) */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    
    /* Hero */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
    }
    
    /* Services */
    .service-content ul li {
        font-size: 0.9rem;
    }
    
    /* Team - Stack in single column */
    .team-section .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .team-member {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 1rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    /* Price Plans */
    .plan-price {
        font-size: 1.8rem;
    }
    
    /* Gallery - 2 columns */
    .gallery-section .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Contact Form */
    .contact-form .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Blog - Single column */
    .blog-section .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Landscape Phones (568px and down) */
@media (max-width: 568px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
}

/* Very Small Devices (480px and down) */
@media (max-width: 479px) {
    /* Base */
    body {
overflow-x: hidden;
        font-size: 14px;
    }
    
    /* Typography */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    h4 { font-size: 0.95rem; }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content h2 {
        font-size: 1rem;
    }
    
    /* Cards */
    .about-feature,
    .service-card,
    .feature-item,
    .price-plan-card,
    .team-member,
    .testimonial-card,
    .coreinfo-item,
    .blog-card,
    .element-card {
        padding: 1rem;
    }
    
    /* Team - Single column layout */
    .team-member {
        flex-direction: column;
        text-align: center;
    }
    
    .team-member img {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 70px;
        height: 70px;
    }
    
    /* Gallery - Single column */
    .gallery-section .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Contact */
    .contact-form {
        padding: 1rem;
    }
    
    /* Footer */
    .footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .service-card img,
    .blog-card img,
    .gallery-item {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-section,
    .hero-shapes,
    .swiper-pagination,
    .btn,
    .footer {
        display: none !important;
    }
    
    .hero-section,
    section {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100% !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
    
    .service-card,
    .about-feature,
    .feature-item,
    .testimonial-card,
    .coreinfo-item,
    .blog-card {
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero-shapes .shape-1,
    .hero-shapes .shape-2 {
        animation: none;
    }
    
    .swiper {
        scroll-behavior: auto;
    }
    
    .testimonials-swiper .swiper-slide {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #E5E5E5;
        --text-secondary: #B0B0B0;
        --text-light: #808080;
    }
    
    body {
overflow-x: hidden;
        background-color: #1A1A1A;
    }
    
    .about-feature,
    .service-card,
    .price-plan-card,
    .team-member,
    .testimonial-card,
    .coreinfo-item,
    .blog-card,
    .contact-form,
    .element-card {
        background-color: #2D2D2D;
        color: var(--text-primary);
    }
    
    section:nth-child(even) {
        background-color: #242424;
    }
}

/* Focus Styles for Accessibility */
@media (any-hover: hover) {
    .navbar-nav .nav-link:focus,
    .btn:focus,
    .form-control:focus,
    .accordion-button:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
} 