/* Custom CSS for the Hybrid theme */

/* Custom font size for about me section */
.text-15px {
    font-size: 15px;
}

/* Abstract container for smooth expansion */
.abstract-container {
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    max-height: 200px; /* Height to show preview text */
    position: relative;
}

.abstract-container.expanded {
    max-height: 800px; /* Large enough to contain full text */
}

/* Abstract fade effect - restored original styling */
.abstract-preview {
    position: relative;
    cursor: pointer;
    background: linear-gradient(to bottom, #333 0%, #333 40%, #555 60%, #777 75%, #999 85%, #bbb 95%, #ddd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.abstract-full {
    opacity: 1;
}

/* Restore original gradient overlay */
.abstract-container:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, #f5f5eb 70%, #f5f5eb 100%);
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

/* Hide the gradient when expanded */
.abstract-container.expanded::after {
    opacity: 0;
}

/* Abstract toggle button styling */
.abstract-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.abstract-toggle-container::before,
.abstract-toggle-container::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
}

.abstract-toggle {
    margin: 0 20px;
    padding: 8px 16px;
    background: #f5f5eb;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.abstract-toggle:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: #f5f5eb;
    color: #333;
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile font size adjustments */
@media (max-width: 768px) {
    body {
        font-size: 14px !important;
        line-height: 1.5;
    }
    
    /* Override Tailwind text classes for mobile */
    .text-lg {
        font-size: 15px !important;
    }
    
    .text-xl {
        font-size: 16px !important;
    }
    
    .text-base {
        font-size: 14px !important;
    }
    
    /* Adjust heading sizes for mobile */
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    /* Adjust paragraph text everywhere */
    p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    /* Adjust card text */
    .card p {
        font-size: 13px !important;
    }
    
    /* Header subtitle sizes */
    .header-subtitle {
        font-size: 0.9rem !important;
    }
    
    /* About me section specific */
    #about-me p {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    /* Smaller text elements */
    .text-sm {
        font-size: 12px !important;
    }
    
    .text-xs {
        font-size: 11px !important;
    }
}

/* Split heading styles */
h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 900; /* Maximum boldness for main title */
    font-size: 4rem; /* Larger than text-5xl */
}

@media (min-width: 768px) {
    h1 {
        font-size: 5.5rem; /* Larger than text-7xl */
    }
}

h2, h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700; /* Standard bold for other headings */
}

/* Class for the header subtitles */
.header-subtitle {
    font-family: 'Work Sans', sans-serif;
}

/* Class for the thinner subtitle */
.subtitle-light {
    font-weight: 300;
}

/* Blinking cursor effect */
.cursor::after {
    content: '_';
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Background Icons container */
#background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-icon {
    position: absolute;
    color: #ddd;
    font-size: 2rem;
    animation: float 25s infinite linear;
    opacity: 0;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* Simple link styling */
a {
    color: #333;
    text-decoration: underline;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

a:hover {
    background-color: #333;
    color: #fafafa;
    text-decoration: none;
}

/* Card styling with black outline and shadow hover */
.card {
    background-color: #fff;
    border: 1px solid #333;
    transition: box-shadow 0.3s ease-in-out, transform 0.2s ease;
    cursor: pointer;
}

.card:hover {
   box-shadow: 5px 5px 0px #333;
}

/* Mobile-friendly card interaction */
@media (hover: none) {
    .card:active {
        box-shadow: 5px 5px 0px #333;
        transform: translateY(1px);
    }
    
    .card.touch-highlight {
        box-shadow: 5px 5px 0px #333;
        transform: translateY(1px);
    }
}

/* --- Top Right Menu Styles --- */
#menu-hover-area {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    cursor: pointer;
    padding: 0.5rem;
    pointer-events: none;
}

#menu-hover-area .menu-content-wrapper {
    pointer-events: auto;
}

#menu-hover-area.menu-open {
    pointer-events: auto;
}

#top-right-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
}

.menu-content-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-button {
    border: 1px solid #333;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.lotus-icon {
    width: 36px;
    height: 36px;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    cursor: pointer;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.nav-links a {
    border: 1px solid #333;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    background-color: #333;
    color: #fafafa;
}

#menu-hover-area.menu-open .menu-button {
    opacity: 0.4;
}

#menu-hover-area.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#menu-hover-area.menu-open .lotus-icon {
    transform: rotate(630deg);
}

/* Styles for header social icons */
.header-socials a {
    transition: transform 0.2s ease, filter 0.3s ease;
    border-radius: 4px;
    padding: 4px;
}

.header-socials a svg {
    width: 28px;
    height: 28px;
    color: #555;
    transition: color 0.3s ease;
}

.header-socials a:hover {
    background-color: transparent;
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.header-socials a:hover svg {
    color: #000;
}

.header-socials a:active {
    transform: translateY(0px) scale(0.95);
}

/* Styles for the footer */
.footer-text {
    font-family: 'Work Sans', sans-serif;
    font-style: normal;
    font-size: 18px;
    color: #6B7280; /* This is Tailwind's text-gray-500 */
    font-variation-settings: 'wght' 313;
}

/* Artwork gallery styles */
.artwork-gallery {
    margin-top: 2rem;
}

.artwork-item {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.artwork-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
    border-radius: 8px;
}

.artwork-item:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

.artwork-item img {
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 8px;
}

.artwork-item:hover img {
    filter: brightness(1.05);
}

/* Artwork modal styles */
#artwork-modal {
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease-out;
    opacity: 1;
}

#artwork-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#artwork-modal.closing {
    animation: fadeOut 0.3s ease-in forwards;
}

#artwork-modal img {
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease-out;
    opacity: 1;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

#close-modal {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    font-weight: normal;
}

#close-modal:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Navigation arrows styling - positioned outside image */
#prev-artwork, #next-artwork {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

#prev-artwork {
    left: -70px; /* Positioned outside the image on the left */
}

#next-artwork {
    right: -70px; /* Positioned outside the image on the right */
}

#prev-artwork:hover, #next-artwork:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

#prev-artwork:active, #next-artwork:active {
    transform: scale(0.95);
}

#prev-artwork svg, #next-artwork svg {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    #prev-artwork {
        left: 10px; /* Back inside image on mobile for accessibility */
    }
    
    #next-artwork {
        right: 10px; /* Back inside image on mobile for accessibility */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeInOnly {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile responsiveness for artwork gallery */
@media (max-width: 768px) {
    .artwork-gallery .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    #artwork-modal .relative {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* Volunteer image gallery styles */
.volunteer-image-container {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.volunteer-gallery {
    width: 100%;
    height: 100%;
    position: relative;
}

.volunteer-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.volunteer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease, opacity 0.4s ease;
}

.volunteer-image-wrapper:hover .volunteer-image {
    transform: scale(1.05);
}

/* Gallery navigation arrows */
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-prev {
    left: 8px;
}

.gallery-next {
    right: 8px;
}

.gallery-prev:hover, .gallery-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Show arrows when there are multiple images */
.volunteer-gallery[data-count="multiple"] .gallery-prev,
.volunteer-gallery[data-count="multiple"] .gallery-next {
    display: flex;
}

/* Hide arrows by default */
.gallery-prev.hidden, .gallery-next.hidden {
    display: none;
}