@import url(webfont.css);

:root {
  /* Catppuccin Macchiato Color Palette */
  --rosewater: #f4dbd6;
  --flamingo: #f0c6c6;
  --pink: #f5bde6;
  --mauve: #c6a0f6;
  --red: #ed8796;
  --maroon: #ee99a0;
  --peach: #f5a97f;
  --yellow: #eed49f;
  --green: #a6da95;
  --teal: #8bd5ca;
  --sky: #91d7e3;
  --sapphire: #7dc4e4;
  --blue: #8aadf4;
  --lavender: #b7bdf8;
  --text: #cad3f5;
  --subtext1: #b8c0e0;
  --subtext0: #a5adcb;
  --overlay2: #939ab7;
  --overlay1: #8087a2;
  --overlay0: #6e738d;
  --surface2: #5b6078;
  --surface1: #494d64;
  --surface0: #363a4f;
  --base: #24273a;
  --mantle: #1e2030;
  --crust: #181926;
}

body, html {
  font-family: '0xProto Nerd Font', Arial, sans-serif;
  background: var(--base) !important;
  color: var(--text) !important;
}

.icon, .nerd-font, .nf {
  font-family: 'NerdFontsSymbols Nerd Font', '0xProto Nerd Font', Arial, sans-serif !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  vertical-align: middle;
  speak: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: auto;
  text-align: center;
  /* Default size, override with font-size on parent or element */
  font-size: 1em;
}

/* Critical: Header styles for immediate paint */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface0);
  border-bottom: 1px solid var(--surface1);
}

.main-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Critical: Content wrapper to prevent layout shift */
.content-wrapper {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
}

.container-xxl {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px;
}

/* Critical: LCP element (profile section) styles */
.profile-section {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin: 30px auto;
  justify-content: center;
  max-width: 1000px;
}
.profile-text p:first-child {
  margin-top: 0;
}

.profile-image {
  flex: 0 0 280px;
  text-align: center;
}

.profile-image img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  border: 3px solid var(--surface2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.profile-image img:hover {
  transform: scale(1.05);
}

.profile-text {
  flex: 1;
  min-width: 300px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.profile-text p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--subtext1);
}

/* --------------------------------
   Typography
-------------------------------- */

h2, h3, h4, h5, h6 {
  text-align: center;
  color: var(--maroon);
}

/* --------------------------------
   Icon styling
-------------------------------- */

.main-menu a,
.social-btn {
  text-decoration: none;
  color: var(--text);
  background: var(--surface1);
  border: 1px solid var(--surface2);
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-menu a:hover,
.social-btn:hover {
  transform: translateY(-0px);
}

/* --------------------------------
   Menu
-------------------------------- */

.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

.main-menu a {
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  gap: 4px;
}

.main-menu a:hover {
  background: var(--mauve);
  color: var(--crust);
  border-color: var(--mauve);
  box-shadow: 0 4px 8px rgba(198, 160, 246, 0.4);
}

.main-menu a:before {
  content: "";
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-right: -6px;
}

/* --------------------------------
   Social buttons
-------------------------------- */

.social-buttons {
  display: flex;
  gap: 10px;
}


/*
  Social button: perfectly round, centers icon with flex
*/
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn:hover {
  background: var(--blue);
  color: var(--crust);
  border-color: var(--blue);
  box-shadow: 0 4px 8px rgba(138, 173, 244, 0.4);
}


/*
  Social icon: scale with font-size, no stretching
*/
.social-btn .icon {
  font-size: 24px;
}

/* --------------------------------
   Articles (Paper-like styling)
-------------------------------- */

article {
  background: var(--surface1);
  border: 1px solid var(--surface2);
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  color: var(--text);
}

/* --------------------------------
   Profile Section - Additional Styling
-------------------------------- */

/* Profile section base styles are defined in critical CSS above */

/* --------------------------------
   Education Section
-------------------------------- */

.education-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.education-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--surface0);
  border-radius: 8px;
  border: 1px solid var(--surface2);
  transition: all 0.3s ease;
}

.education-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: var(--mauve);
}

.education-item img {
  border-radius: 6px;
  flex-shrink: 0;
  filter: brightness(1.1);
}

.education-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  flex: 1;
  transition: color 0.3s ease;
}

.education-item a:hover {
  color: var(--mauve);
}

/* --------------------------------
   Technology Icons Section
-------------------------------- */

.tech-section {
  margin-bottom: 40px;
}

.tech-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 100px;
  padding: 20px;
  background: var(--surface0);
  border-radius: 12px;
  border: 1px solid var(--surface2);
  margin: 20px 0;
  gap: 10px;
  flex-wrap: wrap;
}


/*
  Tech icon container: always centers content
*/
.tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--surface1);
  border: 2px solid var(--surface2);
  transition: all 0.3s ease;
  position: relative;
  font-feature-settings: normal;
  text-align: center;
}

.tech-icon:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: var(--mauve);
  box-shadow: 0 8px 24px rgba(198, 160, 246, 0.3);
}


/*
  Tech icon: scale with font-size, no stretching
*/
.tech-icon .icon {
  font-size: 48px;
  color: var(--text);
}

.tech-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0.9) saturate(0%) invert(0.85);
}

/* --------------------------------
   Section Headers
-------------------------------- */

.section-header {
  color: var(--mauve);
  font-size: 1.8em;
  margin: 30px 0 20px 0;
  text-align: center;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--mauve);
  border-radius: 2px;
}

.coffee-section {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.coffee-card {
  background: var(--surface1);
  border-radius: 1rem;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.15);
  padding: 2rem 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.coffee-cite {
  margin: 1.5rem 0 0 0;
  font-style: italic;
  color: var(--yellow);
  font-size: 1.25rem;
  border-left: 4px solid var(--yellow);
  padding-left: 1rem;
  background: var(--surface0);
  border-radius: 0.5rem;
  display: inline-block;
}

/* --------------------------------
   Responsive Design
-------------------------------- */

@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin: 20px auto;
    padding: 0 15px;
  }

  .profile-image {
    flex: none;
    order: 1;
  }

  .profile-text {
    order: 2;
    padding: 10px 0;
    min-width: auto;
    width: 100%;
  }

  .tech-grid {
    justify-content: center;
    gap: 15px;
  }

  .tech-icon {
    width: 60px;
    height: 60px;
  }

  .tech-icon .icon {
    font-size: 36px;
  }

  .tech-icon img {
    width: 36px;
    height: 36px;
  }
}