html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: rgb(19, 18, 18);
    background: linear-gradient(270deg, #696161, #554f4f, #665e5e, #161515);
    background-size: 800% 800%;
    animation: moveGradient 15s ease infinite;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
}

@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.social-icons {
  position: relative;
  display: flex;
  gap: 30px;
  right: -300px; 
  animation: iconS 4s ease forwards;
  margin-top: -50px;
  flex-wrap: wrap;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(85, 79, 79); 
  color: white;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0,0,0,0.2); 
}

.social-icons a:hover {
  box-shadow: 0 0 15px rgba(255,255,255,0.😎, 
              inset 0 0 10px rgba(255,255,255,0.6)); 
  transform: scale(1.1); 
  color: #fff;
}

.social-icons a:nth-child(1):hover {
  box-shadow: 0 0 15px #3b5998, inset 0 0 10px #3b5998;
}

.social-icons a:nth-child(2):hover { 
  box-shadow: 0 0 15px #e1306c, inset 0 0 10px #e1306c;
}

.social-icons a:nth-child(3):hover { 
  box-shadow: 0 0 15px #69C9D0, inset 0 0 10px #69C9D0;
}

@keyframes iconS {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-btn {
    font-family: 'Mattyy', sans-serif;
    display: inline-block;
    margin-top: 20px;
    padding: 18px 40px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 570px; 
    transition: 0.3s ease;
    font-size: 20px;
    animation: iconS 5s ease forwards;
}

.about-btn:hover {
    box-shadow: 0 0 10px #000000f6,
                0 0 20px #011111,
                0 0 40px #6e7777e1;
    transform: scale(1.1);
}

.jems {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    position: relative;
    padding: 60px 40px; 
    border: none;
}

.section1 {
    background-size: cover;
    background-position: center;
    min-height: 150vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 50px 20px; 
    text-align: left;
    justify-content: flex-start;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;

}

.section2 {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px; 
}

.section4 {
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 5px; 
}

.section3 {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 40px; 
}

.section5 {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 40px; 
    flex-direction: column; 
}

/* CLOCK */

.min {
  position: relative;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  right: 1%;
  outline: 25px solid black;
  background: repeating-radial-gradient(circle at 50% 50%, 
    rgba(200,200,200,.2) 0%, rgba(200,200,200,.2) 2%, 
    transparent 2%, transparent 3%, rgba(200,200,200,.2) 3%, 
    transparent 3%), conic-gradient(white 0%, silver 10%, 
    white 35%, silver 45%, white 60%, silver 70%, 
    white 80%, silver 95%, white 100%);
  box-shadow: 0 30px 5px rgba(0,0,0,0.5),  
    0 0 40px rgba(0,0,0,0.2),     
    inset 0 0 40px rgba(0,0,0,0.2)
}

.hour, .minute, .second {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center bottom;
  transform: translateX(-50%) translateY(-100%) rotate(0deg);
}

.hour {
  width: 16px;
  height: 150px;
  background: #aaa;
  border-radius: 8px 8px 2px 2px;
  z-index: 3;
  animation: watch 43200s linear infinite;
}

.minute {
  width: 10px;
  height: 220px;
  background: #aaa;
  border-radius: 5px 5px 2px 2px;
  z-index: 4;
  animation: watch 3600s linear infinite;
}

.second {
  width: 6px;
  height: 240px;
  background: red;
  z-index: 5;
  animation: watch 60s steps(60, end) infinite;
}

.second::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: -3px;
  top: -3px;
  background: black;
  border-radius: 50%;
  z-index: 6;
}

