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

/* Ensure images fit within their containers without overflowing */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

:root {
    --primary-color: #000;
    --secondary-color: #666;
    --accent-color: #000;
    --gradient: #000;
    --gradient-2: #000;
    --gradient-3: #000;
    --max-width: 1400px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
.gradient-text {
    color: var(--primary-color);
}

.white-text {
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* 로고 이미지 강제 스타일 - 최고 우선순위 */
.nav-logo img.logo-image,
img.logo-image,
.logo-image {
    height: 24px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 24px !important;
    display: block !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    display: flex;
    background: #f0f0f0;
    border-radius: 0;
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: #e0e0e0;
}

.discover-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.discover-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* Hero Section with Identity */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
}

.three-network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gradient-overlay {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(100px);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    opacity: 0.03;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    opacity: 0.03;
    bottom: 20%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    opacity: 0.03;
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: #f0f0f0;
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-description {
    font-size: 18px;
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 700px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(5px);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: white;
}

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

.about-left {
    position: sticky;
    top: 120px;
}

.about-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 10px;
    letter-spacing: -1px;
}

.about-title span {
    display: block;
}

.about-description {
    font-size: 18px;
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 50px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.value-item h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.value-item p {
    font-size: 16px;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Skills Section */
.skills-section {
    padding: 120px 0;
    background: #ffffff;
}

.skills-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    background: #f0f0f0;
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-title span {
    display: block;
}

.section-description {
    font-size: 18px;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

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

.skill-category {
    background: #f8f9fa;
    border-radius: 0;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.skill-category:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.category-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background: white;
    padding: 10px 18px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Projects Section */
.projects-section {
    padding: 120px 0;
    background: #f8f9fa;
}

.projects-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.projects-left {
    position: sticky;
    top: 120px;
}

.projects-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 10px;
    letter-spacing: -1px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-item {
    display: flex;
    align-items: top;
    gap: 24px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.project-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-left {
    flex-direction: row;
}

/* All projects now use the same left-aligned layout */

.project-image {
    flex: 0 0 500px;
    height: 350px;
    position: relative;
    overflow: hidden;
}

.project-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
    background: var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
}

.project-item:hover .project-visual {
    transform: scale(1.05);
}

.project-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Project background colors removed - using actual project logos instead */

.project-icon {
    font-size: 4rem;
    color: white;
}

.project-content {
    flex: 1;
    width: 100%;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.project-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-description {
    font-size: 16px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 25px;
}

.project-details {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.project-platform,
.project-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--secondary-color);
}

.project-platform i,
.project-date i {
    color: var(--primary-color);
    width: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

.project-image {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

.project-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.project-card:hover .project-visual {
    transform: scale(1.05);
}

/* Project background colors removed - using actual project logos instead */

.project-icon {
    font-size: 4rem;
    color: white;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.project-info p {
    font-size: 14px;
    color: var(--secondary-color);
}

/* Stylish Footer */
.footer {
    background: #000;
    color: white;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-color);
}

.footer-main {
    margin-bottom: 80px;
}

.footer-cta {
    max-width: 800px;
    margin-bottom: 60px;
}

.footer-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.footer-title span {
    display: block;
}

.footer-description {
    font-size: 18px;
    color: #999;
    margin-bottom: 40px;
}

.contact-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 60px;
}

.button-content {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    gap: 30px;
}

.button-text {
    font-size: 24px;
    font-weight: 600;
}

.button-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.contact-button:hover .button-icon {
    transform: rotate(45deg);
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid #333;
}

.footer-nav {
    display: flex;
    gap: 40px;
}

.footer-nav a {
    color: #999;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #222;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    .projects-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .projects-left {
        position: static;
    }
    
    .skills-categories {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 30px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-actions {
        display: none;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .project-item {
        flex-direction: column !important;
        gap: 30px;
        text-align: center;
    }
    
    .project-image {
        flex: none;
        width: 100%;
        max-width: 500px;
        height: 300px;
        margin: 0 auto;
    }
    
    .project-details {
        justify-content: center;
    }
    
    .skills-categories {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .button-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .section-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .skill-category {
        padding: 30px 20px;
    }
}

/* 최종 로고 강제 스타일 - 파일 맨 끝에 추가 */
.nav-logo img[class*="logo"] {
    height: 24px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 24px !important;
}

/* Coming Soon Dialog Styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dialog-overlay.show {
    display: flex;
    opacity: 1;
}

.dialog-container {
    background: white;
    border-radius: 0;
    padding: 0;
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.dialog-overlay.show .dialog-container {
    transform: scale(1);
}

.dialog-content {
    padding: 60px 50px;
    text-align: center;
}

.dialog-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.dialog-description {
    font-size: 18px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 40px;
}

.dialog-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dialog-button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive for Dialog */
@media (max-width: 768px) {
    .dialog-content {
        padding: 40px 30px;
    }
    
    .dialog-title {
        font-size: 2rem;
    }
    
    .dialog-description {
        font-size: 16px;
    }
    
    .dialog-button {
        padding: 14px 30px;
        font-size: 14px;
    }
}