/* ===========================================
   10xLab - Custom Stylesheet
   Based on Misato Sakura Festival Design Format
   Theme: Blue (Trust & Intelligence)
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Zen+Kaku+Gothic+New:wght@300;400;500;700&family=Zen+Old+Mincho:wght@400;500;600;700;900&display=swap');

/* --- Base Configuration --- */
:root {
    --color-lab-main: #3b82f6;
    --color-lab-dark: #1e3a5f;
    --color-lab-accent: #60a5fa;
    --color-text-main: #1f2937;
    --color-white: #ffffff;
    --ease-editorial: cubic-bezier(0.19, 1, 0.22, 1);
}

body {
    font-family: 'Inter', "Zen Kaku Gothic New", sans-serif;
    color: var(--color-text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, .serif {
    font-feature-settings: "palt";
    letter-spacing: 0.02em;
}

/* --- Hero Section --- */
.hero-h {
    height: 100vh;
    height: 100svh;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    background: radial-gradient(circle at center,
        rgba(15, 23, 42, 0.4) 0%,
        rgba(15, 23, 42, 0.7) 100%);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-main-title {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
    .hero-main-title span:first-child {
        font-size: 5rem !important;
    }

    .hero-main-title span:nth-child(2) {
        font-size: 1.5rem !important;
        letter-spacing: 0.4em !important;
    }

    .fixed-logo {
        top: 1.5rem !important;
        left: 1.5rem !important;
        z-index: 50;
    }

    #menu-toggle {
        top: 1.5rem !important;
        right: 1.5rem !important;
    }
}

/* --- Animation Classes --- */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-editorial),
                transform 0.8s var(--ease-editorial);
}

.reveal-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Loader --- */
#loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

#loader-curtain {
    position: fixed;
    inset: 0;
    z-index: 90;
    background-color: #1e3a5f;
    transform: translateY(100%);
}

/* --- Menu Overlay --- */
#menu-overlay {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(15, 23, 42, 0.95);
}

.menu-link {
    position: relative;
    overflow: hidden;
    line-height: 1.2;
    padding: 0.25rem 0;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Select Styling --- */
select option {
    background-color: #0f172a;
    color: white;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* --- Focus States (Accessibility) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-lab-main);
    outline-offset: 2px;
}

/* --- Smooth Page Transitions --- */
html {
    scroll-behavior: smooth;
}

/* --- Mypage specific --- */
.mypage-sidebar {
    position: sticky;
    top: 2rem;
}

.branch-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
}

/* --- Card hover effects --- */
.meeting-card {
    transition: transform 0.3s var(--ease-editorial),
                box-shadow 0.3s var(--ease-editorial);
}

.meeting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* --- Gradient text utility --- */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
