/* ============================================
   CurrForge - Global Styles
   Theme: Forge, Fire, Metalwork, Creation
   ============================================ */

:root {
    /* Forge Color Palette */
    --forge-fire: #EA580C;
    --forge-ember: #F97316;
    --forge-iron: #1F2937;
    --forge-steel: #374151;
    --forge-ash: #F9FAFB;
    --forge-smoke: #E5E7EB;
    --forge-coal: #111827;
    --forge-metal: #9CA3AF;
    --forge-spark: #FCD34D;
    --forge-heat: #DC2626;

    /* Gradients */
    --forge-gradient: linear-gradient(135deg, #EA580C 0%, #DC2626 100%);
    --metal-gradient: linear-gradient(180deg, #374151 0%, #1F2937 100%);
    --heat-gradient: linear-gradient(90deg, #DC2626 0%, #EA580C 50%, #FCD34D 100%);

    /* Shadows */
    --forge-shadow: 0 10px 40px rgba(234, 88, 12, 0.2);
    --metal-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-heading: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--forge-ash);
    color: var(--forge-coal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: var(--metal-gradient);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--forge-fire);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    background: var(--heat-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forge-fire);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--forge-ember);
}

.cta-btn {
    background: var(--forge-gradient);
    color: white !important;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--forge-shadow);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(234, 88, 12, 0.3);
}

.cta-btn::after {
    display: none;
}

/* Hero */
.hero {
    background: var(--metal-gradient);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(234, 88, 12, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(220, 38, 38, 0.15), transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    line-height: 1.1;
}

.hero-gradient-text {
    background: var(--heat-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--forge-gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--forge-shadow);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(234, 88, 12, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--forge-ember);
}

/* Features */
.features {
    padding: 6rem 2rem;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--forge-fire);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--forge-coal);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--forge-steel);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--metal-shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--forge-smoke);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--forge-shadow);
    border-color: var(--forge-fire);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--forge-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forge-coal);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--forge-steel);
    line-height: 1.7;
}

/* Generator Form */
.generator-section {
    padding: 4rem 2rem;
    min-height: calc(100vh - 400px);
}

.form-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--metal-shadow);
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid var(--forge-smoke);
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--forge-coal);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--forge-gradient);
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--forge-coal);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--forge-smoke);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--forge-fire);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Progress */
.progress-section {
    background: var(--forge-ash);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    display: none;
}

.progress-section.active {
    display: block;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--forge-smoke);
    border-top-color: var(--forge-fire);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--forge-smoke);
    border-radius: 6px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--forge-gradient);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 6px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--forge-smoke);
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: var(--forge-fire);
    transform: translateY(-2px);
    box-shadow: var(--metal-shadow);
}

.result-card h4 {
    color: var(--forge-coal);
    margin-bottom: 0.5rem;
}

.result-card p {
    color: var(--forge-metal);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.download-btn {
    width: 100%;
    background: var(--forge-gradient);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--forge-shadow);
}

/* Contact */
.contact-section {
    padding: 6rem 2rem;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--forge-coal);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--forge-steel);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: var(--forge-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: var(--metal-gradient);
    color: white;
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--forge-ember);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

.hidden {
    display: none !important;
}
