/* Variables */
@import url('https://googleapis.com');
@property --angle{
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
:root {
    --primary: rgb(0, 210, 210);
    --secondary: rgb(255, 165, 0);
    --third: blue;
}

/* Other Styles */
html {
    scroll-behavior: smooth;
}
body {
    font-family: monospace;
    line-height: 1.6;
    background-color: #000000;
    color: #333;
}
* {
    transition: all 0.25s ease-in-out;
}

/* width */
::-webkit-scrollbar {
  width: 15px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--primary); 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--secondary); 
  box-sizing: border-box;
  border: 1px solid black;
  border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--secondary) 75%, black 25%); 
}

/* Side Bar */
.sidebar {
    background-image: linear-gradient(
      in srgb var(--angle), 
      color-mix(in srgb, var(--primary) 60%, white 40%),
      color-mix(in srgb, var(--primary) 85%, black 15%));
    width: 100%;
    max-width: 250px;
    height: 100%;
    top: 0;
    position: fixed;
    text-align: center;
    left: 25px;
    z-index: 100;
    flex: 0 1 250px;
    animation: 6s spin linear infinite;
}
.sidebar.active {
    left: 0px;
}
.sidebar p {
    font-size: 1.8rem;
    font-weight: bolder;
    border-top: color-mix(in srgb, var(--third) 75%, black 25%) solid 4px;
    border-bottom: var(--secondary) solid 4px;
    color: black;
    background-color: #fff;
    padding: 20px;
    margin-top: 4vw;
}
.sidebar a{
    color: #333;
    font-size: larger;
    font-weight: bold;
    text-decoration: none;
    display: block;
    padding: 15px;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    border-color: transparent;
}
.sidebar a:hover {
    background-color: var(--primary);
    color: black;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}
.sidebar a.active {
    font-size: larger;
    color: black;
    text-decoration: underline;
    text-decoration-color: var(--secondary);
}
.sidebar-close {
    height: 50px;
    width: 50px;
    border: 4px solid black;
    border-radius: 10px;
    opacity: 0;
    cursor: default;
}
.sidebar-close span {
    height: 5px;
    width: 45px;
    margin-top: 25px;
    background-color: black;
    border-radius: 25px;
    position: absolute;
}
.sidebar-close span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}
.sidebar-close span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.sidebar-close:hover {
    background-color: var(--secondary);
}

/* Light or Dark Mode Toggle Button*/
.light-toggle-btn {
    height: 50px;
    width: 50px;
    background-color: white;
    font-size: 30px;
    border: 4px solid black;
    border-radius: 10px;
    opacity: 1;
    cursor: pointer;
    justify-content: center;
    align-content: center;
}
.light-toggle-btn:hover {
    background-color: var(--secondary);
}
.light-toggle-btn.active {
    background-color: #333;
    color: white;
}
.light-toggle-btn.active:hover {
    background-color: var(--secondary);
    color: black;
}

.sidebar-specials-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    justify-self: center;
    width: 90%;
    height: 80px;
}

.highlight-toggle-btn {
    height: 50px;
    width: 50px;
    background-color: var(--secondary);
    border: 4px solid black;
    border-radius: 10px;
    opacity: 1;
    cursor: pointer;
}
.highlight-corner {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background-color: var(--primary);
    clip-path: polygon(100% 0%, 0% 100%, 0% 0%);
}
.highlight-toggle-btn:hover {
    background-color: var(--primary);
}
.highlight-toggle-btn:hover .highlight-corner {
    background-color: var(--secondary);
    color: black;
}

/* Main */
main {
    margin: 25px;
    margin-left: 300px;
    opacity: 0;
}

