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

html {
  scroll-behavior: smooth;
}

:root {
  --bg-dark: #1f1f1f;
  --bg-dark-alt: #262626;
  --text-light: #e5e5e5;
  --text-muted: #b0b0b0;
  --accent-blue: #6fb3d2;
}

body {
  font-family: "Helvetica", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

header {
  background-color: var(--bg-dark);
  padding: 16px 32px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left a {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
}

section {
  padding: 80px 10%;
}

section:nth-of-type(even) {
  background-color: var(--bg-dark-alt);
}

section:nth-of-type(odd) {
  background-color: var(--bg-dark);
}

section h3 {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--accent-blue);
}

#intro {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#intro h1 {
  text-align: center;
  font-size: 52px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--accent-blue);
}

#intro h3 {
  text-align: center;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 20px;
}

#intro p {
  text-align: center;
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.nav-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: transparent;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.nav-btn:hover {
  background-color: var(--accent-blue);
  color: var(--bg-dark);
}

#about-me {
  scroll-margin-top: 80px;
}

#about-me h3{
  text-align: center;
}

.about-container{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
}

.about-image{
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 300px;
  border-radius: 25px;
  border: 3px solid var(--text-muted);
}

.about-text{
  flex: 1;
  justify-content: flex-start;
}

.about-text h4 {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 20px;  
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.button-container {
  margin-top: 20px;
  display: flex;
  gap: 14px;
}

.button-container .github-button,.button-container .linkedin-button {
  padding: 10px 18px;
  background-color: transparent;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

.button-container .github-button:hover, .button-container .linkedin-button:hover {
  background-color: var(--accent-blue);
  color: var(--bg-dark);
}

.exp-container {
  background-color: #2b2b2b;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.exp-container h4 {
  color: var(--accent-blue);
  font-size: 22px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.exp-container h5 {
  color: var(--text-muted);
  font-weight: 400;
}

.exp-container p {
  margin-top: 12px;
}

.proj-container {
  background-color: #2b2b2b;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: row;
  gap: 25px;
}

.proj-container img{
  width: 15%;
  height: auto;
  border-radius: 5px;
}

.proj-info {
  flex: 1;
}

.proj-container h4{
  font-size: 22px;
}

.skills-container {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.skills-container p {
  padding: 5px 12px;
  border-radius: 20px;
  background-color: #3a3a3a;
  color: var(--accent-blue);
  font-size: 14px;
  margin-bottom: 5px;
}

.github-button {
  padding: 5px 12px;
  background: transparent;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
}

.github-button:hover {
  background-color: var(--accent-blue);
  color: var(--bg-dark);
}


.extra-container {
  background-color: #2b2b2b;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: row;
  gap: 25px;
}

.extra-img1{
  width: 21%;
  height: auto;
  border-radius: 5px;
}

.extra-img2{
  width: 15%;
  height: auto;
  border-radius: 5px;
}

.extra-info {
  flex: 1;
}

.extra-container h4 {
  color: var(--accent-blue);
  font-size: 22px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.extra-container h5 {
  color: var(--text-muted);
  font-weight: 400;
}

.extra-container p {
  margin-top: 12px;
}

.footer-bar {
  background-color: #181818;
  padding: 18px 30px;
  text-align: center;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.6);
}

.footer-bar a {
  color: var(--accent-blue);
  text-decoration: none;
}

.footer-bar a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  #about-me {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 220px;
  }

  section {
    padding: 60px 6%;
  }
}

@media (max-width: 900px) {
  .about-container, 
  .proj-container, 
  .extra-container {
    flex-direction: column; 
    align-items: center;
    text-align: center;
    gap: 20px; 
  }
  .proj-container img, 
  .extra-img1, 
  .extra-img2 {
    width: 80%;     
    max-width: 300px; 
    height: auto;   
    flex-shrink: 0;
  }

  .about-image img {
    width: 220px;
  }

  section {
    padding: 40px 20px;
  }
}
