/* ============================================================
   AN-G MakerLab 最终整合版 CSS
   包含：侧边栏增强交互、局部对齐天气/单词、下沉内容区、备案页脚
   ============================================================ */

:root {
    --primary: rgba(230, 68, 68, 0.84);
    --primary-hover: rgba(241, 145, 20, 0.9);
    --bg-main: rgba(255, 255, 255, 0);
    --bg-card: rgba(27, 27, 27, 0.76);
    --bg-card-text: rgb(250, 135, 135);
    --Icon-text: rgba(25, 25, 25, 0.9);
    --label-name: rgb(8, 226, 255);
    --banner-name: rgb(255, 255, 255);
    --projct-name: rgb(248, 151, 14);
    --projct-tag: rgb(255, 255, 255);
    --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    --page-bg: #070812;
    --panel-bg: rgba(12, 14, 28, 0.72);
    --panel-strong-bg: rgba(13, 14, 24, 0.88);
    --card-bg: rgba(27, 27, 27, 0.76);
    --card-border: rgba(255, 255, 255, 0.12);
    --text-main: rgba(255, 255, 255, 0.92);
    --text-muted: rgba(255, 255, 255, 0.68);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.13);
    --glass-blur: 14px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.22);
    --theme-toggle-bg: rgba(255, 255, 255, 0.08);
    --theme-toggle-text: var(--text-main);
    --theme-toggle-border: rgba(255, 255, 255, 0.18);
    --bg-gradient-base: linear-gradient(135deg, #070812 0%, #131827 45%, #10101a 100%);
    --bg-orb-1: 75, 209, 255;
    --bg-orb-2: 159, 51, 244;
    --bg-orb-3: 255, 199, 71;
    --bg-motion-opacity: 1;
    --banner-bg: rgba(15, 18, 32, 0.78);
    --banner-border: rgba(75, 209, 255, 0.22);
    --banner-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    --banner-title: #4bd1ff;

    /* 颜色采用 RGB 格式以便控制透明度 */
    --color1: var(--bg-orb-1);
    --color2: var(--bg-orb-2);
    --color3: 0, 255, 204;
    --color-interactive: 255, 72, 96;
    --color-black: 0,0,0;
    --circle-size: 62vmax;
    --blending: screen;
}

body[data-theme="dynamic"] {
    --page-bg: #070812;
    --panel-bg: rgba(12, 14, 28, 0.72);
    --panel-strong-bg: rgba(13, 14, 24, 0.88);
    --card-bg: rgba(27, 27, 27, 0.76);
    --bg-card: var(--card-bg);
    --bg-card-text: rgb(250, 135, 135);
    --Icon-text: rgba(244, 247, 255, 0.88);
    --banner-name: rgb(255, 255, 255);
    --projct-name: rgb(248, 151, 14);
    --projct-tag: rgb(255, 255, 255);
    --text-main: rgba(255, 255, 255, 0.92);
    --text-muted: rgba(255, 255, 255, 0.68);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.13);
    --bg-gradient-base: linear-gradient(135deg, #070812 0%, #141a2c 48%, #120f1b 100%);
    --bg-orb-1: 75, 209, 255;
    --bg-orb-2: 159, 51, 244;
    --bg-orb-3: 255, 199, 71;
    --bg-motion-opacity: 1;
    --banner-bg: rgba(15, 18, 32, 0.78);
    --banner-border: rgba(75, 209, 255, 0.22);
    --banner-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    --banner-title: #4bd1ff;
    --blending: screen;
}

