/* RESET */
@import url(variables.css);

@import url(reset.css);
  
  body {
    background: var(--gradient-background);
  }

  @media (prefers-reduced-motion: no-preference) {
    body {
      transition: background 0.3s ease;
    }
  }
  
  main {
    margin: var(--spacing-3xl) var(--spacing-lg) var(--spacing-2xl) var(--spacing-lg);
  }
  
  /* NAVBAR CONTROLS */
  
  nav {
    top: 0;
    position: fixed;
    width: 100%;
    z-index: 999;
    background-color: var(--light-surface-accent);
    height: var(--spacing-xl);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    align-items: center;
  }
  
  /* FOOTER CONTROLS */
  
  footer {
    width: 100%;
    background-color: var(--light-surface-accent);
    height: var(--spacing-xl);
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    justify-content: flex-end;
    gap: var(--spacing-md);
  }
  
  /* SEMANTIC TYPE CONTROLS */
  h1,
  h2,
  h3,
  h4 {
    color: var(--dark-surface-color);
  }

  @media (prefers-reduced-motion: no-preference) {
    h1,
    h2,
    h3,
    h4 {
      transition: color 0.3s ease;
    }
  }
  
  h1 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
  }
  
  h2 {
    text-align: right;
    font-family: var(--font-family-heading);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
  }
  
  h3 {
    font-family: var(--font-family-subheading);
    font-size: var(--font-size-h3);
    font-style: italic;
    font-weight: var(--font-weight-bold);
  }
  
  h4 {
    font-family: var(--font-family-subheading);
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
    max-width: 39.375rem;
  }
  
  p {
    color: var(--dark-surface-color);
    font-family: var(--font-family-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
  }

  @media (prefers-reduced-motion: no-preference) {
    p {
      transition: color 0.3s ease;
    }
  }

    /* BUTTON CONTROLS */
  
  button {
    position: relative;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--dark-surface-color);
    background: var(--gradient-primary);
    color: var(--dark-surface-color);
    text-align: center;
    font-family: var(--font-family-button);
    font-size: 2vw;
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    cursor: pointer;
    box-shadow: var(--shadow-drop);
  }

  @media (prefers-reduced-motion: no-preference) {
    button {
      transition: transform 0.2s, box-shadow 0.2s;
    }
  }
  
  button:hover {
    background: transparent;
    box-shadow: none;
  }
  
  button:active {
    background-color: var(--dark-surface-color);
    color: var(--light-surface-color);
    border: none;
    box-shadow: none;
  }
  
  /* BUTTON PSEUDO-ELEMENTS */
  
  button::before,
  button::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 0 solid transparent;
    pointer-events: none;
  }

  @media (prefers-reduced-motion: no-preference) {
    button::before,
    button::after {
      transition: all 0.2s ease;
    }
  }
  
  button::after {
    top: 0;
    left: 0;
  }
  
  button:hover::after {
    top: var(--button-offset-hover-y);
    left: var(--button-offset-hover-x);
    border: 2px solid var(--color-purple);
  }
  
  button:active::after {
    top: 0;
    left: 0;
    border: 0 solid transparent;
  }
  
  button:hover::before {
    top: var(--button-offset-before-y);
    left: var(--button-offset-before-x);
    border: 2px solid var(--color-green);
  }
  
  button:active::before {
    top: 0;
    left: 0;
    border: 0 solid transparent;
  }
  
  /* THEME CONTROLS */
  
  html {
  }

  @media (prefers-reduced-motion: no-preference) {
    html {
      transition: background-color 0.3s ease, color 0.3s ease;
    }
  }
  
  .theme-dropdown {
    position: relative;
    display: inline-block;
  }

  .theme-trigger {
    cursor: pointer;
    padding: 0 var(--spacing-sm);
    text-align: center;
  }

  .theme-options {
    position: absolute;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    margin-top: var(--spacing-xs);
    background-color: var(--light-surface-color);
    border: 4px solid;
    border-image: var(--gradient-primary) .5;
    z-index: 1000;
  }


  .theme-dropdown.open .theme-options {
    display: flex;
  }

  .theme-options button {
    cursor: pointer;
    padding: var(--spacing-sm);
    background: none;
    border: none;
    text-align: left;
    display: inline-flex;
    align-items: center;
    width: 100%;
    color: var(--dark-surface-color);
    background-color: var(--light-surface-color);
    font-family: var(--font-family-subheading);
    white-space: nowrap;
  }

  .theme-options button svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5em;
    stroke: currentColor;
    fill: none;
  }

  .theme-options button[data-theme="light"] {
    color: var(--dark-surface-color) !important;
    background-color: var(--light-surface-color) !important;
  }

  .theme-options button[data-theme="dark"] {
    color: var(--light-surface-color) !important;
    background-color: var(--dark-surface-color) !important;
  }

  .theme-options button[data-theme="system"] {

    color: var(--dark-surface-color) !important;
    background-color: var(--light-surface-color) !important;
  }
  html[data-theme="dark"] .theme-options button[data-theme="system"] {
    color: var(--light-surface-color) !important;
    background-color: var(--dark-surface-color) !important;
  }

  .theme-options button:hover {
    background-color: inherit;
    color: inherit;
  }
  .theme-trigger,
  .theme-options button {
    position: static;
    box-shadow: none !important;
    background: none !important;
    border-width: 4px !important;
    border-style: solid !important;
    border-color: currentColor !important;
    border-image: var(--gradient-primary) 1 !important;
  }


  .theme-trigger::before,
  .theme-trigger::after,
  .theme-options button::before,
  .theme-options button::after {
    display: none !important;
    content: none !important;
  }

  
  /* FLEX CONTROLS */
  
  .site-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60%;
    gap: var(--spacing-lg);
  }
  
  
  .site-picture {
    box-shadow: var(--shadow-drop);
    object-fit: cover;
    height: auto;
    max-width: var(--image-size-md);
  }
  
  h1 span,
  h2 span {
    display: block;
    margin-bottom: -3rem;
  }
  
  /* SECTION CONTROLS */
  
  #welcome-section,
  #projects,
  #reflection {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: var(--spacing-lg);
  }

  #reflection {
    gap: 0;
  }
  
  #projects h4 {
    text-align: right;
  }
  
  #reflection p {
    text-align: center;
  }
  
  #contact,
  #contact p {
    margin: auto;
    margin-bottom: var(--spacing-lg);
  }
  
  #contact {
    display: block;
    text-align: center;
  }
  

  
  /* DIVIDER CONTROLS */
  
  .divider {
    position: relative;
    width: 95%;
    border-bottom: 2px solid var(--dark-surface-color);
    margin: var(--spacing-lg) auto;
  }
  
  .divider::before {
    content: "";
    position: absolute;
    top: -6px;
    left: var(--spacing-offset-lg);
    width: 100%;
    border-bottom: 2px solid var(--color-green);
  }
  
  .divider::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 15px;
    width: 100%;
    border-bottom: 2px solid var(--color-purple);
  }
  @media (max-width: 1380px) {
    .site-row {
      flex-direction: column;
      align-items: center;
      width: 90%;
    }
    
  .item-1 {
      order: 2;
    }
    .item-2 {
      order: 1;
    }
  
    h1 {
      font-size: 6rem;
      align-self: flex-start;
    }
  
    h2 {
      font-size: 4rem;
    }
  
    .right {
      align-self: flex-end;
    }
    
    #reflection h4,
    #contact h4 {
      max-width: 80%;
    }
    #projects h4 {
      text-align: center;
    }
    h1 span,
    h2 span {
      margin-bottom: -2rem;
    }
    .site-picture {
      max-width: var(--image-size-sm);
    }
  }
  @media (max-width: 800px) {
    nav {
      justify-content: space-around;
    }
  
    h3 {
      font-size: 0.75rem;
    }
    button {
      font-size: 6vw;
      padding: 4.5vw 9vw;
    }
  }
  