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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #fff;
  min-width: 280px;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Poppins', sans-serif;
  color: #111;
  word-wrap: break-word;
  text-align: center;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

nav {
  background-color: #A3B7C2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 30px;
}

nav a:nth-child(6) {
  margin-right: 20px;
}

.links-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  color: #000;
  padding: 10px;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

nav a:hover {
  color: #fff;
  transform: scale(1.1);
  transition: 0.3s ease;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  width: max-content;
  padding: 10px;
}

nav img {
  width: 25px;
  height: 25px;
}

nav a:hover img {
  transform: scale(1.2);
  transition: 0.3s ease;
  filter: brightness(0) invert(1);
}

#menu-active {
  display: none;
}

.open-btn,
.close-btn {
  display: none;
  cursor: pointer;
}

section {
  padding: 60px 10px;
  margin: auto;
  width: 100%;
  overflow-x: hidden;
}

#home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: left;
  background-color: white;
  background-image: 
    linear-gradient(90deg, rgba(173, 216, 230, 0.3) 25%, transparent 25%, transparent 50%, rgba(173, 216, 230, 0.3) 50%, rgba(173, 216, 230, 0.3) 75%, transparent 75%, transparent),
    linear-gradient(rgba(173, 216, 230, 0.3) 25%, transparent 25%, transparent 50%, rgba(173, 216, 230, 0.3) 50%, rgba(173, 216, 230, 0.3) 75%, transparent 75%, transparent);
  background-size: 100px 100px;
}

.avatar {
  width: 100%;
  max-width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.home-text {
  max-width: 500px;
  color: #555;
  padding: 10px;
  word-wrap: break-word;
}

.home-text h1 {
  font-size: 1.8rem;
  margin: 10px 0;
}

.home-text h3 {
  font-weight: normal;
  color: #555;
  font-size: 1rem;
  text-align: left;
}

#about-skills {
  background: #f7fafc;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#about-skills h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

#about,
#skills {
  flex: 1;
  padding: 0 30px;
}

.about-container {
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
  background: white;
  padding: 30px;
  box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
  border-radius: 15px;
}

.about-info p {
  font-size: 1.2rem;
}

.skills-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  padding: 20px;
}

.skill-row {
  padding: 10px;
  display: flex;
  align-items: center;
  margin-bottom: 0px;
  gap: 20px;
}

.skill-row img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.skill-content {
  flex: 1;
}

.skill-content p {
  margin: 0 0 6px 0;
  font-weight: bold;
  color: #333;
}

.skill-bar {
  background: #e0e0e0;
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: #6cbba9;
  color: white;
  text-align: right;
  padding-right: 8px;
  font-size: 0.75rem;
  line-height: 14px;
  border-radius: 8px;
  
}

.html-fill {
  width: 40%;
}

.css-fill {
  width: 30%;
}

.java-fill {
  width: 15%;
}

.js-fill {
  width: 20%;
}

#resume {
  background-image: url(assets/images/resume.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#resume h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

.resume-container {
  border: 2px solid #ffffff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.downloadable-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 15px;
  background-color: #3f99c5;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.downloadable-link:hover {
  background-color: #2d7da0;
}

#skills h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

#projects {
  background: #f7fafc;
}

#projects h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

.project-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  text-align: center;
}

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

.project-image {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.website {
  width: 100%;
  height: auto;
  aspect-ratio: 19 / 8;
  object-fit: cover;
  display: block;
}

.description {
  padding: 20px;
  text-align: left;
}

.project-image h3 {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.links a {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #e9eef5;
  display: grid;
  place-items: center;
  transition: transform 0.3s, background-color 0.3s;
}

.links a:hover {
  transform: scale(1.1);
  background-color: #d0d8e0;
}

.links img {
  width: 20px;
  height: 20px;
}

#contact {
  background-color: white;
  background-image: 
    linear-gradient(90deg, rgba(173, 216, 230, 0.3) 25%, transparent 25%, transparent 50%, rgba(173, 216, 230, 0.3) 50%, rgba(173, 216, 230, 0.3) 75%, transparent 75%, transparent),
    linear-gradient(rgba(173, 216, 230, 0.3) 25%, transparent 25%, transparent 50%, rgba(173, 216, 230, 0.3) 50%, rgba(173, 216, 230, 0.3) 75%, transparent 75%, transparent);
  background-size: 100px 100px;
}

#contact h1 {
  margin-bottom: 20px;
  text-align: center;
}

.contact-container {
  margin: 0 auto;
  color: #333;
  padding: 0 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-form {
  max-width: 500px;
  width: 100%;
  border: 1px solid rgb(0, 0, 0);
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 3px;
  margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 8px;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 8px;
  resize: none;
}

.contact-form button {
  margin-top: 10px;
  padding: 10px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #45a049;
}

footer {
  background-color: #A3B7C2;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  padding: 0 10px;
  text-align: center;
  color: black;
  font-size: 0.9rem;
}