:root {
    /* Font settings */
    font-size: 1.2em;
    font-family: monaco, monospace;

    /* Color variables */
    --color-text-primary: #333;
    --color-text-secondary: #f4f4f4;
    --color-bg-light: #f4f4f4;
    --color-bg-dark: #1e1e24;
    --color-accent-1: #FFE29F;
    --color-accent-2: #FFA99F;
    --color-accent-3: #FF719A;
    --color-footer-bg: #333;
    --color-footer-text: #fff;

    /* Transition timing */
    --transition-speed-fast: 200ms;
    --transition-speed-medium: 400ms;
    --transition-speed-slow: 12s;
}

/* Global styles */
body {
    margin: 0;
    padding: 0;
    color: black;
    background-color: var(--color-bg-light);
    background-image: linear-gradient(-225deg, var(--color-accent-1) 0%, var(--color-accent-2) 48%, var(--color-accent-3) 100%);
}

/* Custom scrollbar */
body::-webkit-scrollbar {
    width: 0.5rem;
}

body::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

body::-webkit-scrollbar-thumb {
    background: var(--color-accent-2);
}

/* Container styles */
.container {
    width: 80%;
    margin: auto;
    overflow: visible;
    padding: 0;
}

/* Header styles */
header {
    color: var(--color-text-primary);
    padding-top: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

/* Link styles */
a {
    text-decoration: none !important;
    color: var(--color-bg-dark);
}

/* Navbar styles */
.navbar {
    position: fixed;
    background-color: var(--color-text-primary);
    transition: width var(--transition-speed-medium) ease;
    overflow: hidden;
    white-space: nowrap;
}

.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.nav-item {
    width: 100%;
    margin-bottom: 0;
}

.nav-item:last-child {
    margin-top: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 5rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-speed-medium);
}

.nav-link:hover {
    filter: grayscale(0%) opacity(1);
    background: black;
    color: var(--color-accent-2);
}

.link-text {
    display: none;
    margin-left: 1rem;
}

.nav-link svg {
    min-width: 2rem;
    margin: 0 1.5rem;
    width: 2rem;
}

.navbar:hover {
    width: 16rem;
}

.navbar:hover .link-text {
    display: block;
}

/* Logo styles */
.logo {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-accent-3);
    font-size: 1.5rem;
    letter-spacing: 0.3ch;
    width: 100%;
}

.logo svg {
    transform: rotate(0deg);
    transition: transform var(--transition-speed-medium);
    margin-left: auto;
}

.logo-text {
    margin-left: 4rem;
}

.navbar:hover .logo svg {
    transform: rotate(450deg);
}

/* Vertical slide animation */
.vwrap, .vslide {
    width: 100%;
    height: 30px;
}

.vwrap {
    overflow: hidden;
    margin-bottom: 10px;
    z-index: 1;
}

.vslide {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.vmove {
    position: relative;
    bottom: 0;
    animation: slidev var(--transition-speed-slow) infinite;
}

.vmove:hover {
    animation-play-state: paused;
}

@keyframes slidev {
    0%, 19% { bottom: 0; }
    20%, 39% { bottom: 100%; }
    40%, 59% { bottom: 200%; }
    60%, 79% { bottom: 300%; }
    80%, 99% { bottom: 400%; }
    100% { bottom: 0; }
}

/* Main content styles */
main {
    padding: 1rem;
    margin-left: 5rem;
    min-height: 100vh;
}

section {
    margin: 0;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
    border-top: 4px dashed var(--color-text-primary);
}

h2 {
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3 {
    margin: 10px;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 10px;
}

.job {
    margin-bottom: 20px;
}

h3, h4 {
    margin: 10px;
}

/* Footer styles */
footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 10px 0;
    text-align: center;
}

footer p {
    margin: 0;
}

p {
    margin: 5px;
}

/* Small screens */
@media only screen and (max-width: 600px) {
    .navbar {
        top: 0 !important;
        bottom: auto !important;
        width: 100% !important;
        height: 5rem !important;
        z-index: 2;
    }

    .logo {
        display: none;
    }

    .navbar:hover {
        width: 100%;
    }
    
    .navbar:hover .link-text {
        display: none;
    }

    .navbar-nav {
        flex-direction: row;
    }

    .nav-link:hover {
        filter: grayscale(0%) opacity(1);
        color: var(--color-accent-2);
    }

    .nav-link {
        justify-content: center;
    }

    .nav-item:last-child {
        margin-top: 0;
    }

    body {
        padding-top: 5rem;
    }

    /* Make buttons full-width on mobile */
    button {
        width: 100% !important;
        margin-bottom: 10px;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }
}

/* Large screens */
@media only screen and (min-width: 600px) {
    .navbar {
        width: 5rem;
        height: 100vh;
    }

    .navbar:hover {
        width: 16rem;
    }

    .navbar:hover .link-text {
        display: inline;
        transition: opacity var(--transition-speed-fast);
    }
}

/* Details and summary styles */
details {
    margin-bottom: 20px;
    border-radius: 35px;
    box-shadow: 10px 10px rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
}

summary {
    font-size: 1.6em;
    cursor: pointer;
    outline: none;
    padding: 15px;
    text-align: center;
    list-style: none;
}

summary::-webkit-details-marker {display: none;}

details:hover {
    background-color: var(--color-accent-3);
    color: white;
    overflow: hidden;
}

.sub-summary{
    font-size: 1.4em;
    padding: 5px;
}

.sub-details {
    box-shadow: none;
    margin-bottom: 5px;
}

/* Image grid styles */
.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
  }
  
  /* Create two equal columns that sits next to each other */
  .column {
    flex: 50%;
    padding: 0 4px;
  }
  
  .column img {
    margin-top: 8px;
    vertical-align: middle;
  }

  button {
    border: none;
    font-size: 1rem;
    margin-bottom: 10px;
    border-radius: 35px;
    box-shadow: 7px 7px rgba(0, 0, 0, 0.7);
    background: var(--color-accent-2);
    padding: 10px;
    width: 48%;
  }