.v-index {
  position: absolute;
  color: #333;
  font-size: 70px;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.h-index {
  position: absolute;
  color: #333;
  font-size: 70px;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

@keyframes watch {
  0% { transform: translateX(-50%) translateY(-100%) rotate(0deg); }
  100% { transform: translateX(-50%) translateY(-100%) rotate(360deg); }
}

/* CAROUSEL */
@keyframes autoRun3d {
  from {
    transform: perspective(800px) rotateY(-360deg);
  }
  to {
    transform: perspective(800px) rotateY(0deg);
  }
}

@keyframes animateBrightness {
  10% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(0.1);
  }
  90% {
    filter: brightness(1);
  }
}

.baraha-3d {
  position: relative;
  width: 250px;
  height: 100px;
  transform-style: preserve-3d;
  transform: perspective(800px);
  animation: autoRun3d 20s linear infinite;
  will-change: transform;
  right: 65%;
  margin-top: -400px;
}

.baraha-3d div {
  position: absolute;
  width: 170px;
  height: 250px;
  border: 1px solid black;
  background-color: rgb(199, 199, 199);
  border-radius: 0.5rem;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  animation: animateBrightness 10s linear infinite;
  transition-duration: 200ms;
  will-change: transform, filter;
  box-shadow: 5px 0 2px rgba(128, 128, 128, 0.2);
}

.baraha-3d:hover {
  animation-play-state: paused !important;
}

.baraha-3d:hover div {
  animation-play-state: paused !important;
}

.baraha-3d div:nth-child(1) {
  transform: translate(-50%, -50%) rotateY(0deg) translateZ(260px);
  animation-delay: -0s;
}

.baraha-3d div:nth-child(2) {
  transform: translate(-50%, -50%) rotateY(36deg) translateZ(260px);
  animation-delay: -2s;
}

.baraha-3d div:nth-child(3) {
  transform: translate(-50%, -50%) rotateY(72deg) translateZ(260px);
  animation-delay: -4s;
}

.baraha-3d div:nth-child(4) {
  transform: translate(-50%, -50%) rotateY(108deg) translateZ(260px);
  animation-delay: -6s;
}

.baraha-3d div:nth-child(5) {
  transform: translate(-50%, -50%) rotateY(144deg) translateZ(260px);
  animation-delay: -8s;
}

.baraha-3d div:nth-child(6) {
  transform: translate(-50%, -50%) rotateY(180deg) translateZ(260px);
  animation-delay: -10s;
}

.baraha-3d div:nth-child(7) {
  transform: translate(-50%, -50%) rotateY(216deg) translateZ(260px);
  animation-delay: -12s;
}

.baraha-3d div:nth-child(8) {
  transform: translate(-50%, -50%) rotateY(252deg) translateZ(260px);
  animation-delay: -14s;
}

.baraha-3d div:nth-child(9) {
  transform: translate(-50%, -50%) rotateY(288deg) translateZ(260px);
  animation-delay: -16s;
}

.baraha-3d div:nth-child(10) {
  transform: translate(-50%, -50%) rotateY(324deg) translateZ(260px);
  animation-delay: -18s;
}

.baraha-3d div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

.profile {
    width: 350px;
    height: 350px;
    border-radius: 100%;
    margin-bottom: 80px;
    margin-left: 250px;
    margin-top: -40px;
    animation: iconS 0.5s ease forwards;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 15px 10px rgba(0,0,0,0.5)); 
}

.profile:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.493));
}

.navig {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-family:'Mattyy', sans-serif;
}

.navig ul li a {
    text-decoration: none;
    color: black;
    padding: 8px 15px;
    outline: none;
    display: inline-block;
    transition: 0.5s ease;
}

.navig ul li a:hover {
    color: #38bdf8;
    text-shadow: 0 0 5px #38bdf8, 0 0 10px #38bdf8;
    transform: scale(1.20);
}

.navig ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navig ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.navig ul li a:hover {
    color: #38bdf8;
}

.section h1 {
    width: 350px;
    height: 350px;
    border-radius: 100%;
    margin-left: 360px;
    margin-top: 100px;
}

.section1 h1 {
    font-family:'Orzal', sans-serif;
    display: flex;
    font-size: clamp(3rem, 5vw, 6rem);
    color: white;
    margin-bottom: -220px;
    width: 30%;
    text-align: right;
    text-shadow: 2px 2px 5px black;
}

.iam {
    font-family:'tengg', sans-serif;
    margin: 20px auto 0 auto;
    margin-left: 35%;
    line-height: 1.6;
    font-size: clamp(1rem, 1.5vw, 2rem);
    max-width: 900px;
    margin-bottom: 50px;
    text-align: left;
    padding: 20px;
    color: white;
}

.reveal {
    opacity: 0;
    transition: all 1s ease;
}

.reveal.left {
    transform: translateX(-100px);
}

.reveal.right {
    transform: translateX(100px);
}

.reveal.show {
    opacity: 1;
    transform: translateX(0);
}

.section2 h1 {
    font-family:'Orzal', sans-serif;
    display: flex;
    font-size: 100px;
    color: white;
    margin-top: -350px;
    margin-right: 55%;
    text-shadow: 2px 2px 5px black; 
}

