/* Reset and base styles */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --bg: #000;
    --text: #fff;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
}

.project-container {
    width: 100%;
    background: #000;
    /* REMOVED height and position properties */
}

.section {
    width: 100%;
    height: 100vh; /* Each section takes up the full screen height */
    position: relative; /* Changed from absolute */
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Initial View */
/* This rule is no longer needed as .section already defines the height */
/* .initial-view {
    height: 100vh;
} */

/* Plants Positioning */
.plants-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: auto;
    z-index: 1;
}

.plants-left {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 25%;
    height: auto;
    z-index: 2;
}

.plants-right {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 25%;
    height: auto;
    z-index: 2;
}

.plants {
    pointer-events: none;
}

/* Main Content */
.main-content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25vw;
    z-index: 3;
}

.product-3d {
    width: 35%;
    height: auto;
    object-fit: contain;
    transform: translateX(20%);
}

.ubuntu-logo {
    width: 15%;
    height: auto;
    object-fit: contain;
    transform: translate(-25%, -15%);
    margin-right: 5vw;
}

/* Banner styling */
.banner-container {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
}

.banner {
    width: 100%;
    max-width: 1200px;
    height: auto;
    object-fit: contain;
    padding: 0 2rem;
}

/* Section 2 */
.section-2 {
    justify-content: center;
}

.section2-leaf {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 15%;
    z-index: 2;
}

.section2-eye-palm {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 20%;
    z-index: 2;
}

.section2-content {
    width: 90%;
    max-width: 1400px;
    display: flex;
    gap: 8rem;
    justify-content: center;
    align-items: flex-start;
    z-index: 1;
}

.section2-text-block {
    flex: 1;
}

.section2-text-block h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.section2-text-block p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Section 3 */
.section-3 {
    justify-content: center;
    align-items: center;
}

.section3-left-plant {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 12%;
    z-index: 2;
}

.section3-right-plant {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 15%;
    z-index: 2;
}

.section3-content {
    width: 90%;
    max-width: 1400px;
    display: flex;
    gap: 8rem;
    justify-content: center;
    align-items: flex-start;
    z-index: 1;
}

.section3-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section3-text-block h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section3-text-block p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem; /* Add space between text and image */
}

.scamp-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: auto; /* Pushes image to the bottom if container has extra space */
}

/* Remove Section 4 and old video styles */
.scamps-container, .section3-video-container {
    display: none;
}


/* Responsive adjustments */
@media (max-width: 1200px) {
    .section2-content, .section3-content {
        gap: 4rem;
    }
    .product-3d {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 1rem;
    }
    .section2-content, .section3-content, .scamps-container {
        flex-direction: column;
        gap: 2rem;
    }
    .scamp-image {
        width: 90%;
    }
}

/* Add 2 extra screen heights */
.project-container {
    min-height: 500vh;
}

/* Section 4 - App Colours and Typography */
.section-4 {
    justify-content: flex-start;
    padding-top: 2rem;
}

.section4-content {
    width: 90%;
    max-width: 1400px;
    display: flex;
    gap: 8rem;
    justify-content: center;
    align-items: flex-start;
    z-index: 1;
    margin-top: -10vh;
}

.section4-block {
    flex: 1;
}

.section4-block h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.color-card {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.color-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.typography-block p {
    font-size: 1rem;
    line-height: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.font-sample {
    font-size: 1.2rem;
    margin-left: 2rem;
}

@media (max-width: 768px) {
    .section4-content {
        flex-direction: column;
        gap: 2rem;
    }
    .colors-grid {
        grid-template-columns: 1fr;
    }
}

.red-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.white-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.electric-blue-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.darker-blue-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dark-blue-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.green-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Section 5 - App Walkthrough */
.section-5 {
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
}

.section5-left-plant {
    position: absolute;
    left: 2rem;
    bottom: 10rem;
    width: 15%;
    z-index: 2;
}

.section5-top-right-plant {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 12%;
    z-index: 2;
}

.section5-bottom-plant {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    transform: none;
    width: 8%;
    z-index: 2;
}

.section5-video-container {
    width: 70%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    z-index: 1;
    background: #444;
    border-radius: 8px;
}

.section5-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section5-heading {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 1;
}

@media (max-width: 768px) {
    .section5-left-plant {
        width: 20%;
    }
    .section5-top-right-plant {
        width: 25%;
    }
    .section5-bottom-plant {
        width: 30%;
    }
}