@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN TOKENS & ROOT VARIABLES
   ========================================================================== */
:root {
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    /* Colors */
    --bg-dark-raw: 220, 25%, 7%;
    /* #0d1117 */
    --bg-dark: hsl(var(--bg-dark-raw));
    --bg-card-raw: 220, 22%, 11%;
    /* #151b23 */
    --bg-card: hsl(var(--bg-card-raw));
    --bg-elevated: hsl(220, 20%, 15%);
    --bg-light: #f8fafc;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #0f172a;

    --electric-blue-raw: 210, 100%, 55%;
    /* #1e90ff */
    --electric-blue: hsl(var(--electric-blue-raw));
    --electric-blue-glow: hsla(var(--electric-blue-raw), 0.25);

    --cyan-raw: 180, 100%, 50%;
    --cyan: hsl(var(--cyan-raw));
    --accent-glow: rgba(30, 144, 255, 0.15);

    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(3e, 144, 255, 0.5);

    --status-review: #f59e0b;
    --status-sent: #3b82f6;
    --status-production: #8b5cf6;
    --status-qc: #ec4899;
    --status-shipped: #10b981;
    --status-completed: #10b981;

    /* Layout */
    --header-height: 80px;
    --max-width: 1280px;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   CSS RESET & GLOBAL STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button,
input,
select,
textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--electric-blue);
}

/* Keyboard Focus Accessibility */
*:focus-visible {
    outline: 2px solid var(--electric-blue);
    outline-offset: 4px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-family: var(--font-mono);
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

.electric-text {
    color: var(--electric-blue);
    background: linear-gradient(135deg, var(--electric-blue), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--electric-blue-glow);
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--electric-blue);
    color: #ffffff;
    border: 1px solid var(--electric-blue);
    box-shadow: 0 4px 15px var(--electric-blue-glow);
}

.btn-primary:hover {
    background-color: hsl(210, 100%, 62%);
    box-shadow: 0 4px 25px rgba(30, 144, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--electric-blue);
    background-color: rgba(30, 144, 255, 0.05);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--electric-blue), var(--cyan));
    color: #000;
    font-weight: 700;
}

.btn-accent:hover {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
    transform: translateY(-2.5px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(13, 17, 23, 0.95);
    height: 70px;
}

.header .container {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

.logo span {
    color: var(--electric-blue);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active {
    border-bottom: 2px solid var(--electric-blue);
    padding-bottom: 4px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION & 3D CANVAS
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    background: radial-gradient(circle at 80% 30%, rgba(30, 144, 255, 0.08) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    z-index: 10;
}

.hero-title {
    margin-bottom: 1.8rem;
    font-weight: 800;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.support-formats {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.format-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trust-badge svg {
    color: var(--electric-blue);
}

/* 3D Canvas Area */
.canvas-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

#canvas3d {
    width: 100%;
    height: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(30, 144, 255, 0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 144, 255, 0.3);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.05);
}

.service-number {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    z-index: 2;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    z-index: 2;
}

.service-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--electric-blue);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    z-index: 2;
    margin-top: auto;
}

.service-link svg {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-link svg {
    transform: translateX(5px);
}

/* ==========================================================================
   HOW IT WORKS (HORIZONTAL STEPPER)
   ========================================================================== */
.steps-wrapper {
    position: relative;
    margin-top: 5rem;
}

.steps-line {
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: var(--border-light);
    z-index: 1;
}

.steps-line-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--electric-blue), var(--cyan));
    box-shadow: 0 0 10px var(--cyan);
    transition: width var(--transition-slow);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-node {
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
    color: var(--text-muted);
}

.step-node.active .step-circle {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
    background-color: var(--bg-elevated);
}

.step-node h4 {
    font-size: 1rem;
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-node p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
}

/* ==========================================================================
   MATERIALS SECTION
   ========================================================================== */
.materials-filter {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--electric-blue);
    background-color: var(--electric-blue);
    color: #fff;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.material-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.material-card:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 144, 255, 0.25);
}

.material-header {
    padding: 1.8rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, rgba(30, 144, 255, 0.03) 0%, transparent 100%);
}

.material-tag {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    display: block;
}

