/* ============================================================
   Force Light Mode
   ============================================================ */
:root { color-scheme: light !important; }

html, body {
    background-color: #ffffff !important;
    color: #111111 !important;
}

[data-theme="dark"], .dark, .dark-mode, body.dark, html.dark {
    background: inherit !important;
    color: inherit !important;
}

img, picture, video, svg {
    filter: none !important;
    background-color: transparent !important;
}

:root {
    --background-color: #ffffff !important;
    --bg: #ffffff !important;
    --foreground: #111111 !important;
    --text-color: #111111 !important;
    --muted-color: #444444 !important;
}

@media (prefers-color-scheme: dark) {
    :root { color-scheme: light !important; }
}

/* ============================================================
   Preloader
   ============================================================ */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #E3E3E3;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: circle(100% at 50% 50%);
    transition: clip-path 1s ease;
    cursor: none;
    pointer-events: none;
}

#preloader.preloader-hide {
    clip-path: circle(0px at var(--mouse-x, 50%) var(--mouse-y, 50%));
}

.preloader-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #111111;
    animation: fadeLogo 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Outfit', 'Google Sans Flex', sans-serif;
}

@keyframes fadeLogo {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

/* ============================================================
   Landscape Blocker
   ============================================================ */
.landscape-blocker {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333;
}

.landscape-blocker-content { padding: 20px; max-width: 300px; }
.landscape-blocker-content svg { margin-bottom: 20px; color: #0073aa; }
.landscape-blocker-content h2 { font-size: 24px; margin-bottom: 10px; }
.landscape-blocker-content p { font-size: 16px; line-height: 1.5; color: #666; }

@media screen and (max-height: 500px) and (orientation: landscape) {
    .landscape-blocker { display: flex !important; }
}

/* ============================================================
   Global
   ============================================================ */
::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; -ms-overflow-style: none; }

* { -webkit-tap-highlight-color: transparent; }
*:focus { outline: none !important; }

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --yellow-color: #FFDE00;
    --text-color: #000000;
    --bg-color: #FFFFFF;
    --gray-color: #CCCCCC;
    --white-color: #FFFFFF;
    --circle-size: 20vh;
    --background-opacity: 0.5;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    font-family: 'Google Sans Flex', 'Outfit', sans-serif;
}

/* ─── Page Wrapper ─── */
.page-wrapper {
    display: flex;
    flex-direction: column;
}

/* ============================================================
   Header
   ============================================================ */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
}

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

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
}

.header-logo .logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.header-logo .logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: opacity 0.3s;
}

.header-nav a:hover { opacity: 0.5; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .header-nav { gap: 0.8rem; }
    .header-nav a { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .header-nav.open { display: flex; }
    .menu-toggle { display: block; }
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://ignoredone-wp.oss-cn-shanghai.aliyuncs.com/wp-content/uploads/2026/06/z%E9%81%AE%E7%BD%A9.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--background-opacity);
    z-index: -1;
}

/* Background circle grid */
.bg-circles-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(3, var(--circle-size));
    grid-template-rows: repeat(2, var(--circle-size));
    gap: 0;
    z-index: 0;
}

.bg-circle {
    width: var(--circle-size);
    height: var(--circle-size);
    border-radius: 50%;
    overflow: hidden;
    opacity: 1;
}

.bg-circle:nth-child(1),
.bg-circle:nth-child(2),
.bg-circle:nth-child(3),
.bg-circle:nth-child(5) { background-color: #f5f5f5; }
.bg-circle:nth-child(4),
.bg-circle:nth-child(6) { background-color: var(--white-color); }

/* Yellow circles */
.circles-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(3, var(--circle-size));
    grid-template-rows: repeat(2, var(--circle-size));
    gap: 0;
    z-index: 1;
}

.circle {
    width: var(--circle-size);
    height: var(--circle-size);
    background-color: var(--yellow-color);
    border-radius: 50%;
    transition: opacity 0.8s ease-in-out;
    opacity: 1;
}

.circle.hidden { opacity: 0; }

/* Small labels */
.small-label {
    position: absolute;
    letter-spacing: -0.05em;
    font-size: 0.5vw;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 2;
    white-space: nowrap;
}

.small-label.visible { opacity: 1; }

