/* Mohd Chan 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;
}

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

.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-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    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: 600px;
    position: relative;
    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);
}

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

.gallery-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.section-description {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.6;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Gallery Styles */
.gallery-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.gallery-row {
    width: 100%;
    position: relative;
    margin-bottom: 1.5rem;
}

.first-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.second-row {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    height: 324px; /* Increased by 35% from 240px */
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    height: 324px; /* Increased by 35% from 240px */
    overflow: hidden;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(30px);
}

.first-row .gallery-item {
    width: 100%;
}

.second-row .gallery-item {
    width: calc(50% - 0.75rem);
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Ensures better image positioning */
    transition: transform 0.5s ease;
}

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

.left-span {
    margin-left: 0;
    width: calc(150% - 0.75rem) !important;
}

.right-span {
    margin-right: 0;
    width: calc(150% - 0.75rem) !important;
}

/* Scroll Indicator */
.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;
}

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

.scroll-down-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;
}

/* Back to Top Button Styles */
.scroll-indicator.scroll-up {
    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;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
}

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

.scroll-indicator.scroll-up .scroll-arrow {
    width: 20px;
    height: 20px;
    border-left: 2px solid #666;
    border-top: 2px solid #666;
    transform: rotate(45deg);
    margin: 0;
    animation: bounceUp 2s infinite;
}

/* 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);
    }
}

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

/* Responsive Styles */
@media (max-width: 1200px) {
    .project-content,
    .gallery-container {
        padding: 0 2rem;
    }

    .gallery-grid {
        gap: 1.25rem;
        height: calc(180px * 2 + 1.25rem);
        grid-template-rows: 180px 180px;
    }

    .gallery-item.centered-item {
        width: calc(150% + 0.625rem);
        height: 180px;
    }

    .gallery-item.left-span,
    .gallery-item.right-span {
        top: calc(100% + 1.25rem);
    }

    .gallery-item,
    .second-row {
        height: 297px; /* Increased by 35% from 220px */
    }
}

@media (max-width: 992px) {
    .project-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .project-text,
    .project-image {
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 160px);
        gap: 1rem;
        height: auto;
    }

    .gallery-item.centered-item {
        position: relative;
        width: 100%;
        height: 160px;
        top: 0;
    }

    .gallery-item:nth-child(3) {
        grid-column: span 2;
    }

    .second-row {
        margin-bottom: 2rem;
    }

    .gallery-item,
    .second-row {
        height: 270px; /* Increased by 35% from 200px */
    }
}

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

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

    .project-content,
    .gallery-container {
        padding: 0 1rem;
    }

    .project-button {
        padding: 0.8rem 2rem;
    }

    .gallery-grid {
        grid-template-rows: repeat(3, 140px);
        gap: 1rem;
    }

    .gallery-item.centered-item {
        height: 140px;
    }

    .gallery-wrapper {
        padding: 0 0.75rem;
    }

    .first-row {
        gap: 1rem;
    }

    .second-row {
        gap: 1rem;
        height: 243px; /* Increased by 35% from 180px */
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    .gallery-item {
        height: 243px; /* Increased by 35% from 180px */
    }

    .second-row .gallery-item,
    .left-span,
    .right-span {
        width: 100% !important;
        margin: 0;
    }

    .scroll-indicator.scroll-up {
        gap: 0.8rem;
        font-size: 0.85rem;
        padding: 0.8rem;
    }

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

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

    .section-header {
        margin-bottom: 2rem;
    }

    .project-content,
    .gallery-container {
        padding: 0;
    }

    .project-title {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }

    .project-description {
        font-size: 1rem;
    }

    .project-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 120px);
        gap: 0.75rem;
    }

    .gallery-item.centered-item {
        height: 216px; /* Increased by 35% from 160px */
    }

    .gallery-item:nth-child(3) {
        grid-column: auto;
    }

    .gallery-wrapper {
        padding: 0 0.5rem;
    }

    .first-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .second-row {
        gap: 0.75rem;
        height: auto;
    }

    .gallery-item {
        height: 160px; /* Adjusted height */
    }

    .gallery-item:not(:last-child) {
        margin-bottom: 0.75rem;
    }

    .scroll-indicator.scroll-up {
        gap: 0.6rem;
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    .scroll-indicator.scroll-up .scroll-arrow {
        width: 12px;
        height: 12px;
    }
} 

/* Section 3 Styles */
.section-3 {
    background: #fff;
    padding: 6rem 2rem;
}

.section-3 .section-header {
    margin-bottom: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.process-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    height: 800px; /* Fixed height container */
}

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

