/* ---------------------------
Portfolio Section
--------------------------- */
.portfolio_section { 
    background-color: #111; 
    color: #fff; 
    padding: 60px 0; 
}

.portfolio_box { 
    background-color: #111; 
    padding: 40px; 
}

.heading_container { 
    text-align: left; 
    margin-bottom: 30px; 
}

.filter-buttons { 
    display: flex; 
    flex-wrap: nowrap; 
    justify-content: CENTER; 
    gap: 10px; 
    margin-bottom: 40px; 
    OVerflow: visible; 
    padding: 0 20px; 
}

.filter-buttons button { 
    margin: 0; 
    padding: 10px 24px; 
    font-size: 15px; 
    font-weight: 500; 
    background: #6f4e37; 
    color: #fff; 
    border: none; 
    cursor: pointer; 
    transition: background 0.3s ease; 
    white-space: nowrap; 
    flex: 0 0 auto; 
}

.filter-buttons button.active, 
.filter-buttons button:hover { 
    background: #5a3e2c; 
}

/* Grid fix: fixed cards, centered, max 4 per row, x2 size */
.portfolio_grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, 560px); 
    gap: 20px; 
    justify-content: center; 
    width: 100%;
    margin: 0 auto; 
    max-width: calc(560px * 4 + 20px * 3); 
}

.project_card { 
    background: #222; 
    border-radius: 0; 
    overflow: hidden; 
    width: 560px; 
    height: auto; 
}

.project_card img { 
    width: 100%; 
    height: auto; 
    object-fit: cover; 
}

.project_title { 
    padding: 16px; 
    font-weight: 600; 
    text-align: center; 
    font-size: 22px; 
    color: #fff; 
}

.owl-dots { 
    text-align: center; 
    margin-top: 8px; 
}

.owl-dot span { 
    width: 10px !important; 
    height: 10px !important; 
    background: #ccc !important; 
    border-radius: 50%; 
    display: block; 
    margin: 4px; 
}

.owl-dot.active span { 
    background: #6f4e37 !important; 
}

/* Portfolio Header Breakout */
.portfolio_header {
    width: 100vw; 
    max-width: 100%; 
    margin-left: calc(-50vw + 50%); 
    padding-left: 40px; 
    padding-right: 40px; 
    box-sizing: border-box;
}

/* Info Section */
.info_section { 
    background-color: #000000; 
    color: #ffffff; 
    padding-top: 45px; 
    padding-bottom: 10px; 
}

.info_section .row > div { 
    margin-bottom: 35px; 
}

.info_section .contact_nav { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
}

.info_section .contact_nav a { 
    display: flex; 
    align-items: center; 
    color: #ffffff; 
    margin-bottom: 10px; 
    text-decoration: none;
}

.info_section .contact_nav a i { 
    font-size: 22px; 
    margin-right: 10px; 
}

.info_section .contact_nav a:hover { 
    color: #6F4E3780; 
}

.info_section .info_top { 
    padding: 45px 0; 
}

.info_section h4 { 
    text-transform: uppercase; 
    position: relative; 
    margin-bottom: 20px; 
    color: #ffffff; 
    font-weight: 600; 
}

.info_section .social_box { 
    width: 100%; 
    display: flex; 
    margin-top: 25px; 
}

.info_section .social_box a { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border-radius: 100%; 
    width: 40px; 
    height: 40px; 
    border: 1px solid #ffffff; 
    color: #ffffff; 
    font-size: 18px; 
    margin-right: 10px; 
}

.info_section .social_box a:hover { 
    color: #6F4E3780; 
    border-color: #6F4E3780; 
}

.info_section .info_form input { 
    width: 100%; 
    border: none; 
    height: 45px; 
    margin-bottom: 15px; 
    padding-left: 25px; 
    background-color: #eaeaea; 
    outline: none; 
    color: #101010; 
}

.info_section .info_form button { 
    display: inline-block; 
    padding: 10px 45px; 
    background-color: #6F4E3780; 
    color: #ffffff; 
    border-radius: 0px; 
    border: 1px solid #6F4E3780; 
}

/* Footer Section */
.footer_section { 
    position: relative; 
    text-align: center; 
}

.footer_section p { 
    color: #000000; 
    padding: 25px 0; 
    margin: 0; 
}

.footer_section p a { 
    color: inherit; 
}

/* Smooth scroll */
html { scroll-behavior: smooth; }  

/* Language Switcher */
.language_switcher { position: relative; }

.language_switcher a {
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.2;
    color: #000;         
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    outline: none;
    box-shadow: none;
    transition: none;
}

.language_switcher a:hover { color: #000; }

#languageDropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #111;
    border: 1px solid #fff;
    list-style: none;
    padding: 5px 0;
    display: none;
    z-index: 999;
    width: 140px;
    border-radius: 4px;
}

#languageDropdown li a {
    display: block;
    padding: 8px 15px;
    color: #fff;
    text-decoration: none;
}

#languageDropdown li a:hover {
    background-color: #6F4E37;
    color: #fff;
}

/* ---------------------------
Responsive Fixes
--------------------------- */

/* Tablets (≤ 1200px) */
@media (max-width: 1200px) {
  .portfolio_grid { max-width: 100%; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .project_card { width: 100%; }
}

/* Mobiles (≤ 768px) */
@media (max-width: 768px) {
  .portfolio_section { padding: 40px 15px; }
  .portfolio_box { padding: 20px; }

  .heading_container { text-align: LEFT; }

  /* Mobile alignment fix */
  .portfolio_header {
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  .filter-buttons-wrapper {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .filter-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    padding: 8px 0 !important;
    box-sizing: border-box !important;
  }

  .filter-buttons::-webkit-scrollbar { display: none; }

  .portfolio_grid { grid-template-columns: 1fr; gap: 15px; justify-content: center; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
  .project_card { width: 100%; }
  .project_title { font-size: 18px; padding: 12px; }

  .info_section { padding-top: 30px; padding-bottom: 20px; text-align: center; }
  .info_section .contact_nav { align-items: center; }
  .info_section .social_box { justify-content: center; }
  .footer_section p { font-size: 14px; padding: 15px 0; }
}

/* Small Mobiles (≤ 480px) */
@media (max-width: 480px) {
  .filter-buttons button { padding: 8px 15px; font-size: 14px; }
  .project_title { font-size: 16px; }
  .info_section h4 { font-size: 16px; }
  .info_section .social_box a { width: 35px; height: 35px; font-size: 16px; }
}
/* Ensure Return to Home button text is fully visible on mobile */
@media (max-width: 768px) {
  .return_home_button {
    white-space: normal;   /* Allow text to wrap */
    overflow: visible;     /* Prevent cropping */
    text-overflow: clip;   /* No truncation */
  }
}

/* Make Return to Home button flexible for longer languages like French */
.return_home_button {
    min-width: auto;       /* Remove any fixed min-width */
    max-width: 100%;       /* Ensure it never overflows its container */
    white-space: normal;   /* Allow wrapping if needed */
    overflow: visible;     /* Prevent text from being cropped */
    text-align: center;    /* Keep text centered */
}

