/* Garet Font */
@font-face {
    font-family: 'Garet';
    src: url('assets/fonts/Garet-Book.woff2') format('woff2'),
         url('assets/fonts/Garet-Book.woff') format('woff'),
         url('assets/fonts/Garet-Book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.glass-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.text-gradient {
    background: linear-gradient(to right, #1a1a1a, #4a4a4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    color: #b91c47;
    text-shadow: none;
    position: relative;
}


/* Subtle Grid Background */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Utilities */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
}

/* Hero logo and title - no spacing */
.hero-logo-container img {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    vertical-align: bottom !important;
}

.hero-logo-container h1 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Partners hover effect - 컬러 기본, hover 시 나머지 흑백 */
.partners-container .partner-item {
    filter: grayscale(0);
    transition: filter 0.3s ease;
}

.partners-container:hover .partner-item {
    filter: grayscale(100%);
}

.partners-container .partner-item:hover {
    filter: grayscale(0);
}

/* Enhanced Typography */
h1, h2, h3 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Improved Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Portal Button with Silver Shine Effect */
.btn-portal {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 1px solid rgba(192, 192, 192, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.btn-portal:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #d3d3d3 100%);
    border-color: rgba(192, 192, 192, 0.5);
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.4), 0 0 30px rgba(192, 192, 192, 0.2);
    transform: translateY(-2px);
}

.portal-icon {
    color: #808080;
    filter: drop-shadow(0 0 4px rgba(192, 192, 192, 0.6));
    transition: all 0.3s ease;
}

.btn-portal:hover .portal-icon {
    color: #606060;
    filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.9)) drop-shadow(0 0 12px rgba(192, 192, 192, 0.5));
    transform: scale(1.1);
}

.btn-portal:active {
    transform: translateY(0);
}

/* Cinematic Reveal Intro Animation */
:root {
    --uca-black: #000000;
    --uca-cyan: #00ffff;
    --uca-glow: rgba(0, 255, 255, 0.6);
}

.intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
}

.reveal-wrapper {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reveal-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    opacity: 0;
    filter: blur(20px);
    transform: scale(0.95);
    position: relative;
    z-index: 2;
}

/* 시네마틱 글로우 효과 (사용 안 함) */
.glow-element {
    display: none;
}

