@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

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

html, body {
  font-family: "Roboto Mono", monospace, sans-serif;
  font-style: normal;
  scroll-behavior: smooth;
  background-color: #ffffff;
  color: #333333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.space-blank {
  height: 70px;
}

h1.logo {
  font-family: "Cedarville Cursive", cursive;
  font-size: 2rem;
  padding-top: 2px;
}

.navbar {
  background-color: #ffffff;
  box-shadow: 0 4px 4px -4px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}
.logo-link:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  list-style: none;
}
.nav-links li {
  margin-left: 1.5rem;
}
.nav-links a {
  text-decoration: none;
  font-weight: 400;
  color: #333333;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #000000;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}

.hero {
  position: fixed; 
  top: 70px;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url('images/hero-image-unsplash-3.jpg') center/cover no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}
.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #fff;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

/* White overlay to fade in on scroll */
.hero-white-fade {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ffffff; 
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s linear;
}

.main-content {
  position: relative;
  z-index: 3;
  margin-top: calc(100vh + 70px);
}

.btn {
  display: inline-block;
  width: auto;
  background-color: #054463;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border: solid #023350;
  border-radius: 2px;
  text-decoration: none;
  font-family: "Roboto Mono", monospace, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  text-align: center;
}
.btn:hover {
  background-color: #023350;
}
.btn.submit-btn {
  background-color: #7c756e;
  border: solid #655f59;
}
.btn.submit-btn:hover {
  background-color: #655f59;
}

.about {
  padding: 4rem 0;
  background-color: #fff;
}

#about, #projects {
  scroll-margin-top: 70px;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.about-text {
  width: 100%;
  text-align: center;
}

.word {
  color: #ccc;
  transition: color 0.2s;
  margin-right: 3px;
}
.word:last-child {
  margin-right: 0;
}
.word.active {
  color: #333333;
}

.about-text h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
  color: #333333;
}
.about-text p {
  line-height: 1.6;
  font-size: 1.1rem;
  font-weight: 400;
  text-align: left;
  padding-bottom: 1.5rem;
}
.about-image {
  text-align: center;
}
.about-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.projects {
  padding: 4rem 0;
  background-color: #f2f2f2;
}
.projects h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}
.project-card {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-5px);
}
.project-card img {
  width: 100%;
  height: auto;
  display: block;
}
.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}
.card-content p {
  flex-grow: 1;
  padding-bottom: 1rem;
  font-size: 1.1rem;
}
.card-content .btn {
  margin-top: auto;
  width: 155px;
}
.card-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.contact {
  padding: 4rem 0;
  background-color: #f2f2f2;
}
.contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-weight: 400;
}

.footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
}
.footer p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
}

@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .main-content {
    margin-top: calc(100vh + 70px);
  }
}

.tech-stack {
  padding: 4rem 0;
  background-color: #ffffff;
}

.tech-stack-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.tech-stack-content h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #333;
}

.tech-intro {
  text-align: center;
  font-size: 1.1rem;
  max-width: 700px;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.tech-group {
  margin-bottom: 3rem;
}

.tech-group h3 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #333;
}

.tech-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.tech-stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
}

.tech-stack-item:hover {
  transform: translateY(-3px);
}

.tech-stack-item .material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48;
  font-size: 48px;
  margin-bottom: 0.5rem;
  color: #054463;
}

.tech-stack-item span {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.back-to-top-link {
  margin-left: 1rem;
  text-decoration: none;
  color: #ccc;
  font-weight: 400;
}
.back-to-top-link:hover {
  text-decoration: underline;
  color: #fff;
}