@font-face {
    font-family: 'Cruzzz';
    src: url(Sui\ Generis\ Rg.otf);
}
@font-face {
    font-family: 'Mattyy';
    src: url(AGRESSIVE.otf);
}
@font-face {
    font-family: 'Jemsss';
    src: url(LORENZA.otf);
}
@font-face {
    font-family: 'Orzal';
    src: url(EnclaveDemoRegular.ttf);
}
@font-face {
    font-family: 'tengg';
    src: url(big_noodle_titling.ttf);
}
@font-face {
    font-family: 'tengg1';
    src: url(big_noodle_titling.ttf);
}

.slide1 {
    opacity: 0;
    margin-top: 10px;
    transform: translateX(-100px);
    animation: slideRight 1s ease forwards;
}

#itis {
    font-family: 'Mattyy', sans-serif;
    font-size: 15px;
    padding: 0;
    margin-bottom: 10px;
    margin-left: 150px;
    color: white;
    position: relative;
    top: -100px;
}

.slide2 {
    opacity: 0;
    transform: translateX(-100px);
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
    font-family: 'Orzal', sans-serif;
    font-weight: 800%;
    font-size: 4.8em;
    margin-left: 150px;  
    gap: 0;
    margin-top: -100px;
    width: -1;
    line-height: 1.2;
    color: white;
    text-align: right;
    display: flex;
}

