:root {
    --background-color: #060128;
    --text-color: #e0e0e0;
    --accent-color: #D91656;
    --hover-color: #03daaf;
    --hover-color-2: #ff612c;
    --secondary-text: #a0a0a0;
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; */
    font-family:'Quattrocento','JetBrains Mono','Barlow', sans-serif;
    /* font-style: bold; */
    font-size: 17px;
    font-weight: 200;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 4rem;
}

header {
    margin-top: 4rem;
    text-align: center;
    /* background-color: var(--background-color); */
    padding: 2rem;
    border-radius: 10px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    position: relative;
}

.profile-header {
    margin-bottom: 1rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
}

h1 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-color);
    margin: 1rem 0;
}

.tagline {
    color: var(--secondary-color);
    font-style: italic;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
    font-family: 'Adobe Caslon Italic';
    font-style: italic;

    /* padding-top: 4rem; */
}

nav a:hover {
    color: var(--accent-color);
}

.section {
    /* background-color: var(--background-color); */
    margin-bottom: 1.5rem;
    padding: 2rem;
    border-radius: 10px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.sectiontwo {
    margin-bottom: 1.5rem;
    padding: 2rem;
    border-radius: 10px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-family: 'Adobe Caslon Italic', serif;
    font-style: italic;
    letter-spacing: 0.08rem;
}

.experience-item, .project-card {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.project-container {
    flex: 0 1 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.project-container:hover {
    color: inherit;
}

.project-container:hover .project-title {
    color: var(--hover-color);
    transform: translateX(10px);
}

.alt:hover .project-title {
    color: var(--hover-color-2);
}

.project-container:hover .project-link {
    border-bottom-color: var(--hover-color);
}

.alt:hover .project-link {
    border-bottom-color: var(--hover-color-2);
}

.project-container:hover .project-date {
    color: var(--hover-color);
}

.alt:hover .project-date {
    color: var(--hover-color-2);
}

.project-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    width: 100%;
}

.project-title {
    flex: 1;
    /* font-style:oblique; */
    display: inline-block;
    pointer-events: none;
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--text-color);
}

.project-date {
    color: var(--secondary-text);
    margin-left: 1rem;
    transition: color 0.3s ease;
    pointer-events: none;
}

.project-excerpt {
    font-size: 0.95rem;
    color: var(--secondary-text);
    padding-left: 1rem;
    border-left: 2px solid var(--accent-color);
    margin: 0.25rem 0 0 0;
    font-weight: 300;
    line-height: 1.5;
    pointer-events: none;
}

.link-container {
    flex: 0 1 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.5rem;
}

.section-subtitle + .link-container {
    margin-top: 0;
}

#tech .section-subtitle + .link-container {
    margin-top: -0.5rem;
}

.inline-link {
    text-decoration: none;
    color: var(--hover-color);
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: var(--accent-color);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.contact-link {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a, .social-links p {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--hover-color);
}
.section-subtitle {
    color: var(--secondary-text);
    font-weight: 300;
    margin-bottom: 1rem;
}
footer {
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 2rem 4rem;
    border-top: 1px solid var(--secondary-text);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.header-link {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.header-link:hover {
    color: var(--hover-color);
}

header h1 {
    font-family: 'Adobe Caslon Italic', serif;
    font-style: italic;
    letter-spacing: 0.08rem;
    font-size: 4rem;
    font-weight: 300;
    color: var(--accent-color);
    margin: 1rem 0;
}

header h1 a {
    color: inherit;
}

#research .projects {
    flex-direction: column;
}

#research .project-container {
    flex: 0 1 100%;
}

.projects h2 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
    color: var(--accent-color);
}

.project {
    margin-bottom: 1rem;
}

.project h2 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: var(--text-color);
}

/* Two-column grid for tech section */
#tech .projects, #music .projects, #projects .projects {
    display: flex;
    flex-direction: column;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

#tech .project-container, #music .project-container {
    flex: unset;
}

