/*
  style.css: all the styling for my portfolio.
  Order: variables → base → layout helpers → sections from top to bottom → mobile → polish.
*/


/*
*
* ==== Variables: fonts, colours, shadows used across the site ====
*/
:root {

       --heading-font: 'Fraunces', Georgia, serif;
       --body-font: 'Inter', system-ui, sans-serif;
       --shadow-project-card: 6px 6px 0 rgba(29, 42, 43, 0.85);
       --shadow-about-card: 8px 8px 0 rgba(29, 42, 43, 0.85);
       --page-background: #F1F4F7;
       --main-text: #1D2A2B;
       --muted-text: #4E5D5E;
       --card-body-text: #3C4A4B;
       --teal: #2F6B6E;
       --dark-teal: #1F4A4C;
       --light-teal-tint: #DCEAE8;
       --amber-dot: #D69E2E;
       --amber-text: #8A5A12;
       --light-amber-tint: #FBEFD9;
       --paper: #FBFCFD;
       --divider: #E8ECEF;
       --border-soft: rgba(29, 42, 43, 0.2);


       /**
       * ==== The CONTACT BLOCK + FOOTER ====
       */
       --contact-bg: rgba(16, 26, 28, 0.74);
       --contact-border: rgba(241, 244, 247, 0.28);
       --shadow-contact-card: 8px 8px 0 rgba(8, 14, 16, 0.55);
       --light-text: #F1F4F7;
       --light-muted-text: #D3DBDC;
       --light-outline: rgba(241, 244, 247, 0.6);
       --email-button: #8FC7C9;
       --email-button-text: #14201F;
 }


/*
*
* ==== Base styles: box-sizing, body, headings ====
* ==== Basically the defaults for the whole page ====
*/
*, *::before, *::after {

   box-sizing: border-box;
}

/*
* ==== WHAT: the whole page ====
* ==== DOES: removes default white gap around the edges, sets the background colour,
*       text colour and font family ====
*/
body {

   margin: 0;
   background-color: var(--page-background);
   color: var(--main-text);
   font-family: var(--body-font);
}

/*
*  ==== WHAT: ALL HEADINGS (my name, section title, project names) ====
* ==== DOES: switches them to my heading font choice (Fraunces) ====
*/
h1,h2,h3 {

   font-family: var(--heading-font);
}

/*
*  ==== WHAT: inner wrapper inside header, hero and projects ====
* ==== DOES: keeps content centered, no larger than 1160px 
* with 24px of padding on each side so doesn't touch edges ====
*/

.container {

   max-width: 1160px;
   margin-left: auto;
   margin-right: auto;
   padding-left: 24px;
   padding-right: 24px;
}


/*
* ==== WHAT: the headers row. LG and the nav links ====
* === DOES: Puts LG link in the upper left, and nav on the right
* lines up vertically and adds spaces above and below. ====
*/

.header-inner {
 
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding-top: 24px;
   padding-bottom: 24px;
   flex-wrap: wrap;
   gap: 10px;
}

/*
* ==== WHAT: the LG link in the upper left corner ====
* ==== DOES: makes it my heading font (Fraunces), bold and 24px,
*       dark text with no underline so it looks like a logo, not a link ====
*/

.logo {

   font-family: var(--heading-font);
   font-weight: 700;
   font-size: 24px;
   text-decoration: none;
   color: var(--main-text);
}

/*
* === WHAT: the list that holds my 4 menu links ====
* ==== DOES: removes bullet points, default spacing and lines the links up in a row
 with 28px between each of them ====
*/

nav ul {

   list-style: none;
   margin: 0px;
   padding: 0px;
   display: flex;
   gap: 28px;
}

/*
* ==== WHAT: the links in the nav bar (Projects, About, Resume, Contact) ====
* ==== DOES: makes them 15px, medium weight, dark text and no underline
*       so they look clean instead of default blue links ====
*/

nav a {
   
   font-size: 15px;
   font-weight: 500;
   color: var(--main-text);
   text-decoration: none;
}

/*
* ==== WHAT: the hero section (the first thing you see) ====
* ==== DOES: adds big space above and below so my name has room to breathe ====
*/

