/* 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;
}

* {
    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;
}

/* 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 */
.scrollable-images::after {
    content: '';
    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;
}

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

/* Scroll hint indicator */
.scrollable-images::before {
    content: '⌄';
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    z-index: 2;
    animation: bounce 2s infinite;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

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

.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;
    }

    /* 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);
} 