@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Quicksand:wght@500;600;700&display=swap');

/* Cute Baby + Subtle German Variables */
:root {
  --bg-color: #fff9f9; /* Baby pinkish cream */
  --text-color: #5c5c5c;
  --text-dark: #4a4a4a;
  
  /* Baby Pastels */
  --baby-pink: #ffc2d1;
  --baby-blue: #bde0fe;
  --baby-yellow: #fefae0;
  --baby-green: #e2ece9;

  /* Subtle German Pastels (Schwarz-Rot-Gold but baby version) */
  --ger-black: #6c757d;
  --ger-red: #ffadad;
  --ger-gold: #ffd6a5;

  --card-bg: #ffffff;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  
  --shadow-soft: 0 12px 30px rgba(255, 182, 193, 0.15);
  --shadow-hover: 0 16px 40px rgba(189, 224, 254, 0.25);
  
  --font-main: 'Nunito', sans-serif;
  --font-heading: 'Quicksand', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(var(--baby-pink) 1px, transparent 1px), radial-gradient(var(--baby-blue) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: #ff8fab;
  text-shadow: 2px 2px 0px #fff, 4px 4px 0px var(--baby-blue);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '🥨';
  position: absolute;
  right: -35px;
  top: -10px;
  font-size: 1.5rem;
  transform: rotate(15deg);
}

p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: #ff8fab;
  font-weight: 600;
  transition: all 0.3s ease;
}

a:hover {
  color: #ff6b8b;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

#du-an .container,
#tong-ket .container {
  text-align: center;
}

/* Navbar */
nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-radius: 40px;
  box-shadow: var(--shadow-soft);
  border: 2px solid #fff;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 2rem;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--baby-pink);
}

.nav-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}

.nav-links a:hover {
  background-color: var(--baby-pink);
  color: #fff;
}

@media (max-width: 480px) {
  .nav-title {
    display: none;
  }
  .nav-content {
    padding: 0.6rem 1rem;
  }
  .nav-links {
    gap: 0.5rem;
  }
  .nav-links a {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Hero Section */
#gioi-thieu {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 6rem 0;
}

.intro-card {
  background: var(--card-bg);
  padding: 3.5rem 19rem 3.5rem 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 3px solid #fff;
  max-width: 1000px;
  width: 100%;
  position: relative;
  margin-bottom: 2rem;
  text-align: left;
}

.intro-deco-row {
  position: absolute;
  top: 50%;
  right: 4.2rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.intro-avatar {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--baby-pink), var(--baby-blue), var(--baby-yellow), var(--baby-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.2rem;
  box-shadow: 0 14px 36px rgba(255, 182, 193, 0.38);
  border: 3px solid #fff;
  animation: float 6s ease-in-out infinite;
}

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

.greeting {
  font-size: 1.3rem;
  color: #ff8fab;
  font-weight: 800;
  display: inline-block;
  background: var(--baby-yellow);
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  transform: rotate(-3deg);
}

.intro-prefix {
  display: block;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #b0b0b0;
  margin-bottom: 0.3rem;
}

.intro-card h1 {
  text-align: left;
}

.intro-desc {
  font-size: 1.15rem;
  margin-top: 1rem;
  color: var(--text-dark);
}

.intro-info-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.info-badge-box {
  border: 2px solid var(--baby-blue);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.5rem;
  min-width: 180px;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.info-badge-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #ff8fab;
}

.info-badge-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ff8fab;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
}

.info-badge-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.intro-card .intro-info-container {
  justify-content: flex-start;
}

.about-me-section {
  width: 100%;
  max-width: 1040px;
  margin: 2.5rem 0 2rem;
}

.about-heading-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.about-kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #ff8fab;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-title {
  display: block;
  margin: 0 auto;
  color: var(--text-dark);
  font-size: 2.6rem;
}

.about-title::after {
  content: '';
  display: block;
  width: 82px;
  height: 2px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, #ff8fab, transparent);
  position: static;
  transform: none;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.about-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about-card-main {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 194, 209, 0.55);
}

.about-card-main p {
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.9;
}

.about-card-main p:last-of-type {
  margin-bottom: 0;
}

