@font-face {
    font-family: aaple;
    src: url(SFPRODISPLAYREGULAR.OTF);
}
@font-face {
    font-family: aaplepro;
    src: url(SFPRODISPLAYBOLD.OTF);
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: aaple;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.text-container {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    text-align: center;
    color: black;
}

.text-container h1 {
    font-family: aaplepro;
    font-size: 5rem;
    margin: 0;
}

.text-container h2 {
    font-family: aaple;
    font-size: 2rem;
    margin: 0;
}

.phone-image {
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    transition: bottom 1s ease-in-out;
}

.hero.visible .phone-image {
    bottom: 10%;
}

main {
    padding: 20px;
    background-color: white;
    min-height: 100vh;
}

/* Next Part */
.screen {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f4f4f4;
}

.textplacescreen {
    text-align: center;
}

.textplacescreen h1 {
    font-family: 'aaplepro';
    margin: 0;
    margin-bottom: 10px;
}

.textplacescreen h2 {
    font-family: 'aaple';
    margin: 0;
}

.diffcolour {
    color: gray;
}

.flat-phone-image {
    max-width: 100%;
    height: auto;
    width: 40%;
    margin: 0 auto;
    z-index: 1;
    transform: scale(0); 
    transition: transform 1s ease-out;
    opacity: 0; 
}

.flat-phone-image.zoomed {
    transform: scale(1);
    opacity: 1; 
}

/* Battery Part */
.battery {
    margin-top: 100px;
    height: 80vh;
}

.battext h1 {
    margin-left: 100px;
    font-family: aaplepro;
    text-align: left;
    font-size: 60px;
    margin-top: 20px;
    margin-bottom: -55px;
}
.battext h3 {
    margin-left: 40px;
    font-size: 45px;
    text-align: left;
    font-family: aaple;
}

.chargingspecs {
    margin-top: -200px;
    width: 40%;
    margin-left: 20px;
}

.chargingphone {
    width: 25%;
    margin-left: 400px;
}

/* Processor */
.processor {
    margin-top: 100px;
    height: 120vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    background-color: black;
}

.protext h1 {
    font-size: 50px;
    font-family: aaplepro;
    color: white;
    text-align: center;
    margin-bottom: 10px; 
}

.protext h3 {
    font-size: 24px;
    text-align: center;
    font-family: aaple;
    color: white;
    margin-top: 0; 
    margin-bottom: 20px; 
}

.processor img {
    width: 12%; 
    height: auto; 
    margin-top: -15px;
    margin-bottom: 15px; 
}

.gameplay {
    width: 65%; 
    border-radius: 15px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); 
}

/* Camera */
.camera {
    margin-top: 100px;
    height: 47vh;
    position: relative;
}

.camtext h1 {
    margin-left: 100px;
    font-family: aaplepro;
    text-align: left;
    font-size: 60px;
    margin-top: -100px;
    margin-bottom: -55px;
}
.camtext h3 {
    margin-left: 40px;
    font-size: 45px;
    text-align: left;
    font-family: aaple;
}

.camerapics {
    padding: 160px;
    margin-top: -200px;
    width: 60%;
    margin-left: -100px;
}

.cameraphone {
    position: absolute;
    top: 49%;
    right: 0;
    width: 25%;
    transform: translateY(-50%);
}

/* UI Part */
.UI {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #808080;
    padding: 20px;
}

.UIdisplay {
    width: 60%;
    margin-right: 20px;
}

.UItext {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding-right: 20px;
}

.oneuilogo {
    width: 25%;
    margin-left: 50px;
}

/* Final */
.promotion {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    color: white;
}

.phones-image {
    width: 40%;
    margin-right: 20px;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 5s ease-out, transform 5s ease-out;
}

.phones-visible {
    opacity: 1;
    transform: translateY(0);
}

.text h1 {
    font-family: aaplepro;
    font-size: 48px;
    margin: 0;
    text-align: left;
    margin-left: 50px;
}

.text h3 {
    font-family: aaple;
    font-size: 24px;
    margin-top: 10px;
    text-align: left;
    margin-left: 140px;
}

/* Footer */
.content {
    flex: 1; 
}

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-family: aaplepro;
    font-size: 18px;
    width: 100%;
    position: relative;
}
