/* GENERAL */

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

:root {
  --bg: #f6f3ec;
  --bg-accent: #eef5f0;
  --surface: #ffffff;
  --surface-2: #f9f7f2;
  --ink: #1f1a17;
  --muted: #5b534d;
  --accent: #0f766e;
  --accent-2: #f59e0b;
  --shadow: 0 12px 30px rgba(31, 26, 23, 0.12);
  --shadow-soft: 0 6px 16px rgba(31, 26, 23, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #050420;
  background-image: radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 45%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.18), transparent 50%);
  color: var(--ink);
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

p {
  color: var(--muted);
}

/* TRANSITION */

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

/* DESKTOP NAV */

#desktop-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.92);
  padding: 1em 2em;
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid rgba(31, 26, 23, 0.08);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 2rem;
  color: var(--ink);
  font-family: "Playfair Display", serif;
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: var(--ink);
  font-size: 1em;
  padding: 0.5em 1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-radius: 5px;
  transform: translateY(-2px);
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
  #desktop-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    margin: 0;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgba(15, 118, 110, 0.4);
}

/* 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.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--surface);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  box-shadow: var(--shadow-soft);
  border-radius: 0.75rem;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.3s 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);
}

/* SECTIONS */

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

.section-container {
  display: flex;
}

/* PROFILE SECTION */

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

.section__pic-contain {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  width: 400px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.circle_image {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.section__pic-container {
  display: flex;
  height: 200px;
  width: 200px;
}

.section__text {
  align-self: center;
  text-align: center;
  animation: fadeUp 0.8s ease both;
}

.phara {
  text-align: center;
}

.section__text p {
  font-weight: 600;
  color: var(--muted);
}

.section__text__p1 {
  text-align: center;
  color: var(--muted);
}

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

.title {
  font-size: 3rem;
  text-align: center;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  letter-spacing: 0.5px;
}

.typing-name {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent);
  animation: typing 3s steps(11) 0.5s infinite alternate,
    caret 0.8s steps(1) infinite;
}

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

#socials-container .icon {
  transition: transform 0.3s ease, filter 0.3s ease;
}

#socials-container .icon:hover {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 6px 10px rgba(15, 118, 110, 0.2));
}

/* 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;
  box-shadow: var(--shadow-soft);
}

.btn-color-1,
.btn-color-2 {
  border: rgba(31, 26, 23, 0.2) 0.1rem solid;
}

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

.btn-color-1,
.btn-color-2:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-color-1:hover {
  background: #0b5d56;
  transform: translateY(-2px);
}

.btn-color-2 {
  background: var(--surface);
  color: var(--ink);
}

.btn-color-2:hover {
  border: rgba(255, 255, 255, 0.6) 0.1rem solid;
  transform: translateY(-2px);
}

/* 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: var(--surface);
  border-radius: 2rem;
  border: rgba(31, 26, 23, 0.15) 0.1rem solid;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.8s ease both;
}

.details-container:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.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: var(--ink);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  font-family: "Playfair Display", serif;
}

.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;
}

.details-container ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.details-container li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
}

.details-container li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgba(31, 26, 23, 0.12);
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.8s ease both;
}

.color-container:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
  transition: transform 0.4s ease;
}

.color-container:hover .project-img {
  transform: scale(1.03);
}

.project-title {
  margin: 1rem;
  color: var(--ink);
}

.project-btn {
  color: var(--ink);
  border-color: rgba(31, 26, 23, 0.2);
}

/* 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: rgba(31, 26, 23, 0.15) 0.1rem solid;
  background: var(--surface-2);
  margin: 2rem auto;
  padding: 0.5rem;
  box-shadow: var(--shadow-soft);
  animation: fadeUp 0.8s ease both;
}

.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;
  color: var(--muted);
}
.phara{
  color: var(--muted);
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes caret {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
