/* 
* Arjuna Jati Manufacture - Responsive Stylesheet
* Version: 2.0
*/

/* ===============
   General Responsive Styles
   =============== */
   :root {
    --vh: 1vh;
}

@media (max-width: 1200px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.6rem;
    }
    
    .section-location {
        font-size: 1.3rem;
    }

    /* Collection image height on larger screens */
    .collection-image .flip-card img {
        max-height: 600px;
    }
}

@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.4rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    /* Collection section adjustments */
    .collection-section {
        padding-bottom: 50px !important;
    }
    
    .collection-image {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }
    
    .collection-image .flip-card img {
        max-height: 500px;
        width: 100%;
        object-fit: cover;
    }
    
    /* Portfolio section adjustments */
    .portfolio-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    
    .portfolio-content.text-right {
        text-align: left !important;
    }
    
    .portfolio-section .section-title {
        font-size: 2.8rem !important;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.3rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    /* Collection section mobile adjustments */
    .collection-section {
        padding-bottom: 30px !important;
    }
    
    .collection-image {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }
    
    .collection-image .flip-card img {
        max-height: 400px;
        width: 100%;
        object-fit: cover;
    }
    
    /* Portfolio section mobile adjustments */
    .portfolio-section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    
    .portfolio-content {
        text-align: center !important;
        padding: 20px 0 !important;
    }
    
    .portfolio-section .section-title {
        font-size: 2.2rem !important;
    }
    
    /* Fix the ordering issue on mobile */
    .collection-section .row [class*="col-"] {
        width: 100%;
    }
    
    /* Add some spacing between sections on mobile */
    .about-section,
    .services-section,
    .collection-section,
    .portfolio-section,
    .furniture-collection-section {
        padding: 40px 0 !important;
    }
}

/* ===============
   Header Responsive Styles
   =============== */
