/* Variables & Core Design System */
:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: rgba(0, 0, 0, 0.65);
    --accent-color: #5ab5ff; /* Sky Blue */
    --accent-hover: #3b99e8; /* Sky Blue Hover */
    --nav-bg: rgba(255, 255, 255, 0.85);
    
    --font-heading: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-padding {
    padding: 8rem 2rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

header.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo a {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    text-transform: uppercase;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

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

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.08);
    z-index: 1;
    border: 1px solid rgba(0, 0, 0,0.05);
    border-radius: 4px;
    padding: 0.5rem 0;
    opacity: 0;
    transition: opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 10px;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background-color: rgba(0, 0, 0,0.05);
    color: var(--text-primary);
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    margin-top: 0;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #ffffff;
    padding: 1rem 2rem 2rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0,0.05);
}

.mobile-nav.active {
    display: flex;
}

.mobile-link {
    margin: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.mobile-dropdown-title {
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.mobile-sublink {
    padding-left: 1rem;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    padding-top: 25vh;
    padding-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    text-align: center;
    background: radial-gradient(circle at center, rgba(245,245,245,1) 0%, var(--bg-color) 70%);
}

.hero::after {
    /* Subtle noise texture or gradient mesh overlay for a cinematic feel */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-color) 100%);
    pointer-events: none;
}

.hero-content {
    z-index: 10;
    position: relative;
}

.hero-logo-container {
    position: relative;
    width: 90vw;
    max-width: 550px;
    margin: 2rem auto 0;
}

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
}

.hero-logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
    clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%); /* clipped initially */
    will-change: clip-path, -webkit-clip-path;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.hero-title span {
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.15);
    position: relative;
}

.hero-title span::before {
    content: "증명";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    width: 0;
    overflow: hidden;
    animation: textFill 2s cubic-bezier(0.77, 0, 0.175, 1) forwards 1s;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: fadeIn 1s forwards 2.5s;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--text-primary);
    animation: scrollLine 2s ease-in-out infinite;
}

/* About Section */
.about {
    position: relative;
    background-color: var(--bg-color);
    padding-top: 3rem !important; /* Forces a ~3 line text gap off the hero section */
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-secondary);
    font-weight: 300;
}

.about-text p {
    margin-bottom: 0.5rem;
}

.about-text .highlight-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.about-text .quote-text {
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--accent-color);
    text-align: center;
    margin: 3rem 0;
    letter-spacing: 0.05em;
}

/* Featured Video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background-color: #f5f5f5;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Portfolio Section */
.portfolio-category {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0,0.1);
    padding-bottom: 0.5rem;
}

.category-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}


.video-item h4 {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    line-height: 1.4;
}

.video-item:hover h4 {
    color: var(--accent-color);
}

.empty-state {
    color: rgba(0, 0, 0,0.3);
    font-style: italic;
    padding: 1rem 0;
}

/* Portfolio Additions */
.awards-list {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}
.awards-list li {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.award-year {
    font-weight: 800;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.vtuber-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 3rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s;
    background-color: #fff;
}
.vtuber-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-5px);
    color: var(--accent-color);
}

.ip-series-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

/* Footer / Contact */
.footer {
    background-color: #f8f8f8;
    padding: 6rem 2rem;
    border-top: 1px solid rgba(0, 0, 0,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
    margin-bottom: 3rem;
    opacity: 0.5;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-item span {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 0.4rem;
}

.info-item a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    color: rgba(0, 0, 0,0.3);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Animations & Utilities */
@keyframes textFill {
    0% { width: 0; }
    100% { width: 100%; }
}

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

@keyframes scrollLine {
    0% { top: -50%; }
    100% { top: 100%; }
}

.fade-up-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Horizontal Scroll Gallery */
.scroll-gallery {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.5rem;
    padding: 0.5rem 0.5rem 2.5rem 0.5rem;
    margin: 0 -0.5rem;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-light) rgba(0,0,0,0.05);
}

.scroll-gallery::-webkit-scrollbar {
    height: 8px;
}
.scroll-gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05); 
    border-radius: 4px;
}
.scroll-gallery::-webkit-scrollbar-thumb {
    background: var(--accent-color, #5ab5ff); 
    border-radius: 4px;
}

.scroll-gallery > * {
    flex: 0 0 88%;
    max-width: 480px;
    scroll-snap-align: start;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (min-width: 768px) {
    .scroll-gallery > * {
        flex: 0 0 45%;
        max-width: 450px;
    }
}

@media (min-width: 1024px) {
    .scroll-gallery > * {
        flex: 0 0 35%;
        max-width: 500px;
    }
}

/* Center Mode Section Carousel */
.portfolio-slider-container {
    position: relative;
    width: 100%;
    padding-top: 1rem;
}
.portfolio-slider-container .container {
    max-width: 100%;
}
.portfolio-dots-container {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    align-items: center;
}

.portfolio-carousel-mask {
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    padding-bottom: 2rem;
}
.portfolio-carousel-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.portfolio-category {
    flex: 0 0 85%;
    max-width: 1100px;
    padding: 0 1.5vw;
    opacity: 0.25;
    transform: scale(0.92);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
@media (min-width: 1024px) {
    .portfolio-category {
        flex: 0 0 70%;
    }
}
.portfolio-category.active-slide {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.portfolio-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    color: var(--text-primary);
    font-size: 1.4rem;
    z-index: 10;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.portfolio-arrow:hover {
    background: var(--accent-color, #5ab5ff);
    color: #fff;
    transform: translateY(-2px);
}

.portfolio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-dot.active {
    width: 35px;
    border-radius: 5px;
    background: var(--accent-color, #5ab5ff);
}

/* Vertical Profile Card Grid */
.profile-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1rem;
}
@media (min-width: 600px) {
    .profile-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .profile-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Instagram Profile Cards */
.insta-profile-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: #ffffff;
    border-radius: 100px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.03);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
.insta-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.insta-profile-card:hover .insta-arrow {
    color: #cc2366;
    transform: translateX(4px);
}
.insta-gradient-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 3px;
    flex-shrink: 0;
}
.insta-inner-circle {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.insta-inner-circle i {
    font-size: 1.8rem;
    color: #cc2366;
}
.insta-arrow {
    font-size: 1.2rem;
    color: #ccc;
    transition: all 0.3s ease;
}

.snap-link-item:hover .snap-hover-img {
    transform: scale(1.05);
}
