*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-color: #d8d5df;
  color: #202030;
  font-family: 'Roboto', sans-serif;
  text-align: center;
}

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

html {
  scroll-behavior: smooth;
}



header {
  background-color: #d9d9d9;
  padding: 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding-left: 2rem;
  min-height: 64px;
  background-color: #000;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

nav a:hover,
nav a:focus-visible,
nav a:active {
  background-color: #d9d9d9;
  color: #000000;
  text-decoration: none;
}

section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  background-color: #e0e0e0;
  display: inline-block;
}

/* Hero Section */
  #hero {
    background-color: #e0e0e0;
    text-align: center;
    height: 360px; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

/* Hero Box */
#hero .hero-box {
  background-color: #acabab;
  border: 2px solid #767474;
  margin: 20px;
  height : 300px;
  width : 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
/* Portfolio Section */
#portfolio {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#portfolio h2 {
  text-align: center;
  margin-bottom: 40px;
  background-color: #e0e0e0;
  padding: 10px 20px;
  display: inline-block;
}

/* portfolio grid (use flex like root box) */
.portfolio-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Project Box */
.project-box {
  background-color: #e0e0e0;
  border: 2px solid #767474;
  width: 30%;
  min-height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  transition: 0.3s;
}

.project-box:hover {
  background-color: #acabab;

}

.project-box a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  text-align: center;
  display: block;
  padding: 10px;
}

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

/* About Me */
#about .about-container {
  display: flex;
  gap: 0;
}

#about .about-box {
  background-color: #e0e0e0;
  border: 2px solid #767474;
  height: 300px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.button-box {
  background-color: #e0e0e0;
  border: 2px solid #767474;
  padding: 15px 30px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.button-box:hover,
.button-box:focus-visible,
.button-box:active {
  background-color: #d9d9d9; 
  color: #000000;
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.skill-box {
  background-color: #e0e0e0;
  border: 2px solid #767474;
  padding: 40px;
  min-width: 120px;
  text-align: center;
}

/* Experience */
.experience-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.exp-box {
  background-color: #e0e0e0;
  border: 2px solid #767474;
  flex: 1 1 45%;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Contact */
.contact-me {
  background-color: #d2ceda;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 16px 32px rgba(22, 22, 32, 0.12);
  margin-top: 2rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #2f2f45;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border: 1.5px solid #3c3c54;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #2f2f45;
}

.contact-info__headline {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.contact-info__email {
  color: #2f3f7a;
  font-weight: 700;
  text-decoration: none;
}

.contact-info__email:hover,
.contact-info__email:focus-visible {
  text-decoration: underline;
}

.contact-info__subtext {
  margin: 0;
  color: #4f4f66;
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.contact-form-wrapper h2 {
  margin: 0 0 1.25rem 0;
  color: #2f2f45;
  background: none;
  display: inline-block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.25rem;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-form__group label {
  font-size: 0.95rem;
  color: #2f2f45;
}

.contact-form__group input,
.contact-form__group textarea {
  border: none;
  border-bottom: 1px solid #3b3b54;
  background: transparent;
  padding: 0.35rem 0;
  font-size: 1rem;
  color: #1f1f30;
}

.contact-form__group input:focus,
.contact-form__group textarea:focus {
  outline: none;
  border-bottom-color: #1e355d;
}

.contact-form__group textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form__group--full {
  width: 100%;
}

.contact-form__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.contact-form button {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.75rem;
  background: linear-gradient(145deg, #5c6b85, #4b5c7a);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(43, 50, 77, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(43, 50, 77, 0.3);
}

.contact-form button:active {
  transform: translateY(1px);
  box-shadow: 0 8px 16px rgba(43, 50, 77, 0.28);
}

.response-container {
  margin-top: 1.25rem;
  background-color: #cfd0da;
  border-radius: 0.75rem;
  padding: 1.25rem;
  width: min(36rem, 90vw);
  margin-left: auto;
  margin-right: auto;
  color: #2f2f45;
  box-shadow: 0 8px 16px rgba(23, 23, 33, 0.14);
}

/* Footer */
footer {
  background-color: #d9d9d9;
  text-align: center;
  padding: 20px;
  border-top: 1px solid #acabab;
}

.hideAll, .response-container {
  display: none;
}


@media print, screen and (max-width: 40em) {
  .portfolio-grid {
    justify-content: center;
  }

  .project-box {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .contact-me {
    padding: 2rem 1.25rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem 1.25rem;
  }

  .contact-form__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .contact-me {
    padding: 2rem 1rem;
  }

  .contact-card {
    gap: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 1.25rem 1rem;
  }
}
