:root {
    --bg-color: #07070a;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --primary-color: #6C5CE7;
    --secondary-color: #00D2D3;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Animated Glow Blobs */
.glow-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(108,92,231,0.4) 0%, rgba(0,0,0,0) 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0,210,211,0.3) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(255,107,107,0.2) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 10%) scale(1.1); }
    66% { transform: translate(-5%, 5%) scale(0.9); }
    100% { transform: translate(10%, -5%) scale(1); }
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    z-index: 100;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.glass-nav:hover {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

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

.greeting {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.name {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dynamic-text {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 30px;
}

#typewriter {
    font-weight: 600;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.6);
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .glass-nav {
        padding: 15px 20px;
    }
    .nav-links {
        display: none; /* 모바일 메뉴는 차후 구현 */
    }
    .name {
        font-size: 3rem;
    }
    .dynamic-text {
        font-size: 1.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .glass-card {
        padding: 40px 20px;
    }
}

/* About Section */
.about-section {
    min-height: 100vh;
    padding: 100px 20px;
    position: relative;
    z-index: 10;
}

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

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 800;
}

.section-title span {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Profile Card */
.profile-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
}

.profile-titles h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile-titles h3 span {
    color: var(--secondary-color);
}

.role-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid rgba(108, 92, 231, 0.5);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.intro-desc {
    color: var(--text-muted);
    line-height: 1.8;
}

.intro-desc strong {
    color: #fff;
}

.contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
}

.chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.chip svg {
    width: 16px;
    height: 16px;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Timeline */
.timeline-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #fff;
}

.center-title {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-container {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.edu-dot {
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.timeline-content {
    padding: 20px 25px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    border-color: rgba(108, 92, 231, 0.4);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tech-stack {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #fff;
    opacity: 0.8;
}

.timeline-more {
    position: relative;
    padding: 10px 0 30px 0;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

/* Skills */
.skills-wrapper {
    margin-top: 60px;
}

.tech-bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.bubble {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-main);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.bubble::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.1;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.bubble:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.bubble:hover::before {
    opacity: 0.3;
}

/* Tech category colors */
.bg-java::before { background: #E76F00; }
.bg-spring::before { background: #6DB33F; }
.bg-db::before { background: #336791; }
.bg-front::before { background: #42b883; }
.bg-devops::before { background: #D24939; }
.bg-jpa::before { background: #59666C; }
.bg-tool::before { background: #F05032; }

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

/* Projects Section */
.projects-section {
    padding: 100px 20px;
    position: relative;
    z-index: 10;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
    border-color: rgba(108, 92, 231, 0.4);
}

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

.project-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.project-link:hover {
    color: #fff;
    transform: scale(1.1);
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: linear-gradient(45deg, var(--primary-color), #a29bfe);
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
}

.project-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.project-desc strong {
    color: #fff;
}

.project-features {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.project-features h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.project-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-features li {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.project-features li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.project-features li strong {
    color: #fff;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.tech-tag {
    font-size: 0.85rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    color: #fff;
    border-color: var(--secondary-color);
    background: rgba(0, 210, 211, 0.1);
}

@media (max-width: 768px) {
    .project-card {
        padding: 30px 20px;
    }
}
