/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');
html, body {
    width: 100%;
    overflow-x: hidden; /* prevent horizontal scroll */
}

body {
  font-family: "Poppins", sans-serif;
  
}
 
  /* /* Floating background circles */
  .circle {
    position: absolute;
    border-radius: 20%;
    z-index: -1;
    background: rgba(178, 124, 124, 0.15);
    animation: float 4s infinite ease-in-out;
  }
  .circle:nth-child(1) { width: 200px; height: 200px; top: 5%; left: 10%; }
  .circle:nth-child(2) { width: 300px; height: 300px; bottom: 10%; right: 8%; animation-duration: 8s; }
  .circle:nth-child(3) { width: 120px; height: 120px; bottom: 20%; left: 20%; animation-duration: 3s; }

  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-40px); }
    100% { transform: translateY(0px); }
  } */
html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
  
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
  
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
  border-radius: 20px;
  opacity: 0.8;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 4;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
   display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}
#picture{
   border-radius: 120px;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}



/* ICONS */
/* SOCIAL ICONS */
/* REMOVE SIDE MARGIN ONLY FOR PROFILE */
/* ================================
   FIX: FORCE BUTTONS & ICONS TO
   SCREEN RIGHT (NOT CONTENT CENTER)
================================ */

/* Make profile a positioning reference */
#profile {
  position: relative;
}

/* Buttons → screen right */
#profile .btn-container {
  position: absolute;
  right: 1.5rem;     /* distance from screen right */
  top: 50%;          /* center vertically */
  transform: translateY(-50%);
  display: flex;
  gap: 1rem;
  z-index: 3;
  transform: translateX(800px);
  animation: slideFromRight 1s ease-out 0.3s forwards;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);

}
@keyframes slideFromRight {
    from {
        transform: translateX(800px);
        opacity: 0.5;
    }
    to {
        transform: translateX(0);
        
    }
}


/* Social icons → screen right */
#profile #socials-container {
  position: absolute;
  right: 7.4rem;
  top: calc(45% + 7rem); /* 👈 below buttons */
  display: flex;
  gap: 1rem;
  z-index: 3;
  transform: translateX(800px);
  animation: slideFromRight 1s ease-out 0.3s forwards;
  
}
@keyframes slideFromRight {
    from {
        transform: translateX(800px);
        opacity: 0.5;
    }
    to {
        transform: translateX(0);
        
    }
}


.icon {
  cursor: pointer;
  justify-content: center;
  height: 2rem;
  z-index: 2;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);

}
.icon:hover {
  transform: scale(1.2);
}
/* BUTTONS */



.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
  z-index: 3;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
  transform: scale(1.2);
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
  
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: rgba(255, 255, 255, 0.5); /* 0.1 = very light, 1 = solid */
  border-radius: 2rem;
  border: 0.1rem solid rgb(163, 163, 163);
  text-align: center;
}



.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgba(255, 255, 255, 0.5); /* 0.1 = very light, 1 = solid */
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}
 .content{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    isolation: isolate;
    z-index: 1;
}
.content h1{
    font-family: 'ICA Rubrik';
    font-size: 10em;
    line-height: 1em;
    bottom: 100px;
    left: 80px;
    color: #25283B;
    position: relative;
    mix-blend-mode: multiply;
    transform: translateX(-800px);
    animation: slideFromLeft 1.2s ease-out 0.3s forwards;
}
@keyframes slideFromLeft {
    from {
        transform: translateX(-800px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        
    }
}
 .content h1::after{
    position: absolute;
    inset: 0 0 0 0;
    content: attr(data-content);
    z-index: 2;
    -webkit-text-stroke: 2px #d2d2d2;
    color: transparent;
}
 .content .author{
    font-family: Poppins;
    text-align: right;
    max-width: 200px;
    display: none;
}
.content h2{
    font-size: 3em;
}
 .content .model{
    background-image: url(assets/profile-6.png);
    width: 100%;
    height: 90vh;
    position: absolute;
    bottom: -30px;
    left: 0;
    border-radius: 10px;
    background-size: auto 110%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
    animation: riseUp 1s ease-out 0.3s forwards;
    opacity: 0;
} 
@keyframes riseUp {
    from {
        transform: translateY(800px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.content .model::after {
    content: "";
    position: absolute;
    bottom: -60px;           /* distance from container */
    left: 50%;               /* center horizontally */
    transform: translateX(-50%);
    width: 700px;            /* shadow width */
    height: 100px;            /* shadow height */
    background: rgba(0, 0, 0, 0.9);
    border-radius: 50%;      /* makes it circular/oval */
    filter: blur(20px);      /* soft shadow effect */
    z-index: -1;             /* behind the container */
}


@media screen and (max-width: 1023px) {
    .slider{
        width: 160px;
        height: 200px;
        left: calc(50% - 80px);
    }
    .slider .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(300px);
    }
    .content h1{
        /* text-align: center; */
        /* width: 100%; */
        left: 20px;
        text-shadow: 0 10px 1 #000;
        font-size: 7em;
    }
    .content .author{
        color: #fff;
        padding: 20px;
        text-shadow: 0 10px 20px #000;
        z-index: 2;
        max-width: unset;
        width: 100%;
        /* text-align: center; */
        padding: 0 30px;
    }
}
@media screen and (max-width: 767px) {
    .slider{
        width: 100px;
        height: 150px;
        left: calc(50% - 50px);
    }
   
    .content h1{
        font-size: 5em;
        bottom: 40px;
    }
    #profile .btn-container {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 0;
  }
  .content .model{
        height: 65vh;              /* smaller container */
        background-size: auto 100%; /* smaller image */
        bottom: -35px;             /* adjust positioning */
    }

  /* SOCIAL ICONS STAY LOWER */
  #profile #socials-container {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 40px;
  }
}