@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,600;1,300;1,600&family=DM+Mono:wght@300;400&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --primary-color: rgb(193, 186, 186);
    --secondary-color: rgb(115, 107, 107);
    --third-color:rgb(72, 69, 70);
    --fourth-color:rgb(172, 168, 168);
}

html {
    scroll-behavior: smooth;
}
body{
    background:var(--primary-color);
}

/* Header Section -------------------------------*/
header {
    top: 0;
    z-index: 100;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--primary-color);
    position: sticky;
}
.nav-bar {
    max-width: 1200px;
    display: flex;
    margin: 0 auto;
    padding: 0 2.4rem;
    height: 70px;
    justify-content: space-between;
    align-items: center;
}
.title {
    color: var(--primary-color);
    font-size: 1.7rem;
    padding:1px;
    font-family:monospace;
    letter-spacing: normal;
}
.nav-bar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-bar ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-family:monospace;
    transition: color 0.2s;
}
.nav-bar ul li a:hover {
    color: var(--third-color);
}

/* Hero Section ------------------------------- */
section {
   padding-top:5rem ;
   margin: 0 5rem;
    box-sizing: border-box;
    min-height: fit-content;
}

#home{
    display: flex;
    flex-direction: row;       
    align-items: center;        
    justify-content: center;
    gap: 5rem;
    min-height: 100vh;
}

.section-pic {
    display: flex;
    height: 360px;
    width: 360px;
    flex-shrink: 0;          
    padding-top: 0;            
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;  
    text-align: left;
}

.section-text-p1 {
    font-size: 1.7rem;
    color: var(--secondary-color);
    font-family: monospace;
}

.section-title {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    font-family: 'Cormorant Garamond', serif;
}

.section-text-p2 {
    font-family: monospace;
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 0.7rem;
}

.btn {
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-family: monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.75;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    border: none;
}

.btn-outline {
    color: var(--third-color);
    border: 1px solid var(--third-color);
}

.divider{
  width: 100%;
  height: 1px;
  background: var(--secondary-color);
  margin: 2rem auto;
}
/*-----about&skill---------------*/

#about {
    padding-top: 5vh;
}
.about-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: center;
}

.about-left,
.skill-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 1rem;
    background-color: var(--fourth-color);
    padding: 1.5rem;
    border: 1px solid var(--secondary-color);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-left:hover,
.skill-right:hover {
    border-color: var(--secondary-color);
    transform: translateY(-4px);
}

.section-skill {
    font-size: 2rem;      
    color: var(--third-color);
    font-family: 'Cormorant Garamond', serif;
    text-decoration: underline;
}

.about-bio {
    font-family: monospace;
    font-size: 1rem;
}

strong {
    color: rgb(1, 2, 3);
    font-size: 1.5rem;
}

.skill-right ul {
    list-style: none;
   display: flex;
    gap: 5rem;
    padding-left: 2rem;
    color: whitesmoke;
    font-family: monospace;
    font-size: 1rem;
    
}

.skill-right li {
    flex-direction: row;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--third-color);
    background-color: var(--secondary-color);
}

/*-----project--------------------------*/
#projects {
    padding-top: 2rem;
    margin: 0 5rem;
}

 .section-titles {
    font-size: 3.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', serif;
    margin-top: 0;
    text-decoration: underline;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.project-card {
    gap: 1rem;
    border-radius: 1rem;
    background-color: var(--fourth-color);
    padding: 1.5rem;
    border: 1px solid var(--secondary-color);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-4px);
}

.project-title {
    font-family: monospace;
    font-size: 1.3rem;
    text-decoration: underline;
    padding-bottom: 1rem;
}

/*----------------------contact------------------------*/
#contact {
    padding-top: 2rem;
    margin: 0 5rem;
}


.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-bottom: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--third-color);
  text-decoration: none;
  font-family: monospace;
  font-size: 1rem;
  transition: color 0.2s;
}

.social-links a:hover { color: var(--fourth-color); 
}

.social-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--third-color);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.social-links a:hover .social-icon { 
    border-color: var(--fourth-color); 
}

.contact-form {
  max-width: 1000px;     
  padding: 1rem;  
  display: flex;
  flex-direction: column;
  gap: 1.5rem;      
  box-sizing: border-box;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;  
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: monospace;
  font-size: 1rem;
  color: var(--third-color);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background-color: var(--fourth-color);
  border: 1px solid var(--third-color);
  border-radius: 3px;
  color: var(--third-color);
  font-family: monospace;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;

 }

 /*------------footer-----------------------------*/
 footer {
  border-top: 1px solid var(--secondary-color);
  padding: 1.5rem 1rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--third-color);
}

/*-------------hamburger---------*/
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  cursor: pointer;
  padding: 7px;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--secondary-color);
  border-bottom: 1px solid var(--primary-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.mobile-menu.open { max-height: 400px; }
.mobile-link {
  padding: .75rem 1.5rem;
  color: var(--primary-color);
  font-family: monospace;
  border-bottom: 1px solid rgba(193,186,186,.2);
  transition: .2s;
}
.mobile-link:hover { background: var(--third-color); }

/*-------responsive----------------*/
@media (max-width: 750px) {

  /* --- NAV --- */
  .nav-bar ul {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  /* --- HERO --- */
  #home {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding-top: 3rem;
    min-height: unset;
    padding-bottom: 3rem;
  }

  .section-pic {
    width: 220px;
    height: 220px;
    margin: 0 auto;
  }

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

  .hero-content {
    align-items: center;
  }

  .section-title {
    font-size: 3.2rem;
  }

  .section-text-p1,
  .section-text-p2 {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* --- ABOUT & SKILLS --- */
  section {
    margin: 0 1.2rem;
  }

  .about-container {
    gap: 1.5rem;
  }

  .skill-right ul {
    gap: 1rem;
    padding-left: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* --- PROJECTS --- */
  #projects {
    margin: 0 1.2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* --- CONTACT --- */
  #contact {
    margin: 0 1.2rem;
  }

  .contact-info {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 0;
  }
}