/* 하단 로딩 바 */
.loading-bar-wrap {
    width: 200px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    margin: 40px auto 0;
    overflow: hidden;
    border-radius: 1px;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: #1a1a1a;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 1px;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    /* Touch-friendly button sizes */
    .btn-primary, .btn-secondary, .btn-portal {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Better text readability on mobile */
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Better spacing for mobile */
    section {
        scroll-margin-top: 60px;
    }

    /* Intro logo mobile size */
    .intro-logo {
        width: 200px;
        height: 200px;
    }
}

/* Enhanced Form Inputs */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Improved Card Styles */
.work-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Enhanced Navigation */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Improved Text Readability */
p {
    line-height: 1.7;
}

/* Smooth Animations */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Glass Card */
.glass-card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.glass-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Improved Stats Display */
.counter {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Better Link Underlines */
a[href^="#"] {
    position: relative;
}

/* Enhanced Form Focus States */
input:focus, textarea:focus {
    transform: translateY(-1px);
}

/* Improved Section Headers */
section h2 {
    background: linear-gradient(135deg, #1a1a1a 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Works Horizontal Scroll */
.works-scroll-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
    cursor: grab;
    padding-top: 20px; /* Add space for hover effect */
}

.works-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.works-scroll-container:active {
    cursor: grabbing;
}

/* Partners Horizontal Scroll */
.partners-scroll-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
    cursor: grab;
}

.partners-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.partners-scroll-container:active {
    cursor: grabbing;
}

/* Partners Navigation Buttons */
.partners-nav-btn {
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.partners-nav-btn:hover {
    transform: scale(1.1);
}

/* Partner Logo Styling */
.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Partner Glint Effect */
.partner-glint {
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    animation: partnerGlint 0.6s ease-out;
    pointer-events: none;
    z-index: 5;
}

.partner-item:hover .partner-glint {
    animation: partnerGlint 0.6s ease-out;
}

@keyframes partnerGlint {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Works Navigation Buttons */
.works-nav-btn {
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.works-nav-btn:hover {
    transform: scale(1.1);
}

/* Gold Card Effects */
.gold-gradient-bg {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 25%, #d4af37 50%, #b8860b 75%, #8b6914 100%);
    background-size: 200% 200%;
}

.gold-card {
    position: relative;
    box-shadow: 0 0 10px rgba(15, 23, 42, 0.3);
    transition: all 0.3s ease;
}

.gold-card:hover .gold-gradient-bg {
    animation: goldShimmer 3s ease-in-out infinite;
}

.gold-card:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5), 0 0 60px rgba(212, 175, 55, 0.4), 0 0 90px rgba(212, 175, 55, 0.3);
    transform: translateY(-4px) scale(1.02);
}

@keyframes goldShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.shimmer-effect {
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    pointer-events: none;
}

.gold-card:hover .shimmer-effect {
    animation: shimmer 2s infinite;
}

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

.gold-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700, #ffed4e);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.gold-card:hover::before {
    opacity: 0.6;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Light Mode Styles */
.light-mode {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

.light-mode body {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

.light-mode .bg-uca-black {
    background-color: #ffffff !important;
}

.light-mode .bg-uca-dark {
    background-color: #f5f5f5 !important;
}

.light-mode .text-uca-text {
    color: #1a1a1a !important;
}

.light-mode .text-uca-muted {
    color: #666666 !important;
}

.light-mode .text-white {
    color: #1a1a1a !important;
}

.light-mode .text-gray-300 {
    color: #4a4a4a !important;
}

.light-mode .text-gray-400 {
    color: #666666 !important;
}

.light-mode .bg-grid {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.light-mode .glass-card {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.01) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.light-mode .text-gradient {
    background: linear-gradient(to right, #1a1a1a, #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a !important;
}

.light-mode .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.light-mode input,
.light-mode textarea {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
}

.light-mode input:focus,
.light-mode textarea:focus {
    background: rgba(0, 0, 0, 0.1) !important;
    border-color: #3b82f6 !important;
}

.light-mode input::placeholder,
.light-mode textarea::placeholder {
    color: #999999 !important;
}

.light-mode nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode .border-white\/5 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode .bg-white\/10 {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode .bg-white\/20 {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.light-mode .bg-white\/5 {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.light-mode .counter {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-mode section h2 {
    background: linear-gradient(135deg, #1a1a1a 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-mode .glass-card .bg-gradient-to-tr {
    background: linear-gradient(to top right, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02)) !important;
}

.light-mode .works-nav-btn,
.light-mode .partners-nav-btn {
    background: rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #1a1a1a !important;
}

.light-mode .works-nav-btn:hover,
.light-mode .partners-nav-btn:hover {
    background: rgba(0, 0, 0, 0.2) !important;
}

.light-mode footer {
    background-color: #f5f5f5 !important;
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode #mobile-menu {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode #all-works-page {
    background-color: #ffffff !important;
}

.light-mode .partner-item .bg-white {
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode .partner-item:hover .border-blue-500\/50 {
    border-color: rgba(59, 130, 246, 0.5) !important;
}

.light-mode ::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.light-mode ::-webkit-scrollbar-thumb {
    background: #ccc;
}

.light-mode ::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.light-mode #theme-toggle {
    background-color: rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
}

.light-mode #theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

/* Ink Drop Animation Styles */
#ink-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#ink-drop {
    transform-origin: center center;
    will-change: transform, opacity;
}

.ink-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: none;
}

.ink-orb-blue-1 {
    background: #93c5fd;
    width: 300px;
    height: 300px;
}

.ink-orb-blue-2 {
    background: #60a5fa;
    width: 250px;
    height: 250px;
}

.ink-orb-blue-3 {
    background: #3b82f6;
    width: 200px;
    height: 200px;
}

.ink-orb-red-1 {
    background: #fca5a5;
    width: 280px;
    height: 280px;
}

.ink-orb-red-2 {
    background: #f87171;
    width: 240px;
    height: 240px;
}

.ink-orb-red-3 {
    background: #ef4444;
    width: 220px;
    height: 220px;
}

.ink-orb-purple-1 {
    background: #c4b5fd;
    width: 260px;
    height: 260px;
}

.ink-orb-purple-2 {
    background: #a78bfa;
    width: 230px;
    height: 230px;
}
