@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

body {
    margin: 0;
    font-family: 'Pretendard', 'Roboto', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; /* A clean, modern sans-serif font */
    background-color: #f4f4f4; /* Light grey background */
    color: #333; /* Dark grey text for good readability */
}

strong {
    color: #2c3e50;
    font-weight: 700;
}

.language-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background-color: #ffffff;
    border: 1px solid #dbe6ee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.08);
    z-index: 10;
}

.language-switch-inline {
    position: static;
    margin: 14px auto 0;
    width: fit-content;
}

.language-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    padding: 8px 10px;
    border-radius: 6px;
}

.language-link.active {
    background-color: #3498db;
    color: #ffffff;
}

/* --- Hero Section Styling --- */
.hero {
    background-color: #ffffff; /* White background for the hero section */
    min-height: 72vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px; /* Add some padding on the sides for smaller screens */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

.home-page .hero,
.ko-page .hero {
    min-height: 100vh;
}

.hero-content {
    max-width: 800px; /* Set a max-width for the content so it doesn't get too wide on large screens */
}

/* --- Headline and Bio Styling --- */
.hero-name {
    font-family: 'Montserrat', sans-serif; /* A bold, stylish font for the name */
    font-size: 4rem; /* Large font size */
    font-weight: 700;
    margin: 0;
    color: #2c3e50; /* A deep, professional blue */
    letter-spacing: 2px;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 400;
    color: #3498db; /* A bright, friendly blue for the title */
    margin: 10px 0;
}

.hero-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 20px 0 30px 0;
}

.hero-bio strong {
    color: #2c3e50; /* Make the keywords stand out */
}

/* --- Button Styling --- */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Adds space between the buttons */
}

.button {
    text-decoration: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px; /* Slightly rounded corners */
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth transition for hover effects */
}

.button-primary {
    background-color: #3498db; /* Blue primary button */
}

.button-secondary {
    background-color: #2c3e50; /* Dark blue secondary button */
}

/* --- Button Hover Effects --- */
.button:hover {
    transform: translateY(-3px); /* Lifts the button slightly */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Adds a shadow for a 3D effect */
}


/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    .language-switch {
        top: 12px;
        right: 12px;
    }

    .hero-name {
        font-size: 2.5rem; /* Decrease font size for smaller screens */
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-bio {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column; /* Stack buttons vertically on small screens */
        align-items: center;
    }
    
    .hero-buttons .button {
        width: 80%; /* Make buttons take up more width */
        text-align: center;
    }
}


/* --- Projects Section Styling --- */
.experience-section,
.projects-section {
    padding: 60px 20px;
    background-color: #f4f4f4; /* Light grey to separate from the hero section */
}

.experience-section {
    background-color: #ffffff;
    padding-bottom: 80px;
}

.projects-section {
    padding-top: 80px;
}

.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #2c3e50; /* Deep blue, same as hero name */
    margin-bottom: 50px;
}

.experience-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.experience-item {
    background-color: #ffffff;
    border: 1px solid #dbe6ee;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(44, 62, 80, 0.08);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.experience-role {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: #2c3e50;
    margin: 0 0 6px 0;
}

.experience-company {
    font-weight: 500;
    color: #3498db;
    margin: 0;
}

.experience-date,
.experience-location {
    color: #7f8c8d;
    font-weight: 500;
}

.experience-date {
    flex-shrink: 0;
    margin: 0;
}

.experience-location {
    margin: 8px 0 10px 0;
}

.experience-description,
.experience-bullets {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.experience-bullets {
    padding-left: 20px;
}

.experience-bullets li {
    margin-bottom: 8px;
}

.experience-bullets li:last-child {
    margin-bottom: 0;
}

.experience-bullets strong,
.project-description strong,
.project-section strong {
    color: #2c3e50;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.experience-tags span {
    background-color: #ecf5fb;
    color: #2c3e50;
    border: 1px solid #cfe4f3;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 500;
    padding: 6px 10px;
}

.experience-actions {
    margin-top: 18px;
}

.text-link {
    color: #3498db;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* --- Projects Grid Layout --- */
.projects-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1300px; 
    margin: 0 auto;
}

/* --- Individual Project Card Styling --- */
.project-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 400px; /* Changed from 350px */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.project-image-placeholder {
    background-color: #ecf5fb;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.project-detail-image {
    width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-bottom: 40px;
}

.project-detail-image-mobile {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.project-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill the card height */
}

.project-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: #3498db; /* Bright blue from hero title */
}

