/* CSS Variables for Steampunk Theme */
:root {
    --bg-dark: #0f0a05;
    --brown-leather: #3b2010;
    --copper: #b85d19;
    --copper-glow: #e27a1e;
    --brass: #b58945;
    --brass-glow: #e0ac57;
    --steel: #4a4d52;
    --text-main: #d3c4b5;
    --text-heading: #f4dcbc;
    
    --font-heading: 'Special Elite', cursive, 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at center, rgba(30,15,5,0.8) 0%, rgba(10,5,3,1) 100%),
        url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><g fill="%232b1d11" fill-opacity="0.4" fill-rule="evenodd"><path d="M0 40L40 0H20L0 20M40 40V20L20 40"/></g></svg>');
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: var(--brass);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--copper-glow);
    text-shadow: 0 0 8px rgba(226, 122, 30, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.w-100 { width: 100%; }

/* Background Gears */
.gears-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.05;
}
.gear {
    position: absolute;
    color: var(--brass);
    font-size: 300px;
    line-height: 1;
    animation: spin linear infinite;
}
.gear1 { top: -100px; right: -100px; animation-duration: 40s; }
.gear2 { bottom: -150px; left: -100px; font-size: 500px; animation-duration: 60s; animation-direction: reverse; color: var(--copper); }
.gear3 { top: 40%; left: 10%; font-size: 200px; animation-duration: 25s; }

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Header & Nav */
.main-header {
    background: linear-gradient(to bottom, rgba(30,15,5,0.95), rgba(0,0,0,0.8));
    border-bottom: 2px solid var(--brown-leather);
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    flex-direction: column;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--brass);
    text-shadow: 0 0 5px rgba(181,137,69,0.5);
}
.logo-subtitle {
    font-size: 0.8rem;
    color: var(--copper);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}
.main-nav a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0%; height: 2px;
    background: var(--copper);
    transition: 0.3s ease;
    box-shadow: 0 0 5px var(--copper);
}
.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    width: 25px; height: 3px;
    background-color: var(--brass);
    transition: 0.3s;
}

/* Glass panel aesthetics */
.glass-panel {
    background: rgba(25, 15, 8, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--brown-leather);
    border-top: 1px solid rgba(181,137,69,0.3);
    border-left: 1px solid rgba(181,137,69,0.3);
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.9);
    padding: 30px;
    position: relative;
    overflow: hidden;
}
.glass-panel::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: rgba(255,255,255,0.1);
    z-index: -1;
    transition: 0.4s;
}
.btn:hover::before { width: 100%; }

.btn-primary {
    background: linear-gradient(to bottom, var(--brown-leather), #1f1008);
    border: 1px solid var(--copper);
    color: var(--brass);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 10px rgba(184,93,25,0.3);
}
.btn-primary:hover {
    color: var(--brass-glow);
    border-color: var(--copper-glow);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 15px rgba(226,122,30,0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--steel);
    color: var(--text-heading);
}
.btn-outline:hover {
    border-color: var(--brass);
    color: var(--brass-glow);
}
.btn-sm { padding: 8px 15px; font-size: 0.9rem; }

/* Form inputs */
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label {
    display: block; margin-bottom: 5px; font-family: var(--font-heading); color: var(--brass); letter-spacing: 1px;
}
.input-steampunk {
    width: 100%;
    padding: 12px;
    background: rgba(10,5,3,0.8);
    border: 1px solid var(--brown-leather);
    border-bottom: 2px solid var(--copper);
    color: var(--text-main);
    font-family: var(--font-body);
    transition: 0.3s;
}
.input-steampunk:focus {
    outline: none;
    border-bottom-color: var(--brass-glow);
    box-shadow: 0 5px 15px rgba(184,93,25,0.2);
}

/* Sections & Specifics */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-bg {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background-size: cover; background-position: center; background-attachment: fixed;
    z-index: -2;
}
.hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, rgba(15,10,5,0.7) 0%, rgba(15,10,5,1) 100%);
    z-index: -1;
}
.hero-content {
    text-align: center;
}
.hero-box {
    background: rgba(20, 10, 5, 0.6);
    padding: 50px;
    border: 1px solid var(--copper);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(184,93,25,0.2);
    backdrop-filter: blur(5px);
}
.hero .glitch {
    font-size: 4rem;
    color: var(--brass-glow);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero-actions { display: flex; gap: 20px; justify-content: center; }

/* Page Header */
.page-header {
    padding: 100px 0 60px;
    background-size: cover; background-position: center;
    position: relative;
    border-bottom: 2px solid var(--copper);
}
.page-header::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(15,10,5,0.85);
}
.page-header-content { position: relative; z-index: 1; }
.page-title {
    font-size: 3rem; color: var(--brass-glow); margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(181,137,69,0.5);
}

