/* Base Styles */
:root {
    --primary-color: #4a86e8;
    /* Blue accent */
    --secondary-color: #1a1a1a;
    /* Dark secondary background */
    --accent-color: #b466e8;
    /* Purple accent */
    --text-color: #e0e0e0;
    /* Light text for dark background */
    --light-text: #a0a0a0;
    /* Muted text */
    --dark-bg: #121212;
    /* Very dark background */
    --light-bg: #1e1e1e;
    /* Slightly lighter dark background */
    --border-color: #333333;
    /* Dark borders */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.primary-btn {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.secondary-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.logo p {
    font-size: 0.9rem;
    color: var(--light-text);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about {
    padding: 120px 0;
    background-color: var(--light-bg);
}

.about .container {
    width: 80%;
    max-width: 1000px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    max-height: 400px;
    display: flex;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Experience Section */
.experience {
    padding: 120px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    padding-right: 30px;
    text-align: right;
}

.timeline-date span {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-content {
    margin-left: 50%;
    padding-left: 30px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.timeline-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Skills Section */
.skills {
    padding: 120px 0;
    background-color: var(--dark-bg);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.skill-category ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.skill-category ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Portfolio Section */
.portfolio {
    padding: 120px 0;
    background-color: var(--light-bg);
}

/* Beyond Work Section */
.beyond-work {
    padding: 120px 0;
    background-color: var(--dark-bg);
}

.beyond-work-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.hobby-category {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.hobby-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hobby-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.hobby-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.hobby-category p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hobby-gallery {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    height: 400px;
    /* Adjusted to 400px */
}

.hobby-image {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    aspect-ratio: 3/4;
}

.hobby-image.exhibition-image {
    background-color: transparent;
    position: relative;
    padding: 0;
}

/* Specific styling for each image to match the reference */
.hobby-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    padding: 0;
}

/* First image - Exhibition with multiple paintings */
.hobby-image.exhibition-image img {
    object-fit: cover;
    padding: 0;
    object-position: center top;
    width: 100%;
    height: 100%;
    filter: brightness(1.02) contrast(1.05);
}

/* Second image - Forest Heart painting (yellow/green forest) */
.hobby-image:nth-child(2) {
    background-color: transparent;
    padding: 0;
}

.hobby-image:nth-child(2) img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Third image - Abstract painting (red/black with text) */
.hobby-image:nth-child(3) {
    background-color: transparent;
    padding: 0;
}

.hobby-image:nth-child(3) img {
    object-fit: cover;
    object-position: center;
    /* Center the image */
    height: 100%;
    width: 100%;
    transform: scale(1.1);
    /* Slightly scale up to avoid cropping at edges */
}

.hobby-image:hover img {
    transform: scale(1.03);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border-radius: 20px;
    color: var(--text-color);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-color);
    color: #121212;
    border-color: var(--accent-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    background-color: #1e1e1e;
    padding: 20px;
    /* Fallback color if image is not loaded */
}

/* Special styling for portfolio items that should fill their containers */
.fill-image img {
    object-fit: cover;
    /* Changed to cover to fill the container */
    padding: 0;
    /* No padding for full coverage */
    background-color: #1e1e1e;
    width: 100%;
    height: 100%;
}

/* Special styling for the LINE CLOVA Chatbot image to align it to the top */
.chatbot-img {
    object-position: center top;
}

/* Password Protection Styles */
.password-overlay {
    background-color: rgba(18, 18, 18, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.password-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.password-container h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.password-input-container {
    position: relative;
    width: 100%;
}

.password-form input {
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1rem;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.password-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.password-form button {
    margin: 0 auto;
}

.password-error {
    color: #ff4d4d;
    font-size: 0.9rem;
    min-height: 20px;
}

.hidden {
    display: none;
}

.portfolio-content {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Special styling for the LINE Voice Search GIF */
.voice-search-item {
    height: 350px;
    /* Keep consistent with other items */
    background-color: #1e1e1e;
}

.voice-search-gif {
    object-fit: contain;
    object-position: center;
    padding: 20px;
    background-color: #1e1e1e;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(-10px);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.portfolio-link {
    color: white;
    background-color: var(--accent-color);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--accent-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 180px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.portfolio-link i {
    font-size: 0.8rem;
}

.portfolio-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background-color: var(--secondary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-align: center;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-item p a {
    color: var(--light-text);
}

.contact-item p a:hover {
    color: var(--accent-color);
}

.contact-form {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
    font-size: 1.2rem;
}

.footer-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-social a:hover i {
    transform: scale(1.1);
}

.footer-social i {
    transition: transform 0.3s ease;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-item {
        flex: 1 1 calc(50% - 15px);
    }
}

@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-date {
        position: static;
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }

    .timeline-content {
        margin-left: 0;
        padding-left: 50px;
    }

    .timeline-content::before {
        left: 22px;
    }

    .contact-item {
        flex: 1 1 100%;
    }
}

@media screen and (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        margin-bottom: 10px;
    }
}

/* Resu
me reference styling */
.resume-reference {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    margin-bottom: 2rem;
}