/* Single column for smaller screens */
@media (max-width: 768px) {
    #tech .projects, #music .projects {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

/* Story styles */
.story {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.back-link {
    margin: 1rem 0 3rem 0;
}

.back-link a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: var(--hover-color);
}

.story-header {
    margin-top: -2rem;
    z-index: -1;
    margin-bottom: 3rem;
    text-align: center;
}

.story-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.story-date {
    display: block;
    margin-top: 0.5rem;
}

.story-content {
    line-height: 1.8;
    color: var(--text-color);
}

.story-content p {
    margin-bottom: 1.5rem;
}

.story-nav {
    margin-top: 4rem;
    margin-bottom: -7rem;
    font-family: 'Adobe Caslon Italic';
    font-style: italic;
    font-weight: bold;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .project-excerpt {
        font-size: 0.85rem;
    }
    
    .projects.grid {
        grid-template-columns: 1fr;
    }
    
    .project-container {
        flex: 0 1 100%;
    }
}

.bubbles {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

.bubble {
    position: fixed;
    border-radius: 80%;
    filter: blur(100px);
    transition: transform 0.5s ease-out, opacity 0.8s ease-out;
}

.strict-bubble {
    /* border-radius: 50%; */
    width: 280px;
    height: 280px;
    opacity: 0.9;
    /* filter: blur(10px); */
    transition: transform 0.5s ease-out, opacity 0.8s ease-out;
    /* background: linear-gradient(45deg, var(--accent-color), var(--hover-color)); */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.bubble-parent {
    display: flex;
    align-items: center;}

.strict-1{
    background: linear-gradient(90deg,  var(--hover-color), var(--accent-color));
    /* filter: blur(10px); */
    /* opacity: 0.8; */
}
.strict-2{
    float: left;
    background: linear-gradient(90deg,  var(--accent-color), var(--hover-color-2));
}
.strict-3{
    float: left;
    background: linear-gradient(90deg,  var(--hover-color-2), var(--hover-color));
}
.strict-bubble p {
    margin: 0;
    text-align: center;
}

.bubble2 {
    position: fixed;
    border-radius: 80%;
    filter: blur(100px);
    transition: transform 0.5s ease-in, opacity 0.8s ease-in;
    opacity: 0;
}

.bubble2.visible {
    opacity: 0.9;
}

/* Large corner bubbles */
.bubble-1 {
    width: 550px;
    height: 550px;
    top: -250px;
    left: -250px;
    background: linear-gradient(45deg, var(--accent-color), var(--hover-color));
}

.bubble-2 {
    width: 600px;
    height: 600px;
    top: -300px;
    right: -300px;
    background: linear-gradient(-45deg, var(--hover-color), var(--hover-color-2));
}

.bubble-3 {
    width: 600px;
    height: 600px;
    top: -420px;
    left: -100px;
    background: linear-gradient(135deg, var(--hover-color-2), var(--accent-color));
}

.bubble-4 {
    width: 450px;
    height: 450px;
    top: -300px;
    right: -50px;
    background: linear-gradient(-135deg, var(--accent-color), var(--hover-color-2));
}

.bubble-5 {
    width: 450px;
    height: 450px;
    top: -380px;
    left: 500px;
    background: linear-gradient(45deg, var(--accent-color), var(--hover-color));
}
.bubble-6 {
    width: 530px;
    height: 530px;
    top: -420px;
    left: 200px;
    background: linear-gradient(-135deg, var(--hover-color), var(--hover-color-2));
}
.bubble-7 {
    width: 530px;
    height: 530px;
    top: -420px;
    right: 200px;
    background: linear-gradient(45deg, var(--accent-color), var(--hover-color));
}
.bubble-8 {
    width: 530px;
    height: 530px;
    bottom: -200px;
    right: -350px;
    background: linear-gradient(45deg, var(--hover-color-2), var(--accent-color));
}
.bubble-9 {
    width: 530px;
    height: 530px;
    bottom: -200px;
    left: -350px;
    background: linear-gradient(-135deg, var(--hover-color), var(--accent-color));
}
.bubble-10 {
    width: 530px;
    height: 530px;
    bottom: 100px;
    right: -350px;
    background: linear-gradient(-90deg, var(--accent-color), var(--hover-color));
}
.bubble-11 {
    width: 530px;
    height: 530px;
    bottom: 0px;
    left: -350px;
    background: linear-gradient(-135deg, var(--accent-color), var(--hover-color));
}
.bubble-12 {
    width: 530px;
    height: 530px;
    bottom: 50px;
    left: -380px;
    background: linear-gradient(-135deg, var(--hover-color-2), var(--accent-color));
}
/* Medium side bubbles */
/* .bubble-5 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: -60px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--hover-color), var(--hover-color-2));
}

.bubble-6 {
    width: 70px;
    height: 70px;
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    background: linear-gradient(-90deg, var(--hover-color-2), var(--accent-color));
} */

/* Small top/bottom bubbles */
/* .bubble-7 {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--accent-color), var(--hover-color));
}

.bubble-8 {
    width: 50px;
    height: 50px;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(0deg, var(--hover-color-2), var(--hover-color));
} */

header {
    position: relative;
    padding: 4rem;
}

.mobile-bubble {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;

    opacity: 0.3;
    background: linear-gradient(130deg, var(--hover-color), var(--hover-color-2));
    z-index: -1;
}

@media screen and (max-width: 768px) {
    .bubble {
        opacity: 0.05;
        /* transform: none; */
    }
    .bubble2 {
        display: none;
    } 

    .mobile-bubble {
        display: block;
    }

    header h1 {
        position: relative;
        z-index: 1;
        margin-bottom: 0.25rem;
    }

    .section {
        padding-top: 0.5rem;
    }

    #bio {
        padding-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    /* Add styles for 480px screen width here */
}

/* Et cetera section styles */
.etc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.etc-item {
    background: linear-gradient(45deg, var(--background-color), var(--background-alt));
    /* border: 1px solid var(--secondary-text); */
    /* border-radius: 50%; */
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.etc-item:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
}

.etc-title {
    display: block;
    font-family: 'Adobe Caslon Italic', serif;
    font-style: italic;
    color: var(--hover-color-2);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--secondary-text);
    padding-bottom: 0.5rem;
}

.etc-title2 {
    display: block;
    font-family: 'Adobe Caslon Italic', serif;
    font-style: italic;
    color: var(--hover-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--secondary-text);
    padding-bottom: 0.5rem;
}

.etc-title3 {
    display: block;
    font-family: 'Adobe Caslon Italic', serif;
    font-style: italic;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--secondary-text);
    padding-bottom: 0.5rem;
}

.etc-item p {
    margin: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .etc-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .etc-item {
        padding: 1rem;
    }
}

/* Subtle Navigation Styles */
.subtle-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subtle-nav:hover,
.subtle-nav.visible {
    opacity: 1;
}

/* Hover detection area */
.subtle-nav::before {
    content: '';
    position: absolute;
    right: -20px;
    top: -50px;
    width: 60px;
    height: calc(100% + 100px);
    z-index: -1;
}

.nav-dots {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dots li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(200, 200, 200, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dots li::before {
    content: attr(title);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    /* background-color: rgba(255, 255, 255, 0.7); */
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Adobe Caslon Italic', serif;
    font-size: 16px;
    font-style: italic;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-dots li:hover {
    background-color: var(--secondary-text)/*rgba(150, 150, 150, 0.8);*/
}

.nav-dots li:hover::before {
    opacity: 1;
}

.nav-dots li.active {
    background-color: var(--text-color);
    /* color: var(--accent-color); */
    /* transform: scale(1.2); */
}

.back {
    color: var(--text-color)
}

/* Make navigation responsive */
@media (max-width: 768px) {
    .subtle-nav {
        right: 10px;
    }
    
    .nav-dots li {
        width: 8px;
        height: 8px;
    }
}

/* Hide navigation when printing */
@media print {
    .subtle-nav {
        display: none;
    }
}
