:root {
    --primary-color: #d4af37;
    /* Metallic gold */
    --secondary-color: #8b0000;
    /* Deep red, like hot iron */
    --bg-dark: #0f1115;
    --bg-darker: #08090a;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: var(--font-body);
    scroll-padding-top: 10px;
}

body {
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.text-center {
    text-align: center;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-padding {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background: rgba(8, 9, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo .brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo .slogan {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('assets/forge_anvil.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(8, 9, 10, 0.8), rgba(8, 9, 10, 0.4), var(--bg-darker));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: #cbd5e1;
    font-style: italic;
    border-left: 3px solid var(--secondary-color);
    padding-left: 1rem;
    text-align: left;
    display: inline-block;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* About Section */
.about-grid {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-main);
}

/* Glass Section */
.glass-bg {
    background: var(--bg-dark);
    position: relative;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.3);
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--secondary-color);
    transition: transform 0.6s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    position: relative;
    background: var(--glass-bg);
    z-index: 2;
}

.card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card .highlight {
    color: #e2e8f0;
    font-size: 0.9rem;
    border-left: 2px solid var(--secondary-color);
    padding-left: 0.5rem;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 5px;
    width: 15px;
    height: 15px;
    background: var(--bg-darker);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.timeline-item:hover::before {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-item .date {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
footer {
    background: #030405;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #475569;
    font-size: 0.8rem;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(8, 9, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Subpage Utilities */
.page-header {
    height: 40vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.page-header .hero-overlay {
    background: linear-gradient(to bottom, rgba(8, 9, 10, 0.9), rgba(8, 9, 10, 0.6), var(--bg-darker));
}

.page-header h1 {
    position: relative;
    z-index: 10;
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.content-block {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.content-block h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.content-block h4 {
    color: #e2e8f0;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.pub-list {
    list-style: none;
    padding-left: 0;
}

.pub-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--glass-border);
    color: var(--text-muted);
    line-height: 1.6;
}

.pub-list li strong {
    color: var(--primary-color);
}

.btn-download {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    transition: all 0.3s;
}

.btn-download:hover {
    background: var(--primary-color);
    color: #000;
}

/* Product Grid */
.product-category {
    margin-bottom: 4rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.product-card .product-image {
    position: relative;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.5s ease;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.product-card:hover .product-image {
    filter: brightness(1.05) contrast(1.15) saturate(1.1);
    transform: scale(1.02);
}

.product-card h4 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-card p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

/* Accordion styling for long content */
.pub-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.pub-category summary {
    padding: 1.5rem;
    cursor: pointer;
    background: rgba(8, 9, 10, 0.5);
    outline: none;
    transition: background 0.3s;
}

.pub-category summary:hover {
    background: rgba(212, 175, 55, 0.1);
}

.pub-category h4 {
    display: inline;
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.pub-category .pub-list {
    padding: 1.5rem;
    margin: 0;
}