/* Import Instrument fonts */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif&display=swap');

:root {
    --dark-teal: #1a2928;
    --text-color: #ffffff;
    --accent-color: #ff4444;
    --font-serif: 'Instrument Serif', serif;
    --font-sans: 'Instrument Sans', sans-serif;
}
h3 {
    font-family: 'Instrument Serif';
}

.website-link{
    color:white;
    font-weight:bolder;
}

a {
    color:white!important;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--dark-teal);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* Header Styles */
header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 4rem;
}

.header-center {
    text-align: center;
}

.header-right {
    text-align: right;
}

/* Spoiler Text Effect */
.spoiler-text {
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

.hidden-text {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sparkle-overlay {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(0.5px);
}

/* Individual sparkle elements */
.sparkle {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    pointer-events: none;
    user-select: none;
}

/* Sparkle positioning and individual animations */
.sparkle-1 { top: 10%; left: 15%; animation: rippleWave 2.5s ease-in-out infinite, perlinScale1 3.2s ease-in-out infinite, perlinFade1 2.8s ease-in-out infinite; }
.sparkle-2 { top: 80%; left: 85%; animation: rippleWave 2.5s ease-in-out infinite 0.3s, perlinScale2 4.1s ease-in-out infinite, perlinFade2 3.5s ease-in-out infinite; }
.sparkle-3 { top: 45%; left: 5%; animation: rippleWave 2.5s ease-in-out infinite 0.6s, perlinScale3 3.8s ease-in-out infinite, perlinFade3 3.1s ease-in-out infinite; }
.sparkle-4 { top: 25%; left: 75%; animation: rippleWave 2.5s ease-in-out infinite 0.9s, perlinScale4 3.5s ease-in-out infinite, perlinFade4 2.9s ease-in-out infinite; }
.sparkle-5 { top: 65%; left: 25%; animation: rippleWave 2.5s ease-in-out infinite 1.2s, perlinScale5 4.3s ease-in-out infinite, perlinFade5 3.7s ease-in-out infinite; }
.sparkle-6 { top: 35%; left: 95%; animation: rippleWave 2.5s ease-in-out infinite 1.5s, perlinScale6 3.9s ease-in-out infinite, perlinFade6 3.3s ease-in-out infinite; }
.sparkle-7 { top: 85%; left: 45%; animation: rippleWave 2.5s ease-in-out infinite 1.8s, perlinScale7 3.6s ease-in-out infinite, perlinFade7 3.0s ease-in-out infinite; }
.sparkle-8 { top: 15%; left: 55%; animation: rippleWave 2.5s ease-in-out infinite 2.1s, perlinScale8 4.0s ease-in-out infinite, perlinFade8 3.4s ease-in-out infinite; }
.sparkle-9 { top: 55%; left: 65%; animation: rippleWave 2.5s ease-in-out infinite 0.4s, perlinScale9 3.7s ease-in-out infinite, perlinFade9 3.2s ease-in-out infinite; }
.sparkle-10 { top: 75%; left: 10%; animation: rippleWave 2.5s ease-in-out infinite 0.7s, perlinScale10 4.2s ease-in-out infinite, perlinFade10 3.6s ease-in-out infinite; }
.sparkle-11 { top: 5%; left: 85%; animation: rippleWave 2.5s ease-in-out infinite 1.0s, perlinScale11 3.4s ease-in-out infinite, perlinFade11 2.7s ease-in-out infinite; }
.sparkle-12 { top: 95%; left: 35%; animation: rippleWave 2.5s ease-in-out infinite 1.3s, perlinScale12 4.4s ease-in-out infinite, perlinFade12 3.8s ease-in-out infinite; }

.spoiler-text:hover .hidden-text,
.spoiler-text:active .hidden-text,
.spoiler-text.revealed .hidden-text {
    opacity: 1;
}

.spoiler-text:hover .sparkle-overlay,
.spoiler-text:active .sparkle-overlay,
.spoiler-text.revealed .sparkle-overlay {
    opacity: 0;
}

@keyframes rippleWave {
    0%, 100% {
        transform: translateX(0px) translateY(0px) scale(1);
    }
    12.5% {
        transform: translateX(-0.5px) translateY(-1px) scale(1.02);
    }
    25% {
        transform: translateX(-1px) translateY(-1.5px) scale(1.05);
    }
    37.5% {
        transform: translateX(-0.5px) translateY(-1px) scale(1.02);
    }
    50% {
        transform: translateX(0px) translateY(0px) scale(1);
    }
    62.5% {
        transform: translateX(0.5px) translateY(1px) scale(1.02);
    }
    75% {
        transform: translateX(1px) translateY(1.5px) scale(1.05);
    }
    87.5% {
        transform: translateX(0.5px) translateY(1px) scale(1.02);
    }
}

/* Perlin noise-like scale animations */
@keyframes perlinScale1 { 0% { transform: scale(0.8); } 23% { transform: scale(1.2); } 47% { transform: scale(0.9); } 71% { transform: scale(1.1); } 100% { transform: scale(0.8); } }
@keyframes perlinScale2 { 0% { transform: scale(1.1); } 19% { transform: scale(0.7); } 43% { transform: scale(1.3); } 68% { transform: scale(0.9); } 100% { transform: scale(1.1); } }
@keyframes perlinScale3 { 0% { transform: scale(0.9); } 31% { transform: scale(1.4); } 52% { transform: scale(0.6); } 79% { transform: scale(1.0); } 100% { transform: scale(0.9); } }
@keyframes perlinScale4 { 0% { transform: scale(1.2); } 27% { transform: scale(0.8); } 56% { transform: scale(1.1); } 83% { transform: scale(0.7); } 100% { transform: scale(1.2); } }
@keyframes perlinScale5 { 0% { transform: scale(0.7); } 35% { transform: scale(1.3); } 61% { transform: scale(0.9); } 88% { transform: scale(1.1); } 100% { transform: scale(0.7); } }
@keyframes perlinScale6 { 0% { transform: scale(1.0); } 22% { transform: scale(0.6); } 49% { transform: scale(1.4); } 76% { transform: scale(0.8); } 100% { transform: scale(1.0); } }
@keyframes perlinScale7 { 0% { transform: scale(0.8); } 29% { transform: scale(1.1); } 54% { transform: scale(0.7); } 81% { transform: scale(1.3); } 100% { transform: scale(0.8); } }
@keyframes perlinScale8 { 0% { transform: scale(1.3); } 33% { transform: scale(0.9); } 58% { transform: scale(1.0); } 85% { transform: scale(0.6); } 100% { transform: scale(1.3); } }
@keyframes perlinScale9 { 0% { transform: scale(0.6); } 26% { transform: scale(1.2); } 51% { transform: scale(0.8); } 77% { transform: scale(1.4); } 100% { transform: scale(0.6); } }
@keyframes perlinScale10 { 0% { transform: scale(1.1); } 24% { transform: scale(0.7); } 48% { transform: scale(1.3); } 72% { transform: scale(0.9); } 100% { transform: scale(1.1); } }
@keyframes perlinScale11 { 0% { transform: scale(0.9); } 32% { transform: scale(1.4); } 59% { transform: scale(0.5); } 86% { transform: scale(1.0); } 100% { transform: scale(0.9); } }
@keyframes perlinScale12 { 0% { transform: scale(1.2); } 28% { transform: scale(0.8); } 55% { transform: scale(1.1); } 82% { transform: scale(0.7); } 100% { transform: scale(1.2); } }

/* Perlin noise-like fade animations */
@keyframes perlinFade1 { 0% { opacity: 0.3; } 21% { opacity: 0.9; } 44% { opacity: 0.1; } 67% { opacity: 0.7; } 89% { opacity: 0.4; } 100% { opacity: 0.3; } }
@keyframes perlinFade2 { 0% { opacity: 0.8; } 18% { opacity: 0.2; } 39% { opacity: 0.9; } 63% { opacity: 0.1; } 84% { opacity: 0.6; } 100% { opacity: 0.8; } }
@keyframes perlinFade3 { 0% { opacity: 0.1; } 25% { opacity: 0.8; } 47% { opacity: 0.3; } 71% { opacity: 0.9; } 93% { opacity: 0.2; } 100% { opacity: 0.1; } }
@keyframes perlinFade4 { 0% { opacity: 0.6; } 23% { opacity: 0.1; } 46% { opacity: 0.8; } 69% { opacity: 0.3; } 91% { opacity: 0.7; } 100% { opacity: 0.6; } }
@keyframes perlinFade5 { 0% { opacity: 0.2; } 27% { opacity: 0.9; } 51% { opacity: 0.4; } 74% { opacity: 0.1; } 96% { opacity: 0.8; } 100% { opacity: 0.2; } }
@keyframes perlinFade6 { 0% { opacity: 0.7; } 19% { opacity: 0.3; } 42% { opacity: 0.9; } 66% { opacity: 0.1; } 88% { opacity: 0.5; } 100% { opacity: 0.7; } }
@keyframes perlinFade7 { 0% { opacity: 0.4; } 22% { opacity: 0.8; } 45% { opacity: 0.2; } 68% { opacity: 0.9; } 90% { opacity: 0.1; } 100% { opacity: 0.4; } }
@keyframes perlinFade8 { 0% { opacity: 0.9; } 26% { opacity: 0.1; } 49% { opacity: 0.6; } 72% { opacity: 0.3; } 94% { opacity: 0.8; } 100% { opacity: 0.9; } }
@keyframes perlinFade9 { 0% { opacity: 0.1; } 24% { opacity: 0.7; } 48% { opacity: 0.9; } 71% { opacity: 0.2; } 95% { opacity: 0.5; } 100% { opacity: 0.1; } }
@keyframes perlinFade10 { 0% { opacity: 0.5; } 20% { opacity: 0.9; } 43% { opacity: 0.1; } 67% { opacity: 0.8; } 89% { opacity: 0.3; } 100% { opacity: 0.5; } }
@keyframes perlinFade11 { 0% { opacity: 0.8; } 29% { opacity: 0.2; } 52% { opacity: 0.9; } 75% { opacity: 0.1; } 97% { opacity: 0.6; } 100% { opacity: 0.8; } }
@keyframes perlinFade12 { 0% { opacity: 0.3; } 31% { opacity: 0.9; } 54% { opacity: 0.1; } 77% { opacity: 0.7; } 99% { opacity: 0.4; } 100% { opacity: 0.3; } }

/* Back Link Style */
.back-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.8;
}

/* Profile Section */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.profile-info h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.profile-info .subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

/* Media query for desktop layout */
@media screen and (min-width: 768px) {
    .profile {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        padding: 0 2rem;
        margin-left: 300px;
    }

    .profile-image {
        flex-shrink: 0;
    }

    .profile-info {
        padding-left: 2rem;
    }

    .profile-info h1 {
        margin-top: 0.5rem;
    }

    .profile-info p {
        margin-bottom: 0.5rem;
    }

    .social, .location {
        margin-top: 1rem;
    }
}

/* Accordion Menu */
.accordion-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(26, 41, 40, 0.8);
    padding-bottom: 16px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Webkit scrollbar styles */
.accordion-wrapper::-webkit-scrollbar {
    height: 6px;
    display: block;
}

.accordion-wrapper::-webkit-scrollbar-track {
    background: rgba(26, 41, 40, 0.8);
    border-radius: 3px;
}

.accordion-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.accordion-menu {
    display: flex;
    height: 400px;
    width: fit-content; /* Allow content to determine width */
    position: relative;
    gap: 0; /* Remove any gap between items */
}

.menu-item {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100px; /* Fixed initial width */
    flex-shrink: 0; /* Prevent shrinking */
}

.menu-item span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 1rem;
    white-space: nowrap;
    z-index: 2;
}

