/* Navigation */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: var(--space-4) var(--space-5);
}

.nav-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding-top: var(--space-6);
    gap: var(--space-6);
}

.logo {
    font-family: var(--font-title);
    font-size: var(--font-size-2xl);
    color: var(--text-darker);
    text-decoration: none;
    letter-spacing: var(--tracking-tighter);
    font-weight: var(--font-weight-bold);
    justify-self: start;
    backdrop-filter: blur(12px);
}

.logo:hover {
    opacity: 0.8;
}

.nav-bar {
    display: flex;
    background-color: white;
    backdrop-filter: blur(12px);
    border-radius: var(--radius-full);
    padding: var(--space-4);
    list-style-type: none;
    margin: 0;
    box-shadow: var(--shadow-lg);
    justify-self: center;
    gap: var(--space-4);
}

.nav-item {
    position: relative;
    color: var(--text-light);
    text-decoration: none;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    opacity: 0.6;
}

/* active 상태 수정 */
.nav-item.active {
    background-color: var(--background-default);
    color: var(--text-darker);
    padding: var(--space-3) var(--space-5);
    opacity: 1;
    font-weight: var(--font-weight-semibold);
}

/* active 상태의 도트 스타일 */
.nav-item.active::before {
    content: "";
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    width: 4.8px;
    height: 4.8px;
    background-color: var(--color-purple);
    border-radius: 50%;
}

/* hover 효과 수정 */
.nav-item:hover {
    background-color: var(--background-default);
    color: var(--text-darker);
    opacity: 0.8;
}

/* 햄버거 메뉴 */
.hamburger-menu {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: 1002;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-darker);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-menu span::before,
.hamburger-menu span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-darker);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu span::before {
    top: -8px;
}

.hamburger-menu span::after {
    bottom: -8px;
}

/* 햄버거 메뉴 활성화 상태 */
.hamburger-menu.active span {
    background-color: transparent;
}

.hamburger-menu.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger-menu.active span::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* 모바일 전체화면 메뉴 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    font-size: var(--font-size-2xl);
    color: var(--text-dark);
    text-decoration: none;
    padding: var(--space-4) 100000;
    margin: var(--space-2) 0;
    transition: all 0.3s ease;
}

.mobile-nav-item:hover {
    color: var(--color-purple);
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--space-8);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.intro-text {
    text-align: center;
    max-width: 800px;
}

.title-baskerville {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: var(--font-weight-normal);
    font-style: italic;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    color: var(--text-darker);
}
/* Highlights & Animations */
.highlight-name {
    position: relative;
    display: inline-block;
    background-image: linear-gradient(transparent 60%, var(--color-violet) 40%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    animation: highlightName 3s ease infinite;
    cursor: pointer;
}

.highlight-name::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 224px;
    background-image: url('../img_home.png');
    background-size: cover;
    background-position: center;
    top: -144px;
    left: 148%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    pointer-events: none;
}

.highlight-name:hover::before {
    opacity: 1;
}

@keyframes highlightName {
    0% { background-size: 0% 100%; }
    50% { background-size: 100% 100%; }
    100% { background-size: 0% 100%; }
}

.highlight-word {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.highlight-name:hover,
.highlight-word:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='%23FF6B6B'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3C/svg%3E"), auto;
}

.highlight-word::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-purple);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms ease-in-out;
}

.highlight-word:hover::after {
    transform: scaleX(1);
}

.description {
    font-size: var(--font-size-xl);
    line-height: 1.3;
    color: var(--text-light);
    margin-bottom: var(--space-3);
}

.location {
    font-size: var(--font-size-base);
    color: var(--text-light);
}

/* Projects Grid */
.projects-grid {
    padding-top: var(--space-4);
    padding-bottom: var(--space-8);
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-6);
}

.section-title h2 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-darker);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-7);
    padding: 0 var(--space-5);
}

.project-item {
    background-color: var(--background-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header {
    padding: var(--space-6) var(--space-6) var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-text h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
    color: var(--text-dark);
}

.project-text p {
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--text-light);
}

.project-divider {
    height: 1px;
    background-color: var(--background-dark);
    margin: 0 var(--space-6);
}

.arrow {
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.project-item:hover .arrow {
    transform: translateX(5px);
}

.project-image {
    flex-grow: 1;
    margin-top: var(--space-4);
}

.project-image img {
    width: 36%;
    height: 100%;

    justify-content: center;
    align-items: center;
    margin: 0 auto;

}

.project-image img,
.project-image-2 img {
    display: block;
    margin: 0 auto; /* Centers the image horizontally */
    max-width: 100%; /* Ensures responsiveness */
    height: auto; /* Maintains aspect ratio */
}
/* Footer */
.footer {
    padding: var(--space-8) 0;
    background-color: var(--background-light);
    border-top: 1px solid var(--background-dark);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-status {
    margin-bottom: var(--space-7);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-purple);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.status-indicator p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.footer-title {
    font-family: var(--font-title);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-normal);
    font-style: italic;
    line-height: 1.2;
    margin-bottom: var(--space-5);
    color: var(--text-darker);
}

.footer-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-light);
    margin-bottom: var(--space-7);
    letter-spacing: var(--tracking-wide);
}

.footer-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--background-dark);
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    font-size: var(--font-size-sm);
    letter-spacing: var(--tracking-wide);
    color: var(--text-light);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--text-dark);
}

.back-to-top {
    background: none;
    border: 1px solid var(--background-dark);
    color: var(--text-light);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    color: var(--text-dark);
    background-color: var(--background-dark);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-wrapper {
        bottom: auto;
        top: 0;
        padding: 0;
        backdrop-filter: none;
        background: none;
    }

    .nav-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }

    .logo {
        display: block;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%); /* 중앙 정렬을 위한 transform 추가 */
        font-size: var(--font-size-xl);
        background-color: rgba(250, 250, 250, 0.3);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: var(--space-4);
        width: 85%;
        text-align: center;
        z-index: 1002;
    }

    .hamburger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 15%;
        height: 60px;
        background-color: rgba(250, 250, 250, 0.3);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .nav-bar {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-section {
        min-height: 80vh;
        padding-top: calc(60px + var(--space-4));
    }

    .title-baskerville {
        font-size: 3rem;
    }

    .description {
        font-size: var(--font-size-lg);
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
        padding: var(--space-4);
    }

    .footer-content {
        padding: var(--space-6) var(--space-4);
    }

    .footer-title {
        font-size: var(--font-size-3xl);
    }

    .footer-subtitle {
        font-size: var(--font-size-lg);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-4);
    }

    .social-links {
        width: 100%;
        justify-content: center;
    }

    .back-to-top {
        width: 100%;
        margin-top: var(--space-3);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        padding: 0 var(--space-3);
    }

    .project-grid {
        padding: 0 var(--space-4);
    }
}