/*-----------------------------------*\
  #main.css
\*-----------------------------------*/

/**
 * copyright 2022 codewithsadee
 */





/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  --white: hsla(0, 0%, 100%, 1);
  --white_a8: hsla(0, 0%, 100%, 0.08);
  --white_a12: hsla(0, 0%, 100%, 0.12);
  --cultured: hsla(220, 20%, 97%, 1);
  --snow: hsla(345, 57%, 97%, 1);
  --manatee: hsla(219, 10%, 62%, 1);
  --black-coral: hsla(220, 12%, 43%, 1);
  --cadet-blue-crayola_a20: hsla(222, 23%, 71%, 0.2);
  --cinnamon-satin: hsla(344, 53%, 62%, 1);
  --raisin-black: hsla(216, 14%, 14%, 1);
  --raisin-black_a6: hsla(216, 14%, 14%, 0.06);
  --gunmetal: hsla(214, 15%, 21%, 1);
  --charcoal: hsla(219, 22%, 26%, 1);

  /**
   * typography
   */

  --ff-manrope: 'Manrope', sans-serif;

  --fs-1: calc(2.7rem + 1.38vw);
  --fs-2: calc(2.6rem + .66vw);
  --fs-3: calc(2.6rem + .24vw);
  --fs-4: 1.9rem;
  --fs-5: 1.8rem;
  --fs-6: 1.7rem;
  --fs-7: 1.5rem;
  --fs-8: 1.4rem;
  
  --fw-700: 700;

  /**
   * spacing
   */

  --section-padding: 90px;

  /**
   * box shadow
   */

  --shadow-1: 0 0 20px hsla(216, 14%, 14%, 0.05);
  --shadow-2: 0 4px 28px hsla(216, 14%, 14%, 0.07);

  /**
   * border radius
   */

  --radius-circle: 50%;
  --radius-pill: 100px;
  --radius-8: 8px;
  --radius-6: 6px;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --transition-3: 0.3s ease-in-out;

}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li { list-style: none; }

a,
img,
span,
button,
ion-icon { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

img { height: auto; }

input,
button,
textarea {
  background: none;
  border: none;
  font: inherit;
}

input,
textarea { width: 100%; }

button { cursor: pointer; }

ion-icon { pointer-events: none; }

html {
  font-family: var(--ff-manrope);
  font-size: 10px;
  scroll-behavior: smooth;
  /* [data-reveal="right"] parks elements at translateX(30px) until they animate
     in, which pokes past the viewport on narrow screens. `clip` stops the
     sideways scrollbar without turning <html> into a scroll container. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background-color: var(--white);
  color: var(--black-coral);
  font-size: 1.6rem;
  line-height: 1.7;
}

body.nav-active { overflow: hidden; }

::-webkit-scrollbar { width: 10px; }

::-webkit-scrollbar-track { background-color: hsl(0, 0%, 98%); }

::-webkit-scrollbar-thumb { background-color: hsl(0, 0%, 80%); }

::-webkit-scrollbar-thumb:hover { background-color: hsl(0, 0%, 70%); }

.logo-css {
  font-size: 3.3rem;
  font-weight: 700;
  color: #000; /* Ensure it's full black */
  text-shadow: 0 0 0 #000; /* Helps with rendering crisp text */
}





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 16px; }

.social-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  font-size: 2rem;
  transition: var(--transition-1);
}

.social-link:is(:hover, :focus-visible) { transform: translateY(-3px); }

.section { padding-block: var(--section-padding); }

.w-100 { width: 100%; }

.h1,
.h2,
.h3,
.h4 {
  color: var(--charcoal);
  line-height: 1.3;
}

.h1 { font-size: var(--fs-1); }

.h2 { font-size: var(--fs-2); }

.h3 { font-size: var(--fs-3); }

.h4 { font-size: var(--fs-4); }

.btn {
  color: var(--cinnamon-satin);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  border: 2px solid var(--cinnamon-satin);
  max-width: max-content;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: var(--transition-1);
  will-change: transform;
}

.btn:is(:hover, :focus-visible) { transform: translateY(-4px); }

.btn-primary,
.btn-secondary:is(:hover, :focus-visible) {
  background-color: var(--cinnamon-satin);
  color: var(--white);
}

.section-text { font-size: var(--fs-5); }

.section-title { margin-block-end: 16px; }

.grid-list {
  display: grid;
  gap: 30px;
}

[data-reveal] {
  opacity: 0;
  transition: 0.75s ease;
}

[data-reveal="top"] { transform: translateY(-30px); }

[data-reveal="bottom"] { transform: translateY(30px); }

