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

/* ===== CSS VARIABLES / CUSTOM PROPERTIES ===== */
:root {
  /* Pastel Colors - Main Palette */
  --color-pastel-pink: #f8d7da;        /* Light pastel pink */
  --color-pastel-pink-dark: #f5c6cb;   /* Darker pastel pink */
  --color-pastel-pink-light: #fce4ec;  /* Lighter pastel pink */

  --color-pastel-purple: #d4c5f9;      /* Light pastel purple */
  --color-pastel-purple-dark: #c4b5f5; /* Darker pastel purple */
  --color-pastel-purple-light: #e8dffd;/* Lighter pastel purple */

  --color-pastel-blue: #c5e3f7;        /* Light pastel blue */
  --color-pastel-blue-dark: #b3d9f5;   /* Darker pastel blue */
  --color-pastel-blue-light: #dceefb;  /* Lighter pastel blue */

  --color-pastel-yellow: #fdf5d6;      /* Light pastel yellow */
  --color-pastel-yellow-dark: #faf0c0; /* Darker pastel yellow */
  --color-pastel-yellow-light: #fff8e1;/* Lighter pastel yellow */

  /* Primary Colors - Using pastel shades */
  --color-primary: #7c6fb5;            /* Muted purple - main brand color */
  --color-primary-light: #a89dd4;      /* Lighter purple */
  --color-primary-dark: #5e4f9e;       /* Darker purple */

  /* Secondary Colors */
  --color-secondary: #e8a0b4;          /* Soft pink - accent color */
  --color-secondary-light: #f2c4d3;    /* Lighter pink */
  --color-secondary-dark: #d4829a;     /* Darker pink */

  /* Accent Colors */
  --color-accent-blue: #7fbce6;        /* Soft blue for highlights */
  --color-accent-yellow: #f5d742;      /* Soft yellow for highlights */

  /* Neutral Colors */
  --color-text-primary: #3d3d5c;       /* Dark purple-gray - main text */
  --color-text-secondary: #6b6b8a;     /* Medium purple-gray - secondary text */
  --color-text-light: #ffffff;         /* White - text on dark backgrounds */
  --color-text-muted: #a0a0b8;         /* Light purple-gray - muted text */

  /* Background Colors */
  --color-bg-primary: #faf8ff;         /* Very light purple-white - main background */
  --color-bg-secondary: #f5f0ff;       /* Light purple - secondary background */
  --color-bg-card: #ffffff;            /* White - card background */
  --color-bg-dark: #3d3d5c;            /* Dark purple - for dark mode */

  /* Border Colors */
  --color-border: #d4c5f9;             /* Pastel purple - main border */
  --color-border-light: #e8dffd;       /* Light purple - subtle borders */
  --color-border-dark: #7c6fb5;        /* Medium purple - dark borders */

  /* Status Colors - Pastel versions */
  --color-success: #b5d6b5;            /* Pastel green */
  --color-warning: #f5e6b5;            /* Pastel orange-yellow */
  --color-error: #f5c6cb;              /* Pastel red-pink */
  --color-info: #b5d4e8;               /* Pastel blue */

  /* Link Colors */
  --color-link: #5e4f9e;               /* Purple - default link */
  --color-link-hover: #7c6fb5;         /* Lighter purple - link hover */
  --color-link-underline: #d4c5f9;     /* Pastel purple - link underline */

  /* Button Colors */
  --color-btn-primary-bg: #7c6fb5;     /* Purple - primary button bg */
  --color-btn-primary-text: #ffffff;   /* White - primary button text */
  --color-btn-secondary-bg: transparent;
  --color-btn-secondary-text: #5e4f9e; /* Purple - secondary button text */
  --color-btn-secondary-border: #7c6fb5;
  --color-btn-hover-bg: #5e4f9e;       /* Darker purple - button hover */
  --color-btn-hover-text: #ffffff;     /* White - button hover text */

  /* Shadow & Effects */
  --shadow-default: rgba(124, 111, 181, 0.15);
  --shadow-hover: rgba(124, 111, 181, 0.25);
  --shadow-soft: rgba(124, 111, 181, 0.08);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;

  /* Transitions */
  --transition-default: all 300ms ease;
  --transition-slow: all 500ms ease;
  --transition-fast: all 150ms ease;

  /* Font Sizes */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.25rem;
  --font-xl: 1.5rem;
  --font-2xl: 1.75rem;
  --font-3xl: 2rem;
  --font-4xl: 3rem;

  /* Container Widths */
  --container-max: 1200px;
  --container-padding: 2rem;
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
}

html {
  scroll-behavior: smooth;
}

p {
  color: var(--color-text-secondary);
}

/* TRANSITION */
a,
.btn {
  transition: var(--transition-default);
}

/* DESKTOP NAV */
nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  background: var(--color-bg-primary);
  border-bottom: 2px solid var(--color-border-light);
}

.nav-links {
  gap: var(--spacing-lg);
  list-style: none;
  font-size: var(--font-xl);
}

a {
  color: var(--color-link);
  text-decoration: none;
  text-decoration-color: var(--color-bg-primary);
  font-weight: 500;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
  text-underline-offset: var(--spacing-sm);
  text-decoration-color: var(--color-link-underline);
}

.logo {
  font-size: var(--font-3xl);
  color: var(--color-primary);
  font-weight: 600;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */
#hamburger-nav {
  display: none;
  background: var(--color-bg-primary);
  border-bottom: 2px solid var(--color-border-light);
}

.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: var(--color-text-primary);
  transition: var(--transition-default);
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-bg-primary);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-default);
}

.menu-links a {
  display: block;
  padding: var(--spacing-sm);
  text-align: center;
  font-size: var(--font-xl);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: var(--transition-default);
}

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

