:root {
    --white:#fffafa;
    --black: #191919;
    --lilac: #d9beff;
    --light-green:#d1ffee;
    --darker-green: #47e5bc;
    --pink: #ff0054;
    --royal-blue: #0060df;
    --pool-blue:#656BD6;
    --aquamarine:#47E5BC;  
    --orange:  #ffca80;
    --dot-color: rgba(0, 0, 0, 0.1);
    --line-color: #fffafa;
    --dark-shadow:#191919;
}


/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain) */

   html, body, div, span, applet, object, iframe,
   h1, h2, h3, h4, h5, h6, p, blockquote, pre,
   a, abbr, acronym, address, big, cite, code,
   del, dfn, em, img, ins, kbd, q, s, samp,
   small, strike, strong, sub, sup, tt, var,
   b, u, i, center,
   dl, dt, dd, ol, ul, li,
   fieldset, form, label, legend,
   table, caption, tbody, tfoot, thead, tr, th, td,
   article, aside, canvas, details, embed, 
   figure, figcaption, footer, header, hgroup, 
   menu, nav, output, ruby, section, summary,
   time, mark, audio, video {
       margin: 0;
       padding: 0;
       border: 0;
       font-size: 100%;
       font: inherit;
       vertical-align: baseline;
   }

   /* HTML5 display-role reset for older browsers */
   article, aside, details, figcaption, figure, 
   footer, header, hgroup, menu, nav, section {
       display: block;
   }

   body {
       line-height: 1;
   }

   ol, ul {
       list-style: none;
   }

   blockquote, q {
       quotes: none;
   }

   blockquote:before, blockquote:after,
   q:before, q:after {
       content: '';
       content: none;
   }

   table {
       border-collapse: collapse;
       border-spacing: 0;
   }
   
   /* ====== BOX SIZING ====== */
   html {
        box-sizing: border-box;
    }
    
    *, *:before, *:after {
       box-sizing: inherit;
    }  

    /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
    @media (prefers-reduced-motion: reduce) {
        html:focus-within {
            scroll-behavior: auto;
    }
  
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
      }
    } 
        
    /* ====================== BASIC STYLE ====================== */ 
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }

    /* Basic style */
    body {
        width: 100%;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
        font-family: "Oswald", "sans-serif"; 
        background-color: var(--light-green);
        color: var(--black);
        line-height: 1.5;
    }
  
    /* HEADINGS  */
    h1 {
      font-family: "Oswald", "sans-serif";
      font-size: 3rem;
      color: var(--pink);
      font-weight: bold;
    }

    h2 {
        font-family: "Oswald", "sans-serif";
        font-size: 2.5rem;
        color: var(--color-2);
        font-weight: bold;
    }

    h3 {
        font-family: "Oswald", sans-serif;
        font-size: 2.3rem;
        color: var(--black);
        font-weight: bolder;
        text-transform: uppercase;
    }
    
    h4 {
       font-family: "Oswald", "sans-serif";
       font-size: 1.75rem;
       color: var(--pink);
       font-weight: bold;
    }

    h5, h6 {
        font-family: "Source Sans 3", "sans-serif";
        font-size: 1.3rem;
        color: var(--pool-blue);
        font-weight: bold;
        padding-top: 1em;
     }

    p, li {
        font-family: "Source Sans 3", sans-serif;
        font-size: 1.5rem;
        color: var(--black);
    }

    em {
        font-weight: bold;
        text-decoration: underline;
        text-decoration-color: var(--aquamarine);
        text-underline-offset: -0.15em;
        text-decoration-thickness: 0.5em;
        text-decoration-skip-ink: none; 
    } 

    label {
        font-family: "Source Sans 3", sans-serif;
        font-size: 1.5rem;
    }

    /* ===============================   BASIC STYLE FOR LINKS  ===============================================*/
    a {
        display: inline-block;          /* Ensure proper spacing */
        padding: 0.25em;                /* Add padding to create room for the background */
        font-family: "Source Sans 3", sans-serif;
    }

    a:link, a:visited, a:active {
        text-decoration: none;	                   /* to delete underline of links */  
        color: var(--pool-blue);			          /* link color*/
        font-weight: bold;
    }

    a:hover {
        text-decoration: none;	                   /* to delete underline of links */  
        color: var(--pink);			               /* link color when hover*/
    }

    a:focus-visible {
        text-decoration: none;	                   /* to delete underline of links */  
        outline: none;
        background-color: #E8DAD1;  		/*adds background colour when using keyboard */	
        border-radius: 5px;
        border: 2px solid var(--royal-blue);
    }

    nav ul li {
        white-space:nowrap;
    }

    /* ===============================   HEADER  ===============================================*/
    .header-wrapper {
        background-color: var(--white);
    }
    
    header {
        display: block;
        width: 90%;
        margin:0 auto;
        top: 0;
        padding: 1em;
        background-color: var(--white);
    }

    @media (min-width: 768px) {
        .header {
           width: 80%; 
        }
    }
   
    header h1 {                                 
        font-size: 2rem; /*overwrites*/
        font-weight: bolder;
        color: var(--pink);
        white-space: nowrap;
    }

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

    .header-flex nav {
        display: flex;
        align-items: center;
        gap: 1rem;
    }  

    .nav-wrapper {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

/* ===============================   NAV  ===============================================*/
    /* Hamburger toggle styling */
    #nav-toggle {
        display: none;
    }

    .tog-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background-color: var(--pink);
        color: var(--black);
        padding: 0.75em;
        border-radius: 12px;
        border: 3px solid var(--black);
        box-shadow: 8px 8px 0 var(--dark-shadow);
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .tog-button:hover {
        transform: translate(2px, 2px);
        box-shadow: 3px 3px 0 var(--dark-shadow);
    } 

    .icon-burger {
        position: relative;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }

    .icon-burger span {
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--white);
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
        display: block;   
    }

    .line-top {
        top: 0;
    }

    .line-mid {
        top: 50%;
        transform: translateY(-50%);
    }

    .line-bot {
        bottom: 0;
    }

    /* icon transformation when toggled to X*/
    #nav-toggle:checked ~ .tog-button .icon-burger .line-top {
        transform: rotate(45deg);
        top: 9px;
    }

    #nav-toggle:checked ~ .tog-button .icon-burger .line-mid {
        opacity: 0;
    }

    #nav-toggle:checked ~ .tog-button .icon-burger .line-bot {
        transform: rotate(-45deg);
        bottom: 8px;
    }

    nav {
        position: relative;
        overflow: visible;
    }

    /* Menu styling - mobile first */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0; 
        margin-right: 1em;
        width: auto;
        min-width: 200px;
        max-width: calc(100vw - 2em);
        max-height: 0;
        overflow: hidden;                 /* hides menu when not checked */
        transition: height 0.3s ease;     /* smooth transition */
        padding-top: 3em;                 /* place menu at the top of the page */
    }

    #nav-toggle:checked ~ .nav-menu {
        max-height: 100vh;
        padding: 1em; 
        margin-top: 1em;
        background-color: var(--white);
        border-radius: 12px;
        border: 3px solid var(--black);
        box-shadow: 8px 8px 0 var(--dark-shadow);
        transition: all 0.2s ease;
        cursor: pointer;                    
    }

    .nav-menu li {   /* drop-down menu */
        text-align: left;
        padding: 0.25em;
        width: 100%;
    }

    .nav-menu a {
        display: block; /* links full width */
    }

    /* =========================== Theme Switcher  ======================================= */
    .theme {
        display: flex;
        align-items: center;
    }
    
    .color-picker input[type="radio"] {              /* Oculta Radio */
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    } 

    .dropdown-toggle {          /*oculta input*/
        display: none;
    }

    .dropdown .select {     /*oculta menu*/
        display: none;
    }

    .contain-button {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        font-weight: bold;
        background-color: var(--pink);
        color: var(--white);
        padding: 0.6em;
        border-radius: 12px;
        border: 3px solid var(--black);
        box-shadow: 8px 8px 0 var(--dark-shadow);
        transition: all 0.2s ease;
        cursor: pointer;
    }

   label[for="dropdown-toggle"] {
        font-size: 1rem;
    }

    .contain-button:hover {
        transform: translate(2px, 2px);
        box-shadow: 3px 3px 0 var(--dark-shadow);        
    }

    .contain-button a {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
    }

    .dropdown-toggle:checked ~ .select {
        display: block;  
    }

    .select {                         /*estilo del menu desplegable */
        display: none;
        position: absolute;
        right: 0;
        margin-right: 1em;
        padding: 0.5em;
        min-width: 160px;
        z-index: 1;
        margin-top: 1em;
        background-color: var(--white);
        border-radius: 12px;
        border: 3px solid var(--black);
        box-shadow: 8px 8px 0 var(--dark-shadow);
        transition: all 0.2s ease;
        cursor: pointer; 
    }

    @media (min-width: 768px) {
        .select {
            right: auto;
            margin-right: 0;
        }
    }

    .theme-label {
        display: block;
        padding: 0.5em;   /* espacio entre palabras */
        color: var(--pool-blue);			          /* link color*/
        font-weight: bold;
    }

    .theme-label:hover {
        display: inline-block; 
        color: var(--pink);   
    }

    /* =========================== Progressive enhancement ======================================= */
    .Autumn {
        --white: #FFEBEB;
        --black: #191919; 
        --lilac: #947661;
        --light-green: #EB9A5C;
        --darker-green: #47e5bc;
        --pink: #B83729;
        --royal-blue: #64B6AC;
        --pool-blue:#656BD6;
        --aquamarine:#F19406;  
        --orange: #F0FFCE;
        --dot-color: rgba(0, 0, 0, 0.1);
        --line-color: #AE9684;
        --dark-shadow:#512300;
    }

    .summer {
        --white: #f0efeb;
        --black: #191E24; 
        --lilac: #ffc971;
        --light-green: #B0EAF6;
        --darker-green: #FF0044;
        --pink: #0B7DFE;
        --royal-blue: #ff4e00;
        --pool-blue:#656BD6;
        --aquamarine:#B0E298;  
        --orange: #FFE169;
        --dot-color: rgba(0, 0, 0, 0.1);
        --line-color: #FFD899;
        --dark-shadow: #0156B7;
    }

    .spring {
        --white: #f0efeb;
        --black: #191E24; 
        --lilac: #84ACCE;
        --light-green: #ffc9b9;
        --darker-green: #8D6A9F;
        --pink: #17A454;
        --royal-blue: #9b5de5;
        --pool-blue:#656BD6;
        --aquamarine:#B0E298;  
        --orange: #d68c45;
        --dot-color: rgba(0, 0, 0, 0.1);
        --line-color: #A7C4DC;
        --dark-shadow: #2c6e49;
    }
    .winter {
        --white: #edf2fb;
        --black: #191E24; 
        --lilac: #d7e3fc;
        --light-green: #bbdefb ;
        --darker-green: #9d4edd;
        --pink: #2081c3;
        --royal-blue: #9b5de5;
        --pool-blue:#656BD6;
        --aquamarine: #D77AE1;  
        --orange: #64b5f6;
        --dot-color: rgba(0, 0, 0, 0.1);
        --line-color: #ECF2FE;
        --dark-shadow: #101935;
    }

    .dark {
        --white:#191E24;
        --black: #F3F6F4; 
        --lilac: #3e454f;
        --light-green: #212730;
        --darker-green: #47e5bc;
        --pink: #ff0054;
        --royal-blue: #0060df;
        --pool-blue:#656BD6;
        --aquamarine:#0F6B51;  
        --orange:  #29323D;
        --dot-color: rgba(0, 0, 0, 0.1);
        --line-color: #29313D;
        --dark-shadow:#B4B4B4;
    }

    :root:has(#Autumn:checked) {
        --white: #FFEBEB;
        --black: #191919; 
        --lilac: #947661;
        --light-green: #EB9A5C;
        --darker-green: #47e5bc;
        --pink: #B83729;
        --royal-blue: #64B6AC;
        --pool-blue:#656BD6;
        --aquamarine:#F19406;  
        --orange: #F0FFCE;
        --dot-color: rgba(0, 0, 0, 0.1);
        --line-color: #AE9684;
        --dark-shadow:#512300;
    }
    
    :root:has(#summer:checked) {
        --white: #f0efeb;
        --black: #191E24; 
        --lilac: #ffc971;
        --light-green: #B0EAF6;
        --darker-green: #FF0044;
        --pink: #0B7DFE;
        --royal-blue: #ff4e00;
        --pool-blue:#656BD6;
        --aquamarine:#B0E298;  
        --orange: #FFE169;
        --dot-color: rgba(0, 0, 0, 0.1);
        --line-color: #FFD899;
        --dark-shadow: #0156B7;
    }
    
    :root:has(#spring:checked) {
        --white: #f0efeb;
        --black: #191E24; 
        --lilac: #84ACCE;
        --light-green: #ffc9b9;
        --darker-green: #8D6A9F;
        --pink: #17A454;
        --royal-blue: #9b5de5;
        --pool-blue:#656BD6;
        --aquamarine:#B0E298;  
        --orange: #d68c45;
        --dot-color: rgba(0, 0, 0, 0.1);
        --line-color: #A7C4DC;
        --dark-shadow: #2c6e49;
    }

    :root:has(#winter:checked) {
        --white: #edf2fb;
        --black: #191E24; 
        --lilac: #d7e3fc;
        --light-green: #bbdefb ;
        --darker-green: #9d4edd;
        --pink: #2081c3;
        --royal-blue: #9b5de5;
        --pool-blue:#656BD6;
        --aquamarine: #D77AE1;  
        --orange: #64b5f6;
        --dot-color: rgba(0, 0, 0, 0.1);
        --line-color: #ECF2FE;
        --dark-shadow: #101935;
    }
    
    :root:has(#dark:checked) {
        --white:#191E24;
        --black: #F3F6F4; 
        --lilac: #3e454f;
        --light-green: #212730;
        --darker-green: #47e5bc;
        --pink: #ff0054;
        --royal-blue: #0060df;
        --pool-blue:#656BD6;
        --aquamarine:#0F6B51;  
        --orange:  #29323D;
        --dot-color: rgba(0, 0, 0, 0.1);
        --line-color: #29313D;
        --dark-shadow:#B4B4B4;
    }