[data-reveal="left"] { transform: translateX(-30px); }

[data-reveal="right"] { transform: translateX(30px); }

[data-reveal].revealed {
  transform: translate(0);
  opacity: 1;
}





/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--white);
  width: 100%;
  padding-block: 20px;
  box-shadow: var(--shadow-1);
  z-index: 4;
}

.header.active {
  position: fixed;
  animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-open-btn {
  font-size: 3.5rem;
  color: var(--gunmetal);
}

.navbar {
  position: fixed;
  top: 0;
  left: -300px;
  background-color: var(--raisin-black);
  color: var(--white);
  max-width: 300px;
  width: 100%;
  height: 100vh;
  padding: 30px;
  padding-block-end: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 2;
  visibility: hidden;
  transition: var(--transition-3);
}

.navbar.active {
  visibility: visible;
  transform: translateX(300px);
}

.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-close-btn {
  background-color: var(--white_a8);
  color: var(--white);
  font-size: 2rem;
  padding: 6px;
  border-radius: var(--radius-circle);
  transition: var(--transition-1);
}

.nav-close-btn ion-icon { --ionicon-stroke-width: 50px; }

.nav-close-btn:is(:hover, :focus-visible) { background-color: var(--white_a12); }

.navbar-list { margin-block-end: auto; }

.navbar-link {
  font-weight: var(--fw-700);
  padding-block: 6px;
}

.contact-link { transition: var(--transition-1); }

.contact-link:is(:hover, :focus-visible) { color: var(--cinnamon-satin); }

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--raisin-black);
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-1);
}

.overlay.active {
  pointer-events: all;
  opacity: 0.8;
}





/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  /* stretch, so .container fills the full height and can push the buttons down */
  padding-block: 176px 88px;
  background-color: var(--cultured);
}

/**
 * Every hero item is a direct child of this column. The section still fills the
 * viewport, but the content sits as one centred cluster with a tight, even
 * rhythm rather than being stretched edge to edge.
 */
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  width: 100%;
  text-align: center;
}

.hero-eyebrow {
  color: var(--cinnamon-satin);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title { max-width: none; }

.hero-text {
  font-size: var(--fs-6);
  color: var(--manatee);
  max-width: 68ch;
}

.btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* what I work with */

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* the intro, the tags and the buttons want more air between them than the
   eyebrow and title do — this rides on top of the container's flex gap */
.hero-tags,
.hero .btn-wrapper { margin-block-start: var(--hero-extra, 22px); }

.hero-tag {
  background-color: var(--white);
  border: 1px solid var(--cadet-blue-crayola_a20);
  border-radius: var(--radius-pill);
  color: var(--charcoal);
  font-size: var(--fs-8);
  font-weight: var(--fw-700);
  padding: 6px 18px;
}

/**
 * The hero is above the fold, so it animates in on load rather than using
 * [data-reveal] — that only fires for elements above innerHeight / 1.2, which
 * would leave the lower half of a full-height hero permanently invisible.
 */

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .container > * { animation: heroIn 0.75s ease both; }

.hero-eyebrow { animation-delay: 0.05s; }
.hero-title { animation-delay: 0.15s; }
.hero-text { animation-delay: 0.25s; }
.hero-tags { animation-delay: 0.35s; }
.hero .btn-wrapper { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
    .hero .container > * { animation: none; }
}





/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about .wrapper {
  display: grid;
  gap: 50px;
  margin-block-end: 70px;
}

.progress-list .label-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 4px;
}

.progress-item:not(:last-child) { margin-block-end: 16px; }

