/* Reset and base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #000;
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #000;
  border-bottom: 1px solid #fff;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
}

.logo img {
  height: 60px;
  width: auto;
  vertical-align: middle;
}

.menu-toggle {
  background: none;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  margin-left: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  border: 2px solid #fff;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  transition: background 0.3s;
}

.nav-links a:hover {
  border-bottom: 5px solid #fff;
}

/* Hero Section */
.hero {
  position: relative;
  height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background-repeat: repeat;
  background-size: cover;
  will-change: transform;
  pointer-events: none;
  transform-origin: center;
  transition: transform 0.2s ease-out;
}

.layer-back {
  background-image: url('images/stars_small.png');
  z-index: 1;
}

.layer-mid {
  background-image: url('images/stars_medium.png');
  z-index: 2;
}

.layer-front {
  background-image: url('images/stars_large.png');
  z-index: 3;
}

.hero-text {
  position: relative;
  z-index: 4;
  border: 2px solid #fff;
  padding: 20px 50px;
  background: #000;
  border-radius: 30px;
}

.hero-text:hover {
  border-bottom: 5px solid #fff;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.hero-info h1 {
  margin: 0;
  font-size: 2rem;
}

.hero-info p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

/* Section styles */
.section {
  padding: 4rem 2rem;
  border-top: 1px solid #fff;
}

.section h2 {
  text-align: center;
  margin-bottom: 6rem;
  font-size: 2rem;
}

/* Projects */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.project-card {
  border: 1px solid #fff;
  border-radius: 8px;
  background: #000;
  text-align: center;
  padding: 1rem;
}

.project-card h3 {
  font-size: 1.2rem;
  color: #fff;
  border-bottom: 2px solid #fff;
  margin: 1rem auto 0;
  width: fit-content;
}

.project-card p {
  font-size: 0.95rem;
  color: #ccc;
  margin-top: 0.5rem;
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  border: 1px solid #fff;
  border-radius: 8px;
  background: #000;
  text-align: center;
  padding: 1rem;
}

.cert-card img {
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 auto 0.5rem;
}

.cert-card p {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
}

/* Contact */
.contact-section {
  border: 1px solid #fff;
  padding: 4rem 2rem;
  text-align: center;
  background: #1d1d1d;
  width: 50%;
  margin: auto;
  border-radius: 30px 30px 0 0;
}

.contact-intro {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: #000;
  color: #fff;
  font-weight: 600;
  border: 1px solid #fff;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form button {
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  padding: 0.75rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #ae00ff;
  color: #fff;
  border-color: #1d1d1d;
}

/* Socials */
.social-section {
  border-top: 1px solid #fff;
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 2em;
}

.social-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2em;
}

.social-card {
  border: 1px solid #fff;
  border-radius: 8px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 1.5rem;
  transition: background 0.3s, transform 0.3s;
}

.social-card:hover {
  background: #fff;
  color: #000;
  transform: translateY(-5px);
}

.social-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.social-card p {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  font-weight: 400;
}

/* Footer */
footer {
  text-align: center;
  padding: 0.25rem;
  border-top: 1px solid #fff;
  font-size: 1rem;
  font-weight: bold;
}

/* Form */
.form-message {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: #00ffae; /* success green */
}

.form-message.error {
  color: #ff4d4d; /* error red */
}



/* Responsive tweaks */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    margin-right: 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: left;
  }

  .nav-links a:hover {
    border-bottom: 2px solid #fff;
    background: #fff;
    color: #000;
    font-weight: 700;
  }

  .hero {
    width: 90%;
    margin: auto;
  }

  .hero-text {
    padding: 0 30px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .headshot {
    width: 150px;
    height: 150px;
    margin-top: 20px;
  }

  .hero-info h1 {
    font-size: 2.2rem;
  }

  .hero-info p {
    font-size: 1rem;
  }

  .cert-card img {
    height: 50px;
  }

  .contact-section {
    width: 90%;
  }

  .hide-logo {
    display: none;
  }

}
@media (max-width: 432px) {
  .form-overlay-box{
    width: 90%;
    padding: 1rem;
  }

}