/* Side Bar Open Button*/
.sidebar-open {
    position: sticky;
    top: 0;
    padding: 15px;
    background-color: #333;
    border-radius: 10px;
    border: 4px solid var(--primary);
    height: 40px;
    width: 40px;
    margin-left: -1000px;
    margin-right: 0;
    display: none;
    z-index: 50;
    cursor: pointer;
}
.hamburger-btn {
    height: 100%;
    width: 100%;
    position: sticky;
}
.hamburger-btn span {
    height: 5px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hamburger-btn span:nth-child(1) {top: 25%;}
.hamburger-btn span:nth-child(3) {top: 75%;}
.sidebar-open:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.sidebar-open:hover span{background-color: #333;}

/* Portrait Mode Top NavBar */
.portrait-navbar {
    border: 4px solid var(--primary);
    border-radius: 10px;
    color: var(--primary);
    background-color: #333;
    text-align: center;
    font-weight: bold;
    font-size: 25px;
    top: 0;
    position: absolute;
    display: none;
    z-index: 50;
}
.portrait-navbar-p1 {
    color: var(--secondary);
    background-color: #333;
    border-right: 4px solid var(--primary);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding: 15px;
    width: 40%;
    pointer-events: none;
    z-index: 10;
}
.portrait-navbar-p2 {
    padding: 15px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    width: 60%;
    z-index: 10;
    cursor: pointer;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    overflow: hidden;
}
.portrait-navbar-p2:hover {
    background-color: var(--secondary);
    color: #333;
}

.portrait-navbar-menu {
    display: none;
    width: 48%;
    z-index: 0;
}
.portrait-navbar-menu.active {
    display: none;
}
.portrait-navbar-menu a {
    color: var(--primary);
    background-color: #333;
    border: 2px solid var(--primary);
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size: 20px;
    padding: 15px;
    height: 100%;
    width: 100%;
    float: right;
}
.portrait-navbar-menu a:hover {
    background-color: var(--secondary);
    color: #333;
    border: 2px solid var(--secondary);
}

/* Landscape Mode Top NavBar */
.landscape-navbar {
    float: right;
    position: fixed;
    top: 0;
    width: calc(100% - 340px);
    z-index: 50;
}
.inner-landscape-navbar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background-color: #333;
    border-radius: 10px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border: solid var(--primary);
    font-weight: bold;
    height: 50px;
}
.inner-landscape-navbar * {
    border-radius: 5px;
    text-align: center;
    padding: 8px;
    flex-grow: 1;
}

.landscape-navbar a {
    color: var(--primary);
    border: 2px solid var(--primary);
    text-decoration: none;
}
.landscape-navbar a:hover {
    background-color: var(--secondary);
    color: #333;
    border: 2px solid var(--secondary);
}
.landscape-navbar a.active {
    color: var(--secondary);
    border: 6px solid var(--secondary);
}
.landscape-navbar a.active:hover {
    color: var(--secondary);
    background-color: #333;
    border: 6px solid var(--secondary);
}

/* Website Content Section */
section {
    background-color: #fff;
    color: black;
    padding: 15px;
    margin-top: 50px;
    border-radius: 10px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    scroll-margin-top: 100px;
}
section.dark-mode {
    background-color: #333;
    color: #fff;
}
section.dark-mode a {
    color: var(--primary);
}
section:first-of-type {
    margin-top: 100px;
}
section img {
    float: left;
    margin-right: 15px;
    border-radius: 10px;
    object-fit: cover;
    width: auto;
    height: 100%;
    min-width: 200px;
    min-height: 266px;
    border: solid 5px black;
}
h1 {
    background-color: #333;
    color: #fff;
    border-bottom: 5px solid var(--secondary);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: -15px;
    margin-bottom: 15px;
    margin-top: -20px;
    padding: 15px;
    padding-bottom: 5px;
}
h2 {
    background-color: var(--secondary);
    color: black;
    padding: 15px;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}
.section-content {
    display: inline-block;
}

.frame-container {
    justify-self: center;
    align-self: center;
    width: 85%;
}
iframe {
    border: none; 
    border-radius: 8px; 
    width: 100%; 
    height: 75dvh; 
    display: block;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #333;
    color: #fff;
    margin-top: 2rem;
}
footer a {
    color: var(--primary);
}


/* Styles for Projects Page */
.special-section {
    background-color: black;
    color: #fff;
    padding: 15px;
    margin-top: 100px;
    border-radius: 10px;
    box-sizing: border-box;
    scroll-margin-top: 100px;
    height: 40vh;
    min-height: 210px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.special-section::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0%;
    left: 0%;
    margin-top: -4px;
    margin-left: -4px;
    translate: -50%, -50%;
    z-index: -1;
    padding: 4px;
    border-radius: 10px;
    background-image: conic-gradient(from var(--angle), var(--primary),color-mix(in srgb, var(--primary) 40%, black 60%),var(--primary),color-mix(in srgb, var(--primary) 40%, black 60%), var(--primary));
    animation: 3s spin linear infinite;
}
.special-section img {
    float: left;
    margin-right: 15px;
    border-radius: 10px;
    object-fit: cover;
    width: auto;
    height: 100%;
    border: solid 5px var(--secondary);
}
.bio-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    line-height: clamp(1.2rem, 2vw, 2rem);
    font-size: clamp(0.85rem, 2vw, 1.5rem);
    text-align: center;
}
.bio-text p:nth-child(1) {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: bolder;
    border-top: var(--primary) solid 4px;
    border-bottom: var(--secondary) solid 4px;
    outline-offset: 10px;
    text-wrap: balance;
}

