/* ========================================
   RESPONSIVE CSS - All Devices
   Mobile First Approach
======================================== */

/* ========================================
   Base Mobile Styles (320px+)
======================================== */
@media (max-width: 575px) {
    /* Typography */
    body {
        font-size: 14px;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    h1 {
        font-size: 18px !important;
    }
    
    h2 {
        font-size: 18pxpx !important;
    }
    
    h3 {
        font-size: 20px !important;
    }
    
    h4 {
        font-size: 18px !important;
    }
    
    /* Top Bar - Hide on mobile */
    .top-bar {
        display: none !important;
    }
    
    /* Navbar */
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 22px;
    }
    
    .logo {
        height: 40px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .navbar-nav {
        margin-top: 15px;
    }
    
    .nav-link {
        padding: 8px 0 !important;
        font-size: 14px;
    }
    
    .get-quote-btn {
        width: 100%;
        margin-top: 15px;
        margin-left: 0 !important;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px;
        background-color: transparent;
    }
    
    .dropdown-item {
        padding: 8px 0;
        font-size: 13px;
    }
    
    /* Hero Slider */
    .hero-slider {
        margin-top: 0;
    }
    
    .hero-slide {
        height: 450px !important;
    }
    
    .hero-content {
        padding: 20px 0;
    }
    
    .hero-subtitle {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .hero-title {
        font-size: 26px !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 14px !important;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .video-play-btn-inline {
        width: 50px;
        height: 50px;
    }
    
    .video-play-btn-inline i {
        font-size: 18px;
    }
    
    .watch-video-text {
        font-size: 14px;
    }
    
    /* Features Section */
    .features-section {
        margin-top: 0;
    }
    
    .feature-box {
        padding: 30px 20px;
        min-height: auto;
    }
    
    .feature-light {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .feature-icon {
        font-size: 38px;
        margin-bottom: 15px;
    }
    
    .feature-dark,
    .feature-green {
        margin-top: 0;
        margin-left: 0 !important;
        min-height: auto !important;
        height: auto !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .feature-number {
        font-size: 50px !important;
    }
    
    .feature-dark h4,
    .feature-green h4 {
        font-size: 20px;
    }
    
    /* Container - Unified Padding for Mobile */
    .container,
    .navbar .container-fluid,
    .top-bar .container-fluid,
    section .container,
    section .container-fluid,
    .footer .container,
    .hero-slider .container,
    .experience-section .row,
    .production-section .row,
    .features-section .row {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Experience and Production sections */
    .experience-content,
    .production-content {
        padding: 40px 20px;
        max-width: 100%;
    }
    
    /* About Section */
    .about-section {
        padding: 50px 0;
    }
    
    .about-images-wrapper {
        padding-right: 0;
        padding-bottom: 0;
        margin-bottom: 40px;
    }
    
    .about-image-left img {
        width: 100%;
    }
    
    .about-image-right {
        position: relative;
        width: 100%;
        margin-top: 20px;
        padding: 0;
        box-shadow: none;
    }
    
    .about-content {
        padding-left: 0;
    }
    
    .about-info-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-stats-box {
        min-width: 100%;
        padding: 35px 25px;
    }
    
    .about-features-list {
        grid-template-columns: 1fr;
    }
    
    .about-author-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .about-btn {
        width: 100%;
    }
    
    /* Services Section */
    .services-section {
        padding: 50px 0;
    }
    
    .section-header {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    /* Projects */
    .projects-section {
        padding: 50px 0;
    }
    
    .project-card {
        margin-bottom: 20px;
    }
    
    /* Blog */
    .blog-section {
        padding: 50px 0;
    }
    
    .blog-card {
        margin-bottom: 20px;
    }
    
    /* Contact CTA */
    .contact-cta-section {
        padding: 60px 0;
        text-align: left;
    }
    
    .contact-cta-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .cta-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* About Page Responsiveness */
    .about-hero-section {
        height: 300px;
    }
    
    .breadcrumb-box {
        padding: 10px 10px;
        width: 100%;
        text-align: center;
    }
    
    .breadcrumb-box h1 {
        font-size: 24px;
    }
    
    .about-images-group {
        padding-right: 0;
        padding-bottom: 0;
        margin-bottom: 40px;
    }
    
    .image-main img {
        height: 350px;
    }
    
    .image-overlay {
        display: none;
    }
    
    .experience-badge-dark {
        margin-bottom: 30px;
    }
    
    .production-info-box {
        position: relative;
        width: 100%;
        bottom: 0;
        right: 0;
        padding: 40px 30px;
    }
    
    .production-info-box h3 {
        font-size: 24px;
    }
    
    .work-step-card {
        margin-bottom: 30px;
    }

    .stats-container-v2 {
        bottom: 0;
        margin-bottom: 40px;
    }
    
    .stats-container-v2 .border-end {
        border-end: none !important;
        border-bottom: 1px solid #eee;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    .footer-bottom .text-end {
        text-align: start !important;
        margin-top: 10px;
    }
    
    /* Video Modal */
    .video-modal-content {
        width: 95%;
    }
    
    .video-modal iframe {
        height: 220px;
    }
    
    /* Carousel Controls */
    .carousel-indicators {
        bottom: 10px;
    }
}

/* ========================================
   Mobile Landscape (576px - 767px)
======================================== */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-slide {
        height: 500px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .feature-box {
        padding: 35px 25px;
    }
    
    .container,
    .navbar .container-fluid {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    /* Top Bar - Hide on mobile landscape */
    .top-bar {
        display: none !important;
    }
}

/* ========================================
   Show Top Bar on Desktop/Tablet (768px+)
======================================== */
@media (min-width: 768px) {
    .top-bar {
        display: block !important;
    }
}

/* ========================================
   Tablets Portrait (768px - 991px)
======================================== */
@media (min-width: 768px) and (max-width: 991px) {
    /* Hero */
    .hero-slide {
        height: 550px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    /* Top Bar - Show on tablet and above */
    .top-bar {
        display: block !important;
        padding: 0;
    }
    
    .top-bar .container-fluid {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
    
    .top-bar .row {
        flex-direction: row;
    }
    
    .top-bar-left {
        flex-direction: row;
        gap: 30px;
    }
    
    .top-bar-left span {
        padding: 16px 0;
        width: auto;
        border: none;
        font-size: 12px;
    }
    
    .top-bar-right {
        border: none;
    }
    
    .social-icons {
        width: auto;
    }
    
    .social-icons a {
        width: 50px;
        height: 50px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Features */
    .feature-box {
        padding: 40px 30px;
    }
    
    .feature-dark,
    .feature-green {
        margin-top: -100px;
        height: 240px !important;
        min-height: 240px !important;
    }
    
    .feature-number {
        font-size: 60px !important;
    }
    
    /* Navbar */
    .navbar-nav {
        margin-top: 20px;
    }
    
    .get-quote-btn {
        margin-top: 15px;
        width: 100%;
    }
    
    /* About Section Tablet */
    .about-images-wrapper {
        padding-right: 0;
        padding-bottom: 0;
        margin-bottom: 50px;
    }
    
    .about-image-left img {
        width: 100%;
    }
    
    .about-image-right {
        position: relative;
        width: 80%;
        margin: -50px 0 0 auto;
        padding: 10px;
    }
    
    .about-content {
        padding-left: 0;
    }
    
    .about-info-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
    
    .about-stats-box {
        min-width: 200px;
    }
    
    .about-features-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Sections */
    .about-section,
    .services-section,
    .projects-section,
    .blog-section {
        padding: 70px 0;
    }
    
    /* Container - Tablet Portrait Padding */
    .container,
    .navbar .container-fluid,
    .top-bar .container-fluid,
    section .container,
    section .container-fluid,
    .footer .container,
    .hero-slider .container,
    .experience-section .row,
    .production-section .row,
    .features-section .row {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
    
    /* Experience and Production sections */
    .experience-content,
    .production-content {
        padding: 60px 40px;
        max-width: 600px;
    }
}

/* ========================================
   Tablets Landscape (992px - 1199px)
======================================== */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-slide {
        height: 600px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .feature-dark,
    .feature-green {
        margin-top: -120px;
    }
    
    /* Top Bar - Show and style for desktop */
    .top-bar {
        display: block !important;
    }
    
    .top-bar .row {
        flex-direction: row;
    }
    
    .top-bar-left {
        flex-direction: row;
        gap: 35px;
    }
    
    .top-bar-left span {
        width: auto;
        border: none;
        padding: 16px 0;
    }
}

/* ========================================
   Desktop (1200px - 1399px)
======================================== */
@media (min-width: 1200px) and (max-width: 1399px) {
    /* Top Bar - Show on desktop */
    .top-bar {
        display: block !important;
    }
    
    .top-bar .row {
        flex-direction: row;
    }
    
    .top-bar-left {
        flex-direction: row;
    }
    
    .hero-slide {
        height: 650px;
    }
    
    .feature-dark,
    .feature-green {
        margin-top: -130px;
    }
}

/* ========================================
   Large Desktop (1400px+)
======================================== */
@media (min-width: 1400px) {
    /* Top Bar - Show on large desktop */
    .top-bar {
        display: block !important;
    }
    
    .top-bar .row {
        flex-direction: row;
        margin: 0;
    }
    
    .top-bar-left {
        flex-direction: row;
        gap: 40px;
    }
    
    .top-bar-left span {
        width: auto;
        border: none;
    }
    
    .hero-slide {
        height: 700px;
    }
    
    .feature-dark,
    .feature-green {
        width: 298px;
        min-width: 298px;
    }
    
    .feature-green {
        margin-left: -64px;
    }
}

/* ========================================
   Extra Large Screens (1920px+)
======================================== */
@media (min-width: 1920px) {
    .hero-slide {
        height: 800px;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .hero-description {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 48px;
    }
    
    .feature-box {
        padding: 60px 50px;
    }
    
    .feature-dark,
    .feature-green {
        margin-top: -180px;
        height: 300px;
        min-height: 300px;
        width: 350px;
        min-width: 350px;
    }
    

    .experience-content,
    .production-content {
        padding: 20px 20px;
    }
}

/* ========================================
   Ultra Wide Screens (2560px+) - 4K/5K Monitors
======================================== */
@media (min-width: 2560px) {
    .hero-slide {
        height: 900px;
    }
    
    .hero-title {
        font-size: 72px;
    }
    
    .feature-dark,
    .feature-green {
        width: 400px;
        min-width: 400px;
        height: 320px;
        min-height: 320px;
    }
    
    .experience-content,
    .production-content {
        padding: 120px 100px;
    }
}

/* ========================================
   Touch Devices Optimization
======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for mobile */
    .nav-link,
    .btn,
    .feature-link,
    .blog-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Remove hover effects on touch devices */
    .feature-box:hover {
        transform: none;
    }
    
    .project-card:hover .project-overlay {
        transform: translateY(0);
        opacity: 1;
    }
    
    .project-card:hover img {
        transform: none;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .top-bar,
    .navbar,
    .hero-slider,
    .features-section,
    .video-modal,
    .back-to-top,
    .footer-social,
    .get-quote-btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
    }
}

/* ========================================
   Landscape Orientation
======================================== */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-slide {
        height: 100vh;
    }
    
    .navbar {
        padding: 5px 0;
    }
    
    .top-bar {
        display: none !important;
    }
}

/* ========================================
   High DPI Displays (Retina)
======================================== */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Optimize images and icons for retina displays */
    .logo,
    .feature-icon,
    .social-icons a {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ========================================
   Reduced Motion (Accessibility)
======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-slide::before {
        animation: none !important;
    }
    
    .carousel-item {
        transition: none !important;
    }
}

/* ========================================
   Dark Mode Support (Optional)
======================================== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
    /* Example:
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    */
}

/* ========================================
   Small Devices Specific Fixes
======================================== */
@media (max-width: 375px) {
    /* iPhone SE, small phones */
    .hero-title {
        font-size: 24px !important;
    }
    
    .feature-number {
        font-size: 40px !important;
    }
    
    .get-quote-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* ========================================
   Medium Devices Optimization
======================================== */
@media (min-width: 768px) {
    /* Two columns for features */
    .feature-box {
        min-height: 240px;
    }
}

/* ========================================
   iPad Specific
======================================== */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (-webkit-min-device-pixel-ratio: 2) {
    .hero-slide {
        height: 600px;
    }
    
    .feature-dark,
    .feature-green {
        margin-top: -100px;
    }
}

/* ========================================
   Surface/Tablet Pro Specific
======================================== */
@media (min-width: 1024px) and (max-width: 1366px) {
}

/* ========================================
   Safe Area (iPhone X+, Notch Devices)
======================================== */
@supports (padding: max(0px)) {
    .navbar,
    .footer,
    .top-bar {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
}

/* ========================================
   Flexible Images
======================================== */
@media (max-width: 991px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .project-card img,
    .blog-image img {
        width: 100%;
        object-fit: cover;
    }
}

/* ========================================
   Grid Layout Adjustments
======================================== */
@media (max-width: 767px) {
    .row > * {
        margin-bottom: 20px;
    }
    
    .g-4 {
        gap: 1rem !important;
    }
}

/* ========================================
   Form Elements Responsive
======================================== */
@media (max-width: 575px) {
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