body[data-theme="dark"] {
    --page-bg: #050608;
    --panel-bg: rgba(14, 16, 22, 0.82);
    --panel-strong-bg: rgba(13, 14, 18, 0.94);
    --card-bg: rgba(17, 18, 25, 0.86);
    --bg-card: var(--card-bg);
    --bg-card-text: rgba(248, 184, 184, 0.92);
    --Icon-text: rgba(242, 245, 255, 0.86);
    --banner-name: rgba(255, 255, 255, 0.86);
    --projct-name: rgb(255, 178, 70);
    --projct-tag: rgb(255, 255, 255);
    --text-main: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.62);
    --glass-bg: rgba(255, 255, 255, 0.055);
    --glass-border: rgba(255, 255, 255, 0.11);
    --bg-gradient-base: linear-gradient(135deg, #050608 0%, #10131d 100%);
    --bg-orb-1: 50, 80, 130;
    --bg-orb-2: 95, 42, 150;
    --bg-orb-3: 35, 120, 120;
    --bg-motion-opacity: 0.22;
    --banner-bg: rgba(18, 22, 34, 0.92);
    --banner-border: rgba(75, 209, 255, 0.36);
    --banner-shadow: 0 24px 70px rgba(0, 0, 0, 0.52), inset 0 0 0 1px rgba(255,255,255,0.04);
    --banner-title: #66dcff;
    --blending: screen;
}

body[data-theme="light"] {
    --primary: rgba(218, 84, 46, 0.95);
    --primary-hover: rgba(255, 151, 48, 0.9);
    --page-bg: #f6f8ff;
    --panel-bg: rgba(255, 255, 255, 0.76);
    --panel-strong-bg: rgba(255, 255, 255, 0.92);
    --card-bg: rgba(255, 255, 255, 0.78);
    --bg-card: var(--card-bg);
    --bg-card-text: rgba(54, 63, 82, 0.86);
    --Icon-text: rgba(35, 43, 60, 0.9);
    --label-name: rgb(35, 112, 158);
    --banner-name: rgba(45, 55, 72, 0.84);
    --projct-name: rgb(198, 92, 20);
    --projct-tag: rgb(255, 255, 255);
    --text-main: rgba(28, 35, 52, 0.92);
    --text-muted: rgba(52, 63, 84, 0.68);
    --glass-bg: rgba(255, 255, 255, 0.66);
    --glass-border: rgba(63, 92, 130, 0.16);
    --shadow-soft: 0 18px 45px rgba(52, 71, 103, 0.16);
    --theme-toggle-bg: rgba(255, 255, 255, 0.72);
    --theme-toggle-text: rgba(28, 35, 52, 0.92);
    --theme-toggle-border: rgba(63, 92, 130, 0.18);
    --bg-gradient-base: linear-gradient(135deg, #f9fbff 0%, #edf4ff 45%, #fff7ed 100%);
    --bg-orb-1: 74, 144, 226;
    --bg-orb-2: 255, 145, 77;
    --bg-orb-3: 96, 211, 190;
    --bg-motion-opacity: 0.42;
    --banner-bg: rgba(255, 255, 255, 0.78);
    --banner-border: rgba(74, 144, 226, 0.22);
    --banner-shadow: 0 22px 60px rgba(52, 71, 103, 0.18);
    --banner-title: #267da8;
    --blending: multiply;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body {
    font-family: 'JetBrains Mono', 'Noto Sans SC', sans-serif;
    overflow: hidden;
    color: var(--text-main);
    background: var(--page-bg);
}

.ANMainDIV-Left, .maker-banner, .project-card, #ANMainDIV-Right-Top {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border) !important;
}

#ANMainDIV {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
    background: var(--bg-main);
}

/* --- 1. 侧边栏：丝滑缩放与增强 Hover --- */
.ANMainDIV-Left {
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    transition: width var(--transition), box-shadow var(--transition);
    overflow: hidden;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    will-change: width;
    border: 2px solid orangered;
}

.ANMainDIV-Left-Close { width: 80px; }
.ANMainDIV-Left-Open { width: 180px; }

.logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 25px 0;
}

#ANLogo {
    width: 45px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ANMainDIV-Left:hover #ANLogo {
    transform: scale(1.15);
}

.AN-Nav {
    width: 100%;
    padding: 0 10px;
}

.AN-Nav li {
    margin-bottom: 5px;
}

.AN-Nav li a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    border-radius: 12px;
    transition: background 0.3s ease, transform var(--transition);
}

.AN-Nav li a:hover,
.AN-Nav li a.is-active {
    background: var(--primary-hover);
    transform: scale(1.02); /* 整体轻微放大 */
}

