/* Hero Carousel Styles */
.hero-carousel-container {
    height: 91vh;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-carousel {
    height: 100%;
    width: 100%;
}

.hero-slide {
    height: 91vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    width: 100%;
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* For slides using background-image */
.hero-slide[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.hero-content h2 {
    color: #FFF;
    font-family: Lora, serif;
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: 70px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-content p {
    color: #fff;
    font-family: Nunito, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 28px;
    margin-bottom: 0;
    opacity: 0.9;
}

.project-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.project-logo {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Hero Navigation */
.hero-carousel-nav {
    position: absolute;
    bottom: 50px;
    right: 8%;
    z-index: 10;
    display: flex;
    gap: 20px;
}

.hero-prev,
.hero-next {
    width: 55px;
    height: 55px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-prev::after,
.hero-next::after {
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    font-family: Arial, sans-serif;
}

.hero-prev::after {
    content: '❮';
    margin-left: -2px;
}

.hero-next::after {
    content: '❯';
    margin-left: 2px;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(245, 134, 52, 0.9);
    border-color: #f58634;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 134, 52, 0.4);
}

.hero-prev:active,
.hero-next:active {
    transform: translateY(-1px) scale(1.02);
}

/* Hero Pagination */
.hero-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hero-pagination .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin: 0;
    opacity: 1;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-pagination .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
    border-color: rgba(245, 134, 52, 0.8);
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #f58634;
    border-color: #f58634;
    transform: scale(1.3);
    box-shadow: 0 3px 12px rgba(245, 134, 52, 0.5);
}

.hero-pagination .swiper-pagination-bullet-active:hover {
    background: #f58634;
    border-color: #f58634;
}

/* Keep existing styles */
div#section1 .fp-tableCell { 
    vertical-align: bottom; 
}

a.whatsapp-icon {
    background-color: #008000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 9;
}

a#scrollToBottom {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    cursor: pointer;
    z-index: 10;
}

a#scrollToBottom:after {
    content: "";
    position: absolute;
    bottom: -27px;
    height: 30px;
    width: 2px;
    background-color: #f58634;
    left: 0;
    right: 0;
    margin: 0 auto;
}

/* About NFG */
#section2 {
    background-color: #373435;
    color: #fff;
}

a.exp-more, a.cp-video {
    width: 180px;
    height: 42px;
    flex-shrink: 0;
    background-color: #f58634;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3em;
    color: #fff;
    text-transform: uppercase;
    border: 1px solid #f58634;
    cursor: pointer;
    transition: 1s;
    text-decoration: none;
}

a.exp-more:hover {
    background-color: transparent;
    transition: 1s;
}

a.cp-video {
    background-color: transparent;
    margin-left: 15px;
    border-color: #fff;
}

a.cp-video:hover {
    background-color: #f58634;
    border-color: #f58634;
    transition: 1s;
}

ul.project-list-info {
    margin-top: 4em;
    margin-bottom: 0;
}

ul.project-list-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

ul.project-list-info li img {
    margin-right: 15px;
    position: relative;
    top: 5px;
}

ul.project-list-info li span.number {
    font-size: 24px;
}

ul.project-list-info li span.plus {
    font-size: 24px;
}

/* Projects Section */
#section3 {
    background-color: #fff;
    color: #000;
    position: relative;
    overflow: hidden;
    padding-top: 40px; /* Add specific top padding */
}

#section3 .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1140px;
    margin: 0 auto;
}

#section3 h2.section-title {
    color: #373435;
}

h4.sub-section-title {
    color: #F58634;
    font-size: 16px;
    font-family: Nunito;
    font-style: normal;
    font-weight: 500;
    line-height: normal; /* Changed from 0px to normal */
    letter-spacing: 2.8px;
    text-transform: uppercase;
    margin-bottom: 15px; /* Add margin bottom */
}

.section-title {
    margin-bottom: 40px !important; /* Increase bottom margin */
}

.projects-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 0 60px 0; /* Remove top padding */
    margin: 0 auto;
    max-width: 1400px;
}

/* Desktop slides - shown by default */
.desktop-slide {
    display: block;
}

/* Mobile slides - hidden by default */
.mobile-slide {
    display: none;
}

.project-slider.swiper {
    overflow: visible; /* Changed from hidden to visible for better mobile handling */
    width: 100%;
    padding: 0 0 70px;
    position: relative;
    margin: 0;
}

/* Desktop project cards */
.project-slider .col-md-4 {
    padding: 0 15px;
}