.project-date {
    font-size: 0.95rem;
    font-weight: 500;
    color: #7f8c8d;
    margin: 0 0 12px 0;
}

.project-description {
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1; /* Pushes the tech stack and buttons to the bottom */
}

.project-tech-stack {
    margin: 20px 0;
    font-size: 2rem; /* Size of the tech icons */
    color: #555;
    display: flex;
    gap: 15px; /* Space between icons */
}

.project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; 

}

.detail-page-buttons {
    margin-bottom: 40px;
}

/* We can reuse the button styles from the hero section, 
   but let's make them slightly smaller for the cards */
.project-buttons .button {
    padding: 10px 20px;
    font-size: 0.9rem;
}


/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    .experience-header {
        flex-direction: column;
        gap: 8px;
    }

    .project-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .project-buttons .button {
        box-sizing: border-box;
        width: 100%;
        text-align: center;
    }

    .project-card {
        width: 100%; /* Make cards take full width on smaller screens */
        max-width: 350px; /* But not wider than our original design */
    }
}

/* --- Styling for Tech Icons with Labels --- */

/* This new class is the container for each icon-and-text pair */
.tech {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    align-items: center;   /* Centers items horizontally */
    font-weight: 500;
}

/* This targets the text label below the icon */
.tech span {
    font-size: 0.85rem; /* Smaller font size for the label */
    margin-top: 5px;   /* Adds a little space between the icon and the text */
    color: #333;
}

/* You can adjust the main container if needed, but the old styles should still work well */
.project-tech-stack {
    margin: 20px 0;
    font-size: 2rem;
    color: #555;
    display: flex;
    gap: 25px; /* Increased gap for the wider labels */
    justify-content: center; /* Center the icons within the card */
}

/*
========================================
Case Study Page Styles
========================================
*/

.page-header {
    padding: 20px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.back-link {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
    font-size: 1rem;
}

.case-study-content {
    max-width: 900px;
    margin: 40px auto; /* Adds space top/bottom and centers left/right */
    padding: 0 20px;
}

.project-detail-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

.project-detail-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.project-detail-date {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0 0 40px 0;
}

/* --- Responsive Video Container --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Content Sections --- */
.project-section {
    margin-bottom: 40px;
}

.project-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.project-section p, .project-section ul {
    font-size: 1.1rem;
    line-height: 1.7;
}

.project-section ul {
    list-style-type: disc;
    padding-left: 20px;
}

.tech-and-links {
    text-align: center;
}

.case-study-tags {
    justify-content: center;
}

.related-projects {
    margin-top: 60px;
    padding-top: 34px;
    border-top: 1px solid #dbe6ee;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.related-project {
    border: 1px solid #dbe6ee;
    border-radius: 8px;
    padding: 18px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.06);
    overflow: hidden;
}

.related-project-image {
    display: block;
    width: calc(100% + 36px);
    height: 124px;
    margin: -18px -18px 16px -18px;
    object-fit: cover;
    border-bottom: 1px solid #dbe6ee;
}

.related-project h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.related-project p {
    font-size: 0.98rem;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

@media (max-width: 768px) {
    .related-projects-grid {
        grid-template-columns: 1fr;
    }
}

.page-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px; /* Adds space above the footer */
    border-top: 1px solid #e0e0e0; /* A subtle line to separate it */
}

.footer-copyright {
    font-size: 0.9rem;
    color: #7f8c8d; /* A muted grey color */
    margin-top: 15px;
    margin-bottom: 0;
}
