.step-num {
    color: #F39C12;
}
.metrics-progression {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 12px auto 18px;
    text-align: center;
}

.metrics-progression .progress-item .metric-number {
    font-size: 3.8rem;
    font-weight: 700;
    color: #5B9BD5;
}

.metrics-progression .progress-item .metric-sub {
    font-size: 0.95rem;
    color: #555;
}

.metrics-progression .progress-arrow {
    font-size: 1.8rem;
    color: #F39C12;
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #faf8f3;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%23F39C12"/></svg>'), auto;
}

/* Clickable elements - blue cursor (excluding gallery items) */
a, button, [role="button"], input[type="submit"], input[type="button"], .clickable, .project-card, .filter-btn {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%235B9BD5"/></svg>'), pointer;
}

/* Gallery items keep orange cursor */
.gallery-item {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%23F39C12"/></svg>'), auto;
}

/* Override filter button cursor specifically */
.filter-btn {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%235B9BD5"/></svg>'), pointer !important;
}

/* Skills section keeps orange cursor */
.skills-list, .skills-list li {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%23F39C12"/></svg>'), auto !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Clean, minimal styling */
section {
    padding: 80px 0;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #333;
    font-weight: 600;
}

.navbar {
    background: #faf8f3;
    color: #333;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0ede6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: #5B9BD5;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    text-transform: lowercase;
    font-family: 'Poppins', sans-serif;
}

.nav-link:hover {
    color: #5B9BD5;
}

.nav-link.active {
    color: #5B9BD5;
    font-weight: 600;
}

.hero {
    background: #faf8f3;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 50px 20px;
}


.hero-text {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 50px;
    height: 100%;
}

.top-line {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.word {
    display: inline-block;
    margin-right: 10px;
}

.word-1 { animation: wordHighlight 4.5s linear infinite; }
.word-2 { animation: wordHighlight 4.5s linear infinite 0.5s; }
.word-3 { animation: wordHighlight 4.5s linear infinite 1s; }
.word-4 { animation: wordHighlight 4.5s linear infinite 1.5s; }
.word-5 { animation: wordHighlight 4.5s linear infinite 2s; }
.word-6 { animation: wordHighlight 4.5s linear infinite 2.5s; }
.word-7 { animation: wordHighlight 4.5s linear infinite 3s; }
.word-8 { animation: wordHighlight 4.5s linear infinite 3.5s; }
.word-9 { animation: wordHighlight 4.5s linear infinite 4s; }

@keyframes wordHighlight {
    0%, 10% {
        color: #000000;
    }
    10.01%, 20% {
        color: #5B9BD5;
    }
    20.01%, 100% {
        color: #000000;
    }
}



.line-2 {
    position: static !important;
}

.line {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 60px !important;
    color: #000000 !important;
    margin-bottom: 30px !important;
    line-height: 1.2 !important;
    width: 100% !important;
}

.line-3 {
    margin-bottom: 0 !important;
}

.line-3 {
    position: absolute !important;
    bottom: 140px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
}

.scroll-hint {
    position: absolute !important;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(91, 155, 213, 0.3), 0 0 40px rgba(91, 155, 213, 0.2);
}

.scroll-text {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    color: #666 !important;
    font-weight: 400 !important;
}

.scroll-arrow {
    font-size: 20px !important;
    color: #5B9BD5 !important;
    animation: arrowBounce 2s infinite;
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.hero-photo {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.profile-photo {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #5B9BD5;
    box-shadow: 0 20px 50px rgba(91, 155, 213, 0.3);
    position: relative;
    z-index: 3;
}

.doodle-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    z-index: 1;
}

.doodle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.word {
    fill: #000000;
}



.rotating-text-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    animation: spinText 20s linear infinite;
}

.rotating-text-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    animation: spinTextReverse 15s linear infinite;
}

.rotating-text-outer span {
    position: absolute;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #ff6b35;
    white-space: nowrap;
    transform-origin: 250px 250px;
}

.rotating-text-inner span {
    position: absolute;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #5B9BD5;
    white-space: nowrap;
    transform-origin: 200px 200px;
}

/* Position outer text around the circle */
.rotating-text-outer span:nth-child(1) { transform: rotate(0deg) translateX(250px) rotate(0deg); }
.rotating-text-outer span:nth-child(2) { transform: rotate(60deg) translateX(250px) rotate(-60deg); }
.rotating-text-outer span:nth-child(3) { transform: rotate(120deg) translateX(250px) rotate(-120deg); }
.rotating-text-outer span:nth-child(4) { transform: rotate(180deg) translateX(250px) rotate(-180deg); }
.rotating-text-outer span:nth-child(5) { transform: rotate(240deg) translateX(250px) rotate(-240deg); }
.rotating-text-outer span:nth-child(6) { transform: rotate(300deg) translateX(250px) rotate(-300deg); }

/* Position inner text around the circle */
.rotating-text-inner span:nth-child(1) { transform: rotate(0deg) translateX(200px) rotate(0deg); }
.rotating-text-inner span:nth-child(2) { transform: rotate(60deg) translateX(200px) rotate(-60deg); }
.rotating-text-inner span:nth-child(3) { transform: rotate(120deg) translateX(200px) rotate(-120deg); }
.rotating-text-inner span:nth-child(4) { transform: rotate(180deg) translateX(200px) rotate(-180deg); }
.rotating-text-inner span:nth-child(5) { transform: rotate(240deg) translateX(200px) rotate(-240deg); }
.rotating-text-inner span:nth-child(6) { transform: rotate(300deg) translateX(200px) rotate(-300deg); }



.line-1 { animation: lineHighlight 4.5s linear infinite; }
.line-2 { animation: lineHighlight 4.5s linear infinite 1.5s; }
.line-3 { animation: lineHighlight 4.5s linear infinite 3s; }

.text-underline {
    animation: underlineShow 4.5s linear infinite 3s;
}



@keyframes lineHighlight {
    0%, 20% {
        fill: #000000; /* Black */
    }
    20.01%, 40% {
        fill: #5B9BD5; /* Blue */
    }
    40.01%, 100% {
        fill: #000000; /* Black */
    }
}

@keyframes underlineShow {
    0%, 20% {
        opacity: 0;
    }
    20.01%, 40% {
        opacity: 1;
    }
    40.01%, 100% {
        opacity: 0;
    }
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .line {
        font-size: 3vw;
    }
}

@media (max-width: 480px) {
    /* Navigation for small mobile */
    .nav-menu {
        gap: 1rem;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    /* Hero section for small mobile */
    .line {
        font-size: 26px !important;
        margin-bottom: 15px !important;
    }
    
    .hero {
        padding: 15px 10px;
    }
    
    .hero-content {
        gap: 25px;
    }
    
    .line-3 {
        bottom: 100px !important;
    }
    
    /* Extra small mobile optimizations */
    .skills-list {
        grid-template-columns: 1fr;
        row-gap: 15px;
    }
    
    .skills-list li {
        width: 120px;
        height: 120px;
        font-size: 0.9rem;
        margin: 0 auto;
    }
    
    .profile-photo {
        width: 160px;
        height: 160px;
    }
    
    .circular-frame {
        width: 240px;
        height: 240px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* About page photos for very small screens */
    .header-pictures {
        gap: 10px;
        padding: 0 5px;
    }
    
    .header-frame {
        width: 120px;
        height: 120px;
    }
    
    /* Greek life hobby photos for very small screens */
    .hobbies-grid {
        gap: 15px;
        padding: 10px;
    }
    
    .hobby-frame {
        width: 120px;
        height: 120px;
        border: 3px solid white;
    }
    
    .corner-label {
        font-size: 0.7rem;
    }
    
    /* Contact form for very small screens */
    .contact-form {
        max-width: 95%;
        padding: 0 5px;
    }
    
    .contact-input {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .contact-textarea {
        font-size: 0.85rem;
        padding: 10px 12px;
        min-height: 80px;
    }
    
    .contact-submit {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
    
    /* Project pages mobile optimization */
    .project-container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .project-header {
        padding: 15px 0;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-meta-item {
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
    
    .section-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .text-content {
        margin-bottom: 20px;
    }
    
    .project-image {
        max-width: 100%;
        height: auto;
        margin: 10px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .two-column {
        flex-direction: column;
        gap: 15px;
    }
    
    .video-of-use--header {
        max-width: 100% !important;
        margin: 15px 0;
    }
    
    /* Second Service video for very small screens */
    .project-title-video video {
        max-height: 200px;
        border-radius: 6px;
    }
    
    /* Fix metrics and floating images for very small screens */
    .metric-card {
        padding: 15px 10px;
        max-width: 250px;
    }
    
    .metric-number {
        font-size: 1.8rem;
    }
    
    .floating-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .floating-img {
        height: 70px;
    }
}

@media (min-width: 1200px) {
    .line {
        font-size: 1.5vw;
    }
}



/* Projects Section */
.projects {
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.project-image {
    height: 250px;
    overflow: hidden;
    background: transparent;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 50px;
    background: white;
    border-radius: 0 0 12px 12px;
}

/* Override for main page project cards */
.projects-grid .project-card .project-content {
    padding: 50px !important;
    background: white !important;
    border-radius: 0 0 12px 12px !important;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.project-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #5B9BD5;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #F39C12;
}

/* Project Pages Styling */
/* Horizontal timeline for project2 */
.timeline {
    position: relative;
    margin: 24px 0 10px;
    padding: 30px 0 20px;
}

.timeline-track {
    height: 6px;
    background: rgba(91, 155, 213, 0.2);
    border-radius: 4px;
    position: relative;
}

.timeline-label {
    position: absolute;
    top: 0;
    font-size: 0.95rem;
    color: #333;
    font-weight: 700;
}

.timeline-label.left { left: 0; }
.timeline-label.right { right: 0; }

.timeline-markers {
    position: relative;
    height: 0;
}

.timeline-markers .marker {
    position: absolute;
    top: -6px;
    width: 10px;
    height: 10px;
    background: #5B9BD5;
    border: 2px solid #F39C12; /* yellow accent ring */
    border-radius: 50%;
    transform: translateX(-50%);
}
.project-header {
    background: #faf8f3;
    padding: 80px 0 60px;
    border-bottom: 3px solid #5B9BD5;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(91, 155, 213, 0.15);
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
}

.scroll-progress__bar {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    height: 100%;
    width: 0;
    background: #5B9BD5;
    transition: width 0.08s linear;
}

.project-header .container .project-header-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) {
    .project-header .container .project-header-grid {
        grid-template-columns: 1fr;
    }
}

.project-intro-video .video-of-use--header video {
    width: 100%;
    max-width: 520px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5B9BD5;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 20px;
    border: 2px solid #5B9BD5;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    background: white;
    box-shadow: 0 4px 15px rgba(91, 155, 213, 0.2);
}

.back-link:hover {
    background: #5B9BD5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 155, 213, 0.3);
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 800px;
}

.project-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-meta span {
    background: #5B9BD5;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 300;
    border: 2px solid #F39C12;
}

.project-meta span strong {
    font-weight: 700;
    color: white;
    margin-right: 4px;
}

.project-title-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.project-title-bio {
    flex: 0 0 45%;
}

.project-title {
    margin-bottom: 10px;
}

.project-title-video {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    margin-right: 0;
}

.project-title-video video {
    height: 700px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border: 3px solid #e9e9e9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-left: 96px;
}

.project-content {
    background: #faf8f3;
    padding: 30px 0;
}

/* PianoProse page: make content edge-to-edge */
body.project-pianoprose .project-content .container {
    max-width: 1400px; /* match global container used by other project pages */
    width: 100%;
    padding-left: 20px; /* align with .container default */
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

body.project-pianoprose .project-section {
    border-left: none;
    border-right: none;
    padding-top: 30px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 4px solid #5B9BD5;
}

/* Remove max-width constraints inside sections for this page */
body.project-pianoprose .research-content,
body.project-pianoprose .design-content,
body.project-pianoprose .prototyping-content,
body.project-pianoprose .outcomes-content {
    max-width: none;
}

/* Make overview grid stretch full width */
body.project-pianoprose .project-overview {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

/* Headings centered for readability */
body.project-pianoprose .project-section h2 {
    text-align: center;
}

/* Keep images responsive but allow larger width */
body.project-pianoprose .overview-image img,
body.project-pianoprose .keyboard-image img,
body.project-pianoprose .why-piano-image img,
body.project-pianoprose .shift-image img,
body.project-pianoprose .final-layout-image img,
body.project-pianoprose .tech-spec-image img {
    width: 100%;
}

/* Alternating two-column layout per section (text/media) - DISABLED for custom layouts */
body.project-pianoprose .project-section > .research-content,
body.project-pianoprose .project-section > .design-content,
body.project-pianoprose .project-section > .prototyping-content,
body.project-pianoprose .project-section > .outcomes-content,
body.project-pianoprose .project-section > .future-content,
body.project-pianoprose .project-section > .credits-content {
    display: block;
}

/* Float common media blocks to the right with reasonable width */
/* Media blocks occupy the right column by default */
body.project-pianoprose .why-piano-image,
body.project-pianoprose .keyboard-comparison,
body.project-pianoprose .challenges-image,
body.project-pianoprose .design-considerations-image,
body.project-pianoprose .letter-mapping-image,
body.project-pianoprose .shift-image,
body.project-pianoprose .final-layout-image,
body.project-pianoprose .tech-spec-image,
body.project-pianoprose .user-video-comparison,
body.project-pianoprose .video-of-use,
body.project-pianoprose .video-container {
    grid-column: 2;
    width: 100%;
    margin: 0;
}

/* Textual elements occupy the left column by default */
body.project-pianoprose .research-content > h3,
body.project-pianoprose .research-content > p,
body.project-pianoprose .research-content > ul,
body.project-pianoprose .design-content > h3,
body.project-pianoprose .design-content > p,
body.project-pianoprose .design-content > ul,
body.project-pianoprose .prototyping-content > h3,
body.project-pianoprose .prototyping-content > p,
body.project-pianoprose .prototyping-content > ul,
body.project-pianoprose .outcomes-content > h3,
body.project-pianoprose .outcomes-content > p,
body.project-pianoprose .outcomes-content > ul,
body.project-pianoprose .future-content > h3,
body.project-pianoprose .future-content > p,
body.project-pianoprose .future-content > ul,
body.project-pianoprose .credits-content > h3,
body.project-pianoprose .credits-content > p,
body.project-pianoprose .credits-content > ul {
    grid-column: 1;
}

/* Swap columns for even sections */
body.project-pianoprose .project-section:nth-of-type(even) > .research-content > h3,
body.project-pianoprose .project-section:nth-of-type(even) > .research-content > p,
body.project-pianoprose .project-section:nth-of-type(even) > .research-content > ul,
body.project-pianoprose .project-section:nth-of-type(even) > .design-content > h3,
body.project-pianoprose .project-section:nth-of-type(even) > .design-content > p,
body.project-pianoprose .project-section:nth-of-type(even) > .design-content > ul,
body.project-pianoprose .project-section:nth-of-type(even) > .prototyping-content > h3,
body.project-pianoprose .project-section:nth-of-type(even) > .prototyping-content > p,
body.project-pianoprose .project-section:nth-of-type(even) > .prototyping-content > ul,
body.project-pianoprose .project-section:nth-of-type(even) > .outcomes-content > h3,
body.project-pianoprose .project-section:nth-of-type(even) > .outcomes-content > p,
body.project-pianoprose .project-section:nth-of-type(even) > .outcomes-content > ul,
body.project-pianoprose .project-section:nth-of-type(even) > .future-content > h3,
body.project-pianoprose .project-section:nth-of-type(even) > .future-content > p,
body.project-pianoprose .project-section:nth-of-type(even) > .future-content > ul,
body.project-pianoprose .project-section:nth-of-type(even) > .credits-content > h3,
body.project-pianoprose .project-section:nth-of-type(even) > .credits-content > p,
body.project-pianoprose .project-section:nth-of-type(even) > .credits-content > ul {
    grid-column: 2;
}

body.project-pianoprose .project-section:nth-of-type(even) > .research-content > .why-piano-image,
body.project-pianoprose .project-section:nth-of-type(even) > .research-content > .keyboard-comparison,
body.project-pianoprose .project-section:nth-of-type(even) > .research-content > .challenges-image,
body.project-pianoprose .project-section:nth-of-type(even) > .research-content > .user-video-comparison,
body.project-pianoprose .project-section:nth-of-type(even) > .research-content > .video-of-use,
body.project-pianoprose .project-section:nth-of-type(even) > .research-content > .video-container,
body.project-pianoprose .project-section:nth-of-type(even) > .design-content > .design-considerations-image,
body.project-pianoprose .project-section:nth-of-type(even) > .design-content > .letter-mapping-image,
body.project-pianoprose .project-section:nth-of-type(even) > .design-content > .shift-image,
body.project-pianoprose .project-section:nth-of-type(even) > .design-content > .video-of-use,
body.project-pianoprose .project-section:nth-of-type(even) > .prototyping-content > .final-layout-image,
body.project-pianoprose .project-section:nth-of-type(even) > .prototyping-content > .tech-spec-image,
body.project-pianoprose .project-section:nth-of-type(even) > .prototyping-content > .user-video-comparison,
body.project-pianoprose .project-section:nth-of-type(even) > .prototyping-content > .video-of-use,
body.project-pianoprose .project-section:nth-of-type(even) > .outcomes-content > .user-video-comparison,
body.project-pianoprose .project-section:nth-of-type(even) > .outcomes-content > .video-of-use {
    grid-column: 1;
}

/* Ensure inner media fits container */
body.project-pianoprose .why-piano-image img,
body.project-pianoprose .keyboard-comparison img,
body.project-pianoprose .challenges-image img,
body.project-pianoprose .design-considerations-image img,
body.project-pianoprose .letter-mapping-image img,
body.project-pianoprose .shift-image img,
body.project-pianoprose .final-layout-image img,
body.project-pianoprose .tech-spec-image img {
    width: 100%;
    height: auto;
}

/* Clear floats at end of each content block */
body.project-pianoprose .research-content::after,
body.project-pianoprose .design-content::after,
body.project-pianoprose .prototyping-content::after,
body.project-pianoprose .outcomes-content::after,
body.project-pianoprose .future-content::after,
body.project-pianoprose .credits-content::after {
    content: '';
    display: table;
    clear: both;
}

/* Stack on small screens */
@media (max-width: 900px) {
    body.project-pianoprose .project-section > .research-content,
    body.project-pianoprose .project-section > .design-content,
    body.project-pianoprose .project-section > .prototyping-content,
    body.project-pianoprose .project-section > .outcomes-content,
    body.project-pianoprose .project-section > .future-content,
    body.project-pianoprose .project-section > .credits-content {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 20px;
    }
    body.project-pianoprose .why-piano-image,
    body.project-pianoprose .keyboard-comparison,
    body.project-pianoprose .challenges-image,
    body.project-pianoprose .design-considerations-image,
    body.project-pianoprose .letter-mapping-image,
    body.project-pianoprose .shift-image,
    body.project-pianoprose .final-layout-image,
    body.project-pianoprose .tech-spec-image,
    body.project-pianoprose .user-video-comparison,
    body.project-pianoprose .video-of-use,
    body.project-pianoprose .video-container {
        grid-column: 1;
    width: 100%;
        margin: 0;
    }
}

/* Target audience text stretches full width */
body.project-pianoprose .research-content h3:first-of-type + p {
    max-width: none !important;
    text-align: left !important;
}

/* Outreach challenges: full-width text with photo on far right */
body.project-pianoprose .outreach-challenges-row {
    display: grid !important;
    grid-template-columns: 1fr minmax(300px, 400px) !important;
    gap: 40px !important;
    align-items: start !important;
    margin: 30px 0 !important;
}

body.project-pianoprose .outreach-challenges-text {
    grid-column: 1 !important;
}

body.project-pianoprose .outreach-challenges-text h3 {
    text-align: left !important;
    margin-bottom: 20px !important;
}

body.project-pianoprose .outreach-challenges-text p {
    text-align: left !important;
    margin-bottom: 16px !important;
    max-width: none !important;
}

body.project-pianoprose .outreach-challenges-row .challenges-image {
    grid-column: 2 !important;
    width: 100% !important;
}

/* Main design goal: centered */
body.project-pianoprose .design-content p:first-of-type {
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    margin-bottom: 30px !important;
}

/* Key layout section: left-aligned with photo on right */
body.project-pianoprose .design-content h3:nth-of-type(2) {
    text-align: left !important;
    margin-left: 0 !important;
}

body.project-pianoprose .design-content h3:nth-of-type(2) + p {
    text-align: left !important;
    max-width: none !important;
}

@media (max-width: 900px) {
    body.project-pianoprose .outreach-challenges-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    body.project-pianoprose .outreach-challenges-row .challenges-image {
        grid-column: 1;
    }
}

.project-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #5B9BD5;
}

.project-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    position: relative;
}

.project-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #5B9BD5;
    border-radius: 2px;
}

.project-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.overview-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 8px solid white;
}

.overview-image img {
    width: 100%;
    height: auto;
    display: block;
}

.problem-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.problem-visuals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.problem-visual-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid #5B9BD5;
    transition: transform 0.3s ease;
}

.problem-visual-card:hover {
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.problem-visual-card h4 {
    color: #5B9BD5;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.problem-visual-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .problem-visuals {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.research-content {
    max-width: 800px;
    margin: 0 auto;
}

.research-content h3 {
    color: #5B9BD5;
    font-size: 1.3rem;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.research-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.research-content ul {
    margin-bottom: 30px;
    padding-left: 40px;
}

.research-content li {
    margin-bottom: 8px;
}

.design-content {
    max-width: 800px;
    margin: 0 auto;
}

.design-content h3 {
    color: #5B9BD5;
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.design-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.prototyping-content {
    max-width: 800px;
    margin: 0 auto;
}

.prototyping-content h3 {
    color: #5B9BD5;
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.prototyping-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.prototyping-content ul {
    margin-bottom: 30px;
    padding-left: 40px;
}

.prototyping-content li {
    margin-bottom: 8px;
}

.outcomes-content {
    max-width: 800px;
    margin: 0 auto;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.metric-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid #5B9BD5;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5B9BD5;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.metric-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.outcomes-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.outcome-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #5B9BD5;
}

.outcome-section h3 {
    color: #5B9BD5;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.outcome-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.outcome-section blockquote {
    background: #f8f9fa;
    border-left: 3px solid #5B9BD5;
    padding: 15px;
    margin: 15px 0;
    font-style: italic;
    color: #666;
}

.quote-bubble {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.speech-bubble {
    background: white;
    color: #333;
    padding: 25px 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    border-radius: 15px;
}



.speech-bubble p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 0 10px 0;
    font-style: italic;
}

.video-container {
    margin: 30px 0;
    text-align: center;
}

.video-container iframe {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.keyboard-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.keyboard-image {
    text-align: center;
}

.keyboard-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.why-piano-image {
    text-align: center;
    margin: 2rem 0;
}

.why-piano-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.challenges-image {
    text-align: center;
    margin: 2rem 0;
}

.challenges-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.design-considerations-image {
    text-align: center;
    margin: 2rem 0;
}

.design-considerations-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.letter-mapping-image {
    text-align: center;
    margin: 2rem 0;
}

.letter-mapping-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.shift-image {
    text-align: center;
    margin: 2rem 0;
}

.shift-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.final-layout-image {
    text-align: center;
    margin: 2rem 0;
}

.final-layout-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tech-spec-image {
    text-align: center;
    margin: 2rem 0;
}

.tech-spec-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.user-video-comparison {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.user-image {
    text-align: center;
    flex: 0 1 400px;
}

.user-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.video-of-use {
    text-align: center;
    margin: 2rem 0;
}

.video-of-use video {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.video-fallback {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

.video-fallback a {
    color: #5B9BD5;
    text-decoration: underline;
}

.quote-author {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.key-takeaway {
    background: linear-gradient(135deg, #5B9BD5, #4a8bc4);
    color: white !important;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    text-align: center;
}

.key-takeaway h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: white !important;
}

.key-takeaway p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: white !important;
}

.key-takeaway ul {
    text-align: left;
    margin: 0;
    padding-left: 20px;
}

.key-takeaway li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: white !important;
}

.key-takeaway li:last-child {
    margin-bottom: 0;
}

.future-content {
    max-width: 800px;
    margin: 0 auto;
}

.future-content h3 {
    color: #5B9BD5;
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.future-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.future-content ul {
    margin-bottom: 30px;
    padding-left: 40px;
}

.future-content li {
    margin-bottom: 8px;
}

.problem-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.problem-point {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #5B9BD5;
    transition: transform 0.3s ease;
}

.problem-point:hover {
    transform: translateY(-5px);
}

.problem-point h4 {
    color: #5B9BD5;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.problem-point p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.process-step {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 3px solid transparent;
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: #5B9BD5;
}

.process-step h3 {
    color: #5B9BD5;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.process-step p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.process-step img,
.process-step video {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.solution-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.solution-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 4px solid #5B9BD5;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h4 {
    color: #5B9BD5;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.solution-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.solution-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 8px solid white;
    transition: transform 0.3s ease;
}

.solution-gallery img:hover {
    transform: scale(1.05);
}

.results-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.results-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.metric {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border-bottom: 4px solid #5B9BD5;
}

.metric:hover {
    transform: translateY(-5px);
}

.metric h4 {
    color: #5B9BD5;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.metric p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.key-learnings {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    border-left: 5px solid #5B9BD5;
}

.key-learnings h4 {
    color: #5B9BD5;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.key-learnings ul {
    list-style: none;
    padding: 0;
}

.key-learnings li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.key-learnings li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #5B9BD5;
    font-weight: bold;
}

.next-project {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

.next-project-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.next-project-link:hover {
    transform: translateY(-5px);
}

.next-project-preview {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 3px solid #5B9BD5;
    transition: all 0.3s ease;
}

.next-project-preview:hover {
    box-shadow: 0 20px 40px rgba(91, 155, 213, 0.2);
}

.next-project-preview img {
    width: 100%;
    height: 300px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.next-project-info h3 {
    color: #5B9BD5;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.next-project-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background: #f8f8f8;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #f0f0f0;
}

/* Fun Stuff Section Styling */
.fun-stuff {
    background: white;
    padding: 40px 0;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #F39C12;
    background: transparent;
    color: #5B9BD5;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: #5B9BD5;
    color: white;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.25);
}

.filter-btn.active {
    font-weight: 600;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.gallery-item img {
    display: block;
    max-width: 400px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.45));
    color: #ffffff;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover img.rotate-90-fix {
    transform: rotate(270deg) scaleX(-1) scale(1.1) !important;
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Exclamation Points Title Wrapper */
.squiggly-title-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto 3rem;
    text-align: center;
    width: 100%;
}

.squiggly-title-wrapper::before { content: none; }

.squiggly-title-wrapper::after { content: none; }

.squiggly-title-wrapper .section-title::before { content: none; }

.squiggly-title-wrapper .section-title::after { content: none; }

/* Random exclamation points */
.exclamation {
    position: absolute;
    color: #5B9BD5;
    font-weight: bold;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

.exclamation-1 {
    top: -8px;
    left: -8px;
    font-size: 1.8rem;
    animation-delay: 0s;
}

.exclamation-2 {
    top: -6px;
    right: -10px;
    font-size: 1.6rem;
    animation-delay: 0.3s;
}

.exclamation-3 {
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    font-size: 2rem;
    animation-delay: 0.6s;
}

.exclamation-4 {
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    font-size: 1.7rem;
    animation-delay: 0.9s;
}

.exclamation-5 {
    bottom: -6px;
    left: 5%;
    font-size: 1.4rem;
    animation-delay: 1.2s;
}

.exclamation-6 {
    bottom: -5px;
    right: 8%;
    font-size: 1.5rem;
    animation-delay: 1.5s;
}

.exclamation-7 {
    top: -3px;
    left: 15%;
    font-size: 1.3rem;
    animation-delay: 1.8s;
}

.exclamation-8 {
    top: -4px;
    right: 18%;
    font-size: 1.2rem;
    animation-delay: 2.1s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Section Styling */
.about {
    background: white;
}

.about-header {
    display: grid;
    grid-template-columns: 1fr; /* single centered column */
    justify-items: center; /* center children horizontally */
    align-items: start;
    column-gap: 80px;
    row-gap: 20px;
    margin-bottom: 140px;
    padding-top: 10px;
}

.header-left, .header-right {
    display: flex;
        flex-direction: column;
    align-items: center;
        gap: 40px;
    flex-shrink: 0;
}

.about-header .section-title {
    position: static;
    transform: none;
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 1;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 2.5rem;
    text-align: center;
    margin: 0 0 10px 0;
}

.about-header .header-left,
.about-header .header-right {
    grid-row: 2;
}

.header-pictures {
    display: flex;
    justify-content: center; /* center the photo row */
    flex-wrap: nowrap; /* keep photos in a single line */
    gap: 30px;
}

.header-frame {
    width: 320px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 10px solid white;
    position: relative;
    border: 3px solid #5B9BD5;
}

.header-frame:nth-child(1) {
    transform: rotate(-8deg) translateY(-15px);
}

.header-frame:nth-child(2) {
    transform: rotate(5deg) translateY(10px);
}

.header-frame:nth-child(3) {
    transform: rotate(-6deg) translateY(-8px);
}

.header-frame:nth-child(4) {
    transform: rotate(7deg) translateY(12px);
}

.header-frame:hover {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.header-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.header-frame:hover img {
    transform: scale(1.05);
}

.about-content {
    display: block; /* stack sections vertically so skills sit under story */
    margin-bottom: 100px;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

/* Make secondary about headers match "my story" size */
.about-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 28px;
    font-size: 1.3rem;
    line-height: 2.0;
    color: #555;
}

.skills-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 180px);
    column-gap: 20px;
    row-gap: 24px;
    margin-top: 20px;
    justify-content: center;
}

.skills-list li {
    background: #5B9BD5;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #F39C12; /* stronger yellow accent ring */
    transition: all 0.3s ease;
    cursor: default;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px; /* allow wrapped text inside circle */
    box-shadow: 0 0 0 8px rgba(243, 156, 18, 0.22), 0 0 0 18px rgba(243, 156, 18, 0.12);
    position: relative;
}

.skills-list li:hover {
    background: #5B9BD5; /* keep stable; avoid harsh invert inside circles */
    color: white;
    transform: none;
    box-shadow: 0 0 0 10px rgba(243, 156, 18, 0.26), 0 0 0 22px rgba(243, 156, 18, 0.14);
    border-color: #F39C12;
}

/* Static concentric yellow waves around skill bubbles */
.skills-list li::after,
.skills-list li::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.skills-list li::after {
    /* First outer ring */
    inset: -10px;
    border: 2px solid rgba(243, 156, 18, 0.35);
}

.skills-list li::before {
    /* Second outer ring further out */
    inset: -20px;
    border: 2px solid rgba(243, 156, 18, 0.2);
}

/* Facts & Hobbies Section */
.facts-hobbies-section {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* Fade-in on load for sections below "my story" */
.section-block {
    opacity: 0;
    transform: translateY(10px);
}

.page-loaded .section-block:not(.reveal-on-scroll) {
    opacity: 1;
    transform: none;
    transition: opacity 500ms ease, transform 500ms ease;
}

/* Scroll-based reveal for About sections */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: none;
    transition: opacity 500ms ease, transform 500ms ease;
}

/* Make CMU Greek Life section appear faster */
.cmu-greek-section .reveal-on-scroll {
    transform: translateY(8px);
}

.cmu-greek-section .reveal-on-scroll.revealed {
    transition: opacity 300ms ease-out, transform 300ms ease-out;
}

/* Quick Facts Section */
.quick-facts {
    margin: 60px 0 80px 0;
}

/* Force-disable any animations/transitions within quick facts */
.quick-facts, .quick-facts * {
    animation: none !important;
    transition: none !important;
}

.quick-facts h3 {
    font-size: 1.5rem; /* match other headers */
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-transform: lowercase;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
    position: relative;
}

.facts-grid .fact-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important; /* no motion */
}

.fact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    background: white;
    border-radius: 16px;
    border: 2px solid #F39C12;
    transition: none !important; /* no motion */
    position: relative;
    overflow: hidden;
    transform: none !important;
    box-shadow: none !important;
}

.fact-item::before { content: none; }

.fact-item:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #5B9BD5 !important;
    transition: none !important;
}

.fact-label {
    font-weight: 700;
    color: #5B9BD5;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
    display: block;
    width: 100%;
    text-align: center;
}

.fact-value {
    font-weight: 500;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    display: block;
}

/* Contact Section */
.contact-section {
    background: #faf8f3;
    padding: 60px 0;
    text-align: center;
}

.contact-section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.form-row:first-child {
    flex-direction: row;
}

.form-row:nth-child(2) {
    flex-direction: column;
}

.form-row:nth-child(3) {
    flex-direction: column;
}

.contact-input {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: white;
    color: #333;
    flex: 1;
    transition: all 0.3s ease;
}

.contact-input:focus {
    outline: none;
    border-color: #5B9BD5;
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.1);
}

.contact-textarea {
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: white;
    color: #333;
    width: 100%;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
}

.contact-textarea:focus {
    outline: none;
    border-color: #5B9BD5;
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.1);
}

.contact-submit {
    padding: 15px 30px;
    background: #5B9BD5;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-submit:hover {
    background: #4a8bc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 155, 213, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: white;
}

.icon-btn:hover {
    color: #5B9BD5;
    border-color: #5B9BD5;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(91, 155, 213, 0.3);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

.resume-btn {
    color: #555;
}

.email-btn {
    color: #555;
}

.linkedin-btn {
    color: #555;
}

/* CMU Greek Section */
.cmu-greek-section {
    margin-top: 0px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
}

.cmu-greek-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    text-transform: lowercase;
    text-align: center;
}

.cmu-greek-section p {
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

.big-three-text {
    text-align: center;
    font-weight: 600;
    color: #5B9BD5;
    margin-top: 40px;
    margin-bottom: 25px;
}

/* Hobbies & Extracurriculars Photos Section */
.hobbies-photos {
    text-align: center;
}

.hobbies-photos h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-transform: lowercase;
}

.hobbies-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
}

.photo-section-border {
    border: none;
    border-radius: 12px;
    padding: 18px;
    display: inline-block;
    width: 100%;
}

.hobby-frame {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 10px solid white;
    position: relative;
    background: white;
}

.hobby-frame::after {
    content: attr(data-label);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #5B9BD5;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(91, 155, 213, 0.3);
}

.hobby-frame.scrapbook-label::after {
    content: attr(data-label);
    position: absolute;
    top: 10px;
    left: 10px;
    transform: rotate(-3deg);
    color: #5B9BD5;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 10;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.hobby-frame.scrapbook-label:hover::after {
    transform: rotate(-3deg) translateY(-5px) scale(1.1);
    color: #5B9BD5;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
}

.photo-with-label {
    position: relative;
    display: inline-block;
}

.corner-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #5B9BD5;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 10;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-align: center;
}

.corner-label:hover {
    transform: translateX(-50%) translateY(-5px) scale(1.05);
}

.photo-with-label:hover .corner-label {
    transform: translateX(-50%) translateY(-10px) scale(1.1);
}

.hobby-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.hobby-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.hobby-frame:hover img {
    transform: scale(1.08);
}

/* Video Styling */
.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #000;
    max-width: 400px;
    max-height: 300px;
    margin: 0;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.3s ease;
    max-height: 300px;
}

.video-item:hover video {
    transform: scale(1.05);
}

.video-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
        flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0;
    pointer-events: none;
}

.video-item:hover .gallery-overlay {
    opacity: 1;
}

.video-item video:focus + .gallery-overlay,
.video-item video:active + .gallery-overlay {
    opacity: 0;
}

.video-item .play-button {
    font-size: 3rem;
    color: white;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation fixes */
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-menu {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .nav-brand a {
        font-size: 1.1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    /* Hero section fixes - keep original layout but improve mobile readability */
    .hero {
        min-height: 100vh;
        padding: 20px 15px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .line {
        font-size: 32px !important;
        margin-bottom: 20px !important;
        line-height: 1.2 !important;
    }
    
    .line-3 {
        position: absolute !important;
        bottom: 120px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
    }
    
    .scroll-hint {
        position: absolute !important;
        bottom: 40px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .circular-frame {
        width: 280px;
        height: 280px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Mobile optimizations for about page */
    .skills-list {
        grid-template-columns: repeat(2, 140px);
        column-gap: 15px;
        row-gap: 20px;
        justify-content: center;
    }
    
    .skills-list li {
        width: 140px;
        height: 140px;
        font-size: 0.95rem;
        padding: 12px;
        box-shadow: 0 0 0 6px rgba(243, 156, 18, 0.22), 0 0 0 14px rgba(243, 156, 18, 0.12);
    }
    
    .skills-list li:hover {
        box-shadow: 0 0 0 8px rgba(243, 156, 18, 0.26), 0 0 0 18px rgba(243, 156, 18, 0.14);
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .about-text p {
        font-size: 1.2rem;
        line-height: 1.9;
    }
    
    /* About page header photos - mobile fix */
    .header-pictures {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 0 10px;
    }
    
    .header-frame {
        width: 140px;
        height: 140px;
        border: 2px solid #5B9BD5;
    }
    
    .header-frame:nth-child(1),
    .header-frame:nth-child(2),
    .header-frame:nth-child(3),
    .header-frame:nth-child(4) {
        transform: rotate(0deg) translateY(0px);
    }
    
    .header-frame:hover {
        transform: rotate(0deg) translateY(-3px);
    }

    /* Greek life hobby photos - mobile fix */
    .hobbies-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 15px;
    }
    
    .hobby-frame {
        width: 140px;
        height: 140px;
        border: 5px solid white;
    }
    
    .photo-with-label {
        flex: 0 0 auto;
        margin-bottom: 20px;
    }
    
    .corner-label {
        font-size: 0.8rem;
        margin-bottom: 8px;
        text-align: center;
    }

    /* Contact form mobile fix */
    .contact-form {
        max-width: 90%;
        padding: 0 10px;
    }
    
    .form-row:first-child {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-input {
        width: 100%;
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .contact-textarea {
        font-size: 0.9rem;
        padding: 12px 15px;
        min-height: 100px;
    }
    
    .contact-submit {
        font-size: 0.9rem;
        padding: 12px 25px;
    }

    /* Project pages mobile optimization */
    .project-header {
        padding: 20px 15px;
        text-align: left;
    }
    
    .project-header h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .project-header p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .project-meta-item {
        font-size: 0.95rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-video {
        order: 2;
        max-width: 100%;
    }
    
    .section-content {
        flex-direction: column;
        gap: 25px;
        padding: 0 15px;
    }
    
    .text-content {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .image-content {
        width: 100%;
        text-align: center;
    }
    
    .project-image {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    /* Fix outcome metrics for mobile */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .metric-card {
        padding: 20px 15px;
        margin: 0 auto;
        max-width: 280px;
    }
    
    .metric-number {
        font-size: 2rem;
    }
    
    .metric-label {
        font-size: 1rem;
    }
    
    .metric-desc, .metric-sub {
        font-size: 0.85rem;
    }
    
    .outcomes-sections {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    /* Replace floating images with simple grid on mobile */
    .floating-images {
        position: relative !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .floating-img {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        opacity: 1 !important;
        width: 100%;
        height: 80px;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 20px 0;
    }
    
    .stat-item {
        text-align: center;
        padding: 15px;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .process-step {
        margin-bottom: 25px;
    }
    
    .two-column {
        flex-direction: column;
        gap: 20px;
    }
    
    .floating-images {
        display: none; /* Hide floating images on mobile as they don't work well */
    }
    
    .video-of-use--header {
        max-width: 100% !important;
        margin: 20px 0;
    }
    
    .back-link {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    /* Fix Second Service video frame issue */
    .project-title-video {
        margin-right: 0;
        justify-content: center;
    }
    
    .project-title-video video {
        height: auto;
        max-height: 250px;
        width: 100%;
        max-width: 100%;
        border: none;
        margin-left: 0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Adjust margins for mobile */
    .facts-hobbies-section {
        margin: 60px auto 60px !important;
    }
    
    .about-text {
        margin: 0 auto 60px !important;
    }
    
    .section-block {
        margin: 0 auto 60px !important;
    }
    
    /* Container padding for mobile */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Floating Images Animation */
.impact-section {
    position: relative;
    overflow: hidden;
}

.floating-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-img {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0) translate(-50%, -50%);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    filter: none;
}

.impact-section.animate .floating-img {
    opacity: 1;
    transform: scale(1) translate(-50%, -50%);
}

.floating-img-1 {
    top: 12%;
    right: 5%;
    animation-delay: 0.1s;
}

.floating-img-2 {
    top: 35%;
    right: 8%;
    animation-delay: 0.2s;
}

.floating-img-3 {
    top: 30%;
    left: 8%;
    animation-delay: 0.3s;
}

.floating-img-4 {
    top: 65%;
    right: 6%;
    animation-delay: 0.4s;
}

.floating-img-5 {
    top: 65%;
    left: 15%;
    animation-delay: 0.5s;
}

.floating-img-6 {
    top: 15%;
    left: 10%;
    animation-delay: 0.6s;
}

/* Ensure content stays above floating images */
.results-content {
    position: relative;
    z-index: 10;
    background: transparent;
    padding: 20px;
    border-radius: 10px;
}

.brand-key {
    color: #5B9BD5;
    font-weight: 700;
}

.brand-key-heading {
    text-align: center;
    font-weight: 700;
    color: #5B9BD5;
    margin-top: 12px;
    margin-bottom: 8px;
}

/* Increase specificity to override any .process-step p color rules */
.process-step .brand-key-heading {
    color: #5B9BD5;
}

/* Subtle frames for images so they don't blend into white backgrounds */
.project-content img:not(.floating-img) {
    border: 2px solid #e9e9e9;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Ensure Process & Timeline media inherit the frame */
.process-step img {
    border: 2px solid #e9e9e9;
}

/* Make Next Project image smaller on PianoProse page only */
body.project-pianoprose .next-project-preview img {
    height: 220px;
}

/* Make Next Project image smaller on Second Service page only */
body.project-secondservice .next-project-preview img {
    height: 180px;
}

/* Project 3 layouts: two-column text + screens */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.single-screen img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.kiosk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.kiosk-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-list {
    margin: 12px 0 0;
    padding-left: 18px;
}

.feature-list li {
    margin: 6px 0;
}

/* Project 3 specific styling for new sections */
.setback-points, .future-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.setback-point, .future-step {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #5B9BD5;
}

/* Enhanced setback styling for better visibility */
.setback-point {
    background: #fff;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* On Plaid Pickup page, make left border blue instead of red for setback boxes */
body.project-plaidpickup .setback-point {
    border-left-color: #5B9BD5 !important;
}

.setback-point h4, .future-step h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.1rem;
}

/* Make setback headers more prominent */
.setback-point h4 {
    color: #e74c3c;
    font-weight: 700;
}

.setback-image {
    margin-top: 24px;
    text-align: center;
}

.setback-emojis {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.setback-emojis img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.emoji-left, .emoji-right {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.research-design-content {
    display: block;
    margin: 24px 0;
}

.research-phase, .design-phase {
    padding: 24px;
    background: #faf8f3;
    border-radius: 8px;
}

/* add spacing between stacked sections */
.research-phase { margin-bottom: 24px; }

.research-phase h3, .design-phase h3 {
    margin: 0 0 16px 0;
    color: #5B9BD5;
    font-size: 1.3rem;
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.research-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.design-subsection {
    margin: 40px 0 0 0;
    padding: 32px 0 0 0;
    border-top: 1px solid #e0e0e0;
}

.design-subsection h3 {
    margin: 0 0 24px 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.design-flow-text {
    text-align: center;
    margin: 32px 0;
}

.flow-indicator {
    display: inline-block;
    font-size: 1.2rem;
    color: #5B9BD5;
    font-weight: 600;
    font-style: italic;
    padding: 8px 16px;
    background: rgba(91, 155, 213, 0.1);
    border-radius: 20px;
}

/* Project 3 overview grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.overview-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 20px !important;
}

/* Project 3 problem discovery grid */
.problem-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.problem-grid img {
    max-width: 600px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: none;
    box-shadow: none;
    background: transparent;
}

.problem-caption {
    text-align: center;
    margin-top: 4px;
}

.problem-caption p {
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    text-transform: none;
}

/* Project 3: remove all white frames around images */
body.project-plaidpickup .overview-grid img,
body.project-plaidpickup .problem-grid img,
body.project-plaidpickup .screen-grid img,
body.project-plaidpickup .single-screen img,
body.project-plaidpickup .kiosk-grid img,
body.project-plaidpickup .research-phase img,
body.project-plaidpickup .design-phase img {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Project 3: rounded corners on all images */
body.project-plaidpickup img {
    border-radius: 12px;
}

/* Emphasize rounding on the five overview/problem photos */
body.project-plaidpickup .overview-grid img,
body.project-plaidpickup .problem-grid img {
    border-radius: 16px !important;
}

/* Design subsection headings in brand blue */
body.project-plaidpickup .design-subsection h3 {
    color: #5B9BD5 !important;
    text-transform: none !important;
    font-weight: 600;
}

/* Remove thin divider under Design section on Project 3 */
body.project-plaidpickup .design-subsection {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 24px;
}

/* Problem Discovery cards - matching setbacks/future styling */
.problem-circles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 16px 0 20px;
}

.problem-circle {
    padding: 28px 24px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #5B9BD5;
        text-align: center;
    position: relative;
}

.problem-number {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #5B9BD5;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.problem-circle span:not(.problem-number) {
    color: #222;
    font-weight: 400;
    line-height: 1.3;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

@media (max-width: 700px) {
    .problem-circles {
        grid-template-columns: 1fr;
    }
}

/* Lazy loading and optimized image styles */
.optimized-image {
    transition: opacity 0.3s ease;
}

.optimized-image[loading="lazy"] {
    opacity: 0;
}

.optimized-image[loading="lazy"].loaded {
    opacity: 1;
}

/* Smooth loading animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.optimized-image.loaded {
    animation: fadeIn 0.3s ease-in-out;
}

/* Orientation utilities for incorrectly rotated source images */
.rotate-90-fix {
    transform: rotate(270deg) scaleX(-1) !important;
    transform-origin: center center !important;
}

/* Apply sizing for gallery images only */
.gallery-item .rotate-90-fix {
    max-width: 400px !important;
    max-height: 300px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Ensure profile photo stays circular */
.profile-photo.rotate-90-fix {
    width: 400px !important;
    height: 400px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Lazy loading and optimized image styles */
.optimized-image {
    transition: opacity 0.3s ease;
}

.optimized-image[loading="lazy"] {
    opacity: 0;
}

.optimized-image[loading="lazy"].loaded {
    opacity: 1;
}

/* Smooth loading animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.optimized-image.loaded {
    animation: fadeIn 0.3s ease-in-out;
}
