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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

a, button, input, textarea, select {
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-list {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 50px;
}

.nav-link {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-contact {
    padding: 0.75rem 2rem;
    background: #ffffff;
    color: #0a0a0f;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Global Background */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: 30%;
    left: -150px;
    animation-delay: -2s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    top: 60%;
    right: 10%;
    animation-delay: -4s;
}

.blob-4 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    bottom: 20%;
    left: 20%;
    animation-delay: -6s;
}

.blob-5 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    bottom: -50px;
    right: 30%;
    animation-delay: -3s;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 5% 50px;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.btn-learn-more {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-learn-more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Sections */
.section {
    padding: 100px 5%;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #a855f7, #ec4899);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* About Section */
.about {
    background: transparent;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #1a1a24, #2a2a3a);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #a855f7;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(168, 85, 247, 0.4);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    transform: translateY(-3px);
}

/* Portfolio Section */
.portfolio {
    background: transparent;
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.9), rgba(19, 19, 26, 0.9));
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    backdrop-filter: blur(10px);
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
}

.portfolio-item:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 30px 60px rgba(168, 85, 247, 0.3),
                0 0 30px rgba(168, 85, 247, 0.2),
                inset 0 0 30px rgba(168, 85, 247, 0.1);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, #2a2a3a, #1a1a24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.portfolio-image-dark {
    padding: 15px;
    overflow: hidden;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a24, #13131a);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* Attitude Section */
.attitude {
    background: transparent;
    position: relative;
}

.attitude-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.attitude-card {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.9), rgba(19, 19, 26, 0.9));
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.attitude-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
    transition: left 0.5s ease;
}

.attitude-card:hover::before {
    left: 100%;
}

.attitude-card:hover {
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-10px) rotateX(5deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(168, 85, 247, 0.3),
                0 0 40px rgba(168, 85, 247, 0.2);
}

.attitude-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.attitude-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.attitude-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* Projects Section */
.projects {
    background: transparent;
    position: relative;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.9), rgba(19, 19, 26, 0.9));
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(168, 85, 247, 0.3), transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.project-card:hover {
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(168, 85, 247, 0.3),
                0 0 40px rgba(168, 85, 247, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.project-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-card > p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    padding: 0.4rem 0.8rem;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    font-size: 0.8rem;
    color: #818cf8;
}

/* Contact Section */
.contact {
    background: transparent;
    position: relative;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
}

.contact-icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    padding: 2rem 5%;
    text-align: center;
    background: transparent;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        padding: 1rem;
    }
    
    .nav.active .nav-list {
        flex-direction: column;
        width: 100%;
        background: none;
    }
    
    .btn-contact {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-list {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: #a855f7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9333ea;
}