.slide3 {
    opacity: 0;
    transform: translateX(-100px);
    animation: slideRight 1s ease forwards;
    animation-delay: 2s;
    color: white;
    text-align: right;
    display: flex;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ngalan h2 {
    font-family:'Mattyy', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    max-width: 600px;
    margin-top: -30px;
    margin-left: 150px;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.face {
    position: absolute;
    right: -0px;
    bottom: 0;
    width: 700px; 
    height: auto;
}

.face-frame {
    width: 500px;             
    height: 500px;
    border-radius: 70%;        
    background: black;          
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;              
    position: absolute;
    top: 250px;                  
    right: 200px;
    border: 5px solid gray;
    box-shadow: 0 0 20px rgba(216, 212, 216, 0.281), 
                0 0 40px rgba(121, 117, 120, 0.767),
                0 0 60px rgba(162, 157, 163, 0.534);
    filter: drop-shadow(0 15px 40px rgba(0,0,0,0.5)); 
}

.face-frame .face {
    width: 100%;
    height: 150%;
    border-radius: 40%;
    object-fit: cover; 
}

.face-frame:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px gray) drop-shadow(0 0 15px gray);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hobby-text h1 {
    font-family:'Orzal', sans-serif;
    font-size: 5rem;
    color: white;
    margin-bottom: 500px;
    margin-left: -500px;
    text-shadow: 2px 2px 5px black;
}

.hobby-text p {
    font-family:'tengg', sans-serif;
    text-shadow: 2px 2px 5px black;
    font-size: 1.5rem;
    line-height: 1.8;
    color: white;
    width: 600px;
    margin-bottom: 500px;
    margin-top: -500px;
    margin-left: 820px;
    text-align: left;
    display: flex;
}

/* SECTION 1 */
.cards {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.card {
    background: #1a1a1a;
    padding: 0px;
    width: 350px;
    border-radius: 20px;
    transition: 0.3s;
    cursor: pointer;
    height: 250px;
}

.card h2,
.card p {
    margin: 15px;
    padding: 10px;
    color: white;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    background: darkgrey;
    color: black;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.993);
}

.card h2 {
    font-size: 52px;
    margin-bottom: 50px;
    font-family: 'Orzal', sans-serif;
}

.card p {
    font-size: 20px;
    font-family: 'tengg', sans-serif;
    margin-bottom: 50px;
}

/* SECTION 2 */

.pangarap {
    font-family:'tengg', sans-serif;
    margin: 20px auto 0 auto;
    line-height: 1.0;
    font-size: 1.5rem;
    max-width: 900px;
    margin-top: -200px;
    margin-right: -20px;
    text-align: left;
    padding: 40px;
    color: white;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    top: -50;
}

.flip-card {
    width: 180px;
    height: 270px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 8px 20px gray(3, 3, 3);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flip-card-back {
    background: gray;
    color: black;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    text-align: center;
    gap: 12px;
    font-family: 'Jemsss', sans-serif;
}

.flip-card-back h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #fff;
    max-width: 100%;
}

.flip-card-back p {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    color: #f0f0f0;
    text-align: center;
    max-width: 90%;
    text-shadow: 2px 2px 5px black;
    font-family: 'tengg', sans-serif;
}

/* SECTION 3 VIDEOS */
.project-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.video-card {
    width: 400px;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(to top, rgba(0,0,0,0.7), black);
    cursor: pointer;
    transition: 0.4s;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.video-card video {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.video-info {
    font-size: 1.3rem;
    padding: 15px;
    color: white;
    font-family: 'tengg', sans-serif;
}

.video-card:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px gainsboro;
}

/* FULLSCREEN */
.fullscreen-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.fullscreen-video video {
    width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.section3 h1 {
    font-family: 'Orzal', sans-serif;
    font-size: 5.5rem;
    color: white;
    text-shadow: 2px 2px 5px black;
    margin-left: -50%;
    margin-bottom: -150px;
}

.proyekto {
    font-family: 'tengg', sans-serif;
    font-size: 1.5rem;
    color: white;
    text-shadow: 2px 2px 5px black;
    text-align: left;
    width: 800px;
    margin-left: 600px;
}

/* SECTION 3 PICTURES */
.image-row {
  display: flex;
  flex-direction: row;    
  flex-wrap: wrap;      
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.img-card {
  flex: 0 0 auto;          
  width: 400px;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  right: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  text-shadow: 2px 2px 5px black;
  font-family: 'tengg', sans-serif;
  background: linear-gradient(to top, rgba(0,0,0,0.7), black);
  color: white;
  font-size: 1.5rem;
}

.img-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px white;
}

/* Fullscreen image */
.fullscreen-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.fullscreen-img img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* FOOTER */
footer {
    background: #111;
    padding: 80px 20px;
    text-align: center;
    color: white;
    font-family: 'tengg', sans-serif;
}

footer h1 {
    font-size: 3rem;
    margin-bottom: 50px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px #000;
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: 0.4s;
}

.icon-card span {
    margin-top: 12px;
    font-size: 1.2rem;
}

.icon-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
    transition: 0.4s;
}

.icon-card:hover img {
    transform: scale(1.2);
    box-shadow: 0 0 25px #fff, 0 0 40px #fff, 0 0 60px #fff;
}

/* LOVE SECTION */

.family-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.family-card {
  width: 450px;
  height: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.family-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: white;
  opacity: 0;
  transition: 0.3s;
}

.family-card:hover .overlay {
  opacity: 1;
}

.family-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px white;
}

.fullscreen-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.fullscreen-img img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.section5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section5 h1 {
  font-family: 'Orzal', sans-serif;
  font-size: 6rem;
  color: white;
  text-shadow: 2px 2px 5px black;
  margin-bottom: -110px;
  margin-left: -50%;
}

.lablab {
  font-family: 'tengg', sans-serif;
  font-size: 1.5rem;
  color: white;
  text-shadow: 2px 2px 5px black;
  width: 900px;
  text-align: left;
  margin-left: 30%;
}

.family-card .overlay p {
    font-family: 'tengg', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    min-height: 60px;
    text-align: center;
    margin-right: 15px;
}

.section5 h3 {
   font-family: 'Orzal', sans-serif;
   text-align: center;
   margin-right: 15px;
}

/* ========================= */
/* RESPONSIVE - DESKTOP SAFE */
/* ========================= */

@media (max-width: 1367px) {
  .face-frame {
    width: 600px;
    height: 600px;
    right: 100px;
    top: 300px;
  }

  .profile {
    width: 400px;
    height: 400px;
    margin-left: 150px;
  }

  .slide2 {
    font-size: 5.5em;
  }

  .about-btn {
    margin-left: 670px;
  }

  .social-icons {
    right: -400px;
  }

  .section1 h1 {
    font-size: 6rem;
    margin-left: -58%;
    margin-bottom: -420px;
  }

  .iam {
    font-size: 1.7rem;
    max-width: 800px;
    margin-top: 50px;
    margin-right: 70px;
    padding: 30px;
  }

  .section2 h1,
  .section3 h1,
  .section5 h1 {
    font-size: 5.5rem;
  }

  .pangarap,
  .proyekto,
  .lablab {
    font-size: 1.7rem;
    width: 850px;
  }

  .min {
    width: 380px;
    height: 380px;
  }

  .hour {
    height: 115px;
  }

  .minute {
    height: 165px;
  }

  .second {
    height: 185px;
  }

  .hobby-text h1 {
    font-size: 5.5rem;
    margin-left: -250px;
  }

  .hobby-text p {
    width: 600px;
    margin-left: 650px;
    font-size: 1.6rem;
  }

  .baraha-3d {
    right: 45%;
    margin-top: -300px;
    transform: perspective(800px) scale(0.85);
  }

  .family-card {
    width: 380px;
    height: 300px;
  }

  .img-card {
    right: 0;
  }

  .proyekto {
    margin-left: 250px;
  }
}

@media (max-width: 1366px) {
  .jems {
    min-height: auto;
    padding-bottom: 100px;
  }

  .face-frame {
    width: 420px;
    height: 420px;
    right: 40px;
    top: 260px;
  }

  .face {
    width: 500px;
  }

  .profile {
    width: 300px;
    height: 300px;
    margin-left: 80px;
    margin-bottom: 40px;
  }

  #itis {
    margin-left: 80px;
    top: -40px;
  }

  .slide2 {
    font-size: 4rem;
    margin-left: 80px;
    margin-top: -40px;
  }

  .slide3 {
    margin-left: 80px;
  }

  .ngalan h2 {
    margin-left: 180px;
    max-width: 420px;
  }

  .about-btn {
    margin-left: 400px;
    font-size: 18px;
    padding: 15px 30px;
  }

  .social-icons {
    right: -180px;
    gap: 18px;
  }

  .section1 h1 {
    font-size: 5rem;
    margin-left: -40%;
    margin-bottom: -320px;
  }

  .iam {
    font-size: 1.5rem;
    max-width: 700px;
    margin-top: 40px;
    margin-right: 20px;
    padding: 25px;
  }

  .card {
    width: 280px;
    height: 220px;
  }

  .section2 {
    padding: 80px 30px;
  }

  .section2 h1 {
    font-size: 4.3rem;
    margin-top: -180px;
    margin-right: 35%;
  }

  .pangarap {
    font-size: 1.45rem;
    max-width: 760px;
    width: 100%;
    margin-top: -100px;
    margin-right: 0;
    padding: 20px;
  }

  .min {
    width: 300px;
    height: 300px;
    outline: 16px solid black;
  }

  .hour {
    height: 90px;
    width: 12px;
  }

  .minute {
    height: 130px;
    width: 8px;
  }

  .second {
    height: 145px;
    width: 4px;
  }

  .v-index,
  .h-index {
    font-size: 45px;
  }

  .flip-card {
    width: 220px;
    height: 280px;
  }

  .flip-card-back h1 {
    font-size: 1.2rem;
  }

  .flip-card-back p {
    font-size: 1.4rem;
  }

  .section3 h1 {
    font-size: 4.8rem;
    margin-left: -38%;
    margin-bottom: -80px;
  }

  .proyekto {
    width: 90%;
    max-width: 850px;
    margin-left: 0;
    font-size: 1.45rem;
  }

  .video-card {
    width: 320px;
    height: 300px;
  }

  .img-card {
    width: 320px;
    height: 240px;
    right: 0;
  }

  .section4 {
    flex-direction: column;
    padding: 60px 20px;
  }

  .hobby-text h1 {
    font-size: 4.5rem;
    margin: 0 0 30px 0;
  }

  .hobby-text p {
    width: 90%;
    max-width: 850px;
    margin: 0 auto 60px auto;
    font-size: 1.45rem;
    text-align: center;
    display: block;
  }

  .baraha-3d {
    position: relative;
    right: 0;
    margin: 40px auto 0 auto;
    width: 320px;
    height: 180px;
    transform: perspective(800px) scale(0.85);
  }

  .section5 h1 {
    font-size: 5rem;
    margin-left: -35%;
    margin-bottom: -100px;
  }

  .lablab {
    width: 90%;
    max-width: 850px;
    margin-left: 0;
    font-size: 1.45rem;
  }

  .family-card {
    width: 320px;
    height: 260px;
  }
}

