/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Libre+Baskerville:wght@400;700&family=Montserrat:wght@700&family=Baskervville:wght@400&display=swap');

/* Font Family Definitions */
.font-open-sans {
  font-family: 'Open Sans', sans-serif;
}

.font-libre-baskerville {
  font-family: 'Libre Baskerville', serif;
}

.font-montserrat {
  font-family: 'Montserrat', sans-serif;
}

.font-baskervville {
  font-family: 'Baskervville', serif;
}

/* Font Weight Utilities */
.font-regular {
  font-weight: 400;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}


#main-navbar.absolute {
  padding-top: 0;
  padding-bottom: 0;
}

/* Mobile Menu Styles */
#mobile-menu {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-menu ul li a,
#mobile-menu ul li button {
  display: block;
  text-align: center;
}

/* Ensure mobile menu is above everything */
#mobile-menu {
  z-index: 9999;
}

#mobile-menu-btn {
  z-index: 10000;
}

/* Close icon visibility */
#close-icon {
  display: block !important;
}

#close-icon.hidden {
  display: none !important;
}

/* Menu icon visibility */
#menu-icon.hidden {
  display: none !important;
}

/* Mobile menu button when menu is open */
#mobile-menu-btn.fixed {
  position: fixed !important;
  top: 1.5rem !important;
  right: 1.5rem !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  #i.fixed {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Hero Slider Styles */
#slider-image {
  transition: opacity 0.8s ease-in-out;
}

#slider-title,
#slider-description {
  transition: opacity 0.6s ease-in-out;
}

.slider-dot {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dot:hover {
  transform: scale(1.2);
}

/* Responsive adjustments for slider section */
@media (max-width: 768px) {
  .s1 {
    min-height: 70vh;
  }
  
  #slider-pagination {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .slider-dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 640px) {
  .s1 {
    min-height: 60vh;
  }
}

/* Smooth scrolling enhancement */
html {
  scroll-behavior: auto; /* Let Lenis handle smooth scrolling */
}

/* Section 3 Image Transition */
#sec3-img {
  transition: opacity 0.5s ease-in-out;
}

/* Section 3 Tab Styles */
.sec3-tab {
  transition: all 0.3s ease;
}

.sec3-tab:hover {
  opacity: 0.9;
}

/* Performance optimization for animations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure smooth transitions for animated elements */
section,
div[class*="rounded"],
button {
  will-change: transform, opacity;
}

/* Prevent layout shift during animations */
.animate-on-scroll,
.animate-fade-in,
.animate-slide-left,
.animate-slide-right,
.animate-scale {
  backface-visibility: hidden;
  transform: translateZ(0);
}



/* Custom Scrollbar Design - Theme Color #CF4422 */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #CF4422;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #BF4423;
  cursor: pointer;
}

::-webkit-scrollbar-thumb:active {
  background: #a6381a;
}

::-webkit-scrollbar-corner {
  background: #f1f1f1;
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: #CF4422 #f1f1f1;
}

/* Smooth scrollbar animation */
::-webkit-scrollbar-thumb {
  transition: background 0.3s ease, border 0.3s ease;
}

/* Mobile scrollbar (thinner on mobile) */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  
  ::-webkit-scrollbar-thumb {
    border: 1px solid #f1f1f1;
  }
}

@media (min-width: 1400px) {
    .xlW {
        width: 1300px !important;
        margin: 0 auto;
    }
}

/* ============================================ */
/* Enquiry Popup Modal Styles */
/* ============================================ */

/* Popup Container */
#enquiry-popup {
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#enquiry-popup.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Content Animation */
#popup-content {
    max-height: 90vh;
    overflow-y: auto;
    min-height: 500px;
}

#enquiry-popup.active #popup-content {
    transform: scale(1);
    opacity: 1;
}

/* Left Image Section */
#popup-content > div:first-of-type {
    min-height: 300px;
}

/* Right Form Section */
#popup-content > div:last-of-type {
    display: flex;
    flex-direction: column;
}

/* Popup Scrollbar Styling */
#popup-content::-webkit-scrollbar {
    width: 6px;
}

#popup-content::-webkit-scrollbar-track {
    background: transparent;
}

#popup-content::-webkit-scrollbar-thumb {
    background: #CF4422;
    border-radius: 10px;
}

#popup-content::-webkit-scrollbar-thumb:hover {
    background: #BF4423;
}

/* Form Input Styles - Border Bottom Only */
#enquiry-form input,
#enquiry-form textarea {
    transition: all 0.2s ease;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}

#enquiry-form input:focus,
#enquiry-form textarea:focus {
    border-bottom-color: #CF4422 !important;
    box-shadow: none;
    background-color: transparent;
}

#enquiry-form input:focus-visible,
#enquiry-form textarea:focus-visible {
    outline: none;
}