.about-card-main strong {
  color: #ff6b8b;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.about-tags span {
  padding: 0.55rem 1.1rem;
  color: #8a6170;
  background: #ffe8ef;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}

.about-card-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  color: var(--text-dark);
  background: #f7b7cb;
  border: 3px solid #fff;
}

.about-stat strong,
.about-major strong {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(255, 143, 171, 0.35);
}

.about-major strong {
  font-size: 2.25rem;
}

.about-stat span,
.about-major span {
  display: block;
  margin-top: 0.7rem;
  color: #5d5d5d;
  font-weight: 700;
}

.about-divider {
  width: 100%;
  height: 1px;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.8);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1040px;
  width: 100%;
  text-align: left;
}

.intro-box {
  background: var(--card-bg);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 2px dashed var(--baby-pink);
  transition: all 0.3s ease;
}

.intro-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.intro-box h3 {
  color: #ff8fab;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.intro-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-title {
    font-size: 2.1rem;
  }

  .about-card-main,
  .about-card-stats {
    padding: 1.7rem;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }
  .intro-card {
    padding: 2rem;
    text-align: center;
  }

  .intro-deco-row {
    position: static;
    transform: none;
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .intro-avatar {
    width: 120px;
    height: 120px;
    font-size: 3.2rem;
  }

  .intro-card h1,
  .intro-prefix {
    text-align: center;
  }

  .intro-card .intro-info-container {
    justify-content: center;
  }
}

/* Bento Grid Projects */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 1.5rem;
}

.bento-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 2px solid #fff;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.8), rgba(255,255,255,0));
  transform: rotate(30deg);
  pointer-events: none;
}

/* Varying sizes for Bento layout */
.bento-card:nth-child(1) { grid-column: span 2; grid-row: span 1; background-color: var(--baby-pink); }
.bento-card:nth-child(2) { grid-column: span 1; grid-row: span 2; background-color: var(--baby-blue); }
.bento-card:nth-child(3) { grid-column: span 1; grid-row: span 1; background-color: var(--baby-yellow); }
.bento-card:nth-child(4) { grid-column: span 1; grid-row: span 1; background-color: var(--baby-green); }
.bento-card:nth-child(5) { grid-column: span 1; grid-row: span 1; background-color: var(--ger-gold); }
.bento-card:nth-child(6) { grid-column: span 2; grid-row: span 1; background-color: var(--ger-red); }

/* Removing the white text override for card 6 for better contrast */

.bento-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.bento-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  z-index: 1;
}

.bento-card p {
  font-size: 0.95rem;
  flex-grow: 1;
  z-index: 1;
}

.bento-icon {
  font-size: 2.5rem;
  position: absolute;
  bottom: 15px;
  right: 20px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.bento-card:hover .bento-icon {
  opacity: 1;
}

.btn-readmore {
  display: inline-block;
  margin-top: auto;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: rgba(255,255,255,0.6);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  align-self: flex-start;
  z-index: 1;
}

/* Summary Section */
.summary-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.summary-box {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 3px dashed var(--baby-pink);
}

.summary-box-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fff 0%, #fff5f7 100%);
}

.summary-box-challenge {
  border-color: var(--baby-blue);
}

.summary-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: #ff8fab;
  border-radius: 15px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--baby-blue);
}

.summary-box-challenge .summary-number {
  background: #82bfe9;
  box-shadow: 4px 4px 0 var(--baby-pink);
}

.summary-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  color: #ff8fab;
}

.summary-box p:last-child,
.summary-box li:last-child {
  margin-bottom: 0;
}

.summary-box ul {
  padding-left: 1.5rem;
}

.summary-box li {
  margin-bottom: 0.8rem;
}

@media (max-width: 800px) {
  .summary-container {
    grid-template-columns: 1fr;
  }

  .summary-box-wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .summary-box {
    grid-template-columns: 1fr;
    padding: 1.6rem;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,245,245,0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 3rem;
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 60px rgba(255, 182, 193, 0.3);
  border: 4px solid var(--baby-pink);
}

.modal.show .modal-content {
  transform: scale(1);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--baby-pink);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}

.close-btn:hover {
  transform: rotate(90deg);
  background: #ff6b8b;
}

.modal-body h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #ff8fab;
}

.modal-body strong {
  color: #ff6b8b;
}

.download-btn {
  display: inline-block;
  background: #ff8fab;
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(255, 143, 171, 0.4);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 143, 171, 0.6);
}