.icon-center {
    width: 60px; /* 缩窄图标容器适配侧边栏内边距 */
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.AN-Icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform var(--transition), filter var(--transition);
}

.AN-Icon[src$="项目工程-2.png"] {
    width: 22px;
    height: 22px;
}

.AN-Nav li a:hover .AN-Icon {
    transform: scale(1.15);
    color: var(--primary);
}

.nav-text {
    margin-left: 5px;
    opacity: 0;
    white-space: nowrap;
    font-weight: bold;
    color: var(--Icon-text);
    transition: opacity 0.3s ease, transform var(--transition);
}

.AN-Nav li a:hover .nav-text {
    transform: scale(1.1);
    color: var(--primary);
}

.ANMainDIV-Left-Open .nav-text {
    opacity: 1;
}

.sidebar-bottom {
    width: 100%;
    margin-top: auto;
    padding: 0 10px 14px;
}

.sidebar-contact {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    border-radius: 12px;
    transition: background 0.3s ease, transform var(--transition);
}

.sidebar-contact:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.sidebar-contact:hover .AN-Icon {
    transform: scale(1.15);
}

.ANMainDIV-Left-Open .sidebar-contact .nav-text {
    opacity: 1;
}


/* --- 2. 右侧区域布局 --- */
#ANMainDIV-Right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

/* 顶部栏：缩小高度 */
#ANMainDIV-Right-Top {
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    position: relative;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

.ANLabel-Main {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--label-name);
    pointer-events: none;
    text-shadow:
            0 0 4px rgb(159, 51, 244),
            0 0 8px rgba(226, 20, 241, 0.9),
            0 0 16px rgb(159, 51, 244),
            0 0 32px rgba(226, 20, 241, 0.9);

}

/* 顶部工具区 */
.top-actions {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.theme-toggle {
    height: 36px;
    min-width: 36px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--theme-toggle-border);
    background: var(--theme-toggle-bg);
    color: var(--theme-toggle-text);
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.theme-toggle:hover {
    transform: translateY(-1px) scale(1.02);
    border-color: var(--primary-hover);
}

.theme-toggle-icon-only {
    width: 36px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.theme-toggle-icon-only:hover {
    background: var(--theme-toggle-bg);
    border-color: var(--theme-toggle-border);
}

.theme-toggle-img {
    width: 30px;
    height: 30px;
    object-fit: contain;

    opacity: 1;
}

body[data-theme="dark"] .theme-toggle-img,
body[data-theme="dynamic"] .theme-toggle-img {
    filter: invert(1);
}

/* 天气与单词：局部定位容器 */
.Floating-Module, .ANDayEnglish {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    cursor: pointer;
}

.weather-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-icon-small {
    width: 32px;
    height: 32px;
    display: none;
}

.weather-icon-small.is-visible {
    display: block;
}

/* 展开面板：精准在各自模块下方 */
.Module-Expand, .Explain {
    display: none;
    position: absolute;
    top: 105%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--panel-strong-bg);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 150px;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--glass-border);
    z-index: 1;
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
}

#city {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
    font-weight: bold;
}

#ANWeather.expanded .Module-Expand,
.ANDayEnglish.open .Explain {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- 3. 内容展示区：填充背景与下沉 --- */
#ANMainDIV-Right-Content {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    position: relative;
}

#ANMainDIV-Right-Content-Grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 15px;
}

/* --- 新的内容卡片样式 (整合自 AN.html) --- */
#ANMainDIV-Right-Content-Grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding-bottom: 20px;
}

.project-card {
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    border: 2px solid rgba(9, 155, 246, 0);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(8px);
    border-color: rgb(5, 122, 255);
}

.project-img {
    width: 100%;
    height: 200px; /* 缩短高度以适配 4 列布局 */
    background: rgba(244, 244, 244, 0.91);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #bbbbbb;
    font-size: 0.8rem;
    font-weight: bold;
}
.project-img img {
    width: 100%;
    height: 100%;
    /* 核心属性：等比例裁剪，不拉伸 */
    object-fit: cover;
    /* 核心属性：图片居中 */
    object-position: center;
    transition: transform 0.5s ease;
}

