/* Responsive Design - Mobile First Approach */

/* Base Mobile Styles (up to 576px) */
@media (max-width: 575.98px) {
    /* Container override removed - using Bootstrap defaults */
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: var(--spacing-xs) 0;
    }
    
    .service-card,
    .feature-item,
    .price-card,
    .team-member,
    .review-card,
    .casestudy-item,
    .process-step,
    .career-item,
    .coreinfo-item,
    .blog-card {
        margin-bottom: var(--spacing-sm);
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .process-step {
        padding: var(--spacing-md);
    }
    
    .timeline-item {
        padding-left: var(--spacing-md);
    }
    
    .footer {
        padding: var(--spacing-md) 0;
    }
    
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Container override removed - using Bootstrap defaults */
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-card,
    .feature-item,
    .price-card {
        margin-bottom: var(--spacing-md);
    }
    
    .team-member img {
        width: 130px;
        height: 130px;
    }
    
    .gallery-item img {
        height: 220px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Container override removed - using Bootstrap defaults */
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0 var(--spacing-sm);
    }
    
    .service-card,
    .feature-item {
        margin-bottom: var(--spacing-md);
    }
    
    .price-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    .gallery-item img {
        height: 240px;
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .process-step {
        padding: var(--spacing-lg);
    }
    
    .timeline-item {
        padding-left: var(--spacing-lg);
    }
    
    /* Row and column overrides removed - using Bootstrap defaults */
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container override removed - using Bootstrap defaults */
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0 var(--spacing-md);
    }
    
    .service-card,
    .feature-item,
    .team-member,
    .review-card,
    .casestudy-item,
    .career-item,
    .coreinfo-item,
    .blog-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .price-card {
        margin-bottom: var(--spacing-xl);
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .contact-form {
        padding: var(--spacing-xl);
    }
    
    .process-step {
        padding: var(--spacing-xl);
    }
    
    .timeline-item {
        padding-left: var(--spacing-xl);
    }
    
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container override removed - using Bootstrap defaults */
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.375rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0 var(--spacing-lg);
    }
    
    .service-card,
    .feature-item,
    .team-member,
    .review-card,
    .casestudy-item,
    .career-item,
    .coreinfo-item,
    .blog-card {
        margin-bottom: var(--spacing-xl);
    }
    
    .price-card {
        margin-bottom: var(--spacing-xl);
    }
    
    .team-member img {
        width: 170px;
        height: 170px;
    }
    
    .gallery-item img {
        height: 280px;
    }
    
    .contact-form {
        padding: var(--spacing-xl);
    }
    
    .process-step {
        padding: var(--spacing-xl);
    }
    
    .timeline-item {
        padding-left: var(--spacing-xl);
    }
    
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}

/* Tablet Portrait and Landscape Orientations */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero {
        min-height: 80vh;
    }
    
    .navbar-toggler {
        display: none;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    .price-card.featured {
        transform: scale(1.02);
    }
    
    .gallery-item:hover {
        transform: scale(1.02);
    }
    
    .service-card:hover,
    .feature-item:hover,
    .team-member:hover,
    .review-card:hover,
    .casestudy-item:hover,
    .process-step:hover,
    .career-item:hover,
    .coreinfo-item:hover,
    .blog-card:hover {
        transform: translateY(-3px);
    }
}

/* Mobile Landscape Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: var(--spacing-md) 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
    
    .navbar {
        padding: var(--spacing-xs) 0;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.875rem;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before {
        background-image: url('../GIK_images/hero-bg-2x.webp');
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
    
    .service-card,
    .feature-item,
    .price-card,
    .team-member,
    .review-card,
    .casestudy-item,
    .process-step,
    .career-item,
    .coreinfo-item,
    .blog-card,
    .gallery-item {
        transition: none;
    }
    
    .service-card:hover,
    .feature-item:hover,
    .price-card:hover,
    .team-member:hover,
    .review-card:hover,
    .casestudy-item:hover,
    .process-step:hover,
    .career-item:hover,
    .coreinfo-item:hover,
    .blog-card:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .footer,
    .contact-form,
    .btn {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-md) 0;
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .gallery-item,
    .team-member img {
        page-break-inside: avoid;
    }
    
    .service-card,
    .feature-item,
    .price-card,
    .team-member,
    .review-card,
    .casestudy-item,
    .process-step,
    .career-item,
    .coreinfo-item,
    .blog-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* Custom Breakpoints for Specific Elements */

/* Gallery Grid Responsive */
@media (max-width: 575.98px) {
    .gallery-item {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery-item {
        width: calc(50% - 20px);
        margin: 0 10px var(--spacing-md);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .gallery-item {
        width: calc(33.333% - 20px);
        margin: 0 10px var(--spacing-md);
    }
}

@media (min-width: 992px) {
    .gallery-item {
        width: calc(25% - 20px);
        margin: 0 10px var(--spacing-md);
    }
}

/* Services Grid Responsive */
@media (max-width: 575.98px) {
    .service-card {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .service-card {
        width: calc(50% - 20px);
        margin: 0 10px var(--spacing-md);
    }
}

@media (min-width: 992px) {
    .service-card {
        width: calc(33.333% - 20px);
        margin: 0 10px var(--spacing-md);
    }
}

/* Team Grid Responsive */
@media (max-width: 575.98px) {
    .team-member {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .team-member {
        width: calc(50% - 20px);
        margin: 0 10px var(--spacing-md);
    }
}

@media (min-width: 992px) {
    .team-member {
        width: calc(20% - 20px);
        margin: 0 10px var(--spacing-md);
    }
}

/* Features Grid Responsive */
@media (max-width: 575.98px) {
    .feature-item {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .feature-item {
        width: calc(50% - 20px);
        margin: 0 10px var(--spacing-md);
    }
}

@media (min-width: 992px) {
    .feature-item {
        width: calc(25% - 20px);
        margin: 0 10px var(--spacing-md);
    }
}

/* Price Plan Grid Responsive */
@media (max-width: 575.98px) {
    .price-card {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .price-card {
        width: calc(50% - 20px);
        margin: 0 10px var(--spacing-lg);
    }
}

@media (min-width: 992px) {
    .price-card {
        width: calc(33.333% - 20px);
        margin: 0 10px var(--spacing-lg);
    }
}

/* Reviews Grid Responsive */
@media (max-width: 575.98px) {
    .review-card {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .review-card {
        width: calc(50% - 20px);
        margin: 0 10px var(--spacing-md);
    }
}

@media (min-width: 992px) {
    .review-card {
        width: calc(20% - 20px);
        margin: 0 10px var(--spacing-md);
    }
}

/* Blog Grid Responsive */
@media (max-width: 575.98px) {
    .blog-card {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .blog-card {
        width: calc(50% - 20px);
        margin: 0 10px var(--spacing-md);
    }
}

@media (min-width: 992px) {
    .blog-card {
        width: calc(33.333% - 20px);
        margin: 0 10px var(--spacing-md);
    }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        display: none;
    }
    
    .navbar-collapse.show {
        display: block;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: var(--spacing-xs) 0;
        width: 100%;
    }
}

/* Contact Form Responsive */
@media (max-width: 575.98px) {
    .contact-form .row {
        margin: 0;
    }
    
    .contact-form .col-md-6 {
        padding: 0;
        margin-bottom: var(--spacing-sm);
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    .footer .row {
        flex-direction: column;
    }
    
    .footer .col-md-3,
    .footer .col-md-4 {
        margin-bottom: var(--spacing-md);
        text-align: center;
    }
}

/* Bootstrap responsive utility overrides removed - using Bootstrap 5 defaults */ 