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

body {
    background: #111;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    cursor: url('../../hand.cur'), grab;
}

#footer {
    width: 100%;
    background: rgba(10, 8, 18, 0.95);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 36px 48px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

#footer-brand {
    min-width: 200px;
    flex-shrink: 0;
}

#footer-brand .brand-name {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

#footer-brand .brand-desc {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    line-height: 1.8;
    letter-spacing: 0.3px;
}

#footer-links {
    display: flex;
    gap: 48px;
    flex: 1;
    justify-content: flex-end;
}

.footer-col { display: flex; flex-direction: column; }

.footer-col-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-bottom: 9px;
    transition: color 0.2s;
    cursor: pointer;
}

.footer-col a:hover {
    color: rgba(255,255,255,0.85);
}

body:active {
    cursor: url('../../hand-h.cur'), grabbing;
}

#rotate-div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#about-btn {
    position: fixed;
    top: 22px;
    right: 180px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    padding: 8px 18px;
    z-index: 1000;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    user-select: none;
}

#about-btn:hover {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
}

#about-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 8000;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(10, 8, 18, 0.6);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

#about-overlay.active {
    display: flex;
    opacity: 1;
}

#about-panel {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    padding: 56px 64px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    background: rgba(20,16,36,0.7);
    max-width: 900px;
    width: 90%;
}

#about-panel .brand-name {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

#about-panel .brand-desc {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    line-height: 1.8;
}

#about-panel .panel-brand {
    min-width: 180px;
    flex-shrink: 0;
}

#about-panel .panel-links {
    display: flex;
    gap: 48px;
    flex: 1;
    justify-content: flex-end;
}

#about-panel .panel-col-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 14px;
}

#about-panel .panel-col a {
    display: block;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-bottom: 9px;
    transition: color 0.2s;
    cursor: pointer;
}

#about-panel .panel-col a:hover {
    color: rgba(255,255,255,0.9);
}

#search-bar {
    position: fixed;
    top: 22px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 8px 18px;
    z-index: 1000;
    transition: background 0.3s, border 0.3s;
}

#search-bar:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(200, 160, 255, 0.45);
}

#search-icon {
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

#search-label {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    user-select: none;
}

#search-input {
    background: none;
    border: none;
    outline: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    width: 0;
    max-width: 180px;
    transition: width 0.35s ease;
    padding: 0;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#search-bar:focus-within #search-input {
    width: 160px;
    padding: 0 2px;
}

#logo {
    position: fixed;
    top: 28px;
    left: 32px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    pointer-events: none;
    user-select: none;
    z-index: 1000;
}

#info {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

#modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#modal.active {
    display: flex;
}

#modal img {
    max-width: 80vw;
    max-height: 80vh;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#modal.active img {
    transform: scale(1);
}

#modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
}

#modal-close:hover {
    opacity: 1;
}

/* Flip Card */
#flip-card {
    width: 200px;
    height: 300px;
    perspective: 800px;
    cursor: default;
}

#flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

#flip-card-inner.flipped {
    transform: rotateY(180deg);
}

#flip-card-front,
#flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

#flip-card-back {
    transform: rotateY(180deg);
}

#flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    #logo {
        top: 20px;
        left: 20px;
        font-size: 13px;
        letter-spacing: 2px;
    }

    #about-btn {
        top: 14px;
        right: 20px;
        font-size: 11px;
        padding: 6px 14px;
        letter-spacing: 1.5px;
    }

    #search-bar {
        display: none;
    }

    #info {
        font-size: 11px;
        letter-spacing: 1.5px;
        bottom: 20px;
    }

    /* About 패널 */
    #about-panel {
        flex-direction: column;
        gap: 32px;
        padding: 36px 28px;
        width: 92%;
        border-radius: 18px;
        max-height: 85vh;
        overflow-y: auto;
    }

    #about-panel .panel-brand {
        min-width: unset;
    }

    #about-panel .panel-links {
        flex-wrap: wrap;
        gap: 28px;
        justify-content: flex-start;
    }

    #about-panel .panel-col {
        min-width: 120px;
    }

    /* Footer */
    #footer {
        flex-direction: column;
        gap: 28px;
        padding: 28px 24px;
    }

    #footer-brand {
        min-width: unset;
    }

    #footer-links {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: flex-start;
    }

    .footer-col {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    #about-btn {
        top: 12px;
        right: 16px;
        font-size: 10px;
        padding: 5px 12px;
    }

    #about-panel {
        padding: 28px 20px;
        width: 96%;
    }

    #about-panel .panel-links {
        gap: 20px;
    }
}
