*, 
*:before, 
*:after{
    box-sizing: border-box;
}
html{
    font-size: 16px;
}

html, body{
  height: 100%;
  width: 100%;
}


body{
    margin: 0;
    padding:0;
    background-color: #1B3C73;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    overflow-x: hidden;
}

.pointer {
    cursor: pointer;
}



body > header{
  width: 100%;
  background-color: #1B3C73;
  margin-bottom: 60px;
}



.header-container{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;              
  box-sizing: border-box;   
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 55px;      
  background-color: #1B3C73;
  z-index: 1000;
  flex-wrap: wrap;
}

/*LOGO SVG*/
.click-home{
  width: 70px;
  height: auto;
  cursor: pointer;
}

/*.click-home{
    font-family: "Marhey", sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 4.7rem;
    padding-top: 3.7rem;
    padding-left: 10px;
    padding-right: 200px;
}*/

.click-portfolio,
.click-contactMe,
.click-skills,
.click-intro {
    margin: 0 40px;
    font-size: 1rem;
    background-color: #1B3C73;
    color: #BFACDE;
    padding: 12px 28px;
    border-radius: 10px;
    border: 0.1rem solid #FFCAD4;
}

.header-container > div{
    top: 0px;
}

.icon-banner{
  height: 80px;                
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
  padding-top: 50px;
}

.icon-banner img{
  width: 56px;
  height: 56px;
  flex: 0 0 56px;              
  object-fit: contain;
  display: block;
}


main{
    padding-top: 5.0rem;
    width: 100%;
    min-height: 100%;
    margin: 0 auto;
}

.home-page{
    /*background-color: #fb5489;*/
    background-color:#1B3C73;
    min-height: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 2.0rem;
}

.project-page{
    background-color: #FFCAD4;
    color: #40679E;
    min-height: 30.0rem;
    margin: 0 auto;
}

.project-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15rem;
    /*width: 90%;*/  
}


.project-txt{
  color: #ffdde3;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  padding: 5rem;
}

.projects-grid{
  display: grid;
  grid-template-columns: repeat(2, 420px);
  gap: 100px;
  justify-content: center;
  padding-bottom: 150px;
}

.project,
.project *{
  text-decoration: none;
}

.project{
  width: 420px;   /* match grid */
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  padding: 45px;
  box-sizing: border-box;
}

.project span:nth-child(1) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #FFCAD4;
    /*border-radius: 32% 58% 69% 43% / 48% 32% 59% 55%;*/
    border-radius: 40px;
    transition: 0.5s;
}

.project span:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #FFCAD4;
    /*border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;*/
    border-radius: 40px;
    transition: 0.5s;
}

.project span:nth-child(3) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #FFCAD4;
    /*border-radius: 31% 45% 74% 35% / 38% 56% 51% 87%;*/
    border-radius: 40px;
    transition: 0.5s;
}

/*HOVER ANIMATION*/
.card:hover span:nth-child(1){
  border: none;
  background: #ff84bb;
  animation: blobSpin 8s linear infinite;
  border-radius: 55% 50% 56% 52% / 52% 57% 49% 55%;
  width: 100%;
  height: 115%;
}

.card:hover span:nth-child(2){
  border: none;
  background: #ff84bb;
  animation: blobSpin 6s linear infinite reverse;
  border-radius: 53% 57% 50% 55% / 56% 51% 58% 49%;
  width: 100%;
  height: 115%;
}

.card:hover span:nth-child(3){
  border: none;
  background: #ff84bb;
  animation: blobSpin 10s linear infinite;
  border-radius: 56% 52% 58% 50% / 50% 55% 52% 57%;
  width: 100%;
  height: 115%;
}

@keyframes blobSpin{
  from {opacity: 95%; transform: rotate(0deg);}
  to   { opacity: 70%; transform: rotate(360deg);}
}

.project:hover,
.project:hover *{
  text-decoration: none;
}

/* IMAGE SECTION 4 PROJECT CARDS */
.project{
  overflow: hidden;          
}


.card:hover{
  overflow: visible;
}



.project-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
  z-index: 0;
  transition: opacity .35s ease;  
  pointer-events: none;           
}


