/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
    width: 100%;
    box-sizing: border-box;
    padding-top: constant(safe-area-inset-top);
    padding-bottom: constant(safe-area-inset-bottom);
}
/* Header Styles */
header {
    background: linear-gradient(#004d40 30%, 
#F0A292 90%);
    color: #fff;
    padding: clamp(1rem, 1.5vh, 1.5rem) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
    padding-top: constant(safe-area-inset-top);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: clamp(1.5rem, 2vw, 2.4rem);
    font-weight: bold;
    letter-spacing: 0.1em;
}
.menu-icon {
    display: none;
    font-size: clamp(1.8rem, 3vw, 3rem);
    cursor: pointer;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin-left: clamp(1rem, 1.5vw, 1.5rem);
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(1rem, 1.5vw, 1.6rem);
    transition: color 0.3s;
    text-shadow: 0 0.2rem 0.5rem black;
}
nav ul li a:hover {
    color: #ffcc00;
}
/* Hero Section */
#hero {
    background: linear-gradient(to bottom, white, 
#F0A292);
    color: #fff;
    text-align: center;
    padding: clamp(10vh, 15vh, 15vh) 0 clamp(5vh, 10vh, 10vh);
    position: relative;
    width: 100%;
    overflow-x: hidden;
    padding-top: constant(safe-area-inset-top);
}
#hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(1.5vh, 2.5vh, 2.5vh);
    animation: fadeIn 1s ease-in-out;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.1rem black;
    -webkit-background-clip: text;
}
.cube-container {
    width: clamp(30vw, 40vw, 400px);
    height: clamp(30vw, 40vw, 400px);
    margin: 0 auto;
    perspective: 1000px;
    border: 0.2rem solid #ffcc00;
    background: transparent;
    filter: drop-shadow(0.5rem 0.5rem 0.5rem black);
    -webkit-transform-style: preserve-3d;
    transition: opacity 0.5s;
}
.cube-container.lazy-load {
    opacity: 0;
}
.cube-container.lazy-load.loaded {
    opacity: 1;
}
.cube-hints {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: clamp(0.5vw, 1vw, 1vw);
    margin-top: clamp(0.5vh, 1vh, 1vh);
    font-size: clamp(0.8rem, 1.2vw, 1.4rem);
    color: #004d40;
}
.cube-hints i {
    margin-right: clamp(0.3vw, 0.5vw, 0.5vw);
}
/* Section Zero */
#section-zero {
    padding: clamp(3vh, 5vh, 5vh) 0;
    background-color: #f0f0f0;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}
#section-zero .container h2 {
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    margin-bottom: clamp(1vh, 2vh, 2vh);
    color: #004d40;
}
.zero-content {
    max-width: clamp(70vw, 80vw, 800px);
    margin: 0 auto;
    text-align: left;
}
.zero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: clamp(1vh, 1.5vh, 1.5vh);
}
.read-more {
    color: #ffcc00;
    text-decoration: underline;
    cursor: pointer;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
}
.read-more:hover {
    color: #004d40;
}
.expanded-text {
    margin-top: clamp(1vh, 1.5vh, 1.5vh);
    font-size: clamp(1rem, 2vw, 1.2rem);
    display: none;
}
.expanded-text p {
    margin: clamp(0.5vh, 1vh, 1vh) 0;
}
/* Section One */
#section-one {
    background-color: #BFD4D9;
    padding: clamp(5vh, 8vh, 8vh) 0;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}
#section-one h2 {
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    margin-bottom: clamp(1.5vh, 2.5vh, 2.5vh);
    color: #004d40;
}
.cube-wrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: transparent;
    width: 100%;
}
.cube-wrapper .cube-container {
    width: clamp(35vw, 45vw, 500px);
    height: clamp(20vw, 30vw, 300px);
    margin: clamp(1vw, 2vw, 2vw);
    background: transparent;
    box-sizing: border-box;
    transition: opacity 0.5s;
}
.cube-wrapper .cube-container.lazy-load {
    opacity: 0;
}
.cube-wrapper .cube-container.lazy-load.loaded {
    opacity: 1;
}
/* Section Two */
#section-two {
    background-color: #BFD4D9;
    padding: clamp(5vh, 8vh, 8vh) 0;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}
#section-two h2 {
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    margin-bottom: clamp(1.5vh, 2.5vh, 2.5vh);
    color: #004d40;
}
.sphere-container {
    width: clamp(30vw, 40vw, 400px);
    height: clamp(30vw, 40vw, 400px);
    margin: 0 auto;
    perspective: 1000px;
    border: 0.2rem solid #ffcc00;
    background: transparent;
    filter: drop-shadow(0.5rem 0.5rem 0.5rem black);
    -webkit-transform-style: preserve-3d;
    transition: opacity 0.5s;
}
.sphere-container.lazy-load {
    opacity: 0;
}
.sphere-container.lazy-load.loaded {
    opacity: 1;
}
#section-two p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-top: clamp(1vh, 2vh, 2vh);
    color: #333;
    max-width: clamp(70vw, 80vw, 800px);
    margin: clamp(1vh, 2vh, 2vh) auto 0;
}
/* Section Three */
#section-three {
    background-color: #BFD4D9;
    padding: clamp(5vh, 8vh, 8vh) 0;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}
