:root {
  --bg: #0a192f;
  --text: #ccd6f6;
  --accent: #5edfff;
  --secondary: #8892b0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 2px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 2px);
  background-size: 40px 40px;
}
section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}
footer {
  text-align: center;
  padding: 2rem;
  color: var(--secondary);
}
a {
  color: var(--accent);
  text-decoration: none;
}

.lang-switch {
  text-align: right;
  padding: 1rem;
}
.lang-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  flex-wrap: nowrap;
}

.profile-img {
  width: 200px;
  height: 200px;
  max-width: 100%;
  border-radius: 20%;
  object-fit: cover;
  flex-shrink: 0;
}

.intro-text {
  flex: 1;
  min-width: 180px;
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  padding-right: 12rem;
}
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .profile-img {
    width: 140px;
    height: 140px;
    align-self: center;
  }

  .intro-text {
    padding-right: 2rem;
    font-size: 0.8rem;
  }
}

.intro-text h1 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-align: center;
}
.intro-text p {
  color: var(--secondary);
  text-align: center;
}

.project {
  background-color: #112240;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}
.project h3 {
  margin-bottom: 0.5rem;
}
.project i {
  margin-right: 0.5rem;
  color: var(--accent);
}
.project p {
  color: var(--secondary);
}

.header-container2 {
  display: flex;
  grid-template-columns: auto 1fr;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.aboutme {
  background-color: #112240;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}
.aboutme h3 {
  margin-bottom: 0.5rem;
}
.aboutme i {
  margin-right: 0.5rem;
  color: var(--accent);
}
.aboutme p {
  color: var(--text);
}

.gallery {
  max-width: 1200px;
  text-align: center;
}
.gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}
.gallery-caption {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--secondary);
}
.gallery-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #112240;
  margin-top: 1rem;
}

.resume-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #112240;
  border-radius: 8px;
  color: var(--text);
}
.resume-section {
  margin-bottom: 2rem;
}
.resume-section h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.resume-section ul {
  padding-left: 1.5rem;
}
.resume-section li {
  line-height: 1.6;
}
.resume-download {
  text-align: right;
  margin-bottom: 1rem;
}
.resume-download a {
  color: var(--accent);
  text-decoration: none;
}

.skills {
  background-color: #112240;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}
.tech-grid h3 {
  color: var(--accent);
  margin-top: 1.5rem;
}
.tech-grid ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.tech-grid li {
  line-height: 1.6;
}
