@import url('https://fonts.googleapis.com/css2?family=Madimi+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cookie&display=swap');

/* RESET CƠ BẢN */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Madimi One', sans-serif;
}

/* NỀN CHUNG */
body {
  background: linear-gradient(180deg, #e8f6ff, #f5fbff);
}


/* ============== HERO SECTION ================== */
.hero {
  padding: 80px 0;
}

.hero-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

/* BÊN TRÁI */
.hero-left {
  flex: 3;
}

.hero-left h1 {
  font-size: 48px;
  margin-bottom: 16px;
}
.hero-left h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

/* CHỮ GRADIENT */
.gradient-text {
  background: linear-gradient(90deg, #a09bf4, #60a5fa);
  -webkit-background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 20px;
  color: #555;
  margin-bottom: 16px;
}

.desc {
  font-size: 18px;
  color: #666;
  margin-bottom: 24px;
}

/* BUTTON */
.buttons {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.primary {
  background: linear-gradient(90deg, #5eead4, #60a5fa);
  color: white;
}

.secondary {
  background: white;
  border: 1px solid #cfe9ff;
}

/* BÊN PHẢI */
.hero-right img {
  width: 360px;
}


/*============== PROJECTS SECTION ==================*/
/* ================= PROJECTS ================= */
.projects {
  padding: 100px 0;
  text-align: center;
}

.section-title {
  font-size: 40px;
  margin-bottom: 60px;
}

/* ================= GROUP ================= */
.project-group {
  margin-bottom: 80px;
}

.group-header {
  margin-bottom: 32px;
}

.group-header h3 {
  font-size: 26px;
  margin-bottom: 6px;
}

.group-desc {
  font-size: 15px;
  color: #6b7280;
}

/* ================= GRID ================= */
.project-grid {
  display: grid;
  gap: 28px;
  max-width: 1200px;
  margin: auto;
}

.project-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.project-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ================= CARD ================= */
.project-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 28px 24px 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.14);
}

/* ================= THUMB ================= */
.thumb {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #f0fdfa);
}

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

.thumb.small {
  height: 120px;
  font-size: 42px;
}

/* ================= TEXT ================= */
.project-card h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.tag {
  font-size: 14px;
  color: #4db6ac;
  margin-bottom: 18px;
}

/* ================= BUTTON ================= */
.project-card .btn {
  margin-top: auto;
  padding: 10px 22px;
  font-size: 14px;
}


/* ============ PROJECT MODAL ============ */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 999;

  display: none;
  align-items: center;
  justify-content: center;
}

.project-modal.active {
  display: flex;
}

/* Overlay */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

/* Content */
.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 80vh;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 32px;

  overflow-y: auto;

  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.35s ease;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* ============ HEADER ============ */

.modal-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.modal-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
}

.modal-header-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-title {
  font-size: 26px;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 14px;
}

.modal-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #93c5fd, #a7f3d0);
  color: #064e3b;
}

/* ============ BODY ============ */

.modal-body {
  display: grid;
  gap: 22px;
}

.modal-section h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}

.modal-list {
  padding-left: 18px;
  font-size: 15px;
  color: #374151;
}

.modal-list li {
  margin-bottom: 6px;
}

.modal-tech {
  font-size: 14px;
  color: #0f766e;
}

/* ============ FOOTER ============ */

.modal-footer {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ============ BODY LOCK ============ */

body.modal-open {
  overflow: hidden;
}

/* ============ ANIMATION ============ */

@keyframes modalPop {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}



/*============== END PROJECTS SECTION ==================*/

/* ========= ABOUT SECTION  ============*/
.about {
  padding: 100px 0;
}

.about-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
}

/* LEFT */
.about-left {
  position: relative;
}

.about-mascot {
  width: 300px;
  margin-bottom: 20px;
}

.about-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.about-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* RIGHT */
.about-right {
  display: grid;
  gap: 20px;
}

.skill-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,.12);
}

.skill-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.skill-card ul {
  padding-left: 18px;
}

.skill-card li {
  margin-bottom: 8px;
}


/* ============ EXPERIENCE SECTION ===========*/
.experience {
  padding: 100px 0;
  text-align: center;
}

.section-desc {
  color: #666;
  margin-bottom: 50px;
}

.experience-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

/* EXPERIENCE CARD */
.experience-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 32px;
  text-align: left;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.experience-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.sub {
  color: #5aa;
  margin-bottom: 20px;
}

.experience-card ul {
  padding-left: 18px;
  margin-bottom: 20px;
}

.experience-card li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.note {
  font-size: 14px;
  color: #999;
  margin-top: 16px;
}

/* TOOLS CARD */
.tools-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 32px;
  text-align: left;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.tool-grid span {
  padding: 8px 14px;
  background: linear-gradient(90deg, #e0f2fe, #f0fdf4);
  border-radius: 999px;
  font-size: 14px;
  transition: transform .3s ease;
}

.tool-grid span:hover {
  transform: scale(1.1);
}

.internal-tools {
  padding-left: 18px;
}


/* CONTACT SECTION */
.contact {
  padding: 100px 0;
  text-align: center;
}

.contact-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* LEFT */
.contact-mascot {
  width: 260px;
  margin-bottom: 20px;
}

.contact-info p {
  color: #555;
  margin-bottom: 8px;
}

/* FORM */
.contact-form {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  font-size: 15px;
  outline: none;
}

.contact-form textarea {
  resize: none;
  height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.25);
}


/* ============ CONTACT BOXES ============ */

.contact-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.contact-item {
  text-align: center;
  transition: transform .3s ease;
}

.contact-item:hover {
  transform: translateY(-8px);
}