.project-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img.w-100 {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.project-card:hover .project-image img.w-100 {
    transform: scale(1.05);
}

.project-content {
    padding: 25px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h4 {
    color: #373435;
    font-size: 30px;
    font-family: Nunito;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 10px;
}

.project-content p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
    line-height: 22px;
    font-family: Nunito, sans-serif;
    flex-grow: 1;
}

.explore-btn {
    display: inline-block;
    background-color: #f58634;
    color: #fff;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: Nunito, sans-serif;
    letter-spacing: 0.5px;
}

.explore-btn:hover {
    background-color: #e07428;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 134, 52, 0.3);
}

.projects-pagination.swiper-pagination {
    position: relative;
    margin-top: 30px;
}

.projects-pagination .swiper-pagination-bullet {
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 8px !important;
    background: rgba(55, 52, 53, 0.3);
    transition: all 0.3s ease;
}

.projects-pagination .swiper-pagination-bullet-active {
    background-color: #f58634;
}

div#js-prev1 {
    left: -50px;
    right: auto;
    width: 50px;
    height: 50px;
    background: rgba(245, 134, 52, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
}

div#js-next1 {
    right: -50px;
    left: auto;
    width: 50px;
    height: 50px;
    background: rgba(245, 134, 52, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
}

div#js-next1:after,
div#js-prev1:after {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

div#js-prev1:hover,
div#js-next1:hover {
    background: rgba(245, 134, 52, 1);
    transform: scale(1.1);
}

/* Ensure all sections have consistent container behavior */
.section-padding .container {
    max-width: 1140px;
    margin: 0 auto;
}

/* Media Queries */
@media (max-width: 1200px) {
    #section3 .container,
    .section-padding .container {
        max-width: 960px;
    }
}

/* Mobile/Tablet View */
@media(max-width: 991px) {
    /* Hide desktop slides and show mobile slides */
    .desktop-slide {
        display: none !important;
    }
    
    .mobile-slide {
        display: block !important;
    }
    
    /* Mobile slider configuration */
    .project-slider.swiper {
        overflow: visible;
        padding: 0 15px 70px 15px; /* Add side padding */
    }
    
    .project-slider.swiper .swiper-slide {
        padding: 0;
        width: auto; /* Let swiper handle width */
        display: flex;
        justify-content: center;
    }
    
    /* Mobile project card styling */
    .mobile-slide .project-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        height: auto;
        min-height: 480px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-slide .project-image {
        height: 220px;
    }
    
    .mobile-slide .project-content {
        padding: 20px 15px;
        text-align: center;
    }
    
    .mobile-slide .project-content h4 {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 8px;
    }
    
    .mobile-slide .project-content p {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 15px;
    }
    
    .mobile-slide .explore-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    #section3 .container,
    .section-padding .container {
        max-width: 720px;
    }

    .project-status-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .mobile-slide .project-location {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .mobile-slide .project-type {
        font-size: 12px;
        margin-bottom: 10px;
        padding: 3px 6px;
    }
    
    .mobile-slide .project-features {
        margin: 12px 0;
        gap: 4px;
    }
    
    .mobile-slide .feature-tag {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .mobile-slide .project-actions {
        gap: 8px;
        padding-top: 12px;
    }
    
    .mobile-slide .project-actions .explore-btn,
    .mobile-slide .project-actions .contact-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    #section3 {
        padding-top: 30px; /* Slightly less padding on mobile */
    }
    
    h4.sub-section-title {
        margin-bottom: 10px;
    }
    
    .section-title {
        margin-bottom: 30px !important;
    }
}

@media(max-width: 992px) {
    .hero-content {
        text-align: center;
        padding: 20px;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .hero-content h2 {
        font-size: 36px;
        line-height: 50px;
    }
    
    .hero-content p {
        font-size: 16px;
        line-height: 24px;
    }
    
    .hero-carousel-nav {
        right: 50%;
        transform: translateX(50%);
        bottom: 60px;
        gap: 15px;
    }
    
    .hero-prev,
    .hero-next {
        width: 45px;
        height: 45px;
    }
    
    .hero-prev::after,
    .hero-next::after {
        font-size: 18px;
    }
    
    .hero-pagination {
        bottom: 30px;
    }
    
    .hero-pagination .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
    }

    .section-padding {
        padding: 2.5em 0 !important;
    }

    h1.section-title, h2.section-title {
        font-size: 24px;
        line-height: 34px;
    }

    p.para {
        font-size: 14px;
        margin-bottom: 10px;
    }

    ul.project-list-info li span.number {
        font-size: 18px;
    }

    a.exp-more, a.cp-video {
        font-size: 14px;
        width: 150px;
        margin-top: 2em;
    }

    div#js-next1 {
        right: -30px;
    }
    
    div#js-prev1 {
        left: -30px;
    }
    
    div#js-prev1,
    div#js-next1 {
        width: 40px;
        height: 40px;
    }
    
    div#js-next1:after,
    div#js-prev1:after {
        font-size: 16px;
    }

    aside {
        font-size: 14px;
    }

    .project-title-wrapper {
        justify-content: center;
    }
    
    .project-logo {
        max-width: 80px;
    }
}

@media (max-width: 768px) {
    #section3 .container,
    .section-padding .container {
        max-width: 540px;
    }
    
    /* Further mobile optimizations */
    .project-slider.swiper {
        padding: 0 20px 70px 20px;
    }
    
    .mobile-slide .project-card {
        max-width: 320px;
    }
}

