/* 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.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.text-gradient {
    background: linear-gradient(to right, #ffffff, #a3a3a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    color: #b91c47;
    text-shadow: 0 0 20px rgba(185, 28, 71, 0.3), 0 2px 4px rgba(185, 28, 71, 0.2);
    position: relative;
}


/* Subtle Grid Background */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 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: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 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, #ffffff 0%, #f0f0f0 100%);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

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

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

/* 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.1);
}

/* 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.3);
}

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

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

/* 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.3);
}

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

/* Improved Stats Display */
.counter {
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 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, #ffffff 0%, #a3a3a3 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.8) 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;
}
