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

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


header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: aqua; 
    border-bottom: 1px solid #ccc;
    z-index: 1000;
  }
  
  nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
  }
  
  nav a {
    color: grey; 
    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;
    border-bottom: 2px solid #666; 
  }

#contact {
    background-color: #d9d9d9;
    padding: 3rem 2rem;
    margin: 2rem auto;
    width: 60rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  #contact h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
  }
  
  #contact p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1rem;
  }
  
  #contact a {
    color: #222;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
  }
  
  #contact a:hover {
    color: #000;
    border-bottom: 1px solid #555;
  }
  

  #skills {
    background-color: #e0e0e0;
    padding: 3rem 2rem;
    margin: 2rem auto;
    width: 60rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  #skills h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
  }
  
  #skills ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: fit-content;
    text-align: left;
  }
  
  #skills li {
    background-color: #bfbfbf;
    color: #111;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem 0;
    border-radius: 5px;
    transition: 0.3s;
  }
  
  #skills li:hover {
    background-color: #a9a9a9;
    transform: scale(1.03);
  }
  
  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;
}


.form-container {
    max-width: 32rem;
    margin: 3rem auto 4rem;
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2.2rem 2.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    text-align: left;
}


.form-container ~ h1,
.form-container h1,
.contact-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #111827;
}


.form-container::before {
    content: "Contact Me";
    display: block;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #111827;
    margin-bottom: 1.2rem;
}


.form-container form p {
    margin: 0 0 1rem;
}


.form-container label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}


.form-container input[type="text"],
.form-container input[type="email"],
.form-container textarea {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #111827;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}


.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container textarea:focus {
    border-color: #f97316;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}


.form-container textarea {
    resize: vertical;
    min-height: 8rem;
}


.form-container p:last-child {
    margin-top: 1.4rem;
    text-align: right;
}


#send-form {
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

#send-form:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.55);
    filter: brightness(1.05);
}

#send-form:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.3);
}






.home-page {
    background-color: #2b2929;
    height: auto;
 
    padding: 2.0rem;
}

.project-page {
    background-color: #cfcfcf;
    height: 30.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);
}


.project-card, .home-page, .project-page {
  display: flex;
  justify-content: center;
  align-items: center;     
  text-align: center;      
  flex-direction: column;  
}

.project-page {
  display: flex;            
  justify-content: center;   
  align-items: center;      
  text-align: center;        
  flex-direction: column;    
  padding: 2rem;          
}


.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;
}
}