@media (max-width: 991px) {
    .main-header {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 10px 0;
    }
    
    .main-header .company-name {
        font-size: 1.5rem;
        color: var(--text-color) !important;
        text-shadow: none !important;
    }
    
    .main-header .company-tagline {
        font-size: 0.9rem;
        color: var(--secondary-color) !important;
        text-shadow: none !important;
    }
    
    .main-header .navbar-toggler {
        border-color: var(--primary-color);
        margin-right: 15px;
    }
    
    .main-header .navbar-collapse {
        background-color: white;
        margin-top: 10px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 10px;
    }
    
    .main-header .nav-link {
        color: var(--text-color) !important;
        text-shadow: none !important;
        text-align: left;
        padding: 10px 15px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .main-header .dropdown-menu {
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.02);
        padding: 0;
        margin: 0;
    }
    
    .main-header .dropdown-item {
        padding: 10px 30px;
    }
    
    .brand-container {
        width: auto;
        padding-left: 15px;
    }
    
    .nav-container {
        width: 100%;
        padding-right: 0;
    }
    
    .logo-img {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .main-header {
        padding: 8px 0;
    }
    
    .company-name {
        font-size: 1.3rem;
    }
    
    .company-tagline {
        font-size: 0.8rem;
    }
    
    .logo-img {
        height: 40px;
    }

    /* Small mobile fixes */
    .collection-image .flip-card img {
        max-height: 350px;
    }
    
    .portfolio-section .section-title {
        font-size: 1.8rem !important;
    }
}

/* ===============
   Hero Slider Responsive Styles
   =============== */
@media (max-width: 1200px) {
    .slide-title {
        font-size: 5rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 991px) {
    .slide-title {
        font-size: 4rem;
    }
    
    .slide-content {
        left: 8%;
        max-width: 80%;
    }
    
    /* Set to full height on all viewports with a CSS variable fallback */
    .hero-slider-container {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-arrow-prev {
        left: 20px;
    }
    
    .slider-arrow-next {
        right: 20px;
    }
}

@media (max-width: 767px) {
    .slide-title {
        font-size: 3.2rem;
        white-space: normal; /* Allow line breaks on mobile */
        line-height: 1.1;
    }
    
    .slide-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .slide-content {
        left: 5%;
        max-width: 90%;
        text-align: center;
    }
    
    /* Set to full height on all viewports */
    .hero-slider-container {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
    }
}

@media (max-width: 576px) {
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .hero-slide .btn {
        padding: 7px 15px;
        font-size: 0.8rem;
    }
    
    /* Set to full height on all viewports */
    .hero-slider-container {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .slider-arrow-prev {
        left: 10px;
    }
    
    .slider-arrow-next {
        right: 10px;
    }
}

/* ===============
   About Section Responsive Styles
   =============== */
@media (max-width: 991px) {
    .about-content {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .background-text {
        display: none; /* Hide background text on smaller screens */
    }
    
    /* Add padding to about image in responsive view */
    .about-section .about-image {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .about-content {
        text-align: center;
    }
    
    .about-content .btn {
        margin-top: 10px;
        margin-bottom: 30px;
    }
    
    .about-section .about-image {
        padding: 10px;
    }
}

/* ===============
   Services Section Responsive Styles
   =============== */
@media (max-width: 991px) {
    /* Reset the order for manufacturing services section */
    .services-section .row {
        display: flex;
        flex-direction: column;
    }
    
    .services-section .service-content {
        order: 1;
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .services-section .service-image {
        order: 2;
        margin-top: 30px;
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .service-content {
        text-align: center;
    }
    
    .service-content .btn {
        margin-bottom: 30px;
    }
    
    .services-section .service-image {
        padding: 10px;
    }
}

/* ===============
   Collection Section Responsive Styles
   =============== */
/* Remove white background from collection content */
.collection-content {
    background-color: transparent !important;
    padding: 0 !important;
}

/* Restore offset positioning for collection image on desktop */
@media (min-width: 992px) {
    /* Maintain the original staggered layout */
    .collection-section {
        position: relative;
        z-index: 2;
        padding-top: 220px !important;
        margin-top: -140px !important;
    }
    
    .collection-image {
        position: relative;
        z-index: 3;
        margin-top: -250px !important;
    }
    
    .collection-image .flip-card img {
        max-height: 700px;
        object-fit: cover;
        width: 100%;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 991px) {
    /* Reset collection section positioning for mobile */
    .collection-section {
        position: relative;
        z-index: 2;
        padding-top: 60px !important;
        margin-top: 0 !important;
    }
    
    .collection-image {
        position: relative;
        z-index: 1;
        margin-top: 20px !important;
        margin-bottom: 0 !important;
        padding: 15px;
    }
    
    .collection-image .flip-card img {
        max-height: 500px;
        width: 100%;
        object-fit: cover;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Reset the order for collection section */
    .collection-section .row {
        display: flex;
        flex-direction: column;
    }
    
    .collection-section .col-lg-6:nth-child(2) {
        order: 1;
    }
    
    .collection-section .col-lg-6:nth-child(1) {
        order: 2;
        margin-top: 30px;
    }
    
    /* Hide the mobile overlay text */
    .collection-section .mobile-overlay {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .collection-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .collection-image .flip-card img {
        max-height: 400px;
    }
    
    .collection-section .collection-image {
        padding: 10px;
    }
    
    .collection-section .col-lg-6 > div {
        text-align: center;
    }
    
    .collection-section .btn {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .collection-image .flip-card img {
        max-height: 350px;
    }
}

/* ===============
   Portfolio Section Responsive Styles
   =============== */
@media (max-width: 991px) {
    .portfolio-content {
        padding: 40px 0;
    }
}

@media (max-width: 767px) {
    .portfolio-content {
        text-align: center;
        padding: 30px 0;
    }
}

/* ===============
   Furniture Collection Section Responsive Styles
   =============== */
@media (max-width: 767px) {
    .furniture-collection-section .btn {
        margin-top: 10px;
    }
}

/* ===============
   Footer Responsive Styles
   =============== */
@media (max-width: 991px) {
    .main-footer {
        padding: 60px 0 20px;
    }
    
    .footer-heading {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .footer-about {
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
        display: block;
    }
    
    .social-links {
        justify-content: center;
        display: flex;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-heading {
        text-align: center;
    }
    
    .footer-links li, 
    .footer-contact li {
        text-align: center;
    }
}

/* ===============
   Preloader Responsive Styles
   =============== */
@media (max-width: 576px) {
    .preloader-logo {
        width: 120px;
    }
    
    .spinner > div {
        width: 14px;
        height: 14px;
    }
}

/* ===============
   Fixing Specific Mobile Issues
   =============== */
@media (max-width: 767px) {
    /* Fix for dropdown alignment */
    .dropdown-menu {
        margin-left: 20px;
    }
    
    /* Fix for table scrolling */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
    }
    
    /* Fix for images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure buttons have consistent spacing */
    .btn {
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

/* ===============
   Touch Device Optimizations
   =============== */
@media (hover: none) {
    /* Optimize elements for touch devices */
    .btn, .nav-link, .footer-links a, .social-links a {
        padding: 10px; /* Bigger touch targets */
    }
    
    /* Make slider arrows bigger on touch devices */
    .slider-arrow {
        width: 44px;
        height: 44px;
    }
}

/* ===============
   Orientation Specific Adjustments
   =============== */
@media (max-width: 767px) and (orientation: landscape) {
    /* Adjustments for landscape mode on phones */
    .hero-slider-container {
        height: 100vh; /* Use full height in landscape */
        height: calc(var(--vh, 1vh) * 100);
    }
    
    .slide-title {
        font-size: 2.8rem;
    }
}

/* ===============
   High DPI / Retina Screens
   =============== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimizations for high DPI screens */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Fix for iOS Safari viewport height issue */
@supports (-webkit-touch-callout: none) {
    .hero-slider-container {
        height: -webkit-fill-available;
    }
}

/* ===============
   Critical Responsive Fixes
   =============== */

/* Fix zoom effect for hero slider that was inconsistent */
.hero-slide.active .slide-bg {
    transform: scale(1.1) !important;
    transition: transform 7s ease !important;
}

/* Fix navigation showing/hiding on mobile scroll */
@media (max-width: 991px) {
    .main-header.navbar-hidden {
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .main-header {
        transition: transform 0.3s ease, background-color 0.3s ease;
    }
    
    /* Make sure header stays visible when needed */
    .main-header:not(.navbar-hidden) {
        transform: translateY(0) !important;
    }
}

/* Make sure containers work properly */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Fix video background sizing */
.video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix flip-card issues on mobile */
@media (max-width: 767px) {
    .flip-card-inner {
        transform: none !important;
    }
    
    .flip-card-back {
        opacity: 0;
    }
}

/* Fix background images on mobile */
@media (max-width: 991px) {
    .slide-bg, 
    .portfolio-background, 
    .furniture-collection-section {
        background-attachment: scroll !important;
    }
}

/* Ensure hero content is visible */
.hero-slide.active .slide-content * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 
* Manufacturing Services Section Fix
* Add this to your responsive.css file
*/

/* Ensure image appears below button in responsive mode */
@media (max-width: 991px) {
  /* Fix services section ordering */
  .services-section .col-lg-6 {
    width: 100%;
  }
  
  .services-section .order-1,
  .services-section .order-2,
  .services-section .order-lg-1,
  .services-section .order-lg-2 {
    order: unset !important;
  }
  
  /* Force correct ordering */
  .services-section .service-content {
    order: 1 !important;
  }
  
  .services-section .service-image {
    order: 2 !important;
    margin-top: 30px !important;
  }
  
  /* Ensure button is fully visible before image */
  .services-section .btn {
    margin-bottom: 30px;
    display: inline-block;
  }
}

/* Media query for mobile devices */
@media (max-width: 767px) {
  /* Center align service content */
  .services-section .service-content {
    text-align: center;
  }
  
  /* Remove any float that might be interfering */
  .services-section .service-image {
    float: none !important;
    clear: both;
  }
}