.process-item {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.process-item[data-aos].animate {
    animation: fadeInUp 1s ease forwards;
}

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

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

/* Left Column */
.left-column .large-top {
    height: 60%;
}

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

/* Right Column */
.right-column .extra-large-top {
    height: 70%;
}

.right-column .extra-small-bottom {
    height: 30%;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .process-container {
        height: 700px;
        padding: 0 2rem;
    }
}

@media (max-width: 992px) {
    .process-container {
        height: 600px;
        gap: 1.5rem;
    }

    .process-column {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .process-container {
        flex-direction: column;
        height: auto;
        padding: 0 1rem;
        gap: 1rem;
    }

    .process-column {
        gap: 1rem;
    }

    .process-item {
        height: 250px !important;
    }
}

@media (max-width: 480px) {
    .process-container {
        padding: 0 0.5rem;
    }

    .process-item {
        height: 200px !important;
    }
} 

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

.section-4 .section-header {
    margin-bottom: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.gallery-layout {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    height: 800px;
}

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

.gallery-column .gallery-item {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.gallery-column .gallery-item[data-aos].animate {
    animation: fadeInUp 1s ease forwards;
}

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

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

/* Left Column */
.left-column .large-image {
    height: 60%;
}

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

/* Right Column */
.right-column .full-height {
    height: 100%;
}

/* Responsive adjustments for section 4 */
@media (max-width: 1200px) {
    .gallery-layout {
        height: 700px;
        padding: 0 2rem;
    }
}

@media (max-width: 992px) {
    .gallery-layout {
        height: 600px;
        gap: 1.5rem;
    }

    .gallery-column {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-layout {
        flex-direction: column;
        height: auto;
        padding: 0 1rem;
        gap: 1rem;
    }

    .gallery-column {
        gap: 1rem;
    }

    .gallery-column .gallery-item {
        height: 250px !important;
    }
}

@media (max-width: 480px) {
    .gallery-layout {
        padding: 0 0.5rem;
    }

    .gallery-column .gallery-item {
        height: 200px !important;
    }
} 

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

    .section-1 .project-content {
        flex-direction: column-reverse;
        gap: 2rem;
        padding: 10px;
    }

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

    .section-1 .project-image {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding: 10px;
    }

    .section-1 .project-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 12px;
    }

    .navigation {
        position: absolute;
        top: 1rem;
        left: 1rem;
        z-index: 10;
        padding: 10px;
    }

    .back-link {
        background: rgba(255, 255, 255, 0.6);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .project-button {
        position: relative;
        z-index: 2;
        margin-bottom: 1rem;
    }

    .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;
    }
}

@media (max-width: 480px) {
    .section-1 {
        padding-bottom: 100px;
        padding-top: 50px;
    }

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

    .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;
    }

    .navigation {
        top: 0.5rem;
        left: 0.5rem;
    }

    .back-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

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

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

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

    .navigation {
        padding: 0.8rem;
    }
} 

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

    .gallery-container {
        width: 100%;
        padding: 10px;
    }

    .gallery-wrapper {
        padding: 0;
    }

    .first-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .first-row .gallery-item {
        width: 100%;
        height: 300px;
    }

    .second-row {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }

    .second-row .gallery-item,
    .left-span,
    .right-span {
        width: 100% !important;
        height: 300px;
        margin: 0;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .first-row .gallery-item,
    .second-row .gallery-item,
    .left-span,
    .right-span {
        height: 250px;
    }

    .gallery-container {
        padding: 5px;
    }

    .section-2 .project-content {
        padding: 5px;
    }
} 

/* Section 2 Tablet and Medium Screen Adjustments */
@media (min-width: 770px) and (max-width: 1200px) {
    .section-2 .project-content {
        gap: 2rem;
        padding: 1rem;
    }

    .gallery-container {
        width: 100%;
        padding: 0;
    }

    .gallery-wrapper {
        padding: 0;
    }

    .first-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .first-row .gallery-item {
        height: 280px;
    }

    .second-row {
        height: auto;
        gap: 1rem;
        margin-top: 1rem;
    }

    .second-row .gallery-item {
        height: 280px;
    }

    .left-span,
    .right-span {
        width: calc(50% - 0.5rem) !important;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Medium to Small Screen Adjustments */
@media (min-width: 660px) and (max-width: 769px) {
    .section-2 {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .section-2 .project-content {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .gallery-container {
        width: 100%;
        padding: 0;
    }

    .gallery-wrapper {
        padding: 0;
    }

    .first-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .first-row .gallery-item:last-child {
        grid-column: span 2;
        height: 350px;
    }

    .first-row .gallery-item {
        height: 280px;
    }

    .second-row {
        display: flex;
        gap: 1rem;
        height: auto;
        margin-bottom: 2rem;
    }

    .second-row .gallery-item {
        height: 280px;
    }

    .left-span,
    .right-span {
        width: 50% !important;
        margin: 0;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
}

/* Section 3 adjustment to prevent overlap */
@media (min-width: 660px) and (max-width: 769px) {
    .section-3 {
        margin-top: 2rem;
        padding-top: 4rem;
    }
} 

/* 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;
}