.project-content {
    padding: 15px;
}

.project-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--projct-name);
}

.project-content p {
    font-size: 0.85rem;
    color: var(--projct-tag);
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: normal; /* 覆盖之前的 bold 设置 */
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    font-size: 0.7rem;
    background: rgba(226, 20, 241, 0.88);
    color: var(--projct-tag);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    border-top: 1px solid var(--glass-border);
    margin-top: 10px;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    color: #888;
}

.footer-content a {
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: var(--primary-hover);
}

.footer-content img {
    width: 14px;
    height: 14px;
}

/* 天气文字详情 */
.info-bold { font-weight: bold; color: var(--text-main); margin-bottom: 2px; }
.info-small { font-size: 11px; color: var(--text-muted); }
.info-extra { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

/* --- 新增：固定高度底部区域 --- */
#ANMainFooter {
    height: 30px; /* 固定高度 */
    backdrop-filter: blur(10px); /* 毛玻璃效果，更丝滑 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* 防止被挤压 */
}

/* ============================================================
   首页仪表盘专属样式 (Home Dashboard)
   ============================================================ */

.home-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.banner-content h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.banner-content p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* 动态列表区 */
.home-feed {
    background: var(--panel-strong-bg);
    border-radius: 15px;
    padding: 25px;
    flex: 1; /* 撑满剩余空间 */
}

.home-feed h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.feed-date {
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    color: var(--primary);
    background: rgba(159, 51, 244, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* 详情面板：仅在 Content 区内全屏 */
#Project-Detail-Overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--panel-strong-bg);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center;

}

/* 隐藏状态 */
.detail-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95) translateY(20px);
}

/* 详情内部排版 */
.detail-scroll-area {
    margin-top: 20px;
    overflow-y: auto;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
}

#Det-Title { font-size: 2rem; margin-bottom: 10px; color: var(--primary); }

.detail-body {
    display: flex;
    flex-direction: row;
    align-items: center;     /* 垂直居中 */
    gap: 30px;
    width: 100%;
    margin-top: 20px;
    overflow-y: auto;
    scrollbar-width: none;
}

.detail-text { flex: 1; line-height: 1.8; color: var(--text-muted); }
.detail-image-box {
    height: 300px;
    background: var(--panel-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 列表缩放背景 */
.grid-fade {
    filter: blur(5px);
    opacity: 0.1;
    transform: scale(0.95);
    pointer-events: none;
}

.back-btn{
    width: 80px;
    height: 30px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    background: var(--primary-hover);
    color: var(--primary);
}

.back-btn:hover { background: var(--primary); color: white; }

.AN-G{
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 95%;
    margin: 20px auto;
}

.section-1 {
    width: 95%;
    margin: 20px auto;
}

.section {
    width: 95%;
    margin: 40px auto;
}
.section h2 {
    margin-bottom: 20px;
    border-left: 5px solid #4bd1ff;
    padding-left: 15px;
    color: var(--projct-name);

}

#Log-Container{
    max-height: 400px;         /* 限制高度，你可以根据需要调整像素值 */
    overflow-y: auto;          /* 纵向溢出时显示滚动条 */
    scrollbar-width: none;
}

/* 卡片网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: .25s;
    margin-bottom: 10px;

}
.card:hover {
    transform: translateY(-5px);
    border-color: #4bd1ff;
    box-shadow: 0 0 15px rgba(75, 209, 255, 0.2);
}

.card-belong{
    display: flex;
    justify-content: space-between;
    align-items: center; /* 可选，让两端垂直居中 */
    gap: 100px;
}

.card-tag-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.contact{
    display:flex;
    gap: 10px;
    font-size: 1.2rem;
    flex-direction: column;
    align-items: center;
    font-weight: 900;
    color: var(--text-muted);
}

.contact img{
    width: 300px;
    height: auto;
}

.card-tag {
    font-size: 0.8rem;
    background: rgb(255, 199, 71);
    color: var(--projct-tag);
    padding: 2px 6px;
    border-radius: 4px;
}