.top-cap {
    background-color: #333;
    color: #fff;
    border-bottom: 5px solid var(--secondary);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;

    margin: -15px;
    margin-bottom: 15px;
    margin-top: -20px;

    height: 15vh;
    display: flex;

    justify-content: center;
    align-content: center;

    overflow: visible;
    z-index: 10;

    position: relative;
}
.top-cap p {
    font-size: 4vh;
    font-weight: bolder;
    margin-top: 20px;
}
.project-section-btn {
    height: 10vh;
    aspect-ratio: 1/1;
    background-color: var(--primary);
    border: 8px solid var(--secondary);
    border-radius: 10px;
    position: absolute;
    justify-items: center;
    align-content: center;
    top: 50%;                        
    left: 50%;                       
    transform: translate(-50%, 0%);
    margin-top: 20px;
}
.button-circle {
    width: 75%;
    height: 75%;
    border-radius: 50%;
    background-color: #333;
    border: 2px solid var(--secondary);
}
.project-section-btn:hover .button-circle{
    background-color: var(--secondary);
}
.bottom-cap {
    background-color: #333;
    color: #fff;
    border-top: 5px solid var(--secondary);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

    margin: -15px;
    margin-bottom: -20px;

    height: 7.5vh;
}

.slider, .slider * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.slider {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overflow-y: hidden;
}
.slide {
    position: relative; /* Need for video background */
    flex: 1 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    object-fit: cover;
    scroll-margin-top: calc(15vh + 144px);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    gap: 15px;
}
.slider-nav {
    display: none;
    position: relative;
    column-gap: 1rem;
    justify-self: center;
    margin-top: 3vh;
}
.slider-nav a {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.75;
    transition: opacity ease 0.25s;
}
.slider-nav a:hover {
    opacity: 1;
}
.slider-nav a.active {
    background-color: var(--secondary);
    opacity: 1;
}

.slide video {
    position: absolute;
    top: -5vh;
    left: 0;
    width: 100%;
    height: 60vh;
    object-fit: cover;  /* fills the slide, crops edges */
    z-index: 0;
    opacity: 0.5;

    background-color: #333;
    object-fit: fill;
  }
  .slide-background-image {
    position: absolute;
    top: -5vh;
    left: 0;
    width: 100%;
    height: 60vh;
    object-fit: cover;  /* fills the slide, crops edges */
    z-index: 0;
    opacity: 0.5;

    background-color: #333;
    object-fit: fill;
    border-radius: 0px;
  }
  .slide-content {
    flex: 1 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    gap: 15px;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.75);
    border: 4px solid black;
    border-radius: 10px;
    overflow-y: scroll;
  }

/* Media Queries for Different Screen Sizes*/
@media screen and (max-width: 1100px){
    .sidebar {
        left: -250px;
    }
    .sidebar-close {
        opacity: 100;
        cursor: pointer;
    }
    main {
        margin-left: 25px;
    }
    .sidebar-open {
        display: block;
        margin-left: 0;
        display: inline-block;
    }
    .portrait-navbar {
        display: flex;
        flex-direction: row;
        float: right;
        position: sticky;
        align-content: center;
        align-items: center;
        width: calc(100% - 150px);
        height: auto;
    }
    .portrait-navbar-menu {
        display: none;
        position: absolute;
        left: 50%;
        top: 100%;
        z-index: 0;
    }
    .portrait-navbar-menu.active {
        display: block;
    }
    .landscape-navbar {
        display: none;
        float: none;
        position: absolute;
        margin-top: -200%;
        width: 0px;
        height: 0px;
    }
    section img {
        border-radius: 10px;
        object-fit: cover;
        width: calc(100% - 10px);
        height: auto;
        max-width: 225px;
        border: solid 5px black;
        justify-self: center;
    }
    section:first-of-type {
        margin-top: 25px;
    }
    .frame-container {
        width: 90%;
    }

    .special-section { 
      margin-top: 25px;
      margin-bottom: 100px;
    }
    .slide-content {
      flex-direction: column;
    }
}

@media screen and (max-width: 575px){
    .portrait-navbar {
        width: calc(100% - 100px);
        display: block;
        justify-items: center;
    }
    .portrait-navbar-p1{
        display: none;
    }
    .portrait-navbar-p2 {
        width: 100%;
        display: block;
        box-sizing: border-box;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }
    .portrait-navbar-menu{
        width: 80%;
        left: 15%;
    }
    .frame-container {
        width: 95%;
    }

    .special-section { 
      flex-direction: column;
      height: auto;
      align-items: center;
    }
    .special-section img {
      height: auto;
      width: 50%;
    }
    .slide {
        flex-direction: column;
    }
}


/* Keyframes for Animations*/
@keyframes spin{
    from{
      --angle: 0deg;
    }
    to{
      --angle: 360deg;
    }
  }