/* ============================================
   ZHENPIN Corporate Website Styles
   ============================================ */

/* CSS Variables */
:root {
    --accent-color: #ff8c00;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --bg-light: #f4f4f5;
}

/* Base Styles */
body {
    background-color: var(--bg-light);
    background-image: linear-gradient(135deg, #fdfbf7 0%, #f4f4f5 100%);
    color: var(--text-primary);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
}

/* 3D Canvas Layers */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#earth-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#earth-container {
    position: absolute;
    right: -10%;
    bottom: 0;
    width: 60vw;
    height: 60vw;
    z-index: 0;
    opacity: 0.15;
}

/* Glass Panel Effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Timeline */
.timeline-line {
    position: absolute;
    left: 0;
    top: 24px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ccc, transparent);
}

/* ============================================
   Company Page Styles
   ============================================ */

/* Company Hero 3D Canvas */
#company-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    z-index: 0;
    pointer-events: none;
}

/* Japanese Vertical Text */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Shippori Mincho', serif;
    letter-spacing: 0.15em;
    line-height: 2.5;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Company Profile Table Styles */
.profile-row {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s ease;
}

.profile-row:hover {
    background-color: rgba(234, 88, 12, 0.03);
}

/* ============================================
   Product Film Page Styles
   ============================================ */

/* Grid Background for Product Pages */
.bg-grid {
    background-image: linear-gradient(#e5e7eb 1px, transparent 1px),
                      linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Tech Card */
.tech-card {
    background: #ffffff;
    border: 1px solid #d4d4d8;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s ease-in-out;
}

.tech-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Icon Box */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
    color: #1f2937;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.tech-card:hover .icon-box {
    background-color: #fff7ed;
    color: #ea580c;
}

/* ============================================
   Product Case Page Styles
   ============================================ */

/* 3D Canvas for Case Hero */
#case-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Feature Card */
.feature-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(234, 88, 12, 0.15);
}

/* Icon Circle */
.icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #fff7ed;
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Pulse Animation for MagSafe Ring */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* ============================================
   Product Cable Page Styles
   ============================================ */

/* 3D Canvas for Cable Hero */
#cable-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Data Card */
.data-card {
    background: white;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.data-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Pulse Animation for PCB Circuit Lines */
@keyframes pulse-line {
    0% { stroke-dashoffset: 100; opacity: 0.2; }
    50% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0.2; }
}

.circuit-line {
    stroke-dasharray: 10;
    animation: pulse-line 3s linear infinite;
}

