/* =============================================
   B.W. Recycling - Main Stylesheet
   Works for Homepage and Inner Pages
   ============================================= */

/* =============================================
   CSS Variables / Theme Colors
   ============================================= */
:root {
    --primary: #0d1b2a;
    --secondary: #1b3a4b;
    --accent: #00d4aa;
    --accent-glow: rgba(0, 212, 170, 0.3);
    --gold: #d4a574;
    --gold-light: #e8c9a0;
    --text: #e0e6ed;
    --text-muted: #8b9cb3;
    --surface: #162635;
    --surface-elevated: #1e3548;
    --border: rgba(0, 212, 170, 0.2);
    --gradient-dark: linear-gradient(135deg, #0d1b2a 0%, #1b3a4b 50%, #0d1b2a 100%);
    --gradient-accent: linear-gradient(135deg, #00d4aa 0%, #00a886 100%);
    --gradient-gold: linear-gradient(135deg, #d4a574 0%, #b8956a 100%);
}

/* =============================================
   Light Mode
   ============================================= */
body.light-mode {
    --primary: #f5f7fa;
    --secondary: #e8ecf1;
    --accent: #00896e;
    --accent-glow: rgba(0, 137, 110, 0.2);
    --gold: #996515;
    --gold-light: #b8860b;
    --text: #111827;
    --text-muted: #374151;
    --surface: #ffffff;
    --surface-elevated: #f3f4f6;
    --border: rgba(0, 137, 110, 0.25);
    --gradient-dark: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #f5f7fa 100%);
}

body.light-mode .bg-pattern {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 137, 110, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(153, 101, 21, 0.05) 0%, transparent 50%);
}

body.light-mode .bg-grid {
    background-image: 
        linear-gradient(rgba(0, 137, 110, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 137, 110, 0.04) 1px, transparent 1px);
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 137, 110, 0.15);
}

body.light-mode .logo-icon {
    color: #ffffff;
}

body.light-mode .btn-primary {
    color: #ffffff;
}

body.light-mode .service-icon,
body.light-mode .material-icon {
    color: #ffffff;
}

body.light-mode .hero-text {
    color: #4b5563;
}

body.light-mode .service-card p,
body.light-mode .industry-quote,
body.light-mode .form-header p,
body.light-mode .cta-section p,
body.light-mode .cta-box p {
    color: #4b5563;
}

body.light-mode .form-control {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

body.light-mode .form-control::placeholder {
    color: #6b7280;
}

body.light-mode .dropdown-menu {
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body.light-mode .mobile-nav {
    background: #ffffff;
}

body.light-mode .form-card,
body.light-mode .sidebar-form {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

body.light-mode .scrap-table th {
    background: #00896e;
}

/* =============================================
   Base Styles
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* =============================================
   Animated Background
   ============================================= */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(212, 165, 116, 0.06) 0%, transparent 50%);
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* =============================================
   Header
   ============================================= */
header {
    position: relative;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text);
}

.logo img {
    height: auto;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.logo-text {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
}

/* =============================================
   Desktop Navigation
   ============================================= */
nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(0, 212, 170, 0.1);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 260px;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent);
    padding-left: 1.25rem;
}

/* =============================================
   Header Actions & Theme Toggle
   ============================================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: var(--surface-elevated);
    border-color: var(--accent);
}

.theme-icon-light {
    display: none;
}

body.light-mode .theme-icon-dark {
    display: none;
}

body.light-mode .theme-icon-light {
    display: block;
}

/* =============================================
   Mobile Menu Toggle
   ============================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* =============================================
   Mobile Navigation
   ============================================= */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--surface);
    z-index: 999;
    padding: 100px 2rem 2rem;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

.mobile-nav-link {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--accent);
}