.material-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.material-body {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.material-desc {
    font-size: 0.92rem;
    line-height: 1.6;
}

.material-specs {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.spec-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-label {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.spec-bar-wrapper {
    background-color: var(--bg-dark);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.spec-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--electric-blue), var(--cyan));
}

.material-footer {
    padding: 1.25rem 1.8rem;
    border-top: 1px solid var(--border-light);
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.material-app {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   PORTAL LAYOUTS: CUSTOMER AND ADMIN
   ========================================================================== */
.portal-layout {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: grid;
    grid-template-columns: 260px 1fr;
}

.portal-sidebar {
    border-right: 1px solid var(--border-light);
    padding: 2rem;
    background-color: rgba(13, 17, 23, 0.5);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.portal-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.portal-menu-item:hover,
.portal-menu-item.active {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.portal-menu-item.active {
    border-left: 3px solid var(--electric-blue);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.portal-content {
    padding: 3rem;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 1.8rem;
}

.stat-label {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.75rem;
    color: var(--electric-blue);
}

/* Tabular layout */
.table-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.portal-table th,
.portal-table td {
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid var(--border-light);
}

.portal-table th {
    background-color: rgba(0, 0, 0, 0.15);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.portal-table tr:last-child td {
    border-bottom: none;
}

.portal-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    gap: 0.35rem;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.badge-review {
    color: var(--status-review);
    background-color: rgba(245, 158, 11, 0.12);
}

.badge-sent {
    color: var(--status-sent);
    background-color: rgba(59, 130, 246, 0.12);
}

.badge-production {
    color: var(--status-production);
    background-color: rgba(139, 92, 246, 0.12);
}

.badge-qc {
    color: var(--status-qc);
    background-color: rgba(236, 72, 153, 0.12);
}

.badge-shipped {
    color: var(--status-shipped);
    background-color: rgba(16, 185, 129, 0.12);
}

.badge-completed {
    color: var(--status-completed);
    background-color: rgba(16, 185, 129, 0.12);
}

/* ==========================================================================
   MULTI-STEP RFQ FORM SYSTEM
   ========================================================================== */
.rfq-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.rfq-nav {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.rfq-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rfq-nav-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.rfq-nav-step.active {
    color: var(--electric-blue);
}

.rfq-nav-step.completed {
    color: var(--text-primary);
}

.step-indicator-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.rfq-nav-step.completed .step-indicator-number {
    background-color: var(--electric-blue);
    border-color: var(--electric-blue);
    color: #fff;
}

.rfq-nav-label {
    font-size: 0.9rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 600;
}

.rfq-content-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
}

.rfq-step-pane {
    display: none;
}

.rfq-step-pane.active {
    display: block;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

/* Card Selection style */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.select-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 1.8rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.select-card:hover {
    border-color: var(--electric-blue);
    transform: translateY(-2px);
}

.select-card.selected {
    border-color: var(--electric-blue);
    background-color: rgba(30, 144, 255, 0.05);
    box-shadow: 0 0 15px var(--electric-blue-glow);
}

.select-card-icon {
    margin-bottom: 1rem;
    color: var(--electric-blue);
}

.select-card-title {
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.text-input,
.select-input,
.textarea-input {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-light);
    padding: 0.85rem 1.25rem;
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.text-input:focus,
.select-input:focus,
.textarea-input:focus {
    border-color: var(--electric-blue);
}

/* Drag and Drop Zone */
.upload-zone {
    border: 2px dashed var(--border-light);
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius-md);
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-bottom: 2rem;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--electric-blue);
    background-color: rgba(30, 144, 255, 0.03);
}

.upload-icon {
    color: var(--electric-blue);
    margin-bottom: 1.5rem;
    animation: pulseGradual 2s infinite ease-in-out;
}

.upload-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-formats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Uploaded Files Table */
.upload-list-wrapper {
    margin-top: 2rem;
}

.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-dark);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.8rem;
    border: 1px solid var(--border-light);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.file-remove {
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.file-remove:hover {
    color: #ef4444;
}

.upload-progress-bar {
    height: 2px;
    background-color: var(--electric-blue);
    width: 0%;
    transition: width 0.3s ease;
    margin-top: 0.5rem;
    border-radius: 1px;
}

/* Contact secure badge */
.confidential-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: rgba(16, 185, 129, 0.05);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
}

.confidential-callout svg {
    color: #10b981;
    flex-shrink: 0;
}

.confidential-callout div h5 {
    color: #10b981;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.confidential-callout div p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* RFQ Footer actions */
.rfq-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}

/* ==========================================================================
   NDA MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    margin-bottom: 1rem;
}

.modal-desc {
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   PORTFOLIO GALLERY
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.gallery-card {
    position: relative;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: var(--bg-card);
    transition: all var(--transition-normal);
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 144, 255, 0.3);
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: scale var(--transition-normal), opacity var(--transition-fast);
}

.gallery-card:hover .gallery-card-img {
    scale: 1.05;
    opacity: 0.85;
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem;
    background: linear-gradient(0deg, rgba(13, 17, 23, 0.95) 0%, rgba(13, 17, 23, 0) 100%);
    z-index: 2;
    transform: translateY(10px);
    transition: transform var(--transition-normal);
}

.gallery-card:hover .gallery-card-overlay {
    transform: translateY(0);
}

.gallery-card-category {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.gallery-card-title {
    font-size: 1.15rem;
    font-weight: 600;
}

/* ==========================================================================
   UTILITY & FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 5rem 0 3rem 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 260px;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--electric-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Keyframes */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-8px) translateX(-50%);
    }

    60% {
        transform: translateY(-4px) translateX(-50%);
    }
}

@keyframes pulseGradual {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.75;
        transform: scale(0.96);
    }
}

/* Accessibility Settings override */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

/* ==========================================================================
   MOBILE & RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .canvas-wrapper {
        position: relative;
        width: 100vw;
        height: 50vh;
        order: -1;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-line {
        display: none;
    }

    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }

    .step-node {
        width: 100%;
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
    }

    .step-circle {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .rfq-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rfq-nav {
        position: relative;
        top: 0;
        margin-bottom: 1.5rem;
    }

    .rfq-nav-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.75rem;
    }

    .rfq-nav-step {
        flex-shrink: 0;
    }

    .portal-layout {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        flex-direction: row;
        justify-content: space-between;
        overflow-x: auto;
    }

    .portal-menu {
        flex-direction: row;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .nav-links {
        display: none;
        /* Mobile menu drop down logic will toggle */
    }

    .burger {
        display: flex;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .selection-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}