
:root {
  --branding-color: #db7ff9;
  --secondary-color: #f696bc;
  --heading-font-family: "Playfair Display", serif;
  --default-font-family: "Poppins", sans-serif;
}

body {
  background-color: #faf5fa;
  font-family: var(--default-font-family);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: rgb(66, 56, 56);
  font-family: var(--heading-font-family);
  font-weight: bold;
}

h1 {
  font-size: 28px;
  line-height: 1.5;
  color: rgb(58, 54, 59);
}

h2 {
  font-size: 23px;
  color:#f696bc;
}

h3 {
  font-size: 18px;
}

h3.text-center a {
  text-decoration: none;
}

.top-nav ul { 
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 0 10px 4px #ede2ed; 
  max-width: 100%;
  gap:60px;
}

p {
  font-weight: normal;
  font-size: 17px;
  line-height: 30px;
}

.profile-container {
  gap:2rem;
  max-width: 1000px;
  margin: auto;
  padding-left: 3rem;
  padding-right: 3rem;
}

.profile {
  display: flex;
  gap:20px;
  margin-left: 20px;
  margin-right: 20px;
}

.about-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 2rem;
}

.about-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.about-card h1 {
  margin-bottom: 16px;
}

.about-card p {
  max-width: 560px;
}

.about-page 
.pink-bg-container
.profile {
   background: transparent;
   border:none;
}

.about-logo {
  width: 120px;
  margin:0 auto;
  height: auto;
}

.about-section {
  font-size: 18px;
}

.about-page .profile-container {
  display:flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-page .do-link {
  display: block;
}

.about-page .do-link .hero {
  height: 100%;
}

.hero {
  padding: 10px;
  flex:1;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.05);
}

.hero-info {
  flex:1; 
  width: auto;
  height: auto;
  padding: 30px;
  background: transparent;
}

.hero-info h2 {
  font-family: var(--heading-font-family);
  font-weight: normal;
  line-height: 1.4;
  font-size: 25px;
  margin-bottom: 2px;
}

.profile-mobile img {
  display: block;
  height: auto;
}

.logo {
  width:160px;
  height: 150px;
  object-fit: contain;
  border-radius:20px;
}

.pink-bg-container{
  padding: 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap:15px;
  background-color: #f9dee8;
}

.intro-text {
  flex-direction: column;
  display: flex;
  align-items: left;
  gap:8px;
  flex-wrap: nowrap;
  color:rgb(81, 79, 79);
}

.intro-text .btn-arrow {
  display: inline-flex;
  align-items: center;
}

.resume-card {
  background-color: white;
  padding: 30px;
  border-radius: 20px; 
  margin-right: 10px;
}

.resume-card p {
  font-family: Arial;
  margin-bottom:10px;
}

.resume-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 20px;
  }

.btn-resume {
  transition: background 0.3s ease;
}

.do-link {
  display: block;
}

.do-link:hover p,
.do-link:hover .into-text p {
  color: var(--secondary-color);
}

.do-link:active {
  transform:scale(0.98);
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap:20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  position: relative;
  min-height:  100vh;
}

.resume {
  display: flex;
  flex-direction: column;
  gap:20px;
}

.resume-container {
  display: flex;
  gap:20px;
  flex-direction: column;
  align-items: center;
}

.resume-container .resume {
  width: 100%;
  max-width: 240px;
}

.resume-container .resume.mb-3 {
  position: sticky;
  top: 20px;
}

.resume-content h2 + p {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: -14px;
    margin-bottom: -10px;
  }

.resume-tools h1.one-column-list {
    text-align: center;
    margin-bottom: 1px;
}

.resume-tools p {
    text-align: center;
    margin: 2px 0;
    line-height: 1.5;
}

.contact {
  background-color: white;
  padding: 40px;
  border-radius: 20px; 
  max-width: 240px;
}

.two-column-container {
  max-width: 300px;
  margin-left: 70px;
}

.two-column-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
}

