/* Base styles to prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.project-page {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 2D Caffe Project Page Styles */
.project-page {
    background: #fff;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

.scroll-container {
    width: 100%;
    height: 100%;
}

.section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.section-1 {
    background: #fff;
}

.section-2 {
    background: #f8f8f8;
}

.project-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.project-content.reverse {
    flex-direction: row-reverse;
}

.project-text {
    flex: 1;
    max-width: 550px;
    opacity: 0;
    transform: translateX(-50px);
}

.project-text[data-aos="fade-right"].animate {
    animation: fadeInRight 1s ease forwards;
}

.project-text[data-aos="fade-left"].animate {
    animation: fadeInLeft 1s ease forwards;
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.project-description {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.6;
    color: #666;
    margin-bottom: 3rem;
}

.project-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: #7B7EF4;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.project-button:hover {
    background: #6366F1;
    transform: translateY(-2px);
}

.project-image {
    flex: 1;
    max-width: 550px;
    position: relative;
    margin: 0 auto;
    opacity: 0;
    transform: translateX(50px);
}

.project-image[data-aos="fade-left"].animate {
    animation: fadeInLeft 1s ease forwards;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Project Images Grid Styles */
.project-images-grid {
    display: flex;
    gap: 2rem;
    width: 60%;
    opacity: 1; /* Changed from 0 to ensure visibility */
    transform: none; /* Removed initial transform */
    align-items: flex-start;
}

.project-images-grid[data-aos="fade-up"].animate {
    animation: fadeInUp 1s ease forwards;
}

.mural-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    background: #fff;
    display: block; /* Added display block */
}

.mural-image:first-child {
    flex: 2;
    min-width: 0; /* Added to prevent flex item from overflowing */
    height: 500px;
}

.mural-image:last-child {
    flex: 1;
    min-width: 0; /* Added to prevent flex item from overflowing */
    height: 300px;
}

.mural-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block; /* Added display block */
}

.mural-image:hover img {
    transform: scale(1.02);
}

/* Scroll Indicator Styles */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    color: #333;
    transform: translateX(-50%) translateY(-5px);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    margin: 1rem auto;
    animation: bounce 2s infinite;
}

/* Up arrow variant */
.scroll-indicator.scroll-up {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* Gap between text and arrow */
}

.scroll-indicator.scroll-up .scroll-arrow {
    border-right: none;
    border-bottom: none;
    border-left: 2px solid #666;
    border-top: 2px solid #666;
    transform: rotate(45deg);
    margin: 0; /* Remove margin since we're using gap */
    animation: bounceUp 2s infinite;
}

.scroll-indicator.scroll-up:hover {
    color: #333;
}

.scroll-indicator.scroll-up:hover .scroll-arrow {
    border-color: #333;
}

@keyframes bounceUp {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(5px);
    }
    60% {
        transform: rotate(45deg) translateY(3px);
    }
}

/* Animations */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-10px);
    }
    60% {
        transform: rotate(45deg) translateY(-5px);
    }
}