/* About Grid */
.about-grid, .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.separator-gear {
    font-size: 30px; color: var(--copper); text-align: center; margin: 15px 0; animation: spin 10s linear infinite;
}
.features {
    display: flex; gap: 20px; margin-top: 30px; justify-content: space-around;
}
.feature-item { text-align: center; }
.feature-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; color: var(--brass); }
.factory-pic { width: 100%; border-radius: 5px; border: 2px solid var(--brown-leather); filter: sepia(0.6) contrast(1.2); }

/* Inventory Grid */
.inventory-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px;
}
.item-card {
    background: #150d08;
    border: 1px solid var(--brown-leather);
    border-radius: 5px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
}
.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(184,93,25,0.2);
    border-color: var(--copper);
}
.card-image-wrapper {
    height: 200px; background: #0a0604;
    position: relative; display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--brown-leather);
}
.card-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) sepia(30%); }
.placeholder-icon { font-size: 5rem; color: var(--steel); animation: spin 30s linear infinite; }
.sold-badge {
    position: absolute; top: 15px; right: -30px; background: #801515; color: #fff;
    padding: 5px 40px; transform: rotate(45deg); font-family: var(--font-heading); font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); z-index: 2;
}
.item-card.sold { opacity: 0.7; }
.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--brass); }
.card-content .desc { font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; border-top: 1px dashed var(--brown-leather); }
.price { font-family: var(--font-heading); font-size: 1.5rem; color: var(--copper-glow); }

/* Events Timeline */
.events-timeline { display: flex; flex-direction: column; gap: 30px; }
.event-card {
    display: flex; flex-wrap: wrap; align-items: stretch;
}
.event-date {
    background: linear-gradient(135deg, var(--brown-leather), #1f1008);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 30px; border-right: 2px solid var(--copper); border-radius: 8px 0 0 8px;
}
.event-date .day { font-size: 3rem; font-family: var(--font-heading); color: var(--brass-glow); line-height: 1; }
.event-date .month { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; }
.event-info { flex: 1; padding: 30px; }
.event-info .time { color: var(--copper); font-size: 0.9rem; margin-bottom: 10px; font-weight: bold; }
.event-register { padding: 30px; background: rgba(0,0,0,0.3); border-left: 1px dashed var(--steel); border-radius: 0 8px 8px 0; width: 300px; }
.hr-gear { border: none; height: 1px; background: var(--copper); margin: 20px 0; position: relative; }
.hr-gear::after { content: '⚙'; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: #150d08; padding: 0 10px; color: var(--brass); font-size: 20px; }

/* Contact Specific */
.contact-header { padding: 80px 0 40px; }
.steampunk-link { color: var(--copper-glow); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.success-msg { background: rgba(30,120,30,0.2); border: 1px solid #2e7a2e; padding: 15px; border-radius: 5px; color: #a5d6a5; margin-bottom: 20px; }
.error-msg { background: rgba(150,30,30,0.2); border: 1px solid #992222; padding: 15px; border-radius: 5px; color: #e59999; margin-bottom: 20px; }

/* Footer */
.main-footer {
    background: linear-gradient(to top, #000, #0a0604);
    border-top: 3px solid var(--brown-leather);
    padding: 60px 0 20px; position: relative;
}
.main-footer::before {
    content: ''; position: absolute; top: -3px; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--copper), transparent);
}
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--brass); margin-bottom: 20px; position: relative; display: inline-block; }
.footer-col h3::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 50%; height: 2px; background: var(--copper); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #1a1511; font-size: 0.9rem; color: var(--steel); }

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .event-card { flex-direction: column; }
    .event-date { flex-direction: row; border-right: none; border-bottom: 2px solid var(--copper); border-radius: 8px 8px 0 0; gap: 15px; }
    .event-register { width: 100%; border-left: none; border-top: 1px dashed var(--steel); border-radius: 0 0 8px 8px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .main-nav {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(15,10,5,0.95); backdrop-filter: blur(10px);
        border-bottom: 2px solid var(--copper);
        flex-direction: column; align-items: center;
        padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: 0.4s ease-out;
    }
    .main-nav.open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .main-nav ul { flex-direction: column; text-align: center; width: 100%; gap: 15px; }
    .hero .glitch { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
}
