*, 
*:before, 
*:after{
    box-sizing: border-box;
}
html{
    font-size: 16px;
    scroll-behavior: smooth;
}
body{
    margin: 0;
    padding:0;
    background-color: #f2f2f2;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

body > header {
    width: 100%;
    height: 4.0rem;
    background-color: #555;
    position: fixed;
    color: #fff;
}

/* ===== Navigation Bar (Grey Theme) ===== */

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f2f2f2; /* light grey background */
    border-bottom: 1px solid #ccc;
    z-index: 1000;
  }
  
  nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
  }
  
  nav a {
    color: #555; /* medium grey text */
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 1.5rem;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
  }
  
  nav a:hover,
  nav a.active {
    color: #222; /* darker grey on hover */
    border-bottom: 2px solid #666; /* underline effect */
  }

  /* ===== LUXURY NEUTRAL CONTACT FORM ===== */

.form-container {
  width: 100%;
  max-width: 600px;
  margin: 2.5rem auto;
  padding: 2.5rem;
  background: #f7f5f3; /* warm light neutral */
  border-radius: 14px;
  border: 1px solid #e0dedb;
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
  text-align: left;
  animation: fadeIn 0.6s ease;
}

/* Titles inside the form (optional if you add h2 inside later) */
.form-container h2 {
  font-size: 1.6rem;
  color: #4a4a4a;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.form-container form p {
  margin-bottom: 1.4rem;
}

.form-container label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #585858; /* soft charcoal */
  display: block;
  margin-bottom: 0.4rem;
}

/* Inputs + Textarea */
.form-container input[type="text"],
.form-container textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  background-color: #fdfdfc;
  border: 1px solid #d1cfcd;
  border-radius: 10px;
  outline: none;
  transition: 0.3s ease;
  font-family: 'Roboto', sans-serif;
  color: #333;
}

/* Input focus */
.form-container input[type="text"]:focus,
.form-container textarea:focus {
  border-color: #b1aca8; /* warm grey */
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(150,140,130,0.2); /* neutral glow */
}

/* Textarea size */
.form-container textarea {
  resize: vertical;
  min-height: 150px;
}

/* Button */
#send-form {
  width: 100%;
  background: linear-gradient(135deg, #5a5a5a, #3d3d3d);
  border: none;
  padding: 1rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
  letter-spacing: 0.5px;
}

#send-form:hover {
  background: linear-gradient(135deg, #3d3d3d, #2a2a2a);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Success message */
.response-container {
  display: none;
  margin-top: 2rem;
  padding: 1.4rem;
  background: #eef7f1;
  border-left: 6px solid #6aa87b;
  border-radius: 10px;
}

.response-container h4 {
  color: #46785a;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Smooth entrance animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}


  
  
  /* add padding-top to body so fixed nav doesn't overlap content */
  body {
    padding-top: 80px;
  }
  

.header-container {
    width: 60.0rem;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

.header-container > div {
    height: 4.0rem;
    line-height: 4.0rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
}

.nav-link:hover {
    text-decoration: underline;
}

main {
   padding-top: 5.0rem;
   width: 60.0rem;
   margin: 0 auto;
}

.home-page {
    background-color: #e0e0e0;
    height: auto;
  /*  width: 60.0rem;*/
  /*  margin: 0 auto; */
    padding: 2.0rem;
}

.project-page {
    background-color: #cfcfcf;
    height: 30.0rem;
    /*  width: 60.0rem;*/
    margin: 0 auto;
}

.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.project-card {
    background-color: #b0b0b0;
    padding: 1.0rem;
    height: 10.0rem;
    margin-top: 1.0rem;
    width: 31.5%;
    color: #111;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s ease;
}

.project-card:hover {
    background-color: #999;
    transform: scale(1.03);
}

/* Center text inside project cards */
.project-card, .home-page, .project-page {
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  text-align: center;      /* text inside is centered */
  flex-direction: column;  /* stack multiple lines vertically */
}

.project-page {
  display: flex;             /* enable flexbox */
  justify-content: center;   /* horizontal center */
  align-items: center;       /* vertical center */
  text-align: center;        /* center multiple lines of text */
  flex-direction: column;    /* stack lines vertically */
  padding: 2rem;             /* optional padding */
}


.hideAll {
    display: none;
}

.pointer {
    cursor: pointer;
}


@media print, screen and (max-width: 40em) {
  .header-container, main {
    width: 100%;
 }
 .project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

}

.project-card {
  background-color: #b0b0b0;
  padding: 1.0rem;
  height: 10.0rem;
  margin-top: 1.0rem;
  width: 90%;
  color: #111;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s ease;
}
}