.project::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 40px;
  background: rgb(27, 60, 115, 0.6);
  z-index: 1;
  transition: opacity .35s ease;  
}


.project-img,
.project::after{
  transition: opacity .35s ease;
}

.card:hover .project-img,
.card:hover::after{
  opacity: 0;
  visibility: hidden;
}

.project span{
  z-index: 2;
}

.project .content{
  position: relative;
  z-index: 3;
}


/* SKILLS & ABOUT ME B4 CONTACT FORM*/
.about {
  padding: 5rem 1.5rem;
}

.about-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.about-text h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
  color: #ffdde3;
}

.about-text p {
  margin: 0 0 1.5rem;
  line-height: 1.6;
  max-width: 55ch;
  color: #ffdde3;
}

.about-skills h3 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.skills-grid {
  list-style: none;
  padding: 0;
  margin: 0;

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

.skills-grid li {
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2); /* adjust for your theme */
  background: rgba(255, 255, 255, 0.06);      /* adjust for your theme */
}

/* Buttons */
.resume-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}


.btn {
  display: inline-block;
  padding: 0.85rem 1.1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
}

.btn.outline {
  border: 2px solid currentColor;
  color: white;
  background: transparent;
}

.btn.solid {
  background: #1B3C73;
  color: white;
  border: 2px solid #1B3C73;
}

.btn:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
}

/* Responsive */
@media (max-width: 820px) {
  .about-wrap {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}


/*TEXT FOR THE PROJECTS BOXES*/
.content{
  position: relative;
  width: 100%;
  box-sizing: border-box;
  color: #FFCAD4;
  font-family: "Inter", sans-serif;
  text-align: left;
  transition: 0.5s;
}

.content a {
    position: relative;
    display: inline-block;
    margin-top: 10px;
    border: 2px solid #ff8097;
    padding: 6px 18px;
    text-decoration: none;
    color: #ff8097;
    font-weight: 600;
    border-radius: 73% 27% 44% 56% / 49% 44% 56% 51%;
}

.project:hover .title{
    color: #0c176b;
}


.project:hover .content{
    transform: scale(0.8);  
    transition: transform 0.3s ease;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate2 {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.title{
  font-weight: 800;   /* bold */
  font-size: 1.5rem;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  line-height: 1.15;  
  padding-bottom: 6px; 
  transition: color 0.3s ease;
}

.divider{
  height: 2px;
  background: #ff8097;  
  margin: 12px 0;
  width: 100%;
}

.project:hover .divider{
  background: #0c176b;
}

.content p{
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}



/* Contact Section */

.contact-wrapper{
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  gap: 50px;              
  align-items: center;
  padding-bottom: 100px; 
  padding-top: 100px;   
  flex-wrap: wrap;
}

#contact-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch; 
  min-width: 280px;
}

#contact-image img {
  width: 100%;          
  height: 100%;         
  object-fit: cover;    
  border-radius: 20px;
}

#contact-image h1 {
  color: #ff84bb;
  font-size: 3rem;
  font-family: 'Marhey', sans-serif;
  padding-bottom: 4rem;

}

/*#contactMe {
    text-align: center;
    margin-top: 4rem;
    width: 75%;
}


/* Form Container */

.form-container form p{
  margin: 0 0 14px;       /* was big default margins */
}

#message{
  height: 140px;          /* shorter box */
  resize: vertical;       /* optional */
}

.form-container {
  flex: 1.15;
  padding: 28px;               
  height: auto;             
  background: #FFCAD4;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 280px;
}

/* Labels */
.form-container label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1B3C73;
    display: block;
    margin-bottom: 6px;
}

/* Text */
.form-container input[type="text"],
.form-container textarea {
  width: 100%;
  margin-bottom: 0;       /* spacing handled by p margin now */
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
}

/* Focus effect */
.form-container input[type="text"]:focus,
.form-container textarea:focus {
    border-color: #1B3C73;
    box-shadow: 0 0 6px rgba(27, 60, 115, 0.3);
}


/*BUTTON FOR CONTACT*/
#send-form {
    background: #FFB5C8;
    color: #1B3C73;
    padding: 0.7rem 2rem;
    border-radius: 12px;
    border: 2px solid #1B3C73;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