.hero {

   padding-top: 130px;
   padding-bottom: 130px;
}

/*
* ==== WHAT: my name, Lance Gomez ====
* ==== DOES: makes it huge but scales with the screen (never smaller than 80px,
*       never bigger than 136px), tightens the lines and letters,
*       and removes the default heading gap ====
*/

.hero h1 {

   font-size: clamp(80px, 10vw, 136px);
   line-height: 0.92;
   letter-spacing: -0.03em;
   margin: 0px;
}

/*
* ==== WHAT: the tagline under my name ====
* ==== DOES: makes it 26px and a bit bolder so it reads as the second
*       most important line ====
*/

.tagline {

   font-size: 26px;
   font-weight: 500;
   margin-top: 8px;
   margin-bottom: 8px;
}

/*
* ==== WHAT: the line about BCIS, MRU and my internship ====
* ==== DOES: smaller and softer grey text so it doesn't compete with the tagline,
*       and stops it from stretching too wide ====
*/

.sub-line {

   font-size: 18px;
   color: var(--muted-text);
   max-width: 600px;
   margin-top: 8px;
   margin-bottom: 8px;
}

/*
* ==== WHAT: the row holding my two hero buttons ====
* ==== DOES: puts them side by side with 16px between them
*       and space above so they don't touch the text ====
*/

.hero-buttons {

   display: flex;
   gap: 16px;
   margin-top: 24px;
} 

/*
* ==== WHAT: every button on the site (shared base) ====
* ==== DOES: turns a link into a button shape: padding, rounded corners,
*       bold text, no underline. the colours come from the classes below
        transition make its colours fade instead of instant ====
*/

