:root {
    --paper: #f6f1e8;
    --ink: #111;
    --border: #111;
    --card: #fff;
    --link-color:#fff;


    /* Exact light mode matches from your inline code */
    --contact-card-bg: #ffffff;
    --contact-card-border: #404040;
    --contact-title-color: #111;
    --badge-bg: #f4f4f5;
    --badge-bg-hover: #e4e4e7;
    --badge-text: #18181b;
    --badge-border: #e4e4e7;
     --slider-border: #eef0f2;
    --slider-caption-bg: #f4f4f5;
    --slider-caption-text: #18181b;
    --slider-caption-border: #e4e4e7;
}

body.dark {
    --paper: #050505;
    --ink: #d8d0c8;
    --card: #111111;
    --border: #2c2c2c;

    /* Darkroom mode overrides */
    --contact-card-bg: #111111;
    --contact-card-border: #2c2c2c;
    --contact-title-color: #f2e6e6;
    --badge-bg: #1a0808;
    --badge-bg-hover: #300b0b;
    --badge-text: #d8d0c8;
    --badge-border: #551111;
     --slider-border: #050505;
    --slider-caption-bg: #111111;
    --slider-caption-text: #d8d0c8;
    --slider-caption-border: #2c2c2c;
}


/* =====================
   GLOBAL
===================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Georgia, serif;

    transition:
        background-color .3s ease,
        color .3s ease;
}

.page {
    width: 100%;
    position: relative;
}

.container {
    width: min(1400px, 95%);
    margin: auto;
    position: relative;
}
.zocial {
  color:#fff;
}
/* =====================
   LOGO
===================== */

.logo {
    margin: 0;
    text-align: left;
}

.logo img {
    display: block;
    width: 95%;
    max-width: 1500px;
    height: auto;
    margin: 0 auto;
}

/* =====================
   LINKS
===================== */

.contact a,
.contact a:visited {
    color: var(--link-color);
    text-decoration: none;

    transition:
        color .25s ease,
        letter-spacing .25s ease;
}

.contact a:hover {
    color: var(--link-hover);
    letter-spacing: .03em;
}
.accordion-header:focus,
.accordion-header:active {
    outline: none;
}
.accordion-header {
    -webkit-tap-highlight-color: transparent;
}

/* =====================
   OVERLAYS
===================== */

.overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

.artifact {
    position: absolute;
    top: var(--top);
    right: var(--right);
    max-width: var(--max-width);

    transform: rotate(var(--rotate));

    z-index: var(--z);
}

.note {
    position: absolute;

    background: #fff4b7;

    padding: 1rem;

    font-family: "Courier New", monospace;

    box-shadow:
        0 12px 20px rgba(0,0,0,.15);
}

.coffee-ring {
    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;
    border: 8px solid rgba(70,40,10,.12);
}

/* =====================
   HEADER
===================== */

header {
    position: relative;

    padding: 2rem 0 1rem;

    border-bottom: 3px solid var(--border);
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: .9;
}

.tagline {
    margin-top: 1rem;
    opacity: .8;
    font-style: italic;
}

.theme-btn {
    position: fixed;

    bottom: 20px;
    right: 20px;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    background: #111;
    color: #fff;

    border: 3px solid #fff;

    font-size: 1.4rem;

    z-index: 10000;
}

/* =====================
   BUTTONS
===================== */

button {
    border: 2px solid var(--border);

    background: var(--card);
    color: var(--ink);

    padding: .75rem 1rem;

    font-family: inherit;

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}

button:hover {
    background: var(--ink);
    color: var(--paper);
}

/* =====================
   HERO
===================== */

.hero {
    padding: 2rem 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1rem;
    align-items: start;
}

.hero-contact {
    height: fit-content;
}

.hero-slideshow {
    display: flex;
    flex-direction: column;
}

.slideshow {
    position: relative;

    width: 70%;
    aspect-ratio: 3 / 2;

    overflow: hidden;

    border: 2px solid transparent;

    background: black;
}

