/* ==========================================================================
   Projects Page Styles
   ========================================================================== */

/* Hero Section
   ========================================================================== */
.main-hero {
    width: 100%;
    height: 80vh;
    background-color: var(--dark);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.secondary-hero {
    width: 100%;
    height: 70vh;
    background-color: var(--box);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.hero-left {
    display: flex;
    align-items: center;
    padding: 0 80px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    text-align: right;
}

.location-tag {
    color: var(--text);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.hero-content h1 {
    color: var(--primary);
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-content p {
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
}

.hero-right {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.hero-navigation {
    position: absolute;
    bottom: 40px;
    left: -60px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(232, 223, 215, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.nav-btn i {
    color: var(--text);
    font-size: 20px;
}

.nav-btn:hover {
    background: rgba(232, 223, 215, 0.2);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-left {
        padding: 0 40px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-navigation {
        left: -40px;
    }
}

@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-left {
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-right {
        height: 50vh;
    }

    .hero-navigation {
        left: 20px;
        bottom: 20px;
    }
}

/* Info Section
   ========================================================================== */
.info-section {
    padding: 100px;
    background-color: var(--text);
}

@media (max-width: 480px) {
    .info-section {
        padding: 20px;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: auto;
    font-size: 16px;
}

.info-section .container {
    margin: 0;
}


.info-column {
    color: var(--box);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.info-header {
    color: var(--box);
    font-size: 1.2rem;
    padding: 40px;
    text-align: center;
}

/* Projects Filter
   ========================================================================== */
.projects-filter {
    padding: 80px 0 40px;
}

.filter-header {
    text-align: center;
    margin-bottom: 40px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-width: 160px;
    background: var(--box);
    border: none;
    border-radius: 12px;
    color: var(--text);
    transition: all 0.3s ease;
}

/* Projects Grid
   ========================================================================== */
.projects-grid-section {
    padding: 40px 0 80px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.project-info {
    padding: 30px;
    text-align: center;
    color: var(--text);
}

.project-info h3 {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary);
}

.project-info h4 {
    font-size: 24px;
    margin-bottom: 10px;
}

.project-info p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.project-card:hover .project-overlay {
    transform: translateY(100%);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.view-more {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text);
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.view-more:hover {
    background: var(--primary);
    color: var(--dark);
}

.view-more i {
    transition: transform 0.3s ease;
}

.view-more:hover i {
    transform: translateX(5px);
}


.custom-text-area {
    text-align: right;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-text-area h2 {
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 24px;
}

.custom-text-area p {
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.house-types {
    list-style: none;
    padding: 0;
    margin: 0;
}

.house-types li {
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
    position: relative;
    padding-left: 20px;
}

.house-types li::before {
    content: "•";
    font-size: 26px;
    color: var(--primary);
    position: absolute;
    left: 0;
}

.custom-right {
    height: 100%;
    overflow: hidden;
}

.custom-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive styles */
@media (max-width: 992px) {
    .custom-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .custom-left, .custom-right {
        height: 300px;
    }

    .custom-text-area {
        padding: 40px 10px;
    }

    .custom-text-area h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .custom-text-area h2 {
        font-size: 28px;
    }
}

/* Project Modal
   ========================================================================== */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    opacity: 1;
}

.tags-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
}

/* Responsive Styles
   ========================================================================== */
@media (max-width: 1200px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-hero .container {
        gap: 40px;
    }

    .main-hero {
        width: 100%;
        background-color: var(--dark);
        position: relative;
        overflow: hidden;
        margin-top: 0;
    }

    .secondary-hero .container {
        gap: 40px;
    }

    .secondary-hero {
        width: 100%;
        position: relative;
        overflow: hidden;
        margin-top: 0;
    }
}

@media (max-width: 992px) {
    .main-hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .secondary-hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-swiper {
        height: 400px;
    }

    .main-hero {
        width: 100%;
        height: auto;
        background-color: var(--dark);
        position: relative;
        overflow: hidden;
        margin-top: 0;
    }

    .secondary-hero {
        width: 100%;
        height: auto;
        background-color: var(--box);
        position: relative;
        overflow: hidden;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .main-hero {
        padding: 100px 0 50px;
    }

    .secondary-hero {
        padding: 100px 0 50px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-swiper {
        height: 300px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        gap: 15px;
    }

    .category-btn {
        min-width: calc(50% - 15px);
        padding: 15px;
    }

}

@media (max-width: 480px) {
    .category-btn {
        min-width: 100%;
    }
}

/* Map Section
   ========================================================================== */
.map-section {
    padding: 80px 0 0;
    background-color: var(--dark);
}

.map-content {
    width: 90%;
    text-align: center;
    align-items: center;
    margin-bottom: 40px;
}

.map-content h2 {
    text-align: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 15px;
}

.map-content p {
    text-align: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.8;
}

.video-wrapper {
    height: 30vh;
}

.full-width-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    padding: 0% 10% 0% 10%;
}

/* Optional overlay for better text visibility */
.video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 26, 33, 0.2), rgba(18, 26, 33, 0));
    pointer-events: none;
    z-index: 2;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .video-wrapper {
        height: 500px;
    }

    .map-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .map-section {
        padding: 60px 0 0;
    }

    .video-wrapper {
        height: 400px;
    }

    .map-content h2 {
        font-size: 1.8rem;
    }

    .map-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {

    .full-width-video {
        padding: 0;
    }
    
    .video-wrapper {
        height: 300px;
    }
}

/* Project Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.project-modal-content {
    background: var(--dark);
    max-width: 900px;
    width: 90%;
    margin: 50px auto;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.project-modal-header {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.project-modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal-body {
    padding: 40px;
}

.project-modal-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.project-modal-title h2 {
    color: var(--text);
    font-size: 2rem;
    margin: 0;
}

.price {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--box);
    border-radius: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.detail-item i {
    color: var(--primary);
}

.project-description {
    margin-bottom: 30px;
    color: var(--text);
    line-height: 1.6;
}

.project-features h3 {
    color: var(--text);
    margin-bottom: 20px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.feature-item i {
    color: var(--primary);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .project-modal-content {
        margin: 20px auto;
    }

    .project-modal-header {
        height: 300px;
    }

    .project-modal-body {
        padding: 20px;
    }

    .project-modal-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Modal Swiper Styles */
.modal-swiper {
    width: 100%;
    height: 400px;
    position: relative;
}

.modal-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.modal-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-swiper .swiper-button-next,
.modal-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: var(--primary);
}

.modal-swiper .swiper-button-next:after,
.modal-swiper .swiper-button-prev:after {
    font-size: 20px;
}

.modal-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--text);
    opacity: 0.5;
}

.modal-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

/* Update/Add these styles */
.hero-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px 80px;
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 3;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    background-color: transparent;
}

.nav-buttons:hover {
    color: var(--text);
    background-color: transparent;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 0px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background-color: transparent;
    color: var(--primary);
}

.nav-btn i {
    color: var(--primary);
    font-size: 20px;
}

.nav-btn i:hover {
    color: var(--text);
}

.nav-btn:hover {
    color: var(--primary);
    background: rgba(232, 223, 215, 0.2);
}

.progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(232, 223, 215, 0.2);
    position: relative;
}

.progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary);
    width: 33.33%;
    /* Will be updated by JavaScript */
    transition: width 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-controls {
        padding: 15px 20px;
    }
}

/* Add these styles */
.nature-tech-section {
    padding: 80px 0;
    background-color: var(--dark);
}

.nature-tech-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 0 20px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 90%;
    align-content: flex-start;
}



.tag {
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag a {
    text-decoration: none;
    color: var(--text);
}


.tag:hover {
    background-color: var(--primary);
    color: var(--dark);
}

.content-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.subtitle {
    color: var(--text);
    font-size: 16px;
}

.content-container h2 {
    color: var(--primary);
    font-size: 32px;
    line-height: 1.3;
}

.content-container p {
    color: var(--text);
    line-height: 1.6;
    margin: 20px 0;
}

.read-more-btn {
    width: fit-content;
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--primary);
    color: var(--dark);
}

/* Responsive styles */
@media (max-width: 768px) {
    .nature-tech-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-container h2 {
        font-size: 24px;
    }

    .content-container p br {
        display: none;
    }
}

/* Location Section */
.location-section {
    padding: 60px 0 0;
    background-color: var(--dark);
}

.location-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.location-content .subtitle {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 20px;
    display: block;
}

.location-content .title {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.location-content .description {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto;
}

.map-video {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.map-video video {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

/* Blog Section Styles */
.blog-section {
    padding: 80px 0;
    background-color: var(--dark);
}

.blog-container {
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.section-tag {
    color: var(--text);
    font-size: 14px;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    color: var(--text);
    font-size: 32px;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.3;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.blog-card {
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: left;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-meta {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    color: var(--text);
    font-size: 14px;
    opacity: 0.8;
}

.blog-meta i {
    color: var(--primary);
}

.blog-card h3 {
    padding: 20px;
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
}

.blog-card p {
    padding: 0 20px 20px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.blog-card .read-more-btn {
    margin: 0 20px 20px;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--text);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-card .read-more-btn:hover {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* Responsive styles */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .blog-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* References Section Styles */
.references-section {
    padding: 100px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.references-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.reference-item {
    background: var(--box);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.reference-item:hover {
    transform: translateY(-5px);
}

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

.reference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reference-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reference-item:hover .reference-overlay {
    opacity: 1;
}

.reference-overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.reference-content {
    padding: 20px;
}

.reference-content h3 {
    color: var(--text);
    margin-bottom: 10px;
}

.reference-content p {
    color: var(--text);
    margin-bottom: 15px;
}

.reference-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
}

@media (max-width: 768px) {
    .references-section {
        padding: 60px 0;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }

    .reference-image {
        height: 200px;
    }
}