.menu-item .panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--dark-teal);
    transition: all 0.5s ease;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.menu-item.active {
    width: 700px; /* Fixed width when active */
    flex-shrink: 0; /* Prevent shrinking when active */
}

.menu-item.active .panel {
    width: 600px;
    margin-left: 100px; /* Space for the label */
    opacity: 1;
    visibility: visible;
    display: flex;
}

/* Panel Video Style */
.panel-video-container {
    width: 50%;
    height: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: rgba(0, 0, 0, 0.2);
}

/* Stacked Images Style for PayByPhone */
.stacked-images {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-stack {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Reduced gap to give more space to images */
    padding: 0.75rem; /* Reduced padding to give more space to images */
}

.stacked-images .panel-image {
    height: calc(50% - 0.5rem); /* Half height minus half of the gap */
    object-fit: cover;
    border-radius: 4px;
}

/* Style for the second image specifically */
.image-stack img:nth-child(2) {
    object-fit: contain;
    background-color: white;
    padding: 0.5rem;
    height: calc(50% - 0.5rem) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific style for PeaceGeeks second image */
.menu-item:nth-child(6) .image-stack img:nth-child(2) {
    object-fit: cover;
    padding: 0;
}

/* Specific style for Dax Marsch image */
.menu-item:nth-child(11) .panel-image {
    object-fit: contain;
    background-color: white;
    padding: 1rem;
}

.menu-item:nth-child(11) .panel-image-container {
    background-color: white;
}

/* Specific style for Charles Chang Institute image */
.menu-item:nth-child(10) .panel-image {
    object-fit: contain;
    background-color: white;
    padding: 1rem;
}

.menu-item:nth-child(10) .panel-image-container {
    background-color: white;
}

/* Optional: If you want the first image to be slightly smaller to give more space to second */
.image-stack img:nth-child(1) {
    height: calc(45% - 0.5rem);
}

/* Existing Panel Image Style */
.panel-image-container {
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.panel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Scrollable Images Style for AWA */
.scrollable-images {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.1);
    position: relative;
}

.scrollable-images::-webkit-scrollbar {
    width: 6px;
}

.scrollable-images::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.scrollable-images::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scrollable-images::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Scroll indicator fade effect with text */
.scrollable-images::after {
    content: 'scroll';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, rgba(26, 41, 40, 0.8));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;

    /* Text styling for scroll hint */
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 18px 15px 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: 0.5px;
    animation: textFade 3s ease-in-out infinite;
}

/* Hide fade and text when scrolled to bottom */
.scrollable-images.scrolled-to-bottom::after {
    opacity: 0;
}

/* Scroll hint indicator - thin chevron */
.scrollable-images::before {
    content: '';
    position: absolute;
    bottom: 35px;
    right: 25px;
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    z-index: 2;
    animation: elegantBounce 3s ease-in-out infinite;
    pointer-events: none;
    transition: opacity 0.3s ease;
}



.scrollable-images.scrolled::before,
.scrollable-images.scrolled::after {
    opacity: 0;
}

@keyframes elegantBounce {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-4px) rotate(45deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-8px) rotate(45deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-2px) rotate(45deg);
        opacity: 0.9;
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.image-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    min-height: 100%;
}