.slide {
    position: absolute;
    inset: 0;

    opacity: 0;

    transition: opacity .4s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.slide-caption {
    position: absolute;

    left: 1rem;
    bottom: 1rem;

    padding: .65rem 1rem;

    background: rgba(255,255,255,.9);

    color: #111;

    font-size: .85rem;
    letter-spacing: .05em;
}

.slide-nav {
    display: flex;
    gap: 0.5rem;

    margin-top: 0.5rem;
}

/* =====================
   MAIN LAYOUT
===================== */

main {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1rem;

    padding-bottom: 6rem;
}

/* =====================
   SIDEBAR
===================== */

.sidebar {
    background: var(--card);

    border: 3px solid var(--border);

    padding: 1rem;

    height: fit-content;
}

.sidebar h2 {
    margin-bottom: 1rem;
}

/* =====================
   CONTENT
===================== */

.content {
    display: flex;
    flex-direction: column;

    gap: 1rem;
}

.card {
    background: var(--card);

    border: 3px solid var(--border);

    padding: 2rem;
}

.card h2 {
    margin-bottom: 1rem;
}

.contact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =====================
   ACCORDION
===================== */

.accordion-item {
    border-top: 2px solid var(--border);
}

.accordion-item:last-child {
    border-bottom: 2px solid var(--border);
}

.accordion-header {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: none;
    border: none;

    color: inherit;

    padding: 1rem 0;

    font-weight: bold;

    text-align: left;
}

.accordion-content {
    max-height: 0;
    
    overflow: hidden;

    transition: max-height .3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 450px;
    margin-top: 1rem;
    padding-bottom: 1.5rem;
}

.accordion-image {
    width: 100%;
    height: auto;

    display: block;

    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* =====================
   DARKROOM MODE
===================== */

body.dark {
    --paper: #050505;
    --ink: #d8d0c8;
    --card: #111111;
    --border: #2c2c2c;

}

body.dark::before {
    content: "";

    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(255,0,0,.4),
            rgba(80,0,0,.4) 35%,
            transparent 75%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(255,0,0,.3),
            transparent 55%
        );

    mix-blend-mode: screen;

    pointer-events: none;

    z-index: 9000;
}

body.dark::after {
    content: "";

    position: fixed;
    inset: 0;

    background-image:
        radial-gradient(
            rgba(255,255,255,.1) 1px,
            transparent 1px
        );

    background-size: 4px 4px;

    opacity: .25;

    pointer-events: none;

    z-index: 8999;
}

body.dark .note {
    background: #4d4720;
    color: #eee;
}


/* Film Strip */

body.dark .slideshow {
    border-color: #050505;

    box-shadow:
        0 0 30px rgba(255,0,0,.4),
        inset 0 0 25px rgba(255,0,0,.4);
}

body.dark .slideshow::before {
    content: "";

    position: absolute;
    inset: 0;

    border-top: 28px solid #050505;
    border-bottom: 28px solid #050505;

    z-index: 60;

    pointer-events: none;
}

body.dark .slideshow::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 61;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            to right,
            transparent 0 14px,
            rgba(255,255,255,.55) 14px 28px,
            transparent 28px 48px
        ) top center / 100% 18px no-repeat,

        repeating-linear-gradient(
            to right,
            transparent 0 14px,
            rgba(255,255,255,.55) 14px 28px,
            transparent 28px 48px
        ) bottom center / 100% 18px no-repeat;
}

/* Negatives */

body.dark .slide img {
    filter:
        invert(1)
        contrast(2.5)
        brightness(.70);

    opacity: .93;
}

body.dark .slide-caption {
    background: rgba(0,0,0,.88);

    color: #fff;

    border: 1px solid rgba(255,0,0,.5);
}

body.dark h1,
body.dark h2 {
    color: #f2e6e6;

    text-shadow:
        0 0 6px rgba(255,0,0,.2),
        0 0 18px rgba(255,0,0,.08);
}

body.dark button {
    background: #120909;
    border-color: #551111;
    color: #ddd;
}

body.dark button:hover {
    background: #300b0b;
    color: #fff;
}

/* =====================
   MOBILE
===================== */

@media (max-width: 900px) {

    main {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 1rem 0 1rem;
    }

    .sidebar {
        position: static;
    }

    .slideshow {
        width: 100%;
    }

    body.dark .slideshow::before {
        border-top: 16px solid #050505;
        border-bottom: 16px solid #050505;
    }

    body.dark .slideshow::after {
        background:
            repeating-linear-gradient(
                to right,
                transparent 0 10px,
                rgba(255,255,255,.3) 10px 20px,
                transparent 20px 36px
            ) top center / 100% 14px no-repeat,

            repeating-linear-gradient(
                to right,
                transparent 0 10px,
                rgba(255,255,255,.3) 10px 20px,
                transparent 20px 36px
            ) bottom center / 100% 14px no-repeat;
    }
}
.accordion-header,
.accordion-header:focus,
.accordion-header:active,
.accordion-header:focus-visible {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
/* Library Container Layout */
.library-window {
    padding: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Image Button Styling */
.cover-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.cover-img {
    width: 200px; /* Adjust width to fit your layout */
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Backdrop Setup */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 85%;
    max-width: 1100px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

/* High-Visibility Outside Close Button */
.outside-close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 50px;
    line-height: 1;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10000; /* Stays above backdrop */
}

.outside-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Scale PDF height nicely for laptops/desktops */
@media (min-height: 800px) {
    .modal-content embed {
        height: 85vh !important;
    }
}