#send-form:hover {
    background: #ffc9d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(27,60,115,0.2);
}

#send-form:active {
    transform: translateY(0px);
}


.hideAll {
    display: none;
}


/*SKILLS & ABOUT ME*/

#skills, #intro{
    min-height: 20.0rem;
}

.section:nth-child(even) .section-inner {
  flex-direction: row-reverse;
}

.section {
  background-color: #20345E;
}

/* teal boxes with two columns */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 10rem;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

#skills.section-text{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;    /* horizontal center */
  text-align: center;
  gap: 18px;
}

#skills.section-text h1{
  margin: 0;
  color: #FFCAD4;         /* optional: match your theme */
}

#skills.section-text img{
  width: min(420px, 100%);
  height: auto;
  display: block;
}

#skills,
#intro {
  flex: 1;
  color: #FFCAD4;
  padding: 20px;
}

#skills h1,
#intro h1 {
  font-family: 'Marhey', sans-serif;
  font-size: 3rem;
  margin-bottom: 85px;
  padding-top: 60px;
}

#skills h1{
    margin-top: 45px;
}

.section-text{
    font-family: 'Nunito', sans-serif; 
    font-weight: 700;
    text-align: center;
    font-size: 20px;
}

/* optional: style the skills list */
#skills ul {
  margin: 0;
  padding-left: 20px;
  text-align: center;
}


/* graphic column */
.section-graphic {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-graphic img,
.section-graphic svg {
  max-width: 100%;
  height: auto;
}

#portfolio, #contactMe, #skills, #intro {
    scroll-margin-top: 10.0rem;
    margin-bottom: 5.0rem;
}

footer {
    width: 100%;
    align-items: center;
    padding: 30px;
    color: #ff8097;
    border-top: #ff8097;
    border-style: solid;

}


/* =========================
   TABLET
========================= */
@media screen and (max-width: 1024px) {
  .header-container {
    padding: 16px 24px;
    gap: 12px;
    justify-content: center;
  }

  .click-home{
    width: 58px;
  }

  .click-portfolio,
  .click-contactMe,
  .click-skills,
  .click-intro {
    margin: 0 10px;
    font-size: 0.95rem;
    padding: 10px 18px;
  }

  .icon-banner{
    height: auto;
    gap: 20px;
    padding-top: 30px;
    flex-wrap: wrap;
  }

  .icon-banner img{
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  main{
    padding-top: 8rem;
  }

  .home-page{
    padding: 1.5rem;
  }

  
  .section-graphic img {
    width: 300px;
  }
  

  .project-txt{
    font-size: 1.8rem;
    padding: 3rem 1.5rem;
  }

  .projects-grid{
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 40px;
    padding-bottom: 100px;
    width: min(92%, 900px);
    margin: 0 auto;
  }

  .project{
    width: 100%;
    height: 260px;
    padding: 30px;
  }

  .title{
    font-size: 1.3rem;
    white-space: normal;
  }

  .content p{
    font-size: 0.9rem;
  }

  .about {
    padding: 4rem 1.5rem;
  }

  .contact-wrapper{
    gap: 32px;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  #contact-image h1{
    font-size: 2.5rem;
    padding-bottom: 2rem;
  }

  .section-inner {
    margin-top: 6rem;
    padding: 30px;
    gap: 24px;
  }

  #skills h1,
  #intro h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
  }

  .section-text{
    font-size: 1.1rem;
  }

  #portfolio, #contactMe, #skills, #intro {
    scroll-margin-top: 8rem;
    margin-bottom: 4rem;
  }
}


