/* General section styles */
.section {
    padding: 4rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-image: url('../images/main/_MG_1490.JPG');
    background-size: cover;
    background-position: center 0.5px;
    background-attachment: fixed;
    font-size: 7rem;
    background-color: #FFE9EF;
    color: #Fe5d9f;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 0 !important;
    margin-top: -120px;
    z-index: 1;
    width: 100%;
    height: 100vh;
}

.hero-content {
    z-index: 1;
    position: relative;
}

/* About Section */
.about-section {
    display: flex;
    flex-direction: row;
    min-height: 80vh;
    position: relative;
}

.about-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px; /* Add rounded corners to image */
    overflow: hidden; /* Ensure the image stays within rounded corners */
}

.about-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 20px; /* Add rounded corners to content card */
    padding: 2rem; /* Add some padding if not already present */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: adds subtle shadow */
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #B66681;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-button {
    height: 75px; /* Reduced height further */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem; /* Reduced from 1rem to bring it closer to text */
    padding: 1rem 1rem; /* Slightly reduced padding */
    background-color: #B66681;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 2rem; /* Added to make text smaller */
}

.about-button:hover {
    background-color: #Fe5d9f;
}

/* Portfolio Section */
.portfolio-section {
    padding: 4rem 0;
    min-height: 100vh;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portfolio-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* General section styles */
section {
    padding: 4rem 2rem;
    min-height: 100vh;
}

/* Responsive styles */
@media (max-width: 768px) {
    .section {
        padding: 1rem 0;
    }

    .hero-section {
        font-size: 3rem;
        background-attachment: scroll;
        margin-top: -80px;
    }

    .about-section {
        flex-direction: column;
        min-height: auto;
    }

    .about-image {
        min-height: 300px;
    }

    .about-content {
        padding: 2rem 1rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .mosaic-container {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 1rem;
        padding: 0.5rem;
    }

    .mosaic-item {
        aspect-ratio: 4/3;
    }

    .mosaic-item.wide,
    .mosaic-item.tall {
        grid-column: auto;
        grid-row: auto;
    }

    .scroll-arrow {
        bottom: 1rem;
    }

    .arrow {
        font-size: 2rem;
    }

    .arrow-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        font-size: 2.5rem;
    }

    .about-content h2 {
        font-size: 1.75rem;
    }

    .mosaic-container {
        padding: 0.25rem;
    }
}

main {
    padding-top: 120px;
}

/* Add this new selector */
.home-page main {
    padding-top: 0;
}

/* Add this to remove padding for project pages */
.project-header {
    margin-top: -120px;  /* This counteracts the main padding */
}

.scroll-arrow {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #B66681;
    z-index: 10;
}

.arrow {
    font-size: 3rem;
    line-height: 1;
}

.arrow-text {
    font-size: 1rem;
    margin-top: 0.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-30px) translateX(-50%);
    }
    60% {
        transform: translateY(-15px) translateX(-50%);
    }
}

.scroll-arrow:hover {
    color: #Fe5d9f;
}

.gallery-section {
    padding: 4rem 2rem;
    background-color: #FFE9EF;
}

.gallery-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.main-gallery {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    gap: 2rem;
    padding: 1rem 0;
}

.main-gallery::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.main-gallery img {
    flex: 0 0 auto;
    height: 400px;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.main-gallery img:hover {
    transform: scale(1.05);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(182, 102, 129, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(182, 102, 129, 1);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 0;
}

.gallery-nav.next {
    right: 0;
}

.mosaic-gallery {
    padding: 2rem;
    background-color: #FFE9EF;
    display: flex;
    justify-content: center;
}

.mosaic-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 300px));
    grid-auto-rows: 250px;
    grid-gap: 1.5rem;
    padding: 1rem;
    justify-content: center;
    grid-auto-flow: dense;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.mosaic-item.wide {
    grid-column: span 2;
}

.mosaic-item.tall {
    grid-row: span 2;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mosaic-item:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .mosaic-container {
        grid-template-columns: repeat(2, minmax(250px, 300px));
        grid-auto-rows: 200px;
    }
}

@media (max-width: 600px) {
    .mosaic-container {
        grid-template-columns: minmax(250px, 300px);
        grid-auto-rows: 300px;
    }
    
    .mosaic-item.wide {
        grid-column: auto;
    }
    
    .mosaic-item.tall {
        grid-row: auto;
    }
}

