/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  background-color: #FFF8DE;
}

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: 12vh;
}

#desktop-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 12vh;
  background: rgba(255, 248, 222, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 60px);
  max-width: 1000px;
  border-radius: 2rem;
  z-index: 1000;
}

#hamburger-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 10vh;
  background: rgba(255, 248, 222, 1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1000;
}

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

a {
  color: rgb(85, 85, 85);
  font-weight: 500;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

.logo img {
  padding-top: 0.5em;
  height: l20px;
  width: 165px;
}

/* 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: 4px;
  background-color: rgb(85, 85, 85);
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 150%;
  right: 0;
  background-color: #FFF8DE;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
  border-radius: 20px;
}

.menu-links a {
  display: block;
  padding: 15px;
  text-align: center;
  font-size: 1.2rem;
  color: rgb(85, 85, 85);
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

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

.menu-links.open {
  max-height: 300px;
}

.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;
  height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 100vh;
  margin-bottom: 6rem;
}

.profile-pic {
  border-radius: 50%;
  --shadow-color: 48deg 34% 58%;
  box-shadow: 0.3px 0.7px 0.6px hsl(var(--shadow-color) / 0.57),
              0.4px 0.8px 0.7px -0.7px hsl(var(--shadow-color) / 0.5),
              0.9px 2px 1.6px -1.4px hsl(var(--shadow-color) / 0.43),
              2.2px 5px 4.1px -2.1px hsl(var(--shadow-color) / 0.35),
              4.8px 11px 9px -2.9px hsl(var(--shadow-color) / 0.28),
              9.1px 20.8px 17px -3.6px hsl(var(--shadow-color) / 0.21),
              15.5px 35.5px 29.1px -4.3px hsl(var(--shadow-color) / 0.14),
              24.4px 56px 45.8px -5px hsl(var(--shadow-color) / 0.07);
}

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

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

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  transform: translate(0.2rem, 1.6rem);
}

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

.title {
  font-size: 3rem;
  margin-top: 1rem;
  color: #FCC61D;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

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

.btn-color-1,
.btn-color-2 {
  border: rgb(255, 255, 255) 0.1rem solid;
  --shadow-color: 48deg 34% 58%;
  box-shadow: 1px 0.9px 1.5px hsl(var(--shadow-color) / 0.33),
    3.1px 2.7px 4.6px -0.8px hsl(var(--shadow-color) / 0.33),
    7.8px 6.7px 11.6px -1.7px hsl(var(--shadow-color) / 0.33),
    18.9px 16.3px 28.1px -2.5px hsl(var(--shadow-color) / 0.33);
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.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(53, 53, 53) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
  margin-bottom:18rem;
}

.about-containers {
  flex-wrap: wrap;
  flex-basis: 50%;
  gap: 0.5rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

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

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

.about-pic {
  border-radius: 2rem;
  width: 20rem;
  height: 30rem;
  object-fit: cover;
  margin-bottom: 5rem;
  --shadow-color: 48deg 34% 58%;
  box-shadow: 1px 0.9px 1.5px hsl(var(--shadow-color) / 0.33),
    3.1px 2.7px 4.6px -0.8px hsl(var(--shadow-color) / 0.33),
    7.8px 6.7px 11.6px -1.7px hsl(var(--shadow-color) / 0.33),
    18.9px 16.3px 28.1px -2.5px hsl(var(--shadow-color) / 0.33);
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  text-align: center;
}

.details-container p {
  font-weight: bold;
}

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

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

/* EXPERIENCE SECTION */

#photos {
  position: relative;
  padding-top: 5rem;
  margin-bottom:10rem;
}

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

.experience-details-container {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 1rem;
  justify-content: left;
  padding-left: 2em;
}

article {
  display: flex;
  justify-content: space-evenly;
  gap: 0.5rem;
}

article div p {
  display: inline-block;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#art {
  position: relative;
  padding-top: 5rem;
  margin-bottom:10rem;
}

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

.art-img {
  width: auto;
  height: 380px;
  object-fit: cover;
}

.art-grid {
  column-count: 4;
  column-gap: 1rem;
}

/* Each image becomes a masonry block */
.art-grid img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;

  /* critical for masonry */
  break-inside: avoid;

  /* clean editorial look */
  border-radius: 0;
  box-shadow: none;

  /* subtle hover */
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.art-grid img:hover {
  transform: scale(1.01);
  opacity: 0.92;
}

/* Responsive column control for the photos grid */
@media (max-width: 1400px) {
  .art-grid { column-count: 4; }
}

@media (max-width: 1100px) {
  .art-grid { column-count: 3; }
}

@media (max-width: 800px) {
  .art-grid { column-count: 2; }
}

@media (max-width: 520px) {
  .art-grid { column-count: 1; }
}

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

.project-btn {
  color: black;
}

/* CONTACT */

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

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
  --shadow-color: 48deg 34% 58%;
  box-shadow:     0.2px 1px 0.8px hsl(var(--shadow-color) / 0.57),
                  0.3px 1.2px 0.9px -0.7px hsl(var(--shadow-color) / 0.5),
                  0.7px 3px 2.3px -1.4px hsl(var(--shadow-color) / 0.43),
                  1.9px 7.6px 5.9px -2.1px hsl(var(--shadow-color) / 0.35),
                  4.1px 16.7px 12.9px -2.9px hsl(var(--shadow-color) / 0.28),
                  7.9px 31.6px 24.4px -3.6px hsl(var(--shadow-color) / 0.21),
                  13.4px 53.9px 41.7px -4.3px hsl(var(--shadow-color) / 0.14),
                  21.1px 85px 65.7px -5px hsl(var(--shadow-color) / 0.07);
}

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

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

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  position: relative;
  bottom: 0;
  width: 100%;
  height: auto;
  text-align: center;
  padding: 1rem 0;
  z-index: 1;
  margin-bottom: 1em;
}

footer img {
  width: 1em;
  vertical-align: middle;
  transform: translateX(-5px);
  animation: float 0.9s linear infinite alternate;
}

@keyframes float {
  0%   { transform: translateY(0px) translateX(-5px);}
  100% { transform: translateY(-1px) translateX(-4px);}
}