.card h3 {
    color: #4bd1ff;
    margin: 0 0 5px;
}

.card p {
    font-size: 14px;
    opacity: 0.85;
    color: var(--bg-card-text);
}

.banner {
    height: 300px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--banner-bg);
    border: 1px solid var(--banner-border);
    box-shadow: var(--banner-shadow);
    backdrop-filter: blur(var(--glass-blur));
}
.banner h1 {
    font-size: 40px;
    margin: 0;
    color: var(--banner-title);
}
.banner p {
    margin-top: 15px;
    font-size: 18px;
    opacity: 0.8;
    color: var(--banner-name);
    text-shadow:
            0 0 4px rgb(53, 228, 60),
            0 0 8px rgb(53, 228, 60),
            0 0 16px rgb(53, 228, 60),
            0 0 32px rgb(53, 228, 60);
}

/* --- 容器基础设置：轻量动态背景 --- */
.gradient-bg {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    background: var(--bg-gradient-base);
    overflow: hidden;
    pointer-events: none;
}

.gradient-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.75), transparent 72%);
    opacity: 0.32;
}

.gradients-container {
    width: 100%;
    height: 100%;
    contain: paint;
    opacity: var(--bg-motion-opacity);
}

.g1, .g2, .g3, .interactive {
    position: absolute;
    border-radius: 999px;
    mix-blend-mode: var(--blending);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
}

.g4, .g5 {
    display: none;
}

@keyframes driftOne {
    0%, 100% { transform: translate3d(-8%, -6%, 0) scale(1); }
    50% { transform: translate3d(8%, 6%, 0) scale(1.08); }
}

@keyframes driftTwo {
    0%, 100% { transform: translate3d(8%, -4%, 0) scale(1.04); }
    50% { transform: translate3d(-7%, 8%, 0) scale(0.96); }
}

@keyframes driftThree {
    0%, 100% { transform: translate3d(-4%, 8%, 0) scale(0.98); }
    50% { transform: translate3d(9%, -8%, 0) scale(1.08); }
}

.g1 {
    width: 62vmax;
    height: 62vmax;
    left: -18vmax;
    top: -14vmax;
    background: radial-gradient(circle at center, rgba(var(--bg-orb-1), 0.36) 0, rgba(var(--bg-orb-1), 0.16) 34%, transparent 68%);
    animation: driftOne 34s ease-in-out infinite;
}

.g2 {
    width: 58vmax;
    height: 58vmax;
    right: -17vmax;
    top: 4vmax;
    background: radial-gradient(circle at center, rgba(var(--bg-orb-2), 0.34) 0, rgba(var(--bg-orb-2), 0.14) 36%, transparent 70%);
    animation: driftTwo 42s ease-in-out infinite;
}

.g3 {
    width: 48vmax;
    height: 48vmax;
    left: 22vw;
    bottom: -20vmax;
    background: radial-gradient(circle at center, rgba(var(--bg-orb-3), 0.26) 0, rgba(var(--bg-orb-3), 0.12) 38%, transparent 70%);
    animation: driftThree 48s ease-in-out infinite;
}

.interactive {
    width: 18vmax;
    height: 18vmax;
    left: -9vmax;
    top: -9vmax;
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.28) 0, rgba(var(--color-interactive), 0.1) 42%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

body[data-theme="dynamic"] .interactive {
    opacity: 0.75;
}

body[data-theme="dark"] .g1,
body[data-theme="dark"] .g2,
body[data-theme="dark"] .g3 {
    animation-duration: 90s;
}

body[data-theme="light"] .gradient-bg::after {
    opacity: 0.18;
}

body[data-theme="light"] .interactive {
    opacity: 0.35;
}

@media (prefers-reduced-motion: reduce) {
    .g1, .g2, .g3, .interactive {
        animation: none !important;
        transition: none !important;
    }

    .interactive {
        display: none;
    }
}


.project-page-content {
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: flex;
    justify-content: space-between;
    gap: 200px;
    padding: 80px;
}

.detail-image {
    height: 100%;
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
}
