body {
    margin: 0;
    background-color: black;
    color: white;
    font-family: 'IBM Plex Sans', sans-serif;
}
.about {margin: 50px 150px 50px 150px;}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    padding: 1rem 3rem;
    margin: 30px;
}

nav ul .left {
    margin-right: auto; /* Pushes "Portfolio" to the left */
}

nav ul .right {
    margin-right: 35px; /* Adds space between right-side items */
}

nav ul li a {
    text-decoration: none;
    font-family: 'Nunito', serif;
    color: grey;
    font-size: 1.6em;
    font-weight: 800;
}

nav ul li a:hover {
    color: dark grey;
}

footer {
    background: #141414;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: white 0px 0px 4px;
    text-align: center;
    padding: 5px;
}

h1, h2 {
    font-family: 'Nunito', serif;
    text-shadow: 0 0 1px #ffffff;
}

h1 { font-size: 60px; text-align: center;}
h2 { font-size: 50px;}

h3 {
    font-size: 30px;
    text-align: left;
    margin-top: 3.5vh;
    font-weight: 500;
    color:#ffffff;
    text-shadow: 0 0 4px #ffffff;
    letter-spacing: 1.2px;
    line-height: 128%;
    width: 53%;
    margin: 0px;
    padding-top: 50px;
}
    

h4 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 32px;
    font-weight: 300;
    text-shadow: 0 0 2px #ffffff;
    line-height: 30px;
    color: rgb(157, 157, 157);
    line-height: 1.5;
}

h5 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 20px;
  font-weight: 300;
  text-shadow: 0 0 2px #ffffff;
  line-height: 30px;
  color: rgb(117, 117, 117);
  line-height: 1.5;
}

.one {
    height: 75vh;
    display: grid;
    place-items: center;
}

.two-right {
    flex-direction: row;
    text-align:left;
}

.two-left {
    flex-direction: row-reverse;
    text-align:right;
}

.text {
    width: 50%;
    margin: 50px 25px 0px 100px;
}
.graphic {
    width: 50%;
    display: flex;
    justify-content: center;
}

.iphone img {
    width: 250px;
    height: auto;
}
.iphone img {
  transition: transform 0.5s ease-in-out;
}
.iphone img:hover {
  transform: scale(1.1) rotate(.5deg); /* Slight zoom effect on hover */
}

.ipad {
   position: relative;
   width: 600px; /* Adjust based on your iPad PNG size */
   height: 400px; /* Adjust accordingly */
 }

 .ipadvid {
   position: absolute;
   top: 3%; /* Adjust so it fits the screen area */
   bottom: 3%;
   left: 3%;
   right: 5%;
   z-index: 1; /* Ensures it's behind the frame */
   width: 550px;
   height: 380px;
 }

 .ipadimg {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%; /* Ensures the frame covers everything */
   height: 100%;
   z-index: 2; /* Ensures the frame is on top */
 }


.two {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 125px;
    gap: 0px;
    height: 70vh;
}

.rotating-text {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    height: 1.35em;
}

.rotating-text span {
    display: block;
    animation: scrollup 10s linear infinite;
}

@keyframes scrollup {
    0%, 10% {
      transform: translateY(0);
      color: #FF9B9B;
    }
    12.5%, 22.5% {
      transform: translateY(-100%);
      color: #A0C4FF;
    }
    25%, 35% {
      transform: translateY(-200%);
      color: #caffbf;
    }
    37.5%, 47.5% {
      transform: translateY(-300%);
      color: #FFAEE1;
    }
    50%, 60% {
      transform: translateY(-400%);
      color: #fdffb6;
    }
    62.5%, 72.5% {
      transform: translateY(-500%);
      color: #bdb2ff;
    }
    75%, 85% {
      transform: translateY(-600%);
      color: #ffd6a5;
    }
    87.5%, 97.5% {
      transform: translateY(-700%);
      color: #9BF6FF;
    }
    100% {
      transform: translateY(0);
    }
}

@media (max-width: 1000px) {
nav ul li a { font-size: 1.2em;}
nav ul {padding: 1rem 1rem; margin: 12px;}
nav ul .right {margin-right: 15px;}
h1 { font-size: 40px; margin: 26.8px 15px}
h2 { font-size: 35px;}
h4 { font-size: 20px;}

.one {
  height: 70vh;
  display: grid;
  place-items: center;
}

.text {width: 50%; margin: 0px 0px 0px 0px;}

.iphone img {width: 150px;}
.ipad {position: relative; width: 250px; height: 170px;}
.ipadimg {top: 40px;}
.ipadvid { width: 230px; height: 190px; top: 30px;}

.two { margin: 50px; height: 55vh;}
h3 {width: 90%;}
.about {margin: 50px 50px 50px 70px;}
}
