:root {
    --font-roboto: "Roboto", sans-serif;
    --bg-dark: hsl(218 66% 2%);
    --bg: hsl(213 43% 5%);
    --bg-light: hsl(212 25% 9%);
    --text: hsl(212 100% 96%);
    --text-muted: hsl(212 22% 71%);
    --highlight: hsl(212 14% 40%);
    --border: hsl(212 19% 29%);
    --border-muted: hsl(212 27% 19%);
    /* Harmonious blue-based palette */
    --primary: hsl(212 70% 68%);
    --primary-glow: hsl(212 70% 68%);
    --primary-light: hsl(212 60% 75%);
    --primary-dark: hsl(212 50% 55%);
    --secondary: hsl(212 50% 60%);
    --accent: hsl(212 40% 50%);
    --danger: hsl(212 40% 55%);
    --warning: hsl(212 45% 60%);
    --success: hsl(212 55% 65%);
    --info: hsl(212 65% 70%);
    --link: hsl(212 70% 68%);
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

html {
    height: 100%;
    font-size: 18px;
    line-height: 1;
    scroll-behavior: smooth;
    animation: fadeInAnimation 1s;
    animation-timing-function: ease-out;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    background-color: var(--bg-dark);
    width: 100%;
    margin: 0;
}

body::-webkit-scrollbar {
    display: none;
}


@media (max-width: 1000px) {
    html {
        font-size: 16px;
        line-height: 1.2;
    }
}


body {
    font-family: var(--font-roboto);
    background-color: var(--bg-dark);
    margin: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    height: 100%;
    border-radius: 0;
}

h1 {
    font-size: 5.5rem;
    color: var(--text);
    font-weight: 900;
    z-index: -10;

}

h2 {
    font-size: 3rem;
    color: var(--text);
    font-weight: 700;
    margin: 1.5rem;
    margin-left: 0;

}

h3 {
    font-size: 2rem;
    color: var(--text);
    font-weight: 600;
    margin: 0;
    margin-bottom: 0.5rem;

}
ul {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.2em;
    
}
ul li {
    margin: 20px;
    list-style: circle;
}

li {
    margin: 0.7rem 0;
}

p a, li a,
.workingon li a, 
.timeline-header a{
    position: relative;
    color: var(--link);
    text-decoration: none;
}

p a:hover, li a:hover,
.workingon li a:hover ,
.timeline-header a:hover {
    color: color-mix(in srgb, var(--link), black 10%);
}

p a::before, li a::before,
.workingon li a::before ,
.timeline-header a::before{
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--link);
    transform: scaleX(0);
    transition: all 0.3s ease;
    transform-origin: left;
}

p a:hover::before, li a:hover::before,
.workingon li a:hover::before ,
.timeline-header a:hover::before{
    transform: scaleX(1);
    background-color: var(--primary);
}

.statement {
    vertical-align: middle;
    animation: fadeInAnimation 3s, glowPulse 8s ease-in-out infinite;
    animation-timing-function: ease-in;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards;
    margin: auto;
    width: min-content;
    top: calc(50vh - 10rem);
    position: relative;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    }
}
@media screen and (max-width: 1000px) {
    .statement {
        font-size: 4.5rem;
    }
}




p {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    display: block;
    line-height: 2.1rem;
    margin: 0.5rem 0;
}



.info_block {
    background-color: var(--bg-dark);
    border-radius: 10px;
    width: 100vw;
    grid-column-gap: 1rem;
    top: 300px;
}

.flex_row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.block {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    flex: 1; /* allow spreading when in flex row */
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.block:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1000px) {
    .flex_row {
        flex-direction: column;
    }

    .block {
        width: 100%;
    }
}




.title {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    position: absolute;
    width: 100%;
    transform-style: inherit;
    z-index: -1;
    background: none;
    top: 0;
    text-align: left;
}

.parallax {
    perspective: 1px;
    overflow-x: hidden;
    overflow-y: scroll;
    position: absolute;
    top: 0;
    perspective: 3px;
    perspective-origin: 50%;
    height: 100vh;
    width: 100vw;
}

.parallax::-webkit-scrollbar {
    display: none;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    scale: 1;
    scale: 2;
    transform: translateZ(-3px);
}

.hero-fluid-shell {
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 40%, rgba(75, 119, 165, 0.08), transparent 34%),
        var(--bg-dark);
}

