/* Mobile Responsive Styles for TAP Design */

/* Hide/Show Headers Based on Screen Size */
.desktop-header {
  display: block;
}

.mobile-header {
  display: none;
}

/* Mobile Navigation Panel - Hidden by default */
.mobile-nav-panel {
  display: none;
}

.mobile-overlay {
  display: none;
}

/* Base Mobile Styles */
@media screen and (max-width: 991px) {
  /* Hide desktop header, show mobile header */
  .desktop-header {
    display: none !important;
  }
  
  /* Hide desktop hamburger menu */
  .aside_open {
    display: none !important;
  }
  
  .mobile-header {
    display: block !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
  }
  
  /* Mobile Header Styling */
  .mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .mobile-logo img {
    height: 40px;
    width: auto;
  }
  
  /* Mobile Menu Toggle Button */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  
  /* Mobile Navigation Panel */
  .mobile-nav-panel {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
  }
  
  .mobile-nav-panel.show {
    right: 0;
  }
  
  /* Mobile Overlay */
  .mobile-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-overlay.show {
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mobile-nav-logo img {
    height: 40px;
    width: auto;
  }
  
  .mobile-nav-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
  }
  
  .mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-nav-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mobile-nav-menu li a {
    display: block;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .mobile-nav-menu li a:hover {
    color: #e8b86d;
  }
  
  .hamburger-line {
    width: 20px;
    height: 2px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
  }
  
  /* Hamburger Animation */
  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 4px);
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -4px);
  }
  
  /* Body padding to account for fixed header */
  body {
    padding-top: 70px;
  }
  
  /* Remove any extra spacing from wrapper elements */
  .wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  /* Ensure page header is tight against mobile header */
  .page_header {
    margin-top: 0 !important;
  }
  
  /* Remove default Bootstrap margins */
  .page_header .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  /* PROJECTS PAGE FIXES - TEXT BELOW IMAGE ON MOBILE */
  .projects .grid-item .thumb {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
  }
  
  .projects .grid-item .thumb img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .projects .grid-item .thumb .works-info,
  .projects .thumb .works-info,
  .grid-item .works-info,
  .thumb .works-info {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: static !important;
    background: #f8f8f8 !important;
    padding: 20px !important;
    margin-top: 0 !important;
    z-index: auto !important;
    transform: none !important;
    transition: none !important;
    border: 1px solid #e0e0e0 !important;
    border-top: none !important;
  }
  
  .projects .works-info .label-text,
  .projects .label-text,
  .grid-item .label-text,
  .thumb .label-text {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .projects .works-info .label-text h5,
  .projects .works-info .label-text h6,
  .projects .label-text h5,
  .projects .label-text h6,
  .grid-item .label-text h5,
  .grid-item .label-text h6,
  .thumb .label-text h5,
  .thumb .label-text h6 {
    color: #333 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .projects .works-info .label-text h6,
  .projects .label-text h6,
  .grid-item .label-text h6,
  .thumb .label-text h6 {
    font-size: 14px !important;
    margin-bottom: 5px !important;
    color: #666 !important;
  }
  
  .projects .works-info .details_link,
  .projects .details_link,
  .grid-item .details_link,
  .thumb .details_link {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 10px !important;
  }
  
  .projects .works-info .details_link a,
  .projects .details_link a,
  .grid-item .details_link a,
  .thumb .details_link a {
    color: #e8b86d !important;
    text-decoration: none !important;
  }
  
  /* ABOUT PAGE - TEAM SECTION FIXES */
  .team .section-header h1 {
    font-size: 32px !important;
    margin-bottom: 30px !important;
  }
  
  .team {
    padding: 60px 0 !important;
  }
  
  .team .team-block img {
    height: 200px !important;
    width: 100% !important;
    object-fit: cover !important;
  }
  
  .team .team-block h5 {
    font-size: 18px !important;
    margin: 15px 0 5px 0 !important;
  }
  
  .team .team-block h6 {
    font-size: 14px !important;
  }
  
  /* SHOP PAGE - HIDE GRID/LIST TOGGLE ON MOBILE */
  .view_type_wrapper .view_type {
    display: none !important;
  }
  
  .view_type_wrapper .showing_results {
    font-size: 14px !important;
  }
  
  /* BREADCRUMB SPACING FIXES - MAJOR REDUCTION */
  .page_header {
    padding: 15px 0 !important;
    min-height: auto !important;
  }
  
  .page_header_inner {
    padding: 15px 0 !important;
    min-height: auto !important;
  }
  
  .page_header_content {
    min-height: auto !important;
  }
  
  .page_header_content h2.heading {
    font-size: 24px !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
  }
  
  .breadcrumb {
    font-size: 14px !important;
    margin-bottom: 0 !important;
  }
  
  .breadcrumb li {
    margin: 0 5px !important;
  }
  

  
  /* Container adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure project text is always visible and styled correctly */
  .projects .works-info,
  .projects .label-text,
  .projects .label-text h5,
  .projects .label-text h6,
  .projects .label-text a,
  .projects .details_link {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Make project grid items have proper spacing */
  .projects .grid-item {
    margin-bottom: 30px !important;
  }
}

/* Tablet and Small Desktop */
@media screen and (max-width: 768px) {
  /* Further optimize team section for smaller screens */
  .team .team-block img {
    height: 150px !important;
  }
  
  .team .section-header h1 {
    font-size: 28px !important;
  }
  
  /* Projects - tablet optimization with text below */
  .projects .grid-item .thumb .works-info,
  .projects .thumb .works-info,
  .grid-item .works-info,
  .thumb .works-info {
    padding: 15px !important;
    background: #f5f5f5 !important;
  }
  
  .projects .works-info .label-text h5,
  .projects .label-text h5,
  .grid-item .label-text h5,
  .thumb .label-text h5 {
    font-size: 14px !important;
    color: #333 !important;
  }
  
  .projects .works-info .label-text h6,
  .projects .label-text h6,
  .grid-item .label-text h6,
  .thumb .label-text h6 {
    font-size: 12px !important;
    color: #666 !important;
  }
  
  /* Shop page adjustments */
  .shop_filtering_method {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
  }
  
  /* Breadcrumb further optimization - MORE REDUCTION */
  .page_header {
    padding: 12px 0 !important;
  }
  
  .page_header_inner {
    padding: 12px 0 !important;
  }
  
  .page_header_content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  
  .page_header_content h2.heading {
    font-size: 22px !important;
    margin-bottom: 5px !important;
  }
  
  /* Slider Content Adjustments */
  .theme_slider_3 .slider .slide_content .slide_content_wrapper .slide_content_inner h4 {
    font-size: 24px !important;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  
  .theme_slider_3 .slider .slide_content .slide_content_wrapper .slide_content_inner .details_link {
    font-size: 14px;
  }
  
  /* Image Responsive Fixes */
  .slider {
    background-size: cover !important;
    background-position: center center !important;
    min-height: 60vh;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Logo Adjustments */
  .header .logo img {
    max-height: 40px;
    width: auto;
  }
  
  /* Portfolio/Project Grid */
  .portfolio-item,
  .project-item {
    margin-bottom: 30px;
  }
  
  /* Text Size Adjustments */
  h1 { font-size: 28px !important; }
  h2 { font-size: 24px !important; }
  h3 { font-size: 20px !important; }
  h4 { font-size: 18px !important; }
  h5 { font-size: 16px !important; }
  
  /* Button Adjustments */
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  /* Section Padding */
  .section {
    padding: 60px 0;
  }
}

/* Mobile Phone */
@media screen and (max-width: 480px) {
  /* Projects - phone optimization with text below */
  .projects .grid-item .thumb .works-info,
  .projects .thumb .works-info,
  .grid-item .works-info,
  .thumb .works-info {
    padding: 12px !important;
    background: #f0f0f0 !important;
  }
  
  .projects .works-info .label-text h5,
  .projects .works-info .label-text h6,
  .projects .label-text h5,
  .projects .label-text h6,
  .grid-item .label-text h5,
  .grid-item .label-text h6,
  .thumb .label-text h5,
  .thumb .label-text h6 {
    font-size: 13px !important;
    line-height: 1.3 !important;
    color: #333 !important;
  }
  
  .projects .works-info .label-text h6,
  .projects .label-text h6,
  .grid-item .label-text h6,
  .thumb .label-text h6 {
    color: #666 !important;
  }
  
  /* Team section - phone optimization */
  .team .team-block img {
    height: 120px !important;
  }
  
  .team .section-header h1 {
    font-size: 24px !important;
  }
  
  .team .team-block h5 {
    font-size: 16px !important;
  }
  
  .team .team-block h6 {
    font-size: 12px !important;
  }
  
  /* Breadcrumb - MINIMAL spacing on phones */
  .page_header {
    padding: 10px 0 !important;
  }
  
  .page_header_inner {
    padding: 10px 0 !important;
  }
  
  .page_header_content {
    gap: 5px !important;
  }
  
  .page_header_content h2.heading {
    font-size: 20px !important;
    margin-bottom: 3px !important;
  }
  
  .breadcrumb {
    font-size: 12px !important;
  }
  
  /* Header */
  .header {
    padding: 10px 0;
  }
  
  .header .logo img {
    max-height: 35px;
  }
  
  /* Slider Adjustments */
  .theme_slider_3 .slider {
    min-height: 50vh;
  }
  
  .theme_slider_3 .slider .slide_content .slide_content_wrapper .slide_content_inner h4 {
    font-size: 20px !important;
    margin-bottom: 15px;
  }
  
  .theme_slider_3 .slider .slide_content .slide_content_wrapper .slide_content_inner .details_link {
    font-size: 12px;
  }
  
  /* Navigation Buttons */
  .swiper-button-next,
  .swiper-button-prev {
    width: 30px;
    height: 30px;
  }
  
  /* Aside Menu Width */
  .aside_info_wrapper {
    width: 100%;
    right: -100%;
  }
  
  /* Text Adjustments */
  h1 { font-size: 24px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 18px !important; }
  h4 { font-size: 16px !important; }
  
  /* Section Padding */
  .section {
    padding: 40px 0;
  }
  
  /* Container */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  } 