.progress {
  background-color: var(--raisin-black_a6);
  height: 6px;
  width: 100%;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill { height: inherit; }

.about-card { text-align: center; }

.about-card .card-icon {
  max-width: max-content;
  margin-inline: auto;
}

.about-card .card-title { margin-block: 16px 14px; }



/*-----------------------------------*\
  #PROJECTS
\*-----------------------------------*/

.project { border-block: 1px solid var(--cadet-blue-crayola_a20); }

.project .title-wrapper { margin-block-end: 40px; }

.project .btn { margin-block-start: 24px; }

.project .grid-list { gap: 40px; }

.project-card {
  --padding: 24px;

  display: flex;
  flex-direction: column;
  gap: var(--padding);
  border-radius: var(--radius-8);
  overflow: hidden;
}

.project-card-1,
.project-card-2,
:is(.project-card-3, .project-card-4) .card-content { padding: var(--padding); }

.project-card-1 { padding-block-end: 0; }

.project :is(.project-card-3, .project-card-4) { gap: 0; }

.project-card .card-tag {
  font-size: var(--fs-8);
  font-weight: var(--fw-700);
  text-transform: uppercase;
}

.project-card .card-title { margin-block: 16px; }

.project-card .card-text { margin-block-end: 20px; }

.project-card .btn-text {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: var(--fw-700);
  transition: var(--transition-1);
}

.project-card .btn-text:is(:hover, :focus-visible) { gap: 10px; }

.project-card .card-banner img {
  height: 367px;
  object-fit: cover;
}

.project-card-1 .card-banner {
  background-color: #f8f5fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.project-card-1 .card-banner img {
  height: 500px;
  transform: scale(1.3);
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: brightness(1.1);
  width: 100%;
}

.project-card-2 .card-banner {
  background-color: #f1f5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.project-card-2 .card-banner img {
  transform: scale(1);
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: brightness(1.1);
  width: 100%;
  height: 100%;
}





/*-----------------------------------*\
  #CERTIFICATIONS
\*-----------------------------------*/

.certifications {
  background-color: var(--white);
  border-block-end: 1px solid var(--cadet-blue-crayola_a20);
}

.certifications .title-wrapper {
  text-align: center;
  margin-block-end: 50px;
}

.certifications .grid-list {
  gap: 30px;
}

.cert-card {
  background-color: var(--white);
  padding: 32px;
  border-radius: var(--radius-8);
  box-shadow: var(--shadow-1);
  text-align: center;
  transition: var(--transition-2);
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
}

.cert-card .card-icon {
  max-width: max-content;
  margin-inline: auto;
  margin-block-end: 20px;
}

.cert-card .card-icon ion-icon {
  font-size: 52px;
  color: var(--cinnamon-satin);
}

.cert-card .card-title {
  margin-block-end: 16px;
}

.cert-card .card-text {
  margin-block-end: 24px;
  color: var(--manatee);
}

.cert-card .cert-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cinnamon-satin);
  font-weight: var(--fw-700);
  transition: var(--transition-1);
}

.cert-card .cert-link:is(:hover, :focus-visible) {
  gap: 10px;
}





/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

.contact { padding-block-end: 0; }

.contact-card {
  background-color: var(--snow);
  padding: 32px;
  border-radius: var(--radius-8);
  display: grid;
  gap: 40px;
}

.contact .section-title { margin-block-start: 20px; }

.input-field {
  background-color: var(--white);
  color: var(--black-coral);
  font-size: var(--fs-7);
  padding: 14px 18px;
  border-radius: var(--radius-6);
  outline: none;
  margin-block-end: 20px;
}

.input-field::placeholder { color: var(--manatee); }

textarea.input-field {
  min-height: 120px;
  height: 120px;
  max-height: 240px;
  resize: vertical;
}





/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer { padding-block: 40px; }

.copyright { margin-block-end: 12px; }

.copyright span { display: inline; }

.footer .social-link { color: var(--charcoal); }





/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for very small screens (320px-374px)
 */

@media (max-width: 374px) {
  
  /**
   * REUSED STYLE
   */
  
  .container {
    padding-inline: 12px;
  }
  
  .h1 { font-size: 2.8rem; }
  
  .h2 { font-size: 2.4rem; }
  
  .section-text { font-size: 1.5rem; }
  
  
  
  /**
   * HERO
   */

  .hero-text { font-size: 1.4rem; }

  .btn {
    font-size: 1.4rem;
    padding: 10px 20px;
  }
  
  
  
  /**
   * ABOUT
   */
  
  .about-card {
    padding: 20px;
  }
  
  
  
  /**
   * PROJECT
   */
  
  .project-card {
    --padding: 16px;
  }
  
  
  
  /**
   * CONTACT
   */
  
  .contact-card {
    padding: 20px;
  }
  
}



/**
 * responsive for mobile screens (375px-574px)
 */

@media (min-width: 375px) and (max-width: 574px) {
  
  /**
   * HERO
   */

}



/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {


  /**
   * REUSED STYLE
   */

  .container {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }



  /**
   * PROJECT
   */

  .project-card { --padding: 68px; }



  /**
   * CONTACT
   */

  .contact-card { padding: 68px; }

}





/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {

  /**
   * REUSED STYLE
   */

  .container { max-width: 720px; }

  .section-text { --fs-5: 2rem; }



  /**
   * ABOUT
   */

  .about .grid-list { grid-template-columns: 1fr 1fr; }



  /**
   * CERTIFICATIONS
   */

  .certifications .grid-list { grid-template-columns: 1fr 1fr; }



  /**
   * PROJECT
   */

  .project .title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
  }

  .project .btn { min-width: max-content; }



  /**
   * CONTACT
   */

  .contact .section-text { --fs-5: 1.8rem; }

  .input-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
  }



  /**
   * FOOTER
   */

  .footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .copyright { margin-block-end: 0; }

}