/* =========================
   MOBILE
========================= */
@media screen and (max-width: 768px) {
  .header-container {
    position: static;
    flex-direction: column;
    align-items: center;
    padding: 18px 16px;
    gap: 14px;
  }

  body > header{
    margin-bottom: 20px;
  }

  .header-container > div{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .click-home{
    width: 54px;
  }

  .click-portfolio,
  .click-contactMe,
  .click-skills,
  .click-intro {
    margin: 0;
    font-size: 0.95rem;
    padding: 10px 16px;
  }

  .icon-banner{
    height: auto;
    gap: 16px;
    padding-top: 20px;
    flex-wrap: wrap;
  }

  .icon-banner img{
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  main{
    padding-top: 1rem;
  }

  .home-page{
    padding: 1rem;
  }

  .project-page{
    min-height: auto;
  }

  .project-container {
    gap: 1rem;
    margin-bottom: 6rem;
  }

  .project-txt{
    font-size: 1.5rem;
    padding: 2rem 1rem;
  }

  .projects-grid{
    grid-template-columns: 1fr;
    gap: 28px;
    width: min(92%, 480px);
    margin: 0 auto;
    padding-bottom: 70px;
  }

  .project{
    width: 100%;
    height: 250px;
    padding: 24px;
  }

  .project span:nth-child(1),
  .project span:nth-child(2),
  .project span:nth-child(3),
  .project-img,
  .project::after{
    border-radius: 28px;
  }

  .title{
    font-size: 1.25rem;
    white-space: normal;
  }

  .divider{
    margin: 10px 0;
  }

  .content p{
    font-size: 0.9rem;
  }

  .content a {
    padding: 6px 14px;
    font-size: 0.9rem;
  }

  .about {
    padding: 3rem 1rem;
  }

  .about-text h2 {
    font-size: 1.7rem;
  }

  .about-text p {
    font-size: 1rem;
    max-width: 100%;
  }

  .about-skills h3 {
    font-size: 1.2rem;
  }

  .resume-buttons {
    justify-content: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .contact-wrapper{
    width: min(94%, 600px);
    flex-direction: column;
    gap: 24px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  #contact-image,
  .form-container{
    width: 100%;
    min-width: 0;
  }

  #contact-image h1 {
    font-size: 2.2rem;
    padding-bottom: 1.5rem;
  }

  .form-container {
    padding: 22px;
  }

  .form-container label {
    font-size: 1rem;
  }

  .form-container input[type="text"],
  .form-container textarea {
    font-size: 1rem;
    padding: 10px 12px;
  }

  #message{
    height: 120px;
  }

  #send-form {
    width: 100%;
    font-size: 1rem;
    padding: 0.85rem 1rem;
  }

  .section-inner {
    flex-direction: column;
    margin-top: 4rem;
    padding: 22px 16px;
    gap: 20px;
  }

  .section:nth-child(even) .section-inner {
    flex-direction: column;
  }

  #skills,
  #intro {
    width: 100%;
    padding: 10px;
  }

  #skills h1,
  #intro h1 {
    font-size: 2rem;
    margin-bottom: 18px;
    margin-top: 0;
    text-align: center;
  }

  .section-text{
    font-size: 1rem;
    line-height: 1.6;
  }

  #skills ul {
    padding-left: 0;
    list-style-position: inside;
  }

  .section-graphic {
    width: 100%;
  }

  #portfolio, #contactMe, #skills, #intro {
    scroll-margin-top: 1rem;
    margin-bottom: 3rem;
  }

  footer {
    padding: 20px 16px;
    font-size: 0.95rem;
  }
}


/* =========================
   SMALL IPHONE
========================= */
@media screen and (max-width: 480px) {
  html{
    font-size: 15px;
  }

  .click-home{
    width: 48px;
  }

  .click-portfolio,
  .click-contactMe,
  .click-skills,
  .click-intro {
    width: 100%;
    max-width: 220px;
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  .project-txt{
    font-size: 1.3rem;
  }

  .project{
    height: 230px;
    padding: 18px;
  }

  .title{
    font-size: 1.1rem;
  }

  .content p{
    font-size: 0.85rem;
  }

  .about-text h2,
  #contact-image h1 {
    font-size: 1.9rem;
  }

  #skills h1,
  #intro h1 {
    font-size: 1.8rem;
  }

  .section-text{
    font-size: 0.95rem;
  }

  .icon-banner img{
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .form-container {
    padding: 18px;
  }
}


@media print, screen and (max-width: 40em) {
    
    .header-container, main {
        width: 100%;
    }

    .project-container {
        justify-content: center; 
        
    }

    .project-card {
        background-color: #FFCAD4;
        height: 16.0rem;
        margin-top: 2.0rem;
        width: 90%;
    }

}