.scrollable-images .panel-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.panel-content {
    width: 50%;
    height: 100%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.panel-content h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.panel-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.panel-content .social-handle {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 1rem;
    opacity: 1;
}

/* About Me Section */
.about-me {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-image {
    flex: 0 0 400px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Media query for mobile layout */
@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-text {
        text-align: center;
    }

    /* Increase line height for BA degree text on mobile */
    .about-text h3 {
        line-height: 1.4 !important;
    }

    /* Mobile Accordion Styles - Vertical Layout */
    .accordion-wrapper {
        overflow-x: visible;
        overflow-y: visible;
        max-height: none;
        background: transparent;
        padding-bottom: 0;
    }

    .accordion-menu {
        flex-direction: column;
        height: auto;
        width: 100%;
        gap: 0.5rem;
    }

    .menu-item {
        width: 100% !important;
        height: auto;
        min-height: 60px;
        border-right: none;
        border-bottom: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        justify-content: center;
        background: rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    .menu-item:hover {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .menu-item span {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        padding: 1rem;
        text-align: center;
        font-weight: 500;
    }

    .menu-item {
        display: flex;
        flex-direction: column;
    }

    .menu-item .panel {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: 0 !important;
        overflow: hidden !important;
        transition: all 0.4s ease !important;
        background: rgba(0, 0, 0, 0.15) !important;
        margin: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        border-radius: 8px;
        margin-top: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-item.active {
        width: 100% !important;
        height: auto !important;
    }

    .menu-item.active .panel {
        height: auto !important;
        min-height: 300px !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 1rem;
    }

    /* Mobile panel content adjustments */
    .panel-image-container,
    .panel-video-container {
        width: 100%;
        height: 200px;
        order: 1;
        border-radius: 6px;
        overflow: hidden;
        margin-bottom: 1rem;
    }

    .panel-content {
        width: 100%;
        height: auto;
        padding: 0;
        order: 2;
        background: transparent;
    }

    .panel-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .panel-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }

    /* Mobile scrollable images */
    .scrollable-images {
        height: 250px;
        overflow-y: auto;
    }

    .scrollable-images .panel-image {
        min-height: 150px;
    }

    /* Mobile stacked images */
    .stacked-images .image-stack {
        flex-direction: column;
        gap: 1rem;
    }

    .stacked-images .image-stack img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }

    /* Mobile Contact Form Styles */
    .help-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .help-section h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .help-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .contact-form {
        margin-top: 1.2rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 8px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        justify-content: center;
        margin-top: 0.8rem;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .submit-btn:hover {
        transform: none; /* Remove hover transform on mobile */
    }

    .submit-btn:active {
        transform: scale(0.98);
    }

    .form-status {
        font-size: 0.9rem;
        padding: 1rem;
        margin-top: 1rem;
    }
}

/* Footer Styles */
.help-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.help-section h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.help-subtitle {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

/* Contact Form Styles */
.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--dark-teal);
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(26, 41, 40, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.form-status.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    opacity: 0.8;
    font-size:0.6em;
}

/* Optional: Update other specific text elements to ensure they use Instrument Sans */
.header-left,
.header-center,
.header-right,
.profile-info p,
.menu-item span,
.help-section h2,
.search-box input,
.copyright {
    font-family: var(--font-sans);
}
.header-left{
    font-size:0.9em;
    max-width:150px;
}

/* Style for the social link */
.social {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 1rem 0;
    text-decoration: none; /* Remove default underline */
    color: var(--text-color); /* Keep text color consistent */
    transition: opacity 0.2s ease; /* Smooth hover effect */
}

.social:hover {
    opacity: 0.8; /* Subtle hover effect */
}

/* About Link Style */
.about-link {
    display: block;
    text-align: center;
    margin: 2rem 0 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.2s ease;
}

.about-link:hover {
    opacity: 0.8;
}

/* Password Protection Styles */
.password-protection {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.password-content {
    text-align: center;
    padding: 2rem;
}

.password-content h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.password-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.password-input {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.password-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 1rem;
}

.password-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.password-input input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.submit-password {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.submit-password:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Photo Ticker Styles */
.photo-ticker-section {
    margin: 3rem 0 2rem 0;
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.photo-ticker-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.photo-ticker {
    display: inline-flex;
    animation: scroll-left 60s linear infinite;
    gap: 1rem;
    will-change: transform;
}

.photo-ticker:hover {
    animation-play-state: paused;
}

.ticker-photo {
    height: 200px;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.9);
}

.ticker-photo:hover {
    transform: scale(1.05);
    filter: brightness(1);
    z-index: 10;
    position: relative;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Photo credit styling */
.photo-credit {
    text-align: center;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 10px;
    font-weight: normal;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Mobile adjustments for photo ticker */
@media screen and (max-width: 768px) {
    .ticker-photo {
        height: 150px;
    }

    .photo-ticker {
        animation-duration: 45s;
        gap: 0.5rem;
    }

    .photo-credit {
        font-size: 9px;
        margin-top: 0.8rem;
        letter-spacing: 0.8px;
    }
}