:root {
    --forge-orange: #ff4d00;
    --forge-glow: rgba(255, 77, 0, 0.4);
    --dark-bg: #0a0a0a;
    --text-color: #e0e0e0;
    --accent: #ff7700;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow: hidden;
}

/* Landing Page Container */
.forge-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.glow-background {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--forge-glow) 0%, transparent 70%);
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    filter: blur(50px);
    animation: flicker 2s infinite alternate;
}

/* Forge Animation Area */
.forge-scene {
    position: relative;
    width: 400px;
    height: 300px;
    margin-bottom: 2rem;
}

.anvil {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    background: #222;
    clip-path: polygon(10% 0%, 90% 0%, 100% 20%, 80% 20%, 80% 100%, 20% 100%, 20% 20%, 0% 20%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.shadow-workman {
    position: absolute;
    bottom: 20px;
    left: 40%;
    width: 80px;
    height: 160px;
}

.workman-body {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 40px;
    height: 100px;
    background: #000;
    border-radius: 20px 20px 0 0;
}

.workman-head {
    position: absolute;
    bottom: 105px;
    left: 25px;
    width: 30px;
    height: 30px;
    background: #000;
    border-radius: 50%;
}

.workman-arm {
    position: absolute;
    bottom: 60px;
    left: 50px;
    width: 60px;
    height: 15px;
    background: #000;
    transform-origin: left center;
    animation: hammer-swing 1s infinite ease-in-out;
}

.hammer {
    position: absolute;
    right: -10px;
    top: -20px;
    width: 30px;
    height: 40px;
    background: #111;
    border-radius: 2px;
}

.sparks {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--forge-orange);
    border-radius: 50%;
    opacity: 0;
}

.spark-animation {
    animation: spark-fly 1s infinite;
}

/* Content Styles */
.content {
    text-align: center;
    z-index: 10;
}

h1 {
    font-size: 4rem;
    letter-spacing: 0.5rem;
    margin: 0;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

p {
    font-size: 1.2rem;
    color: #888;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

.enter-btn {
    display: inline-block;
    margin-top: 3rem;
    padding: 1rem 3rem;
    border: 1px solid var(--forge-orange);
    color: var(--forge-orange);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.2rem;
    transition: all 0.3s ease;
    background: transparent;
}

.enter-btn:hover {
    background: var(--forge-orange);
    color: #000;
    box-shadow: 0 0 30px var(--forge-glow);
}

/* Main Page Styles */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    overflow-y: auto;
    height: auto;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 4rem;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--forge-orange);
}

.nav-links a {
    margin-left: 2rem;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.hero-section {
    margin-bottom: 6rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.feature-card {
    background: #111;
    padding: 2rem;
    border: 1px solid #222;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.feature-card h3 {
    color: var(--forge-orange);
    margin-top: 0;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #aaa;
    text-transform: none;
    letter-spacing: normal;
}

.cta-footer {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid #333;
}

/* Animations */
@keyframes flicker {
    0% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.6; transform: translateX(-50%) scale(1.1); }
}

@keyframes hammer-swing {
    0% { transform: rotate(-60deg); }
    50% { transform: rotate(20deg); }
    100% { transform: rotate(-60deg); }
}

@keyframes spark-fly {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Animations for Main Page */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card {
    border-radius: 12px;
}

.nav-links a {
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--forge-orange);
    transition: width 0.3s ease;
}

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