/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * spacing
     */

    --section-padding: 120px;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 960px; }



  /**
   * HEADER
   */

  .nav-open-btn,
  .navbar-top,
  .navbar .wrapper,
  .overlay { display: none; }

  .navbar,
  .navbar.active {
    all: unset;
    display: flex;
    flex-grow: 1;
  }

  .navbar-list {
    display: flex;
    gap: 36px;
    margin-inline: auto;
  }

  .navbar-link {
    color: var(--charcoal);
    transition: var(--transition-1);
  }

  .navbar-link:is(:hover, :focus-visible) { color: var(--cinnamon-satin); }

  .navbar .social-link {
    color: var(--charcoal);
    font-size: 1.8rem;
  }

  .header {
    top: 45px;
    max-width: 960px;
    left: 50%;
    transform: translateX(-50%);
    padding-inline: 16px;
    border-radius: var(--radius-8);
  }

  .header.active {
    top: 0;
    left: 0;
    max-width: unset;
    border-radius: 0;
  }



  /**
   * HERO
   */




  /**
   * ABOUT
   */

  .about .wrapper {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about .grid-list { grid-template-columns: repeat(4, 1fr); }



  /**
   * CERTIFICATIONS
   */

  .certifications .grid-list { grid-template-columns: repeat(3, 1fr); }



  /**
   * PROJECT
   */

  .project .grid-list {
    grid-template-columns: 1fr 1fr;
    row-gap: 50px;
  }

  .project .grid-list > li:nth-child(-n+2) { grid-column: 1 / 3; }

  .project-card-1,
  .project-card-2 {
    flex-direction: row;
    align-items: flex-end;
  }

  :is(.project-card-1, .project-card-2) .card-content { width: 33.33%; }

  :is(.project-card-1, .project-card-2) .card-banner { width: 66.66%; }

  .project-card-1 .card-content { padding-block-end: var(--padding); }

  .project-card-2 .card-content { order: 1; }



  /**
   * CONTACT
   */

  .contact-card {
    grid-template-columns: 0.8fr 1fr;
    align-items: center;
    gap: 90px;
  }

}





/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * REUSED STYLE
   */

  .container,
  .header { max-width: 1140px; }



  /**
   * ABOUT
   */

  .about .grid-list { gap: 50px; }



  /**
   * CERTIFICATIONS
   */

  .certifications .grid-list { gap: 40px; }



  /**
   * CONTACT
   */

  .contact-card { gap: 150px; }

}





/**
 * responsive for large than 1400px screen
 */

@media (min-width: 1400px) {

  /**
   * REUSED STYLE
   */

  .container,
  .header { max-width: 1320px; }



  /**
   * HERO
   */



  /**
   * ABOUT
   */

  .about .wrapper { gap: 100px; }

  .about .grid-list { gap: 60px; }



  /**
   * CERTIFICATIONS
   */

  .certifications .grid-list { gap: 50px; }

}


/*-----------------------------------*\
  #SHORT VIEWPORTS
\*-----------------------------------*/

/**
 * Laptop screens are wide but short. Tighten the hero's rhythm so the whole
 * thing — buttons included — still lands on one screen. These blocks sit last
 * on purpose: they have to win over the min-width rules above.
 */

@media (min-width: 768px) and (max-height: 900px) {

  .hero {
    padding-block: 168px 80px;
    --hero-extra: 18px;
  }

  .hero .container { gap: 42px; }

}

/* Very short windows — a 720px-tall browser, say — need a little more taken out. */

@media (min-width: 768px) and (max-height: 700px) {

  .hero {
    padding-block: 156px 64px;
    --hero-extra: 10px;
  }

  .hero .container { gap: 30px; }

}


/*-----------------------------------*\
  #PHONES
\*-----------------------------------*/

/**
 * Phones are narrow, so the paragraphs run to more lines. Tighten the rhythm
 * so the hero still lands on one screen.
 */

@media (max-width: 767px) {

  .hero {
    padding-block: 128px 60px;
    --hero-extra: 16px;
  }

  .hero .container { gap: 38px; }

}


/* Short phones (an SE-sized screen, say) — pull the hero in as far as it goes. */

@media (max-width: 767px) and (max-height: 720px) {

  .hero {
    padding-block: 100px 32px;
    --hero-extra: 4px;
  }

  .hero .container { gap: 18px; }

  .hero-text { font-size: 1.35rem; }

  .hero-tag { padding: 5px 14px; }

}