@media (max-width: 992px) {
  .navig {
    top: 10px;
    right: 10px;
  }

  .navig ul {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .jems {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 120px;
  }

  .profile {
    margin: 0 auto 30px auto;
    width: 240px;
    height: 240px;
  }

  .face-frame {
    position: relative;
    top: 0;
    right: 0;
    margin: 30px auto;
    width: 320px;
    height: 320px;
  }

  .face {
    width: 380px;
  }

  #itis,
  .slide2,
  .slide3,
  .ngalan h2 {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  #itis {
    top: 0;
  }

  .slide2 {
    font-size: 3rem;
    display: block;
    margin-top: 0;
  }

  .slide3 {
    display: block;
    max-width: 700px;
    margin: 10px auto;
  }

  .ngalan h2 {
    max-width: 700px;
    margin: 10px auto 0 auto;
  }

  .about-btn {
    margin: 25px auto;
    display: inline-block;
  }

  .social-icons {
    position: static;
    justify-content: center;
    margin-top: 20px;
    right: 0;
  }

  .section1 h1,
  .section2 h1,
  .section3 h1,
  .section5 h1 {
    margin: 0 auto 30px auto;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }

  .iam,
  .pangarap,
  .proyekto,
  .lablab {
    width: 90%;
    max-width: 700px;
    margin: 0 auto 30px auto;
    text-align: center;
    padding: 10px;
  }

  .cards,
  .project-container,
  .family-container,
  .card-container {
    justify-content: center;
    flex-wrap: wrap;
  }

  .min {
    margin-bottom: 20px;
  }

  .image-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .img-card {
    right: 0;
  }

  .hobby-text h1,
  .hobby-text p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .baraha-3d {
    right: 0;
    margin-top: 40px;
  }
}

@media (max-width: 1199px) {
  .navig {
    position: static;
    padding: 15px;
  }

  .navig ul {
    justify-content: center;
    background: rgba(0,0,0,0.4);
    padding: 12px;
    border-radius: 12px;
  }

  .navig ul li a {
    font-size: 14px;
    padding: 6px 10px;
  }

  .jems,
  .section1,
  .section2,
  .section3,
  .section4,
  .section5 {
    padding-left: 15px;
    padding-right: 15px;
  }

  .slide2 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .slide3,
  .ngalan h2 {
    font-size: 1rem;
  }

  .profile {
    width: 180px;
    height: 180px;
  }

  .face-frame {
    width: 230px;
    height: 230px;
  }

  .face {
    width: 280px;
  }

  .section1 h1,
  .section2 h1,
  .section3 h1,
  .section5 h1,
  .hobby-text h1 {
    font-size: 2.8rem;
  }

  .iam,
  .pangarap,
  .proyekto,
  .lablab,
  .hobby-text p {
    font-size: 1.15rem;
    line-height: 1.5;
  }

  .card,
  .flip-card,
  .video-card,
  .family-card,
  .img-card {
    width: 100%;
    max-width: 340px;
  }

  .card {
    height: auto;
    padding: 20px 0;
  }

  .flip-card {
    height: 260px;
  }

  .video-card {
    height: 260px;
  }

  .img-card {
    height: 240px;
  }

  .family-card {
    height: 260px;
  }

  .min {
    width: 220px;
    height: 220px;
    outline: 10px solid black;
  }

  .hour {
    height: 65px;
    width: 8px;
  }

  .minute {
    height: 95px;
    width: 6px;
  }

  .second {
    height: 105px;
    width: 3px;
  }

  .v-index,
  .h-index {
    font-size: 30px;
  }

  .baraha-3d {
    width: 240px;
    height: 140px;
    transform: perspective(800px) scale(0.7);
  }

  .baraha-3d div {
    width: 120px;
    height: 180px;
  }

  .social-footer {
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .slide2 {
    font-size: 1.8rem;
  }

  #itis {
    font-size: 16px;
  }

  .about-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .section1 h1,
  .section2 h1,
  .section3 h1,
  .section5 h1,
  .hobby-text h1 {
    font-size: 2.2rem;
  }

  .iam,
  .pangarap,
  .proyekto,
  .lablab,
  .hobby-text p {
    font-size: 1rem;
  }

  .profile {
    width: 150px;
    height: 150px;
  }

  .face-frame {
    width: 190px;
    height: 190px;
  }

  .face {
    width: 220px;
  }

  .social-icons a {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .icon-card img {
    width: 50px;
    height: 50px;
  }

  footer h1 {
    font-size: 1.8rem;
  }
}