/* Small mobile devices */
@media(max-width: 767px) {
    header.ps-5.pe-5 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    a.navbar-brand img {
        width: 160px;
    }

    div#section1 {
        padding: 0px !important;
        position: relative;
    }

    .hero-slide {
        align-items: center;
        justify-content: center;
        background-position: center;
        padding: 20px;
    }

    .hero-content {
        text-align: center;
        padding: 20px;
        max-width: 350px;
        margin: 0 auto;
    }

    .hero-content h2 {
        font-size: 28px;
        line-height: 40px;
    }
    
    .hero-content p {
        font-size: 14px;
        line-height: 22px;
    }
    
    .hero-carousel-nav {
        bottom: 80px;
        right: 50%;
        transform: translateX(50%);
        gap: 12px;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-prev::after,
    .hero-next::after {
        font-size: 16px;
    }
    
    .hero-pagination {
        bottom: 40px;
    }
    
    .hero-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .section-padding {
        padding: 4em 0 !important;
    }

    ul.project-list-info li:last-child { 
        margin-bottom: 0; 
    }

    /* Mobile project slider improvements */
    .project-slider.swiper {
        padding: 0 25px 70px 25px;
        overflow: visible;
    }
    
    .mobile-slide .project-card {
        max-width: 300px;
        margin: 0 auto;
        border-radius: 8px;
        min-height: 450px;
    }
    
    .mobile-slide .project-image {
        height: 200px;
    }
    
    .mobile-slide .project-content {
        padding: 15px 12px;
    }
    
    .mobile-slide .project-content h4 {
        font-size: 22px;
        line-height: 26px;
        margin-bottom: 6px;
    }
    
    .mobile-slide .project-content p {
        font-size: 13px;
        line-height: 18px;
        margin-bottom: 12px;
    }
    
    .mobile-slide .explore-btn {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 4px;
    }

    div#js-prev1 {
        left: 15px;
        position: relative;
        margin: 20px auto 0;
        display: inline-block;
    }
    
    div#js-next1 {
        right: 15px;
        position: relative;
        margin: 20px auto 0;
        display: inline-block;
    }
    
    .project-slider {
        text-align: center;
    }
    
    div#js-prev1,
    div#js-next1 {
        width: 35px;
        height: 35px;
        position: static;
        display: inline-block;
        margin: 10px 5px 0;
    }
    
    div#js-next1:after,
    div#js-prev1:after {
        font-size: 14px;
    }

    div#section3 {
        padding-bottom: 2.5em !important;
    }

    a.whatsapp-icon {
        width: 40px;
        height: 40px;
    }

    .project-status-badge {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .mobile-slide .project-location {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .mobile-slide .project-type {
        font-size: 11px;
        margin-bottom: 8px;
        padding: 2px 5px;
    }
    
    .mobile-slide .project-features {
        margin: 10px 0;
        gap: 3px;
    }
    
    .mobile-slide .feature-tag {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .mobile-slide .project-actions {
        flex-direction: column;
        gap: 6px;
        padding-top: 10px;
    }
    
    .mobile-slide .project-actions .explore-btn,
    .mobile-slide .project-actions .contact-btn {
        padding: 8px 10px;
        font-size: 11px;
        width: 100%;
    }

    .project-logo {
        max-width: 60px;
    }
}

@media (max-width: 576px) {
    #section3 .container,
    .section-padding .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .project-slider.swiper {
        padding: 0 20px 60px 20px;
    }
    
    .mobile-slide .project-card {
        max-width: 280px;
        min-height: 420px;
    }
    
    .mobile-slide .project-image {
        height: 180px;
    }
    
    .mobile-slide .project-content h4 {
        font-size: 20px;
        line-height: 24px;
    }
}

/* Project Status Badge */
.project-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-status-badge.ongoing {
    background: rgba(245, 134, 52, 0.9);
    color: #fff;
}

.project-status-badge.ready-to-move {
    background: rgba(40, 167, 69, 0.9);
    color: #fff;
}

.project-status-badge.completed {
    background: rgba(108, 117, 125, 0.9);
    color: #fff;
}

/* Project Location */
.project-location {
    color: #f58634;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-location i {
    font-size: 12px;
}

/* Project Type */
.project-type {
    color: #666;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding: 4px 8px;
    background: rgba(245, 134, 52, 0.1);
    border-radius: 4px;
    display: inline-block;
}

/* Project Features */
.project-features {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tag {
    background: rgba(55, 52, 53, 0.1);
    color: #373435;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.project-actions .explore-btn {
    flex: 1;
    text-align: center;
    background-color: #f58634;
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.project-actions .explore-btn:hover {
    background-color: #e07428;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 134, 52, 0.3);
}

.project-actions .contact-btn {
    flex: 1;
    text-align: center;
    background: transparent;
    color: #f58634;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #f58634;
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.project-actions .contact-btn:hover {
    background: #f58634;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Desktop positioning */
@media (min-width: 993px) {
    .hero-slide {
        justify-content: flex-end;
        padding: 50px;
    }
    
    .hero-content {
        text-align: left;
        padding-left: 6%;
        margin: 0;
    }
    
    .hero-content .location,
    .hero-content .contact-info,
    .hero-content .cta-buttons {
        justify-content: flex-start;
    }

    .project-title-wrapper {
        justify-content: flex-start;
    }
}