.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: var(--font-2xl);
  margin-bottom: var(--spacing-sm);
}

.title {
  font-size: var(--font-4xl);
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-sm);
  gap: var(--spacing-sm);
}

/* ICONS */
.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */
.btn-container {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.btn {
  font-weight: 600;
  transition: var(--transition-default);
  padding: var(--spacing-sm);
  width: 8rem;
  border-radius: var(--radius-lg);
}

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

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

.btn-color-1,
.btn-color-2:hover {
  background: var(--color-btn-hover-bg);
  color: var(--color-btn-hover-text);
}

.btn-color-1:hover {
  background: var(--color-text-primary);
}

.btn-color-2 {
  background: var(--color-btn-secondary-bg);
}

.btn-color-2:hover {
  border: var(--color-text-light) 0.1rem solid;
}

/* ABOUT SECTION */
#about {
  position: relative;
}

.about-containers {
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

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

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

.about-pic {
  border-radius: var(--radius-lg);
}

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

.details-container {
  padding: var(--spacing-md);
  flex: 1;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: var(--color-text-secondary) 0.1rem solid;
  border-color: var(--color-border);
  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: var(--color-text-secondary);
  font-weight: 600;
  font-size: var(--font-2xl);
  margin-bottom: var(--spacing-lg);
}

.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: var(--spacing-xs);
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */
#projects {
  position: relative;
}

.color-container {
  border-color: var(--color-border);
  background: var(--color-bg-secondary);
}

.project-img {
  border-radius: var(--radius-lg);
  width: 90%;
  height: 90%;
}

.project-title {
  margin: var(--spacing-sm);
  color: var(--color-text-primary);
}

.project-btn {
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

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

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: var(--color-text-secondary) 0.1rem solid;
  border-color: var(--color-border);
  background: var(--color-bg-secondary);
  margin: var(--spacing-lg) auto;
  padding: var(--spacing-xs);
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  margin: var(--spacing-sm);
}

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

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* EMPLOYMENT HISTORY SECTION */
#employment {
  position: relative;
  padding-top: 4vh;
  margin: 0 10rem;
  min-height: fit-content;
}

.employment-header {
  margin-bottom: var(--spacing-md);
}

.employment-header .experience-sub-title {
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: var(--font-2xl);
  margin-bottom: var(--spacing-xs);
}

.company-name {
  color: var(--color-text-secondary);
  font-size: var(--font-lg);
  font-weight: 500;
  margin: var(--spacing-xs) 0;
}

.employment-date {
  color: var(--color-text-secondary);
  font-size: var(--font-sm);
  font-weight: 400;
  margin: var(--spacing-xs) 0;
}

.employment-location {
  color: var(--color-text-secondary);
  font-size: var(--font-sm);
  font-weight: 300;
  margin: var(--spacing-xs) 0;
}

.employment-list {
  list-style-type: disc;
  padding-left: var(--spacing-md);
  text-align: left;
  margin: var(--spacing-sm) 0;
}

.employment-list li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

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

/* FOOTER SECTION */
footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
  color: var(--color-text-secondary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
  }

  #experience,
  .experience-details-container {
    margin-top: 2rem;
  }

  #profile,
  .section-container {
    display: block;
  }

  .arrow {
    display: none;
  }

  section,
  .section-container {
    height: fit-content;
  }

  section {
    margin: 0 5%;
  }

  .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }

  .about-containers {
    margin-top: 0;
  }

  #employment {
    margin: 0 5%;
  }
}

@media screen and (max-width: 600px) {
  #contact,
  footer {
    height: 40vh;
  }

  #profile {
    height: 83vh;
    margin-bottom: 0;
  }

  article {
    font-size: var(--font-sm);
  }

  footer nav {
    height: fit-content;
    margin-bottom: 2rem;
  }

  .about-containers,
  .contact-info-upper-container,
  .btn-container {
    flex-wrap: wrap;
  }

  .contact-info-container {
    margin: 0;
  }

  .contact-info-container p,
  .nav-links li a {
    font-size: var(--font-base);
  }

  .experience-sub-title {
    font-size: var(--font-xl);
  }

  .logo {
    font-size: var(--font-xl);
  }

  .nav-links {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }

  .section__pic-container {
    width: auto;
    height: 46vw;
    justify-content: center;
  }

  .section__text__p2 {
    font-size: var(--font-xl);
  }

  .title {
    font-size: var(--font-3xl);
  }

  .text-container {
    text-align: justify;
  }

  #employment {
    margin: 0 5%;
  }

  .employment-list {
    padding-left: var(--spacing-sm);
  }

  .employment-list li {
    font-size: var(--font-sm);
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text-primary: #ffffff;
    --color-text-secondary: #b0b0b0;
    --color-bg-primary: #1a1a1a;
    --color-bg-secondary: #2d2d2d;
    --color-bg-card: #2d2d2d;
    --color-border: #555555;
    --color-link: #ffffff;
    --color-link-hover: #b0b0b0;
    --color-btn-secondary-text: #ffffff;
    --color-btn-secondary-border: #555555;
  }

  .details-container {
    background: var(--color-bg-card);
    border-color: var(--color-border);
  }

  .color-container {
    background: var(--color-bg-secondary);
  }

  .contact-info-upper-container {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
  }

  .menu-links {
    background-color: var(--color-bg-primary);
  }

  .menu-links a {
    color: var(--color-text-primary);
  }

  .hamburger-icon span {
    background-color: var(--color-text-primary);
  }

  p {
    color: var(--color-text-secondary);
  }

  .project-title {
    color: var(--color-text-primary);
  }

  .project-btn {
    color: var(--color-text-primary);
    border-color: var(--color-border);
  }
}