/* Responsive Adjustments */
@media (max-width: 1400px) {
    .project-images-grid {
        padding: 0 2rem;
    }

    .mural-image:first-child {
        height: 500px;
    }

    .mural-image:last-child {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .project-images-grid {
        padding: 0 1.5rem;
    }

    .mural-image:first-child {
        height: 400px;
    }

    .mural-image:last-child {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .project-images-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mural-image:first-child {
        width: 100%;
        height: 300px;
    }

    .mural-image:last-child {
        width: 70%; /* Make the second image smaller */
        height: 200px;
        margin: 0 auto; /* Center the smaller image */
    }
}

@media (max-width: 480px) {
    .project-images-grid {
        gap: 1rem;
        padding: 0 0.8rem;
    }

    .mural-image:first-child,
    .mural-image:last-child {
        height: 250px;
    }
}

/* Update section spacing */
.section-2 {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-2 .project-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-2 .project-text {
    width: 35%;
    text-align: left;
    padding-right: 2rem;
}

.section-2 .section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    text-align: left;
    margin-bottom: 2rem;
}

.section-2 .project-description {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.6;
    color: #666;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .section-2 .project-content {
        padding: 0 1.5rem;
    }

    .mural-image:first-child {
        height: 400px;
    }

    .mural-image:last-child {
        height: 250px;
    }
}

@media (max-width: 992px) {
    .section-2 .project-content {
        flex-direction: column;
        padding: 0 1rem;
        gap: 2rem;
    }

    .project-images-grid {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }

    .section-2 .project-text {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding: 0;
        text-align: center;
    }

    .section-2 .section-title {
        text-align: center;
    }

    .mural-image:first-child {
        height: 350px;
    }

    .mural-image:last-child {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .project-images-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mural-image:first-child,
    .mural-image:last-child {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .section-2 .project-content {
        padding: 0 0.8rem;
    }

    .mural-image:first-child {
        height: 250px;
    }

    .mural-image:last-child {
        width: 60%; /* Even smaller on mobile */
        height: 180px;
    }
}

@media (max-width: 360px) {
    .mural-image:first-child {
        height: 220px;
    }

    .mural-image:last-child {
        width: 50%; /* Smallest size */
        height: 150px;
    }
} 

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .section-1 .project-content {
        flex-direction: column;
        gap: 2rem;
    }

    .section-1 .project-image {
        order: -1; /* Move image to top */
        width: 100%;
        height: 250px;
        margin: 0 auto;
    }

    .section-1 .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .section-1 .project-text {
        text-align: center;
        padding: 0 1rem;
    }

    .section-1 .project-title {
        font-size: clamp(2rem, 4vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    .section-1 .project-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Section 2 mobile styles */
    .project-images-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mural-image:first-child {
        width: 100%;
        height: 300px;
    }

    .mural-image:last-child {
        width: 70%;
        height: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .section-1 .project-image {
        height: 200px;
    }

    .section-1 .project-text {
        padding: 0 0.8rem;
    }

    .section-1 .project-title {
        font-size: clamp(1.8rem, 3.5vw, 2rem);
        margin-bottom: 1rem;
    }

    .section-1 .project-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .section-2 .project-content {
        padding: 0 0.8rem;
    }

    .mural-image:first-child {
        height: 250px;
    }

    .mural-image:last-child {
        width: 60%;
        height: 180px;
    }
}

@media (max-width: 360px) {
    .section-1 .project-image {
        height: 180px;
    }

    .mural-image:first-child {
        height: 220px;
    }

    .mural-image:last-child {
        width: 50%;
        height: 150px;
    }
} 

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .section-1 {
        position: relative;
        padding-bottom: 120px; /* Increased padding for scroll indicator */
    }

    .section-1 .project-content {
        flex-direction: column;
        gap: 2rem;
        padding-bottom: 2rem; /* Add space between content and scroll indicator */
    }

    .section-1 .project-text {
        text-align: center;
        padding: 0 2rem; /* Increased side padding */
        position: relative; /* For button positioning */
    }

    .project-button {
        position: relative;
        z-index: 2; /* Ensure button stays above scroll indicator */
        margin-bottom: 1rem; /* Add space below button */
    }

    .scroll-indicator {
        bottom: 2rem;
        position: absolute;
        background: rgba(255, 255, 255, 0.6);
        padding: 1rem;
        border-radius: 20px;
        width: auto;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    .scroll-arrow {
        margin: 0.5rem auto;
    }
}

@media (max-width: 480px) {
    .section-1 {
        padding-bottom: 100px; /* Slightly less space on smaller screens */
    }

    .section-1 .project-text {
        padding: 0 1.5rem; /* Slightly reduced side padding */
    }

    .scroll-indicator {
        bottom: 1.5rem;
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    .scroll-arrow {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 360px) {
    .section-1 {
        padding-bottom: 90px;
    }

    .section-1 .project-text {
        padding: 0 1rem;
    }

    .scroll-indicator {
        bottom: 1rem;
        padding: 0.6rem;
    }
}

/* Section 3 - Before Renovation */
.section-3 {
    min-height: 100vh;
    padding: 4rem 2rem;
    background-color: #fff;
    position: relative;
}

.before-renovation-container {
    max-width: 1200px; /* Reduced from calc(100% - 820px) for better centering */
    margin: 0 auto;
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #333;
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #666;
}

.before-image-wrapper {
    position: relative;
    width: 100%;
    margin: 2rem auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.before-image {
    position: relative;
    width: 50%; /* Changed to 50% width */
    padding-bottom: 28.125%; /* 56.25% ÷ 2 to maintain aspect ratio at half width */
}

.before-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .before-image {
        width: 70%;
        padding-bottom: 39.375%; /* 56.25% × 0.7 */
    }
}

@media (max-width: 768px) {
    .before-image {
        width: 85%;
        padding-bottom: 47.8125%; /* 56.25% × 0.85 */
    }
}

@media (max-width: 480px) {
    .before-image {
        width: 100%;
        padding-bottom: 56.25%; /* Back to original aspect ratio */
    }
}

/* Remove overlay styles since we don't need them anymore */
.image-overlay {
    display: none;
}

.before-label {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.overlay-content {
    color: white;
}

.overlay-content p {
    font-size: 1rem;
    opacity: 0.9;
}

.renovation-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #333;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

.scroll-up-btn {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-up-btn:hover {
    opacity: 1;
}

.arrow-up {
    width: 20px;
    height: 20px;
    border-left: 2px solid #666;
    border-top: 2px solid #666;
    transform: rotate(45deg);
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-3 {
        padding: 3rem 1.5rem;
    }

    .renovation-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-item {
        padding: 1.5rem;
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .before-image-wrapper {
        margin: 1.5rem 0;
        border-radius: 15px;
    }

    .image-overlay {
        opacity: 1;
        background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    }
}

@media (max-width: 480px) {
    .section-3 {
        padding: 2rem 1rem;
    }

    .before-label {
        font-size: 1.2rem;
    }

    .overlay-content p {
        font-size: 0.9rem;
    }

    .stat-item {
        padding: 1rem;
    }
}

/* Section 4 - Mural Gallery */
.section-4 {
    background: #f8f8f8;
}

.mural-gallery-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.mural-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 321px 321px; /* Increased by 7% from 300px */
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    padding: 1rem; /* Add padding around the grid */
}

.mural-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.5s ease;
    padding: 0.5rem; /* Add padding around each item */
}

.mural-item:nth-child(2) {
    width: 80%;
    left: 10%;
}
/* Position the 4th and 5th items (second row) */
.mural-item:nth-child(4),
.mural-item:nth-child(5) {
    position: absolute;
    height: 321px; /* Set explicit height to match */
    bottom: 1rem; /* Align to bottom instead of top */
}

.mural-item:nth-child(4) {
    left: 1rem; /* Account for grid padding */
    width: calc((100% - 2rem) / 3 + ((100% - 4rem) / 6));
}

.mural-item:nth-child(5) {
    right: 1rem; /* Account for grid padding */
    width: calc((100% - 2rem) / 3 + ((100% - 4rem) / 6));
}

.mural-item img {
    width: 107%; /* Make image 7% larger */
    height: 107%; /* Make image 7% larger */
    object-fit: cover;
    transition: transform 0.5s ease;
    transform: translate(-3.5%, -3.5%); /* Center the enlarged image */
}

.mural-item:hover {
    transform: translateY(-10px);
}

.mural-item:hover img {
    transform: translate(-3.5%, -3.5%) scale(1.05); /* Maintain centering while scaling */
}

/* Update responsive styles */
@media (max-width: 992px) {
    .mural-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 267.5px);
        gap: 1.5rem;
        height: auto; /* Reset height for responsive layout */
    }

    .mural-item:nth-child(4),
    .mural-item:nth-child(5) {
        position: static;
        width: auto;
        height: auto;
        bottom: auto;
    }

    .mural-item img {
        transform: translate(-3.5%, -3.5%);
    }

    .mural-item:hover img {
        transform: translate(-3.5%, -3.5%) scale(1.05);
    }
}

@media (max-width: 768px) {
    .mural-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 214px); /* 200px + 7% */
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .mural-grid {
        grid-template-rows: repeat(5, 192.6px); /* 180px + 7% */
    }
}

/* Animation for AOS */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].animate {
    opacity: 1;
    transform: translateY(0);
} 

/* Section padding adjustments */
.section {
    position: relative;
    padding-bottom: 8rem; /* Add extra padding at bottom of sections for scroll button */
}

/* Responsive adjustments */
@media (max-width: 1600px) {
    .before-renovation-container {
        max-width: 900px;
        padding: 3rem 2rem;
    }
}

@media (max-width: 1200px) {
    .before-renovation-container {
        max-width: 900px;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .before-renovation-container {
        padding: 2rem 1rem;
    }

    .section {
        padding-bottom: 5rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .before-renovation-container {
        padding: 1.5rem 0.5rem;
    }

    .section {
        padding-bottom: 4rem;
    }

    .scroll-indicator {
        bottom: 1rem;
        padding: 1rem 0;
    }
} 

/* Section 5 - Process Gallery */
.section-5 {
    background: #fff;
    padding: 4rem 2rem;
}

.process-gallery-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.process-grid {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    height: 900px; /* Fixed height container */
}

.process-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Left column: 60% - 40% split */
.left-column .process-item.large {
    height: 60%;
}

.left-column .process-item.small {
    height: 40%;
}

/* Right column: 80% - 20% split */
.right-column .process-item.extra-large {
    height: 80%;
}

.right-column .process-item.extra-small {
    height: 20%;
}

.process-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.5s ease;
    background: #f8f8f8;
}

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

.process-item:hover {
    transform: translateY(-10px);
}

.process-item:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .process-gallery-container {
        padding: 3rem 1.5rem;
    }

    .process-grid {
        height: 700px;
    }
}

@media (max-width: 768px) {
    .process-grid {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
    }

    .process-column {
        gap: 1.5rem;
    }

    .left-column .process-item.large,
    .left-column .process-item.small,
    .right-column .process-item.extra-large,
    .right-column .process-item.extra-small {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .section-5 {
        padding: 2rem 1rem;
    }

    .process-gallery-container {
        padding: 2rem 1rem;
    }

    .left-column .process-item.large,
    .left-column .process-item.small,
    .right-column .process-item.extra-large,
    .right-column .process-item.extra-small {
        height: 250px;
    }
} 

/* Section 6 - Project Showcase */
.section-6 {
    background: #f8f8f8;
    padding: 4rem 2rem;
}

.showcase-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.showcase-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.5s ease;
    background: #fff;
}

.showcase-item.full-width {
    width: 100%;
    height: 510px; /* Reduced from 600px by 15% */
}

.showcase-row {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.showcase-item.half-width {
    flex: 1;
    height: 340px; /* Reduced from 400px by 15% */
}

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

.showcase-item:hover {
    transform: translateY(-10px);
}

.showcase-item:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .showcase-container {
        padding: 3rem 1.5rem;
    }

    .showcase-item.full-width {
        height: 425px; /* Reduced from 500px by 15% */
    }

    .showcase-item.half-width {
        height: 298px; /* Reduced from 350px by 15% */
    }
}

@media (max-width: 768px) {
    .showcase-container {
        padding: 2rem 1rem;
    }

    .showcase-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .showcase-item.full-width {
        height: 340px; /* Reduced from 400px by 15% */
    }

    .showcase-item.half-width {
        height: 255px; /* Reduced from 300px by 15% */
    }
}

@media (max-width: 480px) {
    .section-6 {
        padding: 2rem 1rem;
    }

    .showcase-item.full-width {
        height: 255px; /* Reduced from 300px by 15% */
    }

    .showcase-item.half-width {
        height: 213px; /* Reduced from 250px by 15% */
    }
} 

/* Section 7 - Contact */
.section-7 {
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.contact-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.contact-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.contact-text {
    flex: 1 1 400px;
    min-width: 0;
    max-width: 100%;
}

.contact-text h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #333 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-text > p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.feature-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    word-break: break-word;
}

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

.feature-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: #7B7EF4;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-item {
        padding: 1.5rem;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-number {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .feature-item h3 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .feature-item {
        padding: 1.2rem;
    }

    .feature-number {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .feature-item h3 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

.contact-methods {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
}

.contact-button-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.whatsapp-button {
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    width: 100%;
    box-sizing: border-box;
}

.button-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    transition: transform 0.4s ease;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}

.button-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.button-content span {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
}


/* Show QR State */
.whatsapp-button.show-qr .qr-hover {
    height: 220px;
    padding: 1rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-button-wrapper {
        max-width: 320px;
    }

    .button-content,
    .qr-toggle {
        padding: 0.8rem 1.5rem;
    }

    .qr-hover img {
        width: 120px;
        height: 120px;
    }

    .whatsapp-button.show-qr .qr-hover {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .contact-button-wrapper {
        max-width: 280px;
    }

    .button-content,
    .qr-toggle {
        padding: 0.8rem 1.2rem;
    }

    .button-content span,
    .qr-toggle span {
        font-size: 0.9rem;
    }

    .qr-hover img {
        width: 100px;
        height: 100px;
    }

    .whatsapp-button.show-qr .qr-hover {
        height: 160px;
    }
} 

/* Contact Image Flip Card */
.contact-image {
    flex: 1 1 300px;
    min-width: 0;
    max-width: 100%;
    perspective: 1000px;
    height: 400px;
}

.flip-card {
    position: relative;
    width: 105%; /* Increased by 5% */
    height: 105%; /* Increased by 5% */
    cursor: pointer;
    transform: translate(-2.5%, -2.5%); /* Center the enlarged card */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-front img,
.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .contact-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .contact-image {
        height: 300px;
    }
    
    .flip-card {
        width: 100%; /* Reset to original size on mobile */
        height: 100%;
        transform: none;
    }
}

@media (max-width: 480px) {
    .contact-image {
        height: 250px;
    }
}

/* Add the click animation */
@keyframes cardClickFeedback {
    0% { transform: translate(-2.5%, -2.5%) scale(1); }
    50% { transform: translate(-2.5%, -2.5%) scale(0.98); }
    100% { transform: translate(-2.5%, -2.5%) scale(1); }
}

.flip-card.clicking {
    animation: cardClickFeedback 0.3s ease;
}

/* Ensure all sections prevent horizontal overflow */
.section {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
}

/* Ensure all containers respect viewport width */
.mural-gallery-container,
.process-gallery-container,
.showcase-container,
.before-renovation-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Ensure all grids respect container width */
.mural-grid,
.process-grid,
.showcase-grid,
.features-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure all images respect their container width */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for potential flex overflow issues */
.flex-container {
    min-width: 0;
    width: 100%;
}

/* Ensure text doesn't cause overflow */
h1, h2, h3, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
} 

/* Ensure all text content wraps properly */
.feature-item h3,
.feature-item p,
.contact-text h2,
.contact-text p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
} 

/* Unified page background treatment */
body.project-page {
    background-image: url('../assets/commercialhome.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.project-page .scroll-container > .section {
    background: rgba(255, 255, 255, 0.6) !important;
}

body.project-page .scroll-container > .section:nth-of-type(even) {
    background: #f8f8f8 !important;
}