

:root {
    --bg-color: #2a2a2a;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --featured-image: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Thonburi', sans-serif;
    /* background-color removed to prevent white background */
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--featured-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.85;
    z-index: -2;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 100vh;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
    margin-top: 5rem;
}

.left-panel {
    padding: 2rem;
    height: fit-content;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(20, 20, 20, 0.92) 0%,
        rgba(30, 30, 30, 0.92) 50%,
        rgba(20, 20, 20, 0.92) 100%
    );
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.18),
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.18)
    );
    border-radius: 0;
    z-index: -1;
    filter: blur(5px);
}


.title {
    font-family: 'Thonburi', sans-serif;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: normal;
}

.description {
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.connect {
    margin-top: 3rem;
}

.links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.link {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 2px;
}

.link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.inline-link {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color);
    transition: all 0.3s ease;
    position: relative;
}

.inline-link:hover {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.7);
    opacity: 0.85;
}

.inline-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -1px;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.inline-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.center-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-image.loaded {
    opacity: 1;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-button {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    text-align: left;
    font-family: 'Thonburi', sans-serif;
    font-size: 0.9rem;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    transform: translateX(5px);
}

.project-link {
    padding: 2rem;
    border: 1px solid var(--text-color);
    transition: all 0.2s ease;
}

.project-link:hover {
    border-color: var(--accent-color);
}

.handwritten {
    font-style: italic;
    opacity: 0.8;
    margin-top: 0.5rem;
    display: block;
}

.contact-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--accent-color);
    font-family: 'Thonburi', sans-serif;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Preview popup styles removed */

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-text {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-icon {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.contact-panel {
    padding: 2rem;
    height: fit-content;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(20, 20, 20, 0.92) 0%,
        rgba(30, 30, 30, 0.92) 50%,
        rgba(20, 20, 20, 0.92) 100%
    );
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.contact-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.18),
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.18)
    );
    border-radius: 0;
    z-index: -1;
    filter: blur(5px);
}

.directory-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    font-family: 'Thonburi', sans-serif;
    font-size: 1.4rem;
    color: var(--text-color);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-right: none;
    border-top: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.path-segment {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.path-segment:hover {
    opacity: 1;
    border-bottom-color: var(--text-color);
}

.path-separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.current-path {
    opacity: 1;
}

@media (max-width: 768px) {
    .directory-nav {
        font-size: 1.1rem;
        padding: 0.6rem 1rem;
    }
    .container {
        width: 100%;
        padding: 1rem;
    }
    .left-panel,
    .contact-panel {
        width: 100%;
    }
}