/* GENERAL */

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

/* CSS Variables for theming - Vercel-inspired */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-tertiary: #888888;
  --border-color: #eaeaea;
  --accent-color: #000000;
  --accent-hover: #333333;
  --card-bg: #ffffff;
  --shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --gradient: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --text-primary: #ededed;
  --text-secondary: #a1a1a1;
  --text-tertiary: #666666;
  --border-color: #222222;
  --accent-color: #ffffff;
  --accent-hover: #cccccc;
  --card-bg: #0a0a0a;
  --shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --gradient: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
}

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

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

/* TRANSITION */

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

/* DESKTOP NAV */

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

nav {
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 24px;
  background-color: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: saturate(180%) blur(5px);
  background-color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] nav {
  background-color: rgba(0, 0, 0, 0.8);
}

.nav-links {
  gap: 32px;
  list-style: none;
  font-size: 14px;
  font-weight: 400;
}

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

a:hover {
  color: var(--text-primary);
}

.logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  cursor: pointer;
  text-decoration: none;
}

.logo:hover {
  cursor: pointer;
  opacity: 0.7;
}

/* THEME TOGGLE */

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 150ms ease;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-tertiary);
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.hamburger-icon span {
  width: 100%;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: all 0.2s ease-in-out;
  border-radius: 1px;
}

.menu-links {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 200px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  box-shadow: var(--shadow-lg);
}

.menu-links a {
  display: block;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
  border-bottom: 1px solid var(--border-color);
}

.menu-links li:last-child a {
  border-bottom: none;
}

.menu-links a:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

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

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

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

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

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

/* SECTIONS */

section {
  padding: 80px 10%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 64px;
  min-height: 100vh;
  padding-top: 0;
}

.section__pic-container {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section__text {
  text-align: left;
  max-width: 480px;
}

.section__text p {
  font-weight: 400;
}

.section__text__p1 {
  text-align: left;
  font-size: 14px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section__text__p2 {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-weight: 400;
}

.title {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

#profile .title {
  text-align: left;
  font-size: 56px;
}

#socials-container {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
  gap: 16px;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.icon:hover {
  opacity: 1;
}

[data-theme="dark"] .icon {
  filter: invert(1);
}

/* BUTTONS - Material 3 Expressive Style */

.btn-container {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.btn {
  font-weight: 500;
  font-size: 14px;
  transition: all 150ms ease;
  padding: 12px 24px;
  border-radius: 9999px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-color-1 {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.25);
}

.btn-color-1:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-color-1:active {
  transform: translateY(0);
}

.btn-color-2 {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-color-2:hover {
  background: var(--bg-secondary);
  border-color: var(--text-tertiary);
}

/* ABOUT SECTION */

#about {
  position: relative;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.about-containers {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  margin-top: 32px;
  justify-content: center;
}

.about-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
}

.about-pic {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arrow {
  position: absolute;
  right: 5%;
  bottom: 40px;
  opacity: 0.3;
  transition: opacity 0.15s ease;
  height: 20px;
}

.arrow:hover {
  opacity: 0.7;
}

.details-container {
  padding: 32px;
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.2s ease;
  min-width: 280px;
}

.details-container:hover {
  border-color: var(--text-tertiary);
  box-shadow: var(--shadow);
}

.details-container h3 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
}

.details-container p {
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.5;
}

.section-container {
  gap: 48px;
}

.text-container {
  text-align: center;
  margin-top: 24px;
}

.text-container p {
  line-height: 1.8;
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.experience-sub-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 24px;
}

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

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

article {
  display: flex;
  width: 160px;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.15s ease;
}

article:hover {
  border-color: var(--text-tertiary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Skill Icons using Devicons */
.skill-icon {
  font-size: 28px;
  flex-shrink: 0;
}

[data-theme="dark"] .skill-icon:not(.colored) {
  color: var(--text-primary);
}

article h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

article p {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.color-container {
  border-color: var(--border-color);
  background: var(--bg-primary);
  padding: 32px;
  min-width: 320px;
  max-width: 360px;
}

.project-img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
}

.project-title {
  margin: 20px 0 16px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.project-btn {
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 9999px;
}

.project-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--text-tertiary);
}

/* Active nav link */
.nav-links a.active {
  color: var(--text-primary);
  font-weight: 500;
}

.logo {
  text-decoration: none;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 50vh;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  margin: 32px auto;
  padding: 24px 32px;
  transition: all 0.2s ease;
}

.contact-info-upper-container:hover {
  border-color: var(--text-tertiary);
  box-shadow: var(--shadow);
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 24px;
}

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

.contact-info-container a {
  color: var(--text-secondary);
}

.contact-info-container a:hover {
  color: var(--text-primary);
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 20px;
}

/* FOOTER SECTION */

footer {
  padding: 32px 5%;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

footer p {
  text-align: center;
  font-size: 13px;
  margin-top: 16px;
  color: var(--text-tertiary);
}

footer .nav-links {
  justify-content: center;
  font-size: 13px;
  gap: 24px;
}