.hero-fluid-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: none;
    z-index: 0;
}

.hero-fluid-canvas.is-active {
    opacity: 1 !important;
}

.hero-fluid-shell .statement {
    opacity: 1 !important;
    animation: glowPulse 8s ease-in-out infinite;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-fluid-canvas {
        display: none;
    }
}

.foreground {
    margin-top: auto;
    margin-bottom: 50px;
    transform-origin: 0;
    transform: translateZ(0px);
    position: relative;
}



.subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10vh;
    background: none;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--bg-dark);
    z-index: 0;
}


img {
    display: inline;
    object-fit: scale-down;
    border-radius: 5px;
    margin: 2vw;
    max-width: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 2vw;
    min-height: 350px;
}



/* down arrow */
.scroll-down {
    position: static;
    top: 90vh;
    left: 50%;
    bottom: 10px;
    display: block;
    text-align: center;
    font-size: 20px;
    z-index: 100;
    text-decoration: none;
    text-shadow: 0;
    width: 13px;
    height: 13px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    z-index: 9;
    left: 50%;
    -webkit-transform: translate(-50%, 0%) rotate(45deg);
    -moz-transform: translate(-50%, 0%) rotate(45deg);
    transform: translate(-50%, 0%) rotate(45deg);
    -webkit-animation: fade_move_down 3s ease-in-out infinite;
    -moz-animation: fade_move_down 3s ease-in-out infinite;
    animation: fade_move_down 3s ease-in-out infinite forwards;
    scale: 3;
}

.button {
    background-color: var(--bg-light);
    color: var(--text);
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: fit-content;
    text-decoration: none;
}

.button:hover {
    background-color: var(--primary);
    transition: all 0.3s ease;
    transition: background-color 0.3s ease;
    scale: 1.05;
}


/*animated scroll arrow animation*/
@-webkit-keyframes fade_move_down {
    0% {
        -webkit-transform: translate(0, -5px) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        -webkit-transform: translate(0, 5px) rotate(45deg);
        opacity: 0;
    }
}

@-moz-keyframes fade_move_down {
    0% {
        -moz-transform: translate(0, -5px) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        -moz-transform: translate(0, 5px) rotate(45deg);
        opacity: 0;
    }
}

@keyframes fade_move_down {
    0% {
        transform: translate(0, -5px) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(0, 5px) rotate(45deg);
        opacity: 0;
    }
}

.fade {
    display: none;
}

.main-body {
    /* position: absolute; */
    top: 0;
    margin: 0;
    padding-left: 10vw;
    padding-right: 10vw;
    padding-top: 10vh;
    width: 80vw;
}


blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 24px;
    margin: 24px 0;
    color: var(--text-muted);
    font-style: italic;
    position: relative;
    background: linear-gradient(90deg, hsla(212, 70%, 68%, 0.05) 0%, transparent 100%);
    padding: 16px 24px;
    border-radius: 0 8px 8px 0;
    box-shadow: inset 0 0 20px hsla(212, 70%, 68%, 0.05);
    transition: all 0.3s ease;
}

blockquote:hover {
    border-left-width: 6px;
    background: linear-gradient(90deg, hsla(212, 70%, 68%, 0.1) 0%, transparent 100%);
    box-shadow: inset 0 0 30px hsla(212, 70%, 68%, 0.1);
}

ol {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    display: inline-block;
    line-height: 2.1rem;
}

strong {
    color: var(--text);
    font-weight: 600;
}