/* Footer */
.site-footer {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 4.8rem 2rem 2.3rem;
  color: var(--text-color);
  background: #fff0f6;
  border-top: 4px solid #ffb3c7;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 940px);
}

.footer-eyebrow {
  margin-bottom: 1.2rem;
  color: #ef7fa0;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.42em;
}

.footer-title {
  display: block;
  margin: 0;
  color: #e65f86;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 0 #fff, 0 12px 30px rgba(230, 95, 134, 0.14);
}

.footer-title::after {
  content: none;
}

.footer-message {
  max-width: 780px;
  margin: 1.4rem auto 0;
  color: #6f7883;
  font-size: 1.08rem;
  line-height: 1.8;
}

.footer-details {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 54px;
  padding: 0.78rem 1.65rem;
  color: #e65f86;
  background: rgba(255, 255, 255, 0.42);
  border: 2px solid rgba(255, 143, 171, 0.3);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(255, 182, 193, 0.18);
  backdrop-filter: blur(8px);
}

.footer-pill-light {
  color: #5d8ee8;
  border-color: rgba(93, 142, 232, 0.25);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 8px 24px rgba(189, 224, 254, 0.18);
}

.footer-pill svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.footer-copyright {
  margin: 1.8rem 0 0;
  color: #b8a8b2;
  font-size: 0.95rem;
}

.footer-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100%, 720px);
  margin: 3rem auto 0;
  color: #ff8fab;
}

.footer-divider::before,
.footer-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #ffc2d1;
}

.footer-divider span {
  font-size: 1.6rem;
  line-height: 1;
}

.footer-spark,
.footer-heart {
  position: absolute;
  color: #ef7fa0;
  font-family: var(--font-heading);
  pointer-events: none;
}

.footer-spark-left {
  left: 8%;
  top: 16%;
  font-size: 1.9rem;
}

.footer-spark-small {
  left: 5%;
  top: 25%;
  color: #ffc2d1;
  font-size: 1.35rem;
}

.footer-spark-right {
  right: 3%;
  top: 36%;
  color: #ffc2d1;
  font-size: 1.55rem;
}

.footer-heart {
  right: 9%;
  top: 21%;
  font-size: 1.15rem;
}

/* Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(200px, auto);
  }
  .bento-card:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 700px) {
  .site-footer {
    min-height: auto;
    padding: 5rem 1.25rem 2.5rem;
  }

  .footer-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .footer-message {
    margin-top: 1.4rem;
    font-size: 1rem;
  }

  .footer-details {
    align-items: stretch;
    flex-direction: column;
    margin-top: 2rem;
  }

  .footer-pill {
    justify-content: center;
    width: min(100%, 350px);
    margin: 0 auto;
  }

  .footer-copyright {
    margin-top: 1.4rem;
    font-size: 0.82rem;
  }

  .footer-divider {
    margin-top: 2.7rem;
  }

  .footer-spark-left,
  .footer-spark-small,
  .footer-spark-right,
  .footer-heart {
    opacity: 0.55;
  }
}

/* Docx Extracted Content Styles */
.docx-wrapper {
  margin-top: 2rem;
  border-top: 2px dashed var(--baby-pink);
  padding-top: 1.5rem;
}

.docx-content {
  color: #444;
  line-height: 1.8;
  font-family: var(--font-main);
  text-align: left;
}

.docx-content h1, 
.docx-content h2, 
.docx-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: #ff8fab;
  font-family: var(--font-heading);
  text-shadow: none;
}

.docx-content h1 {
  font-size: 1.8rem;
  text-align: left;
}

.docx-content h2 {
  font-size: 1.4rem;
  position: relative;
  display: block;
  text-align: left;
}

.docx-content h2::after {
  content: none;
}

.docx-content h3 {
  font-size: 1.2rem;
  text-align: left;
}

.docx-content .sec-title {
  font-size: 1.5rem;
  margin-top: 1.8rem;
}

.docx-content p {
  margin-bottom: 1rem;
}

.docx-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 1rem 0;
  display: block;
}

.docx-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.docx-content table, .docx-content th, .docx-content td {
  border: 1px solid var(--border-color);
}

.docx-content th, .docx-content td {
  padding: 0.8rem;
}
