/* public/style.css */
:root {
    --primary: #f97316; /* Clean, modern orange */
    --primary-hover: #ea580c;
    --bg-base: #ffffff; /* Pure white */
    --bg-card: #f8fafc; /* Very soft gray for contrast */
    --text-main: #0f172a; /* Dark slate for high legibility */
    --text-muted: #64748b; /* Soft gray for secondary text */
    --border: #e2e8f0; /* Crisp, subtle border */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
}

/* Clean Navigation Tabs */
nav button {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--text-muted);
    margin-left: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

nav button:hover {
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

nav button:focus, 
nav button:active {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

main {
    max-width: 1100px;
    margin: 5rem auto;
    padding: 0 2rem;
    position: relative;
}

h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

/* Section Logic & Slower Directional Sliding Transitions (0.9s) */
.hidden-section { 
    display: none !important; 
}

.active-section {
    display: block;
    animation: fadeIn 0.5s ease-out;
    transform: none !important;
}

.section-slide-left {
    display: block;
    animation: slideFromLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section-slide-right {
    display: block;
    animation: slideFromRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideFromLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Home Split Cards Container & Hover Interaction */
.split-container {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
}

.split-card {
    flex: 1;
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.split-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #ffffff; }
.split-card p { color: #cbd5e1 !important; font-size: 1.1rem; }

.split-container:hover .split-card:not(:hover) {
    transform: scale(0.97);
    opacity: 0.45;
}

.split-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(30, 41, 59, 0.92);
    box-shadow: 0 25px 40px -10px rgba(0, 0, 0, 0.5) !important;
    border-color: var(--primary) !important;
    opacity: 1 !important;
}

.split-card:hover span:last-child span {
    transform: translateX(6px);
    color: var(--primary);
}

/* Service Card Hover Interaction */
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Process Steps */
.process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-line {
    flex: 2;
    height: 1px;
    background: var(--border);
    margin: 0 1rem;
    position: relative;
    top: -15px;
}

/* B2B Upload Area */
.upload-area {
    background: var(--bg-card);
    padding: 4rem 2rem;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    text-align: center;
    margin-bottom: 3rem;
}

input[type="file"] {
    margin: 2rem 0;
    color: var(--text-muted);
}

input[type="file"]::file-selector-button {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

input[type="file"]::file-selector-button:hover {
    background: var(--bg-card);
}

/* 3D Viewer Container */
#3d-viewer {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

#quote-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--primary);
    display: inline-block;
}

/* Buttons */
button {
    background: var(--text-main);
    color: #fff;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: #334155;
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.cap-card {
    background: var(--bg-base);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.cap-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.cap-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Cinematic Black Video Overlay Styles --- */
.home-content {
    position: relative;
    z-index: 1;
}

#home h1 {
    color: #ffffff;
}

#home p {
    color: #94a3b8 !important;
}

/* --- Logo Styling --- */
header img {
    height: 80px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    cursor: pointer;
}