/* Form Input Placeholder */
#enquiry-form input::placeholder,
#enquiry-form textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Select Dropdown Styling */
#enquiry-form select {
    cursor: pointer;
}

#enquiry-form select option {
    padding: 12px;
    background-color: #fff;
    color: #000;
}

/* Close Button Styles */
#popup-close-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#popup-close-btn:hover {
    transform: scale(1.1);
}

/* Submit Button Styles */
#enquiry-form button[type="submit"] {
    position: relative;
    overflow: hidden;
}

#enquiry-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#enquiry-form button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

#enquiry-form button[type="submit"]:active {
    transform: scale(0.99);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #popup-content {
        max-height: 95vh;
        margin: 1rem;
        border-radius: 20px;
        flex-direction: column;
        min-height: auto;
    }

    #enquiry-popup.active #popup-content {
        transform: scale(1);
    }

    /* Stack form fields on mobile */
    #enquiry-form .grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    #popup-content {
        max-height: 98vh;
        margin: 0.75rem;
        border-radius: 18px;
    }

    /* Prevent body scroll when popup is open */
    body.popup-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

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

/* Smooth transitions for all popup elements */
#popup-overlay,
#popup-content,
#popup-close-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility - Focus visible for keyboard navigation */
#popup-close-btn:focus-visible {
    outline: 2px solid #CF4422;
    outline-offset: 2px;
    background-color: #f3f4f6;
}

#enquiry-form input:focus-visible,
#enquiry-form textarea:focus-visible,
#enquiry-form select:focus-visible {
    outline: none;
}

#enquiry-form button[type="submit"]:focus-visible {
    outline: 3px solid rgba(207, 68, 34, 0.5);
    outline-offset: 2px;
}

/* Remove default select arrow in Firefox */
#enquiry-form select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    text-indent: 0.01px;
    text-overflow: '';
}

/* Custom select arrow for better cross-browser support */
@supports (-webkit-appearance: none) or (appearance: none) {
    #enquiry-form select {
        background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 20px;
        padding-right: 3rem;
    }
}

/* ============================================ */
/* Image Hover Scale Animation - Section 2 Row 2 Images */
/* ============================================ */

/* Section 2 Row 2 - Image Hover Scale Effect */
#sec2-row2-left-bottom-img img,
#sec2-row2-right-top-left img,
#sec2-row2-right-bottom img[src*="hr7"] {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

#sec2-row2-left-bottom-img img:hover,
#sec2-row2-right-top-left img:hover,
#sec2-row2-right-bottom img[src*="hr7"]:hover {
    transform: scale(1.1);
}

/* Background image hover effect for section 2 row 2 */
#sec2-row2-right-top-right {
    transition: background-size 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: background-size;
    background-size: 100%;
}

#sec2-row2-right-top-right:hover {
    background-size: 110% !important;
}

/* Mobile optimization - reduce scale on smaller screens */
@media (max-width: 768px) {
    #sec2-row2-left-bottom-img img:hover,
    #sec2-row2-right-top-left img:hover,
    #sec2-row2-right-bottom img[src*="hr7"]:hover {
        transform: scale(1.05);
    }
    
    #sec2-row2-right-top-right:hover {
        background-size: 105% !important;
    }
}

/* ============================================ */
/* Image Hover Scale Animation - Section 4 Featured Images */
/* ============================================ */

/* Section 4 Featured Project Images - Hover Scale Effect */
#sec4-featured-img img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

#sec4-featured-img img:hover {
    transform: scale(1.1);
}

/* Section 4 Row 2 - Image Hover Scale Effect */
#sec4-card1 img[src*="nim3"],
#sec4-card3 img[src*="hr6"] {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

#sec4-card1 img[src*="nim3"]:hover,
#sec4-card3 img[src*="hr6"]:hover {
    transform: scale(1.1);
}

/* Background image hover effect for section 4 card 2 */
#sec4-card2 {
    transition: background-size 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: background-size;
    background-size: 100% !important;
}

#sec4-card2:hover {
    background-size: 110% !important;
}

/* Mobile optimization - reduce scale on smaller screens */
@media (max-width: 768px) {
    #sec4-featured-img img:hover {
        transform: scale(1.05);
    }
    
    #sec4-card1 img[src*="nim3"]:hover,
    #sec4-card3 img[src*="hr6"]:hover {
        transform: scale(1.05);
    }
    
    #sec4-card2:hover {
        background-size: 105% !important;
    }
}

/* Loader Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-spinner {
    animation: spin 1s linear infinite;
}

/* Popup Animations */
#loader-popup,
#success-popup,
#error-popup {
    transition: opacity 0.3s ease;
}

#loader-popup.active,
#success-popup.active,
#error-popup.active {
    display: flex !important;
}