*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img { max-width: 100%; }
.side-gif { max-width: none; }
.page-section, .about-section, .gallery, .photo-holder { min-width: 0; overflow-wrap: anywhere; }


body {
    background-color: #000000;
    color: #e0e0e0;
    font-family: "Times New Roman", "Georgia", serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- HEADER --- */
header {
    text-align: center;
    margin-bottom: 25px;
    padding-top: 20px;
}

header h1 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
    font-weight: normal;
    letter-spacing: -1px;
    margin: 0 0 40px 0;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    display: inline-block;
    transform: scaleY(2.2);
    transform-origin: center;
}

header p {
    font-size: 0.9rem;
    font-style: italic;
    letter-spacing: 3px;
    margin-top: 15px;
    color: #666;
}

/* --- SPOTIFY + ATABOOK --- */
.panel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
}

.panel-link-btn {
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.panel-link-btn img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

/* --- SIDE GIFS (desktop only) --- */
.gif-container-left, .gif-container-right {
    position: fixed;
    top: 0;
    width: 140px;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

.gif-container-left { left: 0; }
.gif-container-right { right: 0; transform: scaleX(-1); }

.side-gif {
    width: 100vh;
    height: 140px;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
}

.gif-container-left .side-gif { transform: translate(-50%, -50%) rotate(-90deg); }
.gif-container-right .side-gif { transform: translate(-50%, -50%) rotate(-90deg); }

/* --- LAYOUT --- */
.container {
    max-width: 680px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.chrome-border {
    border: 2px solid;
    border-image: linear-gradient(to bottom, #ffffff, #444444, #ffffff, #111111, #ffffff) 1;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease;
}

/* --- ABOUT ME --- */
.about-section {
    background: rgba(5, 5, 5, 0.95);
    padding: 10px 15px;
    margin-bottom: 35px;
}

.about-section h2 {
    font-size: 1.3rem;
    margin: 0 0 5px 0;
    letter-spacing: 2px;
    border-bottom: 1px solid #222;
    padding-bottom: 3px;
    text-transform: uppercase;
}

.about-section .desc {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    color: #aaa;
}

.hobby-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.hobby-item {
    background: #000000;
    padding: 12px 0;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: bold;
    display: block;
}

/* --- PAGE SECTIONS --- */
.page-section { margin-bottom: 40px; }
.page-section h2 { font-size: 1.5rem; margin: 0 0 2px 0; letter-spacing: 2px; color: #ffffff; text-transform: uppercase; }
.page-section .intro-text { color: #666; font-size: 0.85rem; margin-top: 0; margin-bottom: 15px; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 20px;
}

.photo-holder { text-align: center; position: relative; }

.zoom-trigger { display: none !important; }

.img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #111;
    margin-bottom: 6px;
    position: relative;
    cursor: zoom-in;
    transition: box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Hover effects only on devices with a mouse (no sticky hover on phones) */
@media (hover: hover) {
    .panel-link-btn:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7)) brightness(1.2);
    }
    .chrome-border:hover { box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    .img-container:hover { box-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }
    .img-container:hover .zoom-img { transform: scale(1.05); filter: brightness(1.1); }
}

/* Zoom on click/tap */
.zoom-trigger:checked + .img-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: auto;
    height: auto;
    margin: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    cursor: zoom-out;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
}

.zoom-trigger:checked + .img-container .zoom-img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: none;
    filter: none;
}

.photo-caption { font-size: 0.8rem; color: #777; }

footer {
    text-align: center;
    padding: 40px 10px 30px;
    border-top: 1px solid #222;
    margin-top: 20px;
}

footer .brand {
    display: inline-block;
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    transform: scaleY(1.6);
    margin: 8px 0 14px;
}

footer .brand sup { font-size: 0.45em; letter-spacing: 0; vertical-align: super; }

footer .copy { display: block; font-size: 0.75rem; color: #777; letter-spacing: 1px; }

@media (max-width: 1000px) {
    .gif-container-left, .gif-container-right { display: none; }
    .container { max-width: 100%; margin: 10px; padding: 5px; }
    .hobby-list { grid-template-columns: repeat(2, 1fr); }
}

/* --- TEXT PAGES --- */
.home-item { color: #ff0055; text-shadow: 0 0 5px rgba(255, 0, 85, 0.3); }
.page-section p { font-size: 0.95rem; color: #aaa; line-height: 1.6; }
.page-section h3 { font-size: 1.1rem; font-weight: normal; letter-spacing: 1px; color: #fff; margin: 25px 0 5px; }


/* --- HARDWARE / SPEC LISTS --- */
.device { border-top: 1px solid #222; padding: 14px 0 6px; }
.device:first-of-type { border-top: none; padding-top: 4px; }
.device h3 { margin: 0 0 8px; }
.specs { margin: 0; }
.specs > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 3px 0; }
.specs dt { color: #777; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; padding-top: 2px; }
.specs dd { margin: 0; color: #e0e0e0; font-size: 0.95rem; line-height: 1.5; }