.contact-item .icon {
  width: 60px;
  height: 60px;
  margin: auto;
  border-radius: 50%;
  background: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
}

.contact-item h4 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #2f2f4f;
}

.contact-item p {
  font-size: 16px;
  color: #4b5563;
}


/* SCROLL TOP */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(90deg, #5eead4, #60a5fa);
  color: white;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}





/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #444;
  font-size: 16px;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,#5eead4,#60a5fa);
  transition: width .3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ================= BUTTON HOVER ================= */
.btn {
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

/* ================= FOOTER ================= */
.footer {
  padding: 40px 0;
  text-align: center;
  color: #666;
}


/* ============ TYPED.JS CURSOR ============ */
.typed-cursor {
  color: #60a5fa; /* change this to your preferred color */
  font-weight: 600;
}
.typed-cursor.typed-cursor--blink {
  animation: typedBlink 0.8s infinite;
}
@keyframes typedBlink {
  50% { opacity: 0; }
}


/* ================= SCENE BASE ================= */
.scene {
  position: relative;
  overflow: hidden;
}

/* HERO — MAIN MENU */
.hero-scene {
  background: radial-gradient(
    circle at top center,
    #e0f2fe 0%,
    #c7d2fe 40%,
    #eef2ff 70%
  );
}

/* PROJECTS — SONG SELECT */
.project-scene {
  background: linear-gradient(
    180deg,
    #eef2ff 0%,
    #e0e7ff 100%
  );
}

/* ABOUT — DEV ROOM */
.about-scene {
  background: linear-gradient(
    135deg,
    #cffafe 0%,
    #ddd6fe 40%,
    #fce7f3 100%
  );
}

/* EXPERIENCE — CONTROL PANEL */
.experience-scene {
    background: linear-gradient(
    160deg,
    #ecfeff 0%,
    #f0fdf4 60%
  );
}

/* CONTACT — END SCREEN */
.contact-scene {
  background: linear-gradient(
    180deg,
    #f0fdfa 0%,
    #e0f2fe 50%,
    #fef3c7 100%
  );
}


.scene-divider {
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0.6),
    rgba(255,255,255,0)
  );
}


.btn {
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 30px rgba(99,102,241,0.35);
}

.btn:active {
  transform: scale(0.96);
  box-shadow: 0 6px 16px rgba(99,102,241,0.25);
}


.card,
.skill-card,
.contact-item {
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover,
.skill-card:hover,
.contact-item:hover {
  transform: translateY(-10px) rotateX(3deg);
  box-shadow: 0 30px 60px rgba(0,0,0,.18);
}


.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/noise.png");
  opacity: 0.03;
  pointer-events: none;
}

a.btn {
  text-decoration: none;
}
.card-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.card-actions .btn {
  flex: 1;
  text-align: center;
  padding: 10px 10;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}
.contact-item a:hover {
  color: #4db6ac;
}


/* ================= RESPONSIVE ================= */

/* -------- TABLET -------- */
@media (max-width: 1024px) {
  .hero-container,
  .about-container,
  .experience-container,
  .contact-container {
    grid-template-columns: 1fr;
    display: grid;
    gap: 40px;
  }

  .hero-container {
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
  }

  .buttons {
    justify-content: center;
  }

  .hero-right img {
    width: 280px;
  }

  .project-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-boxes {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------- MOBILE -------- */
@media (max-width: 768px) {
  section {
    padding: 70px 20px;
  }

  .section-title {
    font-size: 30px;
    margin-bottom: 40px;
  }

  /* HERO */
  .hero-left h1 {
    font-size: 34px;
  }

  .subtitle {
    font-size: 18px;
  }

  .desc {
    font-size: 16px;
  }

  .buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-right img {
    width: 240px;
  }

  /* PROJECTS */
  .project-grid {
    grid-template-columns: 1fr !important;
  }

  .project-card {
    padding: 22px;
  }

  .thumb {
    height: 140px;
  }

  /* EXPERIENCE */
  .experience-container {
    grid-template-columns: 1fr;
  }

  /* CONTACT */
  .contact-boxes {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-mascot {
    width: 200px;
  }

  /* MODAL */
  .modal-header {
    grid-template-columns: 1fr;
  }

  .modal-image {
    height: 180px;
  }

  .modal-content {
    padding: 22px;
  }
}
/* -------- SMALL MOBILE -------- */
@media (max-width: 480px) {
  .hero-left h1 {
    font-size: 28px;
  }

  .project-card h4 {
    font-size: 16px;
  }

  .tag {
    font-size: 13px;
  }

  .btn {
    font-size: 14px;
    padding: 12px 20px;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
  }
}
@media (max-width: 768px) {
  .about-mascot,
  .contact-mascot {
    display: none;
  }
}

/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  letter-spacing: 1px;
}

/* Desktop links */
.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #4db6ac;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 3px;
  background: #111;
  border-radius: 4px;
}

/* ================= MOBILE MENU ================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #0f172a, #020617);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;

  transform: translateY(-100%);
}

.mobile-menu a {
  font-size: 28px;
  color: rgb(138, 175, 255);
  text-decoration: none;
  font-weight: 600;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }
}

section {
  scroll-margin-top: 90px; /* bằng height navbar */
}
.contact-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-mascot {
  width: 220px;
  margin-bottom: 16px;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .contact-mascot {
    width: 160px;
    opacity: 0.6;
  }
}
.contact-boxes {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 32px;
}
.section-title {
  background: linear-gradient(135deg, #4db6ac, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-menu {
  pointer-events: none;
}

.project-modal.active,
.mobile-menu.active {
  pointer-events: auto;
}

.hero {
  padding-top: 120px;
  padding-bottom: 80px;
}
