*, 
*:before, 
*:after{
    box-sizing: border-box;
}
html{
    font-size: 16px; /* this is 1 rem */
}
body{
    margin: 0;
    padding:0;
    background-color:#224479;
    font-family: 'Roboto', sans-serif;
    text-align: center; 
    background: url("../assets/images/bg3.png") no-repeat center center/cover;
}

.pointer {
    cursor: pointer;
}

body > header {
    position: fixed;
    width: 100%;
    background: rgba(20,25,35,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    z-index: 10;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px; 
    color: #e5e7eb;
}

.header-container span {
    opacity: .75;
    margin-left: 1.2rem;
    transition: .2s;
}

.header-container span:hover {
    opacity: 1;
    color: #14b8a6;
}

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

.home-page {
    /* background-color: rgb(10, 54, 135); */
    /* height: 30.0rem; */
    /* width: 60.0rem;*/
    /* margin: 0 auto; */
    padding: 2.0rem;
} 

.home-page h1 {
    text-align: center;
    font-size: 3rem;
    margin: 1rem 0 2rem;
    font-weight: 700;
}

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

.project-container {
    max-width: 1100px;
    margin: 0 auto 4rem;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    height: 220px;
    border-radius: 18px;
    overflow: hidden;

    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    cursor: pointer;

    transition: transform .25s ease,
                box-shadow .25s ease,
                border-color .25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
    border-color: rgba(20,184,166,.6);
} 

.project-image {
    flex: 1;
    background: rgba(0,0,0,.25);
    
    /* placeholder pattern */
    background-image:
      linear-gradient(45deg, rgba(255,255,255,.05) 25%, transparent 25%),
      linear-gradient(-45deg, rgba(255,255,255,.05) 25%, transparent 25%);
    background-size: 24px 24px;
}  

.project-image {
    transition: transform .35s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-title {
    padding: 1rem 1.2rem;
    background: rgba(0,0,0,.45);
    border-top: 1px solid rgba(255,255,255,.08);

    font-weight: 600;
    font-size: 1.05rem;
    color: #e5e7eb;

    text-align: left;
} 

.click-mad-movies .project-image {
    background: url("../assets/images/madmovies.jpg") center / cover;
}

.click-react-website .project-image {
    background: url("../assets/images/react.jpg") center / cover;
} 

.click-game .project-image {
    background: url("../assets/images/alot1.jpg") center / cover;
} 

.click-collaborationProject .project-image {
    background: url("../assets/images/scratchwin.jpg") center / cover;
} 

.click-wordpress .project-image {
    background: url("../assets/images/wordpress.jpg") center / cover;
} 

.click-sensor .project-image {
    background: url("../assets/images/sensor.jpg") center / cover;
} 

.click-collab .project-image {
    background: url("../assets/images/collab.jpg") center / cover;
} 

.click-ticket .project-image {
    background: url("../assets/images/ticket.jpg") center / cover;
}

.project-page img {
    width: 100%;
}

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

#skills, #aboutMe {
    
    background-color: cornflowerblue;
    margin-bottom: 3.0rem;
}

#portfolio, #contactMe, #skills, #aboutMe {
    scroll-margin-top: 6.0rem;
}




h1 { 
    font-family: "Momo Trust Display", sans-serif; 
    color: #eee; 
    font-size: 2rem;
    
}

/* Page wrapper */
.page-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.contact-card {
    background-color: #1f2933;
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    gap: 4rem;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
} 

.contact-left {
    flex: 1;
    text-align: left;
    color: white;
}

.contact-left h1 {
    font-size: 2.6rem;
    margin-bottom: 2rem;
}

.contact-left img {
    max-width: 320px;
    height: auto;
    display: block;
} 

.contact-right {
    flex: 1;
} 

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
    text-align: left;
}

.field label {
    color: #b0b7c3;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.field input,
.field textarea {
    background-color: #2b3642;
    border: none;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    color: white;
    font-size: 1rem;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #7b8794;
} 

#send-form {
    background-color: #17c3b2;
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    width: fit-content;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#send-form:hover {
    transform: translateY(-2px);
    opacity: 0.9;
} 

.contact-card::before {
    content: "";
    width: 1px;
    background: rgba(255,255,255,0.08);
    position: absolute;
}

#aboutMe {
    max-width: 700px;
    margin: 4rem auto;
    padding: 2.5rem 3rem;

    background: #1f2933;
    border-radius: 20px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);

    text-align: left; /* IMPORTANT */
} 

#aboutMe p {
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 1rem;
    max-width: 60ch;  
} 

#aboutMe h1 {
    position: relative;
}

#aboutMe h1::after {
    content: "";
    width: 50px;
    height: 3px;
    background: #14b8a6;
    display: block;
    margin-top: 0.5rem;
    border-radius: 2px;
}


/* shared box styling */
#skills {
    max-width: 1000px;
    max-height: 330px;
    margin: 4rem auto;
    padding: 3rem;
    background: #1f2933;
    border-radius: 20px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* headings */
#aboutMe h1,
#skills h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}

#aboutMe span,
#skills span {
    color: #14b8a6;
}

/* about text */
#aboutMe p {
    line-height: 1.7;
    color: #cbd5e1;
    
}

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

/* skill cards */
.skill-card {
    background: #111827;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #e5e7eb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(20,184,166,0.25);
}

/* =========================
   TABLET (≤ 900px)
========================= */
@media (max-width: 900px) {

  main {
    width: 90%;
  }

  .project-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-left,
  .contact-right {
    width: 100%;
  }

}


/* =========================
   MOBILE (≤ 600px)
========================= */
@media (max-width: 600px) {

  html {
    font-size: 15px;
  }

  /* HEADER */
  .header-container {
    flex-direction: column;
    gap: 0.5rem;
    height: auto;
    padding: 0.5rem 0;
  }

  /* MAIN */
  main {
    width: 100%;
    padding: 3rem 1rem 1rem;
  }

  /* PROJECTS */
  .project-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    width: 100%;
  }

  /* CONTACT */
  .contact-card {
    flex-direction: column;
    padding: 1.5rem;
  }

  .contact-left img {
    max-width: 100%;
  }

  /* ABOUT + SKILLS */
  #aboutMe,
  #skills {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
  }

  /* SKILLS GRID */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* BUTTON */
  #send-form {
    width: 100%;
  }
}