.button{
   
   display: inline-block;
   padding: 12px 24px;
   border-radius: 6px;
   font-size: 16px;
   font-weight: 600;
   text-decoration: none;
   text-align: center;
   transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

/*
* ==== WHAT: the main button ("See my work") ====
* ==== DOES: teal background with white text so it stands out as the main action ====
*/

.button-filled {

   background-color: var(--teal);
   color: white;
   border: 1px solid transparent;
}  

/*
* ==== WHAT: the second button ("Resume") ====
* ==== DOES: white button with dark text and a soft thin border
*       so it's there but doesn't compete with "See my work" ====
*/

.button-outline {

   background-color: var(--paper);
   color: var(--main-text);
   border: 1px solid var(--border-soft);
}

/*
* ==== WHAT: the "Built & building" heading ====
* ==== DOES: makes it 44px with space below so the cards don't touch it ====
*/

.projects h2 {

   font-size: 44px;
   margin-bottom: 24px;
}

/*
* ==== WHAT: the & in "Built & building" ====
* ==== DOES: switches it to Inter, bold and teal so it stands out from the heading ====
*/

.amp {

   font-family: var(--body-font);
   font-weight: 600;
   color: var(--teal);
}

/*
* ==== WHAT: each project card ====
* ==== DOES: the paper look: off-white background, thin border, small corners,
*       hard shadow. also stacks everything inside top to bottom (flex column) ====
*/

.project-card {

   background-color: var(--paper);
   border: 1px solid var(--main-text);
   border-radius: 3px;
   box-shadow: var(--shadow-project-card);
   display: flex;
   flex-direction: column;
   padding: 24px;
}

/*
* ==== WHAT: the box holding all 3 project cards ====
* ==== DOES: makes a grid that fits as many 260px+ columns as the screen allows,
*       so it goes 3 → 2 → 1 columns by itself, with 20px between cards ====
*/

.project-cards {

   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
   gap: 20px;
}

/*
* ==== WHAT: the project names (This website, Baskemtball, etc.) ====
* ==== DOES: shrinks the browser's default big gap above and below the name ====
*/

.project-card h3 {

   margin-top: 16px;
   margin-bottom: 8px;
}

/*
* ==== WHAT: the paragraphs inside each card (description + tech stack) ====
* ==== DOES: removes the default top gap and keeps the spacing tight and even ====
*/

.project-card p {

   margin-top: 0px;
   margin-bottom: 16px;
}

/*
* ==== WHAT: the row of links at the bottom of each card ====
* ==== DOES: pushes the links to the bottom of the card (margin-top: auto)
*       so all 3 cards line up, and puts multiple links side by side ====
*/

.card-links {

   margin-top: auto;
   display: flex;
   gap: 16px;
}

/*
* ==== WHAT: the status row at the top of each card (dot + text) ====
* ==== DOES: puts the dot and text side by side, lined up in the middle,
*       with 8px between them, small and bold ====
*/

.status { 

   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 14px;
   font-weight: 600;
}

/*
* ==== WHAT: the little status dot on every card (shared base) ====
* ==== DOES: makes an 8px circle. the colour and ring come from
*       .in-progress .dot and .planned .dot ====
*/

.dot {

   width: 8px;
   height: 8px;
   border-radius: 50%;
}

/*
* ==== WHAT: the whole "In progress" status row ====
* ==== DOES: turns the words "In progress" dark teal to match its dot ====
*/

.in-progress {

   color: var(--dark-teal);
}

/*
* ==== WHAT: the dot on an "In progress" card ====
* ==== DOES: dark teal dot with a light teal ring around it ====
*/

.in-progress .dot {
   
   background-color: var(--teal);
   box-shadow: 0 0 0 3px var(--light-teal-tint);
}

/*
* ==== WHAT: the whole "Planned" status row ====
* ==== DOES: turns the word "Planned" amber to match its dot ====
*/

.planned {

   color: var(--amber-text);
}

/*
* ==== WHAT: the dot on a "Planned" card ====
* ==== DOES: amber dot with a light amber ring around it ====
*/

.planned .dot {
   
   background-color: var(--amber-dot);
   box-shadow: 0 0 0 3px var(--light-amber-tint);
}

/*
* ==== WHAT: the tech stack line on each card (HTML · CSS · JavaScript) ====
* ==== DOES: smaller and muted grey so it reads as extra info, not the main text ====
*/

.project-card .tech-stack {

   font-size: 14px;
   color: var(--muted-text);
   margin-top: 8px;
   margin-bottom: 8px;
}

/*
* ==== WHAT: the links on the cards (View code, Live demo) ====
* ==== DOES: small, bold, dark teal and no underline so they look like
*       clean text links instead of buttons ====
*/

.card-link {
   
   font-size: 14px;
   font-weight: 600;
   color: var(--dark-teal);
   text-decoration: none;
}

/*
* ==== WHAT: the "Coming soon" text on the Baskemtball card ====
* ==== DOES: makes it muted grey so it doesn't look clickable like the real links ====
*/

.disabled {

   color: var(--muted-text);
}

.photo-wrap {

   background-image: url("images/rockies-ten-peaks.jpg");
   background-size: cover;
   background-position: center 70%;
}

.fade {

   height: 160px;
   background: linear-gradient(to bottom, var(--page-background), transparent);
}

.projects {

   padding-top: 110px;
   padding-bottom: 110px;
}

/*
* ==== WHAT: the about section (the band that holds the about card) ====
* ==== DOES: adds a big empty space below the card so the peaks
*       in the photo can show through ====
*/

.about {

   padding-bottom: 380px;
}

/*
* ==== WHAT: the about card itself ====
* ==== DOES: the paper look like my project cards but with the bigger shadow.
*       max-width stops the text lines from getting too long to read ====
*/

.about-card {

   background-color: var(--paper);
   color: var(--card-body-text);
   border: 1px solid var(--main-text);
   border-radius: 3px;
   box-shadow: var(--shadow-about-card);
   padding: 36px;
   /* max-width: 720px; */
}

/*
* ==== WHAT: the top row of the card (my photo + "About me" + location) ====
* ==== DOES: puts my photo on the left and the text beside it,
*       lined up in the middle with space between ====
*/

.about-heading {

   display: flex;
   align-items: center;
   gap: 18px;
   margin-bottom: 20px;
}

/*
* ==== WHAT: the "About me" title and location line in the heading row ====
* ==== DOES: removes the default gaps so they sit tight together ====
*/

.about-heading h2 {

   margin: 0;
   font-size: 34px;
   color: var(--main-text);
}

.about-heading p {

   margin: 0;
   color: var(--muted-text);
}

/*
* ==== WHAT: my about paragraph ====
* ==== DOES: stops the lines at 680px so they're easy to read,
*       and adds more space between lines ====
*/

.about-paragraph {

   max-width: 680px;
   line-height: 1.6;
}

/*
* ==== WHAT: my round photo in the top left of the card ====
* ==== DOES: makes it an 84px circle with a thin dark border.
*       object-fit crops the photo to fill the circle instead of squishing it ====
*/

.round-photo {

   width: 84px;
   height: 84px;
   border-radius: 50%;
   border: 1px solid var(--main-text);
   object-fit: cover;
}

/*
* ==== WHAT: the small titles "I work with" and "Off the clock" ====
* ==== DOES: small, bold, spaced out, uppercase and grey so they read as labels.
*       font-family switches it back to Inter since h3s are Fraunces by default ====
*/

.label {

   font-family: var(--body-font);
   font-size: 13px;
   font-weight: 600;
   letter-spacing: 0.06em;
   text-transform: uppercase;
   color: var(--muted-text);
   margin-top: 20px;
   margin-bottom: 8px;
}

/*
* ==== WHAT: my list of skills (SQL, PHP, JavaScript...) ====
* ==== DOES: removes the bullets and default spacing, puts them in a row
*       and lets them wrap to a new line on small screens ====
*/

.skills {

   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
   flex-wrap: wrap;
}

/*
* ==== WHAT: the teal dots between my skills ====
* ==== DOES: adds a teal · after every skill except the last one, so when the list
*       wraps the dot stays at the end of the line instead of starting the next one
*       (:not(:last-child) means "every li except the last one") ====
*/

.skills li:not(:last-child)::after {

   content: "·";
   color: var(--teal);
   margin-left: 8px;
   margin-right: 8px;
}

/*
* ==== WHAT: my list of hobbies (with the icons) ====
* ==== DOES: same as skills: no bullets, in a row, wraps on small screens,
*       with bigger gaps between each hobby ====
*/

.hobbies {

   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
   flex-wrap: wrap;
   gap: 10px 22px;
}

/*
* ==== WHAT: each hobby (icon + text) ====
* ==== DOES: puts the icon and the words side by side, lined up in the middle ====
*/

.hobbies li {

   display: flex;
   align-items: center;
   gap: 7px;
}

/*
* ==== WHAT: the hobby icons ====
* ==== DOES: shrinks them to 18px and makes them teal
*       (works because the icons use currentColor) ====
*/

.hobbies svg {

   width: 18px;
   height: 18px;
   color: var(--teal);
   flex-shrink: 0;
}

/*
* ==== WHAT: the "Full skills & experience on my resume" link ====
* ==== DOES: dark teal and bold with no underline, plus space above
*       so it doesn't touch the hobbies ====
*/

.about-link {

   display: inline-block;
   margin-top: 24px;
   color: var(--dark-teal);
   font-weight: 600;
   text-decoration: none;
}

/*
* ==== WHAT: the contact section (the band that holds the contact card) ====
* ==== DOES: adds a small space below so the footer isn't glued to the card ====
*/

.contact {

   padding-bottom: 20px;
}

/*
* ==== WHAT: the "Looking for my next crew" card ====
* ==== DOES: dark see-through box on the photo (no blur) with a thin light border
*       and a dark hard shadow. flex puts the text on the left and buttons on the right,
*       and wraps them on small screens ====
*/

.contact-card {

   background-color: var(--contact-bg);
   border: 1px solid var(--contact-border);
   border-radius: 3px;
   box-shadow: var(--shadow-contact-card);
   padding: 48px;
   color: var(--light-text);
   display: flex;
   justify-content: space-between;
   align-items: flex-end;
   flex-wrap: wrap;
   gap: 32px;
}

/*
* ==== WHAT: the heading + paragraph side of the contact card ====
* ==== DOES: stops the text from stretching too wide ====
*/

.contact-text {

   max-width: 640px;
}

/*
* ==== WHAT: the "Looking for my next crew" heading ====
* ==== DOES: big light text with no default gap ====
*/

.contact-card h2 {

   margin: 0;
   font-size: 44px;
   line-height: 1.1;
   color: var(--light-text);
}

/*
* ==== WHAT: the straw hat at the end of the heading ====
* ==== DOES: sizes it, adds a small gap after "crew",
*       and nudges it down so it sits on the text line like a period would ====
*/

.straw-hat {

   width: 46px;
   height: 28px;
   margin-left: 8px;
   vertical-align: -2px;
}

/*
* ==== WHAT: the span holding "crew" + the straw hat ====
* ==== DOES: stops the line from breaking inside it, so the hat
*       never ends up alone on its own line ====
*/

.no-break {

   white-space: nowrap;
}

/*
* ==== WHAT: the paragraph under the heading ====
* ==== DOES: softer light grey so it doesn't compete with the heading,
*       with comfy line spacing ====
*/

.contact-card p {

   margin-top: 12px;
   margin-bottom: 0;
   font-size: 17px;
   line-height: 1.6;
   color: var(--light-muted-text);
}

/*
* ==== WHAT: the row holding my contact buttons ====
* ==== DOES: puts them side by side with 12px between them
*       and lets them wrap on small screens ====
*/

.contact-buttons {

   display: flex;
   flex-wrap: wrap;
   gap: 12px;
}

/*
* ==== WHAT: the "Email me" button ====
* ==== DOES: light teal with dark text so it stands out as the main action
*       on the dark card. transparent border keeps it the same height as the others ====
*/

.button-email {

   background-color: var(--email-button);
   color: var(--email-button-text);
   border: 1px solid transparent;
}

/*
* ==== WHAT: the LinkedIn and GitHub buttons ====
* ==== DOES: see-through with light text and a thin light border
*       so they're there but quieter than "Email me" ====
*/

.button-light-outline {

   background-color: transparent;
   color: var(--light-text);
   border: 1px solid var(--light-outline);
}

/*
* ==== WHAT: the footer (the band at the very bottom) ====
* ==== DOES: leaves a bit of the photo showing below the footer strip ====
*/

.site-footer {

   padding-bottom: 40px;
}

/*
* ==== WHAT: the footer strip (copyright + photo credit) ====
* ==== DOES: same dark see-through style as the contact card,
*       copyright on the left, photo credit on the right, small light text ====
*/

.footer-strip {

   background-color: var(--contact-bg);
   border: 1px solid var(--contact-border);
   border-radius: 3px;
   padding: 14px 20px;
   display: flex;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 12px;
   font-size: 14px;
   color: var(--light-muted-text);
}

/*
* ==== WHAT: the two lines of text in the footer strip ====
* ==== DOES: removes the default paragraph gaps so the strip stays slim ====
*/

.footer-strip p {

   margin: 0;
}

/*
* ==== WHAT: mobile styles (screens 600px wide or smaller) ====
* ==== DOES: everything inside only kicks in on phones. it overrides the desktop
*       rules above because it comes later in the file. only the things that
*       change are written here ====
*/

@media (max-width: 600px) {

   /*
   * ==== WHAT: the nav links on mobile ====
   * ==== DOES: lets them wrap to a second row if they don't fit,
   *       with smaller gaps (8px between rows, 20px between links) ====
   */

   nav ul {

      flex-wrap: wrap;
      gap: 8px 20px;
   }

   /*
   * ==== WHAT: the hero on mobile ====
   * ==== DOES: cuts the big 130px space down so my name isn't halfway down the screen ====
   */

   .hero {

      padding-top: 72px;
      padding-bottom: 72px;
   }

   /*
   * ==== WHAT: the tagline and sub-line on mobile ====
   * ==== DOES: shrinks them so the tagline fits in 2 lines instead of 3 ====
   */

   .tagline {

      font-size: 21px;
   }

   .sub-line {

      font-size: 16px;
   }

   /*
   * ==== WHAT: the hero buttons on mobile ====
   * ==== DOES: lets the second button drop to a new line on really small screens ====
   */

   .hero-buttons {

      flex-wrap: wrap;
   }

   /*
   * ==== WHAT: the projects section on mobile ====
   * ==== DOES: less space above and below, and a smaller "Built & building" heading ====
   */

   .projects {

      padding-top: 72px;
      padding-bottom: 72px;
   }

   .projects h2 {

      font-size: 34px;
   }

   /*
   * ==== WHAT: the about section on mobile ====
   * ==== DOES: smaller gap below the card (still shows the peaks, less scrolling),
   *       less padding inside the card so the text has room, smaller heading ====
   */

   .about {

      padding-bottom: 220px;
   }

   .about-card {

      padding: 24px;
   }

   .about-heading h2 {

      font-size: 28px;
   }

   /*
   * ==== WHAT: the contact card on mobile ====
   * ==== DOES: less padding inside and a smaller heading so it fits in 2 lines ====
   */

   .contact-card {

      padding: 28px;
   }

   .contact-card h2 {

      font-size: 32px;
   }

   /*
   * ==== WHAT: the row holding my contact buttons on mobile ====
   * ==== DOES: makes the row as wide as the card so the buttons
   *       inside can stretch all the way across ====
   */

   .contact-buttons {

      width: 100%;
   }

   /*
   * ==== WHAT: the contact buttons on mobile ====
   * ==== DOES: makes each button stretch the full width of the card
   *       so they stack neatly and are easy to tap
   *       (flex: 1 1 100% means grow, shrink, and start at full width) ====
   */

   .contact-buttons .button {

      flex: 1 1 100%;
   }
}

/*
* ==== WHAT: text links when hovered or tabbed to (nav, LG, card links, about link) ====
* ==== DOES: brings the underline back so it's clear they're clickable.
*       offset pushes the line down so it doesn't hug the letters ====
*/

nav a:hover,
nav a:focus-visible,
.logo:hover,
.logo:focus-visible,
.card-link:hover,
.card-link:focus-visible,
.about-link:hover,
.about-link:focus-visible {

   text-decoration: underline;
   text-underline-offset: 4px;
}

/*
* ==== WHAT: "See my work" when hovered or tabbed to ====
* ==== DOES: darkens the teal so the button reacts ====
*/

.button-filled:hover,
.button-filled:focus-visible {

   background-color: var(--dark-teal);
}

/*
* ==== WHAT: "Resume" when hovered or tabbed to ====
* ==== DOES: darkens the soft border to full dark ====
*/

.button-outline:hover,
.button-outline:focus-visible {

   border-color: var(--main-text);
}

/*
* ==== WHAT: the "Email me" button when hovered or tabbed to ====
* ==== DOES: makes the light teal a bit lighter so it reacts
*       without losing its look on the dark card ====
*/

.button-email:hover,
.button-email:focus-visible {

   background-color: #A9D6D8;
}

/*
* ==== WHAT: the LinkedIn and GitHub buttons when hovered or tabbed to ====
* ==== DOES: makes the border fully solid and adds a faint white background
*       so the button lights up a little but stays see-through ====
*/

.button-light-outline:hover,
.button-light-outline:focus-visible {

   border-color: var(--light-text);
   background-color: rgba(241, 244, 247, 0.1);
}

a:focus-visible {
   outline: 2px solid var(--teal);
   outline-offset: 3px;
}

.contact-card a:focus-visible {
   outline: 2px solid var(--light-teal-tint);
   outline-offset: 3px;
}

/*
* ==== WHAT: scroll reveal on the about card ====
* ==== DOES: the card fades in and rises up as I scroll to it.
*       only runs if the person hasn't turned on "reduce motion"
*       and only in browsers that support scroll-driven animations ====
*/

@media (prefers-reduced-motion: no-preference) {

   @supports (animation-timeline: view()) {

      /*
      * ==== WHAT: the rise-in animation ====
      * ==== DOES: starts invisible and 40px lower, ends fully visible in place ====
      */

      @keyframes rise-in {

         from {
            opacity: 0;
            transform: translateY(40px);
         }

         to {
            opacity: 1;
            transform: translateY(0);
         }
      }

      /*
      * ==== WHAT: the about card with the animation ====
      * ==== DOES: plays rise-in based on scroll position instead of time.
      *       it starts when the card enters the screen and finishes
      *       when the card is 30% of the way in ====
      */

      .about-card {

         animation: rise-in linear both;
         animation-timeline: view();
         animation-range: entry 0% cover 30%;
      }
   }
}