.mobile-dropdown-title {
    color: var(--gold);
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* =============================================
   Hero Section (Homepage)
   ============================================= */
.hero {
    position: relative;
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    padding: 60px 2rem 80px;
    z-index: 2;
    background: var(--primary);
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .gold {
    color: var(--gold);
}

.hero-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease 0.4s both;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
}

/* =============================================
   Form Card (Homepage)
   ============================================= */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.form-image {
    border-radius: 12px;
    overflow: hidden;
}

.form-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.image-row .form-image {
    flex: 1;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.image-row .form-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-header h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =============================================
   Form Elements
   ============================================= */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-group label .required {
    color: var(--accent);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* =============================================
   Stats Row (Homepage)
   ============================================= */
.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.8s ease 0.5s both;
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =============================================
   Section Styles
   ============================================= */
section {
    position: relative;
    z-index: 1;
    padding: 80px 2rem;
    overflow: visible;
    background: var(--primary);
}

main {
    position: relative;
    z-index: 1;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Space Mono', monospace;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* =============================================
   Content Area
   ============================================= */
.content-area {
    max-width: 900px;
}

.content-area > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.content-area a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-area a:hover {
    color: var(--gold);
}

/* =============================================
   Services Grid (Homepage)
   ============================================= */
#services {
    background: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px var(--accent-glow);
}

.service-card h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.75rem;
}

.service-link::after {
    content: '→';
}

/* =============================================
   Gold Plating Section (Homepage)
   ============================================= */
.gold-plating-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
}

.gold-plating-section h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.gold-plating-section p {
    margin-bottom: 1.5rem;
}

.materials-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.materials-list li {
    padding: 0.75rem 1rem 0.75rem 2rem;
    background: var(--surface-elevated);
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.materials-list li::before {
    content: '✓';
    position: absolute;
    left: 0.75rem;
    color: var(--accent);
    font-weight: bold;
}

.materials-list li:hover {
    transform: translateX(5px);
    border-left: 3px solid var(--accent);
}

/* =============================================
   Additional Info (Homepage)
   ============================================= */
.additional-info {
    margin: 3rem 0;
}

.additional-info p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.industry-quote {
    background: var(--surface);
    border-left: 4px solid var(--gold);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-muted);
}

/* =============================================
   Sidebar Links (Homepage)
   ============================================= */
.sidebar-links {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
}

.sidebar-links h4 {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.sidebar-links li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-links li a:hover {
    background: var(--surface-elevated);
    color: var(--accent);
    padding-left: 1.25rem;
}

/* =============================================
   Materials Section
   ============================================= */
.materials-section {
    background: var(--surface);
    border-radius: 30px;
    padding: 4rem;
    margin: 0;
    border: 1px solid var(--border);
    position: relative;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--surface-elevated);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.material-item:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.material-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.material-item span {
    font-weight: 500;
}

/* =============================================
   CTA Section (Homepage)
   ============================================= */
.cta-section {
    background: var(--gradient-dark);
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 40%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   Page Header (Inner Pages)
   ============================================= */
.page-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 3rem 2rem;
}

.page-header-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    color: var(--text-muted);
}

.page-header h1 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

/* =============================================
   Inner Page Layout
   ============================================= */
.page-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    align-items: start;
}

/* Sidebar Form (Inner Pages) */
.sidebar {
    height: fit-content;
}

.sidebar-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.sidebar-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.sidebar-form .form-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}

.sidebar-form .form-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.sidebar-form .form-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.sidebar-form .form-header h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.sidebar-form .form-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sidebar-form .form-group {
    margin-bottom: 0.85rem;
}

.sidebar-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.sidebar-form .form-control {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sidebar-form .form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.sidebar-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.sidebar-form .btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: var(--gradient-accent);
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.sidebar-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* =============================================
   Main Content (Inner Pages)
   ============================================= */
.main-content {
    min-width: 0;
}

.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.content-card h2 {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.content-card h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    margin: 2rem 0 1rem;
    color: var(--gold);
}

.content-card p {
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.8;
}

.content-card a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-card a:hover {
    color: var(--gold);
}

.content-card ul,
.content-card ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.content-card li {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* Content Image Float */
.content-image {
    float: right;
    max-width: 300px;
    margin: 0 0 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* CTA Box (Inner Pages) */
.cta-box {
    background: var(--gradient-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.cta-box h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* =============================================
   Scrap Types Table (Inner Pages)
   ============================================= */
.scrap-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.scrap-table th {
    background: var(--accent);
    color: var(--primary);
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    text-align: left;
}

.scrap-table th:first-child {
    border-radius: 12px 0 0 0;
}

.scrap-table th:last-child {
    border-radius: 0 12px 0 0;
}

.scrap-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.scrap-table tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.scrap-table tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

.scrap-table tr:hover td {
    background: var(--surface-elevated);
}

.scrap-table .scrap-type {
    font-weight: 600;
    color: var(--text);
    min-width: 200px;
}

.scrap-table .scrap-type a {
    color: var(--accent);
    text-decoration: none;
}

.scrap-table .scrap-type a:hover {
    color: var(--gold);
}

.scrap-table .scrap-desc {
    color: var(--text-muted);
    line-height: 1.7;
}

.scrap-table .scrap-desc a {
    color: var(--accent);
}

/* =============================================
   Footer
   ============================================= */
footer {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =============================================
   Utility Classes
   ============================================= */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================
   Responsive - Tablet (max-width: 1024px)
   ============================================= */
@media (max-width: 1024px) {
    /* Homepage Hero */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .stats-row {
        justify-content: center;
    }

    /* Inner Page Layout */
    .page-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
    }

    .sidebar-form {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Tables */
    .scrap-table {
        display: block;
        overflow-x: auto;
    }

    /* Content Image */
    .content-image {
        float: none;
        max-width: 100%;
        margin: 1.5rem 0;
    }
}

/* =============================================
   Responsive - Mobile (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
    /* Hide Desktop Nav, Show Mobile */
    nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .mobile-nav-overlay {
        display: block;
    }

    /* Homepage Hero */
    .hero {
        padding: 40px 1.5rem 60px;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-wrap: wrap;
    }

    /* Page Header */
    .page-header {
        padding: 2rem 1.5rem;
    }

    /* Page Content */
    .page-content {
        padding: 2rem 1.5rem;
    }

    .content-card {
        padding: 1.5rem;
    }

    /* Materials Section */
    .materials-section {
        padding: 2rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 2.5rem 1.5rem;
    }

    /* Tables */
    .scrap-table th,
    .scrap-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }
}