@keyframes GFG {
    from {
        transform: scale(0);
        opacity: 1;
    }

    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* .workingon {

    width: fit-content;
    margin: 1vh auto;
} */

.workingon li::marker {
    color: var(--primary);
    animation: GFG 2s infinite ease-in-out;
    transform-origin: center;
    font-size: 2rem;
}

.workingon li {
    color: var(--text);
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 2.1rem;
}

.workingon li a {
    position: relative;
    color: var(--link);
    text-decoration: none;
}

blockquote{
    margin: 5px 0 ;
}

/* .workingon li a:hover {
    color: color-mix(in srgb, var(--link), black 10%);
}

.workingon li a::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--link);
    transform: scaleX(0);
    transition: all 0.3s ease;
    transform-origin: left;
}

.workingon li a:hover::before {
    transform: scaleX(1);
    transition: all 0.3s ease;
    background-color: color-mix(in srgb, var(--link), black 10%);
} */

/* Employment History Section Styles */

.employment-list {
    margin: auto;
    width: 100%;
    list-style-type: none;
}
.employment-list li {
    margin: 0.7rem 0;
    color: var(--text);
    font-size: 1.2rem;
    line-height: 2.1rem;
    list-style-type: none;
}

/* Additional styles for improved HTML structure */
.headshot-image {
    max-width: 270px;
    grid-column: span 1;
    object-fit: cover;
    height: 450px;
}

.subtitle-position {
    top: 85vh;
}

.info-block-position {
    top: 90vh;
}

.content-wrapper {
    width: 70vw;
    margin: auto;
}

.spotify-embed {
    border-radius: 12px;
}

.footer-copyright {
    font-size: 0.8rem;
}


/* Enhanced employment list styling */
.employment-list li {
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.employment-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.employment-list li:hover {
    transform: translateX(5px);
    color: var(--text);
}

.employment-list li:hover::before {
    transform: translateX(3px);
}

/* Responsive styles for small screens (iPhone SE and similar) */
@media (max-width: 400px) {
    /* Typography adjustments - using 16px base to prevent iOS zoom */
    html {
        font-size: 16px;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.2rem;
        margin: 1rem 0;
    }

    h3 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    p {
        font-size: 1.15rem;
        line-height: 1.8rem;
    }

    /* Hero section adjustments */
    .statement {
        font-size: 3.5rem;
        top: calc(50vh - 8rem);
    }

    /* Content wrapper */
    .content-wrapper {
        width: 90vw;
        padding: 0;
    }

    /* Info blocks */
    .info_block {
        padding-top: 2vh;
    }

    /* Blocks */
    .block {
        width: 100%;
        padding: 15px 0;
        margin: 0.5rem 0;
        height: auto;
        min-height: 150px;
    }

    .block h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .block p {
        font-size: 1.15rem;
        line-height: 1.8rem;
    }

    /* Spotify embed */
    .spotify-embed {
        min-height: 152px;
        height: 152px !important;
    }

    .block iframe {
        min-height: 152px;
        height: 152px !important;
    }

    /* Employment section */
    .employment-list {
        padding-left: 0;
    }

    .employment-list li {
        font-size: 1.15rem;
        line-height: 1.8rem;
        padding-left: 1.2rem;
        margin: 0.5rem 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .employment-list li::before {
        font-size: 0.9rem;
    }

    .employment-list li:hover {
        transform: translateX(3px);
    }

    .employment-list li a {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Headshot image - no cropping on small screens */
    .headshot-image {
        max-width: 100%;
        height: auto;
        max-height: 300px;
        margin: 0 auto 1rem;
        display: block;
        object-fit: contain;
    }

    /* Flex rows */
    .flex_row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .flex_row > div {
        width: 100%;
    }

    /* Working on section */
    .workingon li {
        font-size: 1.15rem;
        line-height: 1.8rem;
    }

    .workingon li::marker {
        font-size: 1.2rem;
    }

    /* Blockquote */
    blockquote {
        padding: 12px 16px;
        margin: 16px 0;
        font-size: 1.1rem;
        line-height: 1.7rem;
    }

    /* Subtitle positioning */
    .subtitle-position {
        top: 80vh;
    }

    .info-block-position {
        top: 85vh;
    }

    /* Disable hover effects on touch devices */
    .block:hover {
        transform: none;
    }

    /* Footer adjustments */
    .footer {
        padding: 1rem 0.5rem;
        font-size: 1rem;
    }

    .footer-icons {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    .footer-icons a {
        all: none;
    }

    .footer-icons img {
        width: 28px;
        height: 28px;
        margin: 8px;
    }

    .footer-copyright {
        font-size: 0.75rem;
        padding: 0 10px;
    }

    /* Better spacing for lists */
    ul {
        padding-left: 1rem;
    }

    ul li {
        margin: 0.5rem 0;
    }

    /* Code blocks */
    code {
        font-size: 0.9rem;
        padding: 2px 6px;
    }

    /* Better touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

.content-wrapper {
    width: 70vw;
    margin: auto;
}

.scroll-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Employment Section (Unified with .block) */
.employment-section {
    position: relative;
}


.timeline-container {
    position: relative;
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.4rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg-dark);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-header {
    font-size: 1.2rem;
    color: var(--text);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .timeline-container {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.9rem;
    }
}