#section-three h2 {
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    margin-bottom: clamp(1.5vh, 2.5vh, 2.5vh);
    color: #004d40;
}
/* Section Four */
#section-four {
    background-color: #BFD4D9;
    padding: clamp(5vh, 8vh, 8vh) 0;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}
#section-four .cube-wrapper {
    margin-bottom: clamp(1vh, 2vh, 2vh);
    width: 100%;
}
#section-four .cube-container {
    transition: opacity 0.5s;
}
#section-four .cube-container.lazy-load {
    opacity: 0;
}
#section-four .cube-container.lazy-load.loaded {
    opacity: 1;
}
/* Footer */
footer {
    background-color: #004d40;
    color: #fff;
    padding: clamp(3vh, 4vh, 4vh) 0;
    width: 100%;
    overflow-x: hidden;
}
.split-section {
    display: flex;
    flex-wrap: wrap;
}
.left, .right {
    flex: 1;
    min-width: 300px;
    max-width: clamp(40vw, 50vw, 50vw);
}
.left img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
}
.right {
    padding: clamp(1vw, 2vw, 2vw);
}
.right h2 {
    font-size: clamp(1.6rem, 3vw, 1.75rem);
    margin-bottom: clamp(1vh, 1.5vh, 1.5vh);
}
.right ul {
    list-style: none;
}
.right ul li {
    margin-bottom: clamp(0.5vh, 1vh, 1vh);
}
.right ul li a {
    color: #ffcc00;
    text-decoration: none;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: color 0.3s;
}
.right ul li a:hover {
    color: #fff;
}
/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: clamp(1vh, 2vh, 2vh);
    right: clamp(1vw, 2vw, 2vw);
    background-color: #004d40;
    color: #fff;
    width: clamp(3vw, 4vw, 40px);
    height: clamp(3vw, 4vw, 40px);
    text-align: center;
    line-height: clamp(3vw, 4vw, 40px);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
}
.back-to-top.show {
    opacity: 1;
}
/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    -webkit-overflow-scrolling: touch;
    padding-top: constant(safe-area-inset-top);
    padding-bottom: constant(safe-area-inset-bottom);
}
.modal-content {
    width: 100%;
    height: 100%;
    max-width: 90%;
    max-height: 90%;
    border-radius: 0.5rem;
    object-fit: contain;
    -webkit-overflow-scrolling: touch;
}
.close {
    position: absolute;
    top: clamp(1vh, 2vh, 2vh);
    right: clamp(2vw, 3vw, 3vw);
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.5rem);
    cursor: pointer;
}
/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-2vh); }
    to { opacity: 1; transform: translateY(0); }
}
/* Responsive Design */
@media (max-width: 1024px) {
    .cube-container, .sphere-container {
        width: clamp(40vw, 50vw, 350px);
        height: clamp(40vw, 50vw, 350px);
    }
    .cube-wrapper .cube-container {
        width: clamp(35vw, 40vw, 400px);
        height: clamp(20vw, 25vw, 250px);
    }
    #section-two p {
        max-width: 90vw;
    }
    .zero-content {
        max-width: 90vw;
    }
}
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: clamp(4vh, 6vh, 6vh);
        left: 0;
        width: 100%;
        background-color: #004d40;
        padding: clamp(1vh, 2vh, 2vh) 0;
    }
    nav ul.show {
        display: flex;
    }
    nav ul li {
        margin: clamp(0.5vh, 1vh, 1vh) 0;
        text-align: center;
    }
    #hero h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    .cube-container, .sphere-container {
        width: clamp(60vw, 70vw, 300px);
        height: clamp(60vw, 70vw, 300px);
    }
    .cube-wrapper .cube-container {
        width: clamp(50vw, 60vw, 300px);
        height: clamp(25vw, 35vw, 200px);
        margin: clamp(0.5vw, 1vw, 1vw);
    }
    .cube-wrapper {
        justify-content: center;
    }
    .sphere-container {
        max-width: 300px;
        max-height: 300px;
    }
    .cube-hints::before {
        content: "On mobile: Swipe to rotate • Pinch to zoom • Tap to view • Double-tap to toggle";
        display: block;
        font-weight: bold;
        margin-bottom: clamp(0.5vh, 1vh, 1vh);
        font-size: clamp(0.7rem, 1.5vw, 1rem);
    }
    .split-section {
        flex-direction: column;
    }
    .modal-content {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
    }
    .left, .right {
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .cube-container, .sphere-container {
        width: clamp(70vw, 80vw, 250px);
        height: clamp(70vw, 80vw, 250px);
    }
    .cube-wrapper .cube-container {
        width: clamp(60vw, 70vw, 250px);
        height: clamp(30vw, 40vw, 180px);
        margin: clamp(0.3vw, 0.5vw, 0.5vw);
    }
    #hero {
        margin-top: 60px;
        padding: clamp(5vh, 10vh, 10vh) 0 clamp(2vh, 5vh, 5vh);
    }
    #section-one, #section-two, #section-three, #section-four {
        padding: clamp(3vh, 5vh, 5vh) 0;
    }
    footer {
        padding: clamp(2vh, 3vh, 3vh) 0;
    }
    .back-to-top {
        width: clamp(4vw, 6vw, 30px);
        height: clamp(4vw, 6vw, 30px);
        line-height: clamp(4vw, 6vw, 30px);
    }
    .close {
        top: clamp(1vh, 2vh, 2vh);
        right: clamp(1vw, 2vw, 2vw);
    }
}