.label-1 { left: 5%; top: 40%; }
.label-2 { left: 25%; top: 40%; }
.label-3 { left: 70%; top: 40%; }
.label-4 { left: 70%; top: 60%; }
.label-5 { left: 90%; top: 10%; }
.label-6 { left: 90%; top: 60%; }
.label-7 { left: 5%; top: 10%; }

/* Main title */
.main-text-container {
    position: absolute;
    left: 5%;
    bottom: 5vh;
    z-index: 3;
    line-height: 0.85;
    letter-spacing: -0.05em;
    width: 90%;
}

.typewriter-line {
    font-size: 9vw;
    font-weight: 600;
    color: var(--text-color);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: -0.05em;
}

.cursor {
    display: inline-block;
    width: 0.05em;
    height: 0.8em;
    background-color: black;
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Navigate button */
#nav-button {
    position: absolute;
    top: calc(50% + var(--circle-size)/2);
    left: calc(50% + var(--circle-size));
    transform: translate(-50%, -50%);
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#nav-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

#nav-button svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-color);
    stroke-width: 2;
    fill: none;
}

#nav-button span {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: -0.02em;
    font-family: 'Google Sans Flex', sans-serif;
}

#nav-button.show { opacity: 1; }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 2000;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    left: 0;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    padding: 6rem 1.5rem 2rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-logo .logo-mini {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-color);
    flex-shrink: 0;
}

.sidebar-logo span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav-btn {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
    letter-spacing: -0.01em;
}

.sidebar-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Sidebar Handle */
.sidebar-handle {
    position: absolute;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 48px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: var(--text-color);
    transition: background 0.2s ease;
}

.sidebar-handle:hover {
    background: rgba(255, 255, 255, 1);
}

.sidebar-handle svg {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.open .sidebar-handle svg {
    transform: rotate(180deg);
}

/* Sidebar overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.sidebar-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 480px) {
    .sidebar {
        width: 280px;
        left: -280px;
    }
    .sidebar-handle {
        display: none;
    }
}

/* Full background circles (mouse interaction) */
.background-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.background-circle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--gray-color);
    transition: background-color 0.3s ease;
}

/* ============================================================
   About Section
   ============================================================ */
.about-section {
    padding: 120px 2rem;
    background: #fafafa;
}

.about-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #bbb;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin: 0 0 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 0 0 1rem;
}

.about-text .highlight {
    display: inline-block;
    background: var(--yellow-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-text h2 { font-size: 2rem; }
}

/* ============================================================
   Work Gallery
   ============================================================ */
.work-section {
    padding: 100px 2rem;
}

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

.work-header {
    text-align: center;
    margin-bottom: 3rem;
}

.work-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin: 0;
}

.work-header p {
    color: #888;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.work-card {
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.work-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card-body {
    padding: 1.2rem;
}

.work-card-body .tag {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.work-card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

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

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

/* ============================================================
   Contact Section
   ============================================================ */
.contact-section {
    padding: 100px 2rem;
    background: #fafafa;
}

.contact-inner {
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin: 0;
}

.contact-header p {
    color: #888;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.contact-grid {
    display: flex;
    justify-content: center;
}

.contact-card {
    max-width: 360px;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

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

.contact-card svg {
    color: #111;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.8rem;
    letter-spacing: -0.02em;
}

.contact-card p,
.contact-card a {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    text-decoration: none;
    display: block;
}

.contact-card a:hover {
    color: #111;
}

@media (max-width: 600px) {
    .contact-header h2 { font-size: 2rem; }
}

/* ============================================================
   Footer
   ============================================================ */
footer.site-footer {
    background: #111111;
    color: #ffffff;
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.8;
    text-decoration: none;
    display: block;
}

.footer-col a:hover { color: var(--yellow-color); }

.footer-bottom {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   Back to Top
   ============================================================ */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#back-to-top:hover { background: #000; }

#back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: #000;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s ease;
}

#back-to-top:hover svg { stroke: #fff; }

@media (max-width: 768px) {
    #back-to-top { bottom: 20px; right: 20px; }
}

/* ============================================================
   Mobile Transition
   ============================================================ */
@media screen and (max-width: 768px) {
    #mobilePageTransition {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    }
    #mobilePageTransition.active {
        opacity: 1;
        visibility: visible;
    }
}
@media screen and (min-width: 769px) {
    #mobilePageTransition { display: none !important; }
}