.site-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  align-items: center;
  border-radius: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center; 
}

.project-card {
  background-color: #f6e1f6;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.5s;
  flex: 0 0 calc(50% - 15px);
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-preview {
  height:450px;
  display:flex;
  align-items: center;
}

.project-preview img{
  width: 100%;
  height: 100%;
}

.project-info {
  padding: 20px;
}

.project-info h3{
  font-size: 20px;
  margin-bottom: 5px;
  color: #0b0332;
}

.project-info p1 {
  font-size: 14px;
  color: #636e72;
  margin-bottom: 15px;
}
.tech-stack {
  font-size: 14px;
  color: #636e72;
}

.project-desc {
  font-size: 14px;
  color: #2d3436;
  margin-bottom: 20px;
  line-height: 1.5;
}

.project-links {
  display: flex;
  gap:10px;
}

.project-link {
  padding: 8px 16px;
  background-color: #eb74a3;
  color:white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: rgb(18, 17, 17) 0.3s;
}

.project-link:hover {
  background-color: #e0e1f9;
}

.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  padding: 44px;
  border-radius: 20px;
  background-color: #f6e1f6;
  color:rgb(100, 99, 99);
  margin: 30px auto;  
  max-width: 900px;
  width:90%;
}

.content h1 {
  font-size: 64px;
  line-height: 80px;
}

.content h2 {
  font-size: 18px;
  font-family: var(--default-font-family);
}

.content h3 {
  font-size: 24px;
  line-height: 1.5;
  font-family: var(--default-font-family);
}

.content p {
  font-size: 14px;
}

.content {
  margin: 30px;
}

.content a {
  text-decoration: none;
  color:#474545;
}

.btn-branding {
  font-size: 28px;
}

.project-desciption {
  padding: 120px 60px;
}

.logo {
  max-height: 150px;
}

nav {
  padding: 10px 20px;
  width: 100%;
}

nav ul {
  padding: 0;
  margin: 0;
}

nav li {
  display: inline;
  list-style: none;
  line-height: 42px;
  margin-left: 15px;
}

nav a {
  text-decoration: none;
  color: #605590;
  transition: all 100ms ease-in-out;
}

nav a:hover,
nav li.active a {
  color: rgb(163, 54, 230);
}

.btn {
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 17px;
  display:inline-block;
  border-color: rgb(164, 109, 216);
}

.btn-branding {
  background-color: white;
  color:rgb(169, 100, 233);
}

.intro {
  text-align: center;
}
.container { 
  max-width: 1000px; 
  margin: auto; 
  padding: 2rem; 
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 80px;
  gap:18px;
  background: rgba(251, 1, 1, 0.03);
  padding: 1rem;
  border-radius: 24px;
  transition: .3s ease;
}

.grid-2 :hover {
  transform: translateY(-4px);
  border-color: rgba(5, 4, 4, 0.2);
}

.grid-3 :hover {
  transform: translateY(-4px);
  border-color: rgba(71, 16, 16, 0.2);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  background: rgba(251, 1, 1, 0.03);
  border-radius: 24px;
  transition: .3s ease;
}

.grid-2 img, 
.grid-3 img {
  width: 100%; 
  height: 100%;   
  border-radius: 34px;
  object-fit: cover; 
  display: block;
}

.grid img{
  transform: scale(0.85);
  transform-origin: center;
}

.project-video {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 24px;
}

footer {
  margin: 60px 0;
}

footer .contact-box {
  background: white;
  padding: 30px 120px;
  border-radius: 10px;
}

footer .contact-box p {
  margin: 0;
}

footer .email-link {
  text-decoration: none;
  color: black;
  font-size: 24px;
}

footer .email-link:hover {
  color: var(--branding-color);
}

footer .social-links a {
  margin: 0 20px;
  color: rgb(221, 147, 241);
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 24px;
  transition: all 100ms ease-in-out;
}

footer .social-links a:hover {
  color: white;
  background: var(--branding-color);
}