/* ===============================   SECTIONS  ===============================================*/

/* =====================   Basic for all sections ==============================*/
    .content01, .content02, .content03, .content04, .content05, .section02-container  {
        width: 80%;
        margin: 0 auto;
    }

    @media (min-width: 768px) {
        .content01, .content02, .content03, .content04, .content05, .section02-container {
            width: 70%;
            margin: 0 auto;
        }
    }

/* =====================   SECTION TWO - ABOUT ME ==============================*/
    .two {
        display: block;
        padding: 2em 1em;
        background-color: var(--light-green);
    }

    .sec02-grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    @media (min-width: 768px) {
        .sec02-grid {
            grid-template-columns: 1fr 3fr;
        }
    }

    .s02-cont-item {
        width: 100%;
    }

    .am-txt-cont {
        padding: 1em;
        background-color: var(--white);
        border: 2px solid var(--black);
        box-shadow: 8px 8px 0 var(--darker-green);
        transition: all 0.2s ease;
        border-radius: 10px;
    }

/* ============================= SECTION 3 - PROJECTS =============================== */
    .three {
        display: block;
        background-color: var(--orange);
        --mask:
            radial-gradient(38.42px at 50% 54px,#000 99%,#0000 101%) calc(50% - 48px) 0/96px 51% repeat-x,
            radial-gradient(38.42px at 50% -30px,#0000 99%,#000 101%) 50% 24px/96px calc(51% - 24px) repeat-x,
            radial-gradient(38.42px at 50% calc(100% - 54px),#000 99%,#0000 101%) 50% 100%/96px 51% repeat-x,
            radial-gradient(38.42px at 50% calc(100% + 30px),#0000 99%,#000 101%) calc(50% - 48px) calc(100% - 24px)/96px calc(51% - 24px) repeat-x;
        -webkit-mask: var(--mask);
        mask: var(--mask);
    }

    .content03 {
        max-width: 80%;
        padding: 6em 0;
    }

    .grid {
        display: grid; 
        grid-template-columns: 1fr; /* mobile first */
        grid-auto-rows: 1fr;
        gap: 2rem; 
        padding-bottom: 2em;     /* to keep space with the footer */ 
        padding-top: 1em;
    }

    .card {
        display: flex;
        width: 100%;
        background-color: var(--white);
        border: 4px solid var(--black);
        box-shadow: 8px 8px 0 var(--dark-shadow);
        transition: all 0.2s ease;
        border-radius: 4px;
    }

    @media (min-width: 768px) {
        .card {
            width: 50%;
        }
    }
    
    .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(100%);
        border-bottom: 4px solid var(--black);
    }

    .card-img img:hover {
       filter: none; 
    }

    .card-title, .card-txt {
        padding: 1em;
    } 

    .card-txt a {
        margin: 0.5em 0;
        padding: 0.25em 1em;
        background-color: var(--royal-blue);
        color: var(--white);
        border-radius: 10px;
        font-size: 1.2rem;
    }

     @media only screen and (min-width: 700px) {
        .grid {
          grid-template-columns: repeat(3, 1fr);
        }

        .card {
            width: 100%; 
        }
     }

            
    /* ==================== SECTION 4 - WHAT I DO ====================== */
    .four {
        display: block;
        background-color: var(--light-green);
        background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
        background-size: 20px 20px;
    }

    .content04 {                /*Adjust line width  of section*/
      padding: 2em 0;
      min-height: 80vh;
    } 

    .s04-grid {
        padding: 1.3em 0;
        display: grid;
        grid-template-columns: 1fr;
    }

    @media (min-width: 768px) {
        .s04-grid {
            grid-template-columns: 1fr 1fr;
            gap: 40px;
        }
    }

    .s04-grid-child {
        padding: 1em;
        margin-top: 2em;
        background-color: var(--white);
        border: 2px solid var(--black);
        box-shadow: 8px 8px 0 var(--darker-green);
        transition: all 0.2s ease;
        border-radius: 10px;
    }
    

    /* ==================== BACK TO TOP ====================== */
    .back-to-top {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        z-index: 9999;                  
        display: inline-block;
        text-decoration: none;
    }

    .back-to-top svg {
        width: 40px;
        height: 40px;
        fill: var(--pink);
    }
      
    .back-to-top span {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    /* ==================== FOOTER ====================== */
    footer {
        background-color: var(--dark-shadow);
    }  

    .content05 {
        padding: 3em 0;
    }
    
    footer h3 {
        font-size: 4em;
        color: var(--white);
    }

    .grid-five {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 70%;
    }

    .g5-item img {
        width: 2em;
        height: auto;
    }

    .g5-item a {
        color: var(--orange);
        font-size: 1rem;
    }

    .g5-item a:hover {
        color: var(--pink);
    }

    footer li {
        display: inline; 
        font-weight: bold;
        color: var(--white);
    }


 
 /* ===============================  HERO  ===============================================*/
  .one {
        background-color: var(--lilac);
        background-image: 
            linear-gradient(var(--line-color) 1px, transparent 1px),
            linear-gradient(90deg, var(--line-color) 1px, transparent 1px);
        background-size: 20px 20px;
    }

    .content01 {
        padding: clamp(1rem, 3vw, 2rem);
    }

    .hero-section {
        line-height: 1.2; 
    }

    .box01-container {
        display: flex;
        align-items: center;
        gap: clamp(10px, 2vw, 20px);
    }

    .box01 { 
        font-family: "Playwrite DE SAS", cursive;
        font-size: clamp(1rem, 2vw, 1.5rem);
        /* white-space: nowrap; */
    }

    .box-line {
        flex: 1;
        height: clamp(2px, 0.3vw, 4px);
        background-color: var(--black);
    }

    .box02 { 
        font-family: "Oswald", sans-serif;
        font-size: clamp(1.5rem, 4vw, 3rem);
        margin-left: clamp(5%, 30vw, 20%);
        margin-top: clamp(0.25rem, 1vw, 0.5rem);
    }

    .box03 { 
        font-family: "Oswald", sans-serif;
        text-transform: uppercase;
        /* text-shadow: -0.03em 0 red,  0.03em 0 cyan;  */
        text-shadow: -0.03em 0 #ff8ac5,  0.03em 0 #9059ff; 
        font-size: clamp(3rem, 12vw, 10rem);
        font-weight: 700;
        letter-spacing: -0.02em;
        line-height: 0.9;
    }

    .box04 { 
        font-family: "Oswald", sans-serif;
        font-size: clamp(1.5rem, 4vw, 3rem);
        margin-left: clamp(30%, 50vw, 70%);
        /* white-space: nowrap; */
    }

    .box05-container {
            display: flex;
            align-items: center;
            gap: clamp(10px, 2vw, 20px);
            margin-top: clamp(1rem, 2vw, 1.5rem);
    }
        
    .box05 {
        font-family: "Source Sans 3", sans-serif;
        font-weight: 900;
        font-size: clamp(1.25rem, 3vw, 2rem);
        /* white-space: nowrap; */
    }
        
    .box05 em {
        font-style: normal;
        padding: 0 0.3em;
    }
    
    .box06 {
        font-family: "Source Sans 3", sans-serif;
        font-weight: 700;
        font-size: clamp(1.25rem, 3vw, 2rem);
        text-align: right;
        margin-top: clamp(0.25rem, 1vw, 0.5rem);
    }

         @media (max-width: 640px) {
            .box02 {
                margin-left: 10%;
            }
            
            .box04 {
                margin-left: 20%;
                margin-top: -0.25rem;
            }
            
            .box03 {
                line-height: 0.85;
            }
        }
        
        /* Tablet optimization */
        @media (min-width: 641px) and (max-width: 1024px) {
            .box02 {
                margin-left: 25%;
            }
            
            .box04 {
                margin-left: 50%;
            }
        }
        
        /* Large desktop optimization */
        @media (min-width: 1024px) {
            .content01 {
                padding: 3rem;
            }
            
            .box03 {
                font-size: 14rem;
            }

             .box01 { 
                white-space: nowrap;
            }
            .box04 { 
                white-space: nowrap;
            }
             .box05 {
                white-space: nowrap;
            }
        }