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

html, body {
    height: 100%;
    background-color: #00000a;
    color: white;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Apply Pretendard font to all form elements */
input, textarea, select, button {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Color Variables */
:root {
    --bg-main: #00000a;
    --primary-color: #55b9e2;
    --kakao-yellow: #fee500;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #9F9FA9;
    --zinc-500: #71717b;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --zinc-950: #09090b;
    --gray-text: #9f9fa9;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 0.0625rem solid var(--zinc-800);
    background-color: var(--bg-main);
}

.header-content {
    max-width: 78.75rem;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.logo {
    height: 2.813rem;
    overflow: hidden;
    position: relative;
    width: 11.125rem;
}

.logo-main {
    position: absolute;
    top: 2.19%;
    right: 4.66%;
    bottom: 0.94%;
    left: 0.55%;
}

.logo-main img {
    display: block;
    max-width: none;
    width: 100%;
    height: 100%;
}

.logo-group {
    position: absolute;
    top: 25.94%;
    right: 1.19%;
    bottom: 63.75%;
    left: 96.13%;
}

.logo-group img {
    display: block;
    max-width: none;
    width: 100%;
    height: 100%;
}

.logo-dot {
    position: absolute;
    top: 25.94%;
    right: 1.19%;
    bottom: 63.75%;
    left: 96.13%;
}

.logo-dot img {
    display: block;
    max-width: none;
    width: 100%;
    height: 100%;
}

.navigation {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

/* Logo link */
.logo a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Navigation links */
.nav-item a {
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-item a:hover {
    color: #d1d5db;
}

.nav-item {
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #d1d5db;
}

.login-btn {
    background-color: white;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 6.188rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #e5e7eb;
}

.login-btn a {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--zinc-900);
    text-decoration: none;
}

.mypage-btn {
    background-color: white;
    color: var(--zinc-900);
    border: none;
    border-radius: 6.188rem;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mypage-btn:hover {
    background-color: #f4f4f5;
}

.mypage-btn a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
}

.mobile-navigation {
    display: none;
}

@media (max-width: 640px) {
    /* 모바일 네비게이션 */
    .navigation {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 0.25rem;
    }
    
    .hamburger {
        width: 24px;
        height: 24px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hamburger span {
        display: block;
        position: absolute;
        width: 18px;
        height: 2px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .hamburger span:nth-child(1) {
        top: 6px;
    }
    
    .hamburger span:nth-child(2) {
        top: 11px;
    }
    
    .hamburger span:nth-child(3) {
        top: 16px;
    }
    
    /* Animated hamburger to X */
    .mobile-menu-btn.active .hamburger span:nth-child(1) {
        top: 11px;
        transform: rotate(45deg);
    }
    
    .mobile-menu-btn.active .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .hamburger span:nth-child(3) {
        top: 11px;
        transform: rotate(-45deg);
    }
    
    .mobile-navigation {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--bg-main);
        border-top: 1px solid var(--zinc-800);
        display: flex;
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 0.25rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .mobile-navigation.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-nav-item a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        padding: 0.875rem 1rem;
        display: block;
        border-radius: 0.5rem;
        transition: background-color 0.2s ease;
    }
    
    .mobile-nav-item a:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .mobile-nav-item a:active {
        background-color: var(--zinc-900);
    }
    
    /* Special styling for login button in mobile menu */
    .mobile-nav-item:last-child a {
        background-color: white;
        color: var(--zinc-900);
        font-weight: 600;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .mobile-nav-item:last-child a:hover {
        background-color: var(--zinc-100);
    }
    
    .mobile-nav-item:last-child a:active {
        background-color: var(--zinc-200);
    }
}

/* Footer */
.footer {
    margin-top: auto;
    padding-bottom: 2.5rem;
}

.footer-divider {
    height: 0.125rem;
    background-color: var(--zinc-900);
    width: 100%;
    margin-bottom: 2.375rem;
}

.footer-content {
    min-width: 78.75rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.375rem;
}

.footer-copyright {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.438rem;
    font-size: 0.938rem;
    letter-spacing: 0.0625rem;
}

.copyright-text {
    font-weight: 700;
    color: #f4f4f5;
    margin: 0;
}

.footer-links {
    font-weight: 500;
    color: #9f9fa9;
    margin: 0;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.footer-links a {
    color: #9f9fa9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.company-info {
    font-weight: 400;
    font-size: 0.813rem;
    color: rgba(159, 159, 169, 0.7);
    text-align: center;
    letter-spacing: 0.0625rem;
    padding: 0 1.25rem;
}

.company-info strong {
    font-weight: 700;
}

/* Responsive Design */

@media (max-width: 64rem) {
    .header {
        height: 4rem;
    }

    .header-content {
        min-width: auto;
        padding: 0.75rem 1.25rem;
        height: 100%;
    }

    .logo {
        height: 2.5rem;
        width: 10rem;
    }
    
    .footer-content {
        min-width: auto;
        padding: 0 1.25rem;
    }
    
    .navigation {
        gap: 2rem;
    }
    
    .nav-item a {
        font-size: 1rem;
    }

    .login-btn {
        padding: 0.375rem 1rem;
    }
    
    .login-btn a {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navigation,
    .nav-menu {
        flex-direction: column;
        gap: 0.625rem;
    }
    
    .header-container {
        padding: 0.75rem 0.938rem;
    }
    
    .footer-content {
        padding: 0 0.938rem;
    }
}

html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background: var(--zinc-900);
}

::-webkit-scrollbar-thumb {
    background: var(--zinc-700);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--zinc-600);
}

/* Loading state for smooth transitions */
body {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}