@media (max-width: 768px) {
  h1 {
    font-size: 44px;
    line-height: 1.5;
  }
  h2 {
    font-size: 44px;
  }
  h3 {
    font-size: 26px;
  }
   .top-nav ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    padding: 0; 
    box-shadow: none;   
    border-radius: 0;   
    background: none;
  }
  .top-nav a {
    font-size: 14px;  
  }
  .site-container {
    padding: 1rem; 
  }
  .top-nav li {
   white-space: nowrap;
   flex-shrink: 0;
  }
  nav {
    padding: 6px 10px; 
  }
  .content {
    text-align: center;
    padding: 0;
  }
  .project-desciption {
    padding: 0;
    text-align: center;
  }
  .resume-card {
    display: none;
  }
  .resume-card h2 { 
    font-size: 26px;
  }
  .resume-card h3 { 
    font-size: 18px;
  }
  .resume-container {
    display:flex;
  }
  .hero h1 {
    font-size: 23px; 
    margin-bottom: 10px;
  }
  .resume .contact {
    text-align: center;
  }
  .resume .contact h1 {
    font-size: 28px;
  }
  .resume .contact h2 {
    font-size: 20px;
  }
  .resume-container .resume {
    margin-bottom: 20px !important;
 }
  .resume.resume-tools h1.one-column-list {
    font-size:30px; 
  }
  .resume-content h1 {
  font-size:30px; 
  margin-bottom: 2px;
  }
  .resume-content h2 {
  font-size:20px; 
  margin-bottom: 2px;
  }
  .resume-content h3 {
  font-size:20px; 
  }
  .pink-bg-container {
    background-color: white;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .pink-bg-container .hero p {
    text-align: left !important;
  }
  .project-card {
    flex: 0 0 100% !important; 
    margin-bottom: 10px;
  }
  .project-card img {
    width: 90% !important;
    margin: 0 auto;
    padding: 10px 0 30px;
  }
  .project-info {
    margin-top: -30px;
  }
  .row {
    flex-direction: column;
    gap: 30px 0; 
  }
  .profile-container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }
  .profile-mobile img {
    display: none !important;
  }
  .profile-container .resume-card[style*="background:none"] {
    margin-top: -50px !important;
  }
  .about-page .pink-bg-container {
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important; 
    text-align: left;
  }
  .about-page .resume-card {
    display: block !important;
    margin-top: 20px !important;
    width: 100% !important;
    text-align: center !important;
  }

  .about-page .do-link .hero > div {
    gap: 10px !important; 
  }

  .hero-info,
  .into-text,
  .hero {
    width: 100% !important;
    flex: unset !important;
  }
  .into-text h1 {
    font-size: 20px;
    margin-top: -20px;
  }
  .main-layout {
    grid-template-columns: 1fr !important;
  }
  .hero {
    width: 100% !important;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important; 
    gap: 24px;
    padding: 1rem;
  }

  .grid img {
    transform: scale(1);
  }

  .project-video {
    height: auto; 
    max-height: 420px;
    object-fit: cover;
  }
  footer nav ul {
    flex-wrap: wrap;
    justify-content: center; 
    gap: 16px;
  }

  footer nav li {
    white-space: nowrap; 
  }

  .resume-container .contact {
    max-width: 100% !important;
    width: 100%;
    padding: 20px 16px; 
  }
  .resume-container {
    width: 100%;
    padding: 0;
  }
  .resume-container .contact img.logo {
    max-width: 120px;
    height: auto;
    margin: 0 auto 12px;
  }
  .contact-box {
    display: flex;
    flex-direction: column;   /* 关键：改为上下排列 */
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 20px 16px;       /* 尺寸变小 */
  }
  .contact-text h2 {
    font-size: 22px;
  }
  .intro-text p {
    font-size: 14px;
    margin: 0;
  }
  .do-link .hero {
    background: transparent;
    box-shadow: none !important;
  }
  .intro-text img {
    width: 80px !important;
  }
  
}