/*
Theme Name: RedsForge
Theme URI: https://redsforge.com/
Author: RedsForge
Author URI: https://redsforge.com/
Description: A minimalist, high-performance, dark-mode WordPress theme for small businesses.
Version: 1.3.2
Text Domain: redsforge
*/

:root {
    --bg-dark: #080808;
    --bg-light-dark: #111111;
    --bg-card: #161616;
    --primary-red: #9B0000;
    --primary-red-hover: #c00000;
    --primary-red-glow: rgba(155, 0, 0, 0.3);
    --text-main: #f0f0f0;
    --text-muted: #999999;
    --border-color: #222222;
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--text-main); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-red); }

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

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 16px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background-color: var(--primary-red);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover { background-color: var(--primary-red-hover); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 30px var(--primary-red-glow); }
.btn:hover::after { opacity: 1; }

/* Sections */
section { padding: 90px 0; }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-red);
    border: 1px solid rgba(155,0,0,0.4);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { color: var(--text-main); }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 10px auto 0; font-size: 1.05rem; }

/* =====================
   HEADER
   ===================== */
.site-header {
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background-color: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border-color);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.logo span { color: var(--primary-red); }

.main-nav ul { display: flex; list-style: none; gap: 6px; align-items: center; }

.main-nav a {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}
.main-nav a:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.main-nav .nav-cta { background: var(--primary-red); color: #fff; padding: 9px 18px; }
.main-nav .nav-cta:hover { background: var(--primary-red-hover); color: #fff; }

.lang-switcher {
    display: flex;
    gap: 4px;
    margin-left: 12px;
    align-items: center;
    border-left: 1px solid var(--border-color);
    padding-left: 12px;
}

.lang-switcher a {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted) !important;
    padding: 2px 6px;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-switcher a.active {
    color: #fff !important;
    background: rgba(155, 0, 0, 0.6);
}

.lang-switcher a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* =====================
   HERO
   ===================== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

/* SVG code/forge pattern background */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(155,0,0,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(155,0,0,0.07) 0%, transparent 40%);
    z-index: 1;
}

/* Animated grid lines */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Floating code elements */
.hero-code-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-code-line {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    animation: floatCode 10s linear infinite;
    font-weight: 400;
}

@keyframes floatCode {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120px) translateX(30px); opacity: 0; }
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(155,0,0,0.12);
    border: 1px solid rgba(155,0,0,0.3);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.8rem;
    color: #e08080;
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease forwards;
}

.hero-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--primary-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(155,0,0,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(155,0,0,0); }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.9s ease 0.2s forwards;
    opacity: 0;
}

.hero h1 .accent { background: linear-gradient(135deg, var(--primary-red), #ff4444); -webkit-background-clip: text; background-clip: text; }

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.9s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.9s ease 0.6s forwards;
    opacity: 0;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: bounce 2s ease infinite;
}

.hero-scroll-indicator i { font-size: 1rem; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* =====================
   SOCIAL PROOF
   ===================== */
.social-proof {
    padding: 50px 0;
    background-color: var(--bg-light-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.stats-grid { display: flex; justify-content: center; gap: 80px; }

.stat-item { position: relative; }
.stat-item::after {
    content: '';
    position: absolute;
    right: -40px; top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border-color);
}
.stat-item:last-child::after { display: none; }

.stat-item h3 { font-size: 3rem; font-weight: 800; color: var(--primary-red); margin-bottom: 4px; }
.stat-item p { font-size: 0.8rem; color: var(--text-muted); margin: 0; text-transform: uppercase; letter-spacing: 2px; }

/* =====================
   AGITATION
   ===================== */
.agitation { background-color: var(--bg-dark); }
.agitation-content { max-width: 860px; margin: 0 auto; text-align: center; }

.pain-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 50px; }

.pain-point {
    background-color: var(--bg-light-dark);
    padding: 32px 28px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: left;
}

.pain-point:hover { border-color: var(--primary-red); background-color: var(--bg-card); transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
.pain-point i { font-size: 2.2rem; color: var(--primary-red); margin-bottom: 20px; display: inline-block; transition: var(--transition); }
.pain-point:hover i { transform: translateY(-3px); }
.pain-point h3 { font-size: 1.1rem; margin-bottom: 10px; }
.pain-point p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* =====================
   FEATURES
   ===================== */
.features { background-color: var(--bg-light-dark); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; background: var(--border-color); border-radius: 12px; overflow: hidden; }

.feature-card {
    background-color: var(--bg-card);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-card:hover { background-color: #1a1a1a; }
.feature-card:hover::before { transform: scaleX(1); }

.feature-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: block;
}

.feature-icon { font-size: 2rem; color: var(--primary-red); margin-bottom: 18px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* =====================
   BENEFITS
   ===================== */
.benefits { background-color: var(--bg-dark); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.benefit-item:hover { border-color: rgba(155,0,0,0.35); background: var(--bg-light-dark); }

.benefit-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(155,0,0,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-red);
    flex-shrink: 0;
}

.benefit-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.benefit-item p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* =====================
   PORTFOLIO / GALLERY
   ===================== */
.portfolio { background-color: var(--bg-light-dark); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.portfolio-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.portfolio-card:hover { transform: translateY(-6px); border-color: var(--primary-red); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

.portfolio-preview {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-browser {
    width: 85%;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.portfolio-browser-bar {
    background: #2a2a2a;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.portfolio-browser-dot {
    width: 8px; height: 8px; border-radius: 50%;
}

.portfolio-browser-content {
    height: 120px;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.portfolio-browser-line {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(155,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay i { font-size: 2rem; color: #fff; }

.portfolio-info { padding: 20px 24px; }
.portfolio-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 6px;
}
.portfolio-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.portfolio-info p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* =====================
   TESTIMONIALS
   ===================== */
.testimonials { background-color: var(--bg-dark); }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }

.testimonial-card {
    background-color: var(--bg-card);
    padding: 36px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.testimonial-card:hover { border-color: rgba(155,0,0,0.35); transform: translateY(-4px); }

.stars { color: #f5a623; font-size: 0.85rem; margin-bottom: 16px; letter-spacing: 2px; }

.testimonial-content { margin-bottom: 24px; font-style: italic; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.testimonial-author { display: flex; align-items: center; gap: 14px; }

.author-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), #333);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; font-size: 1rem;
    flex-shrink: 0;
}

.author-info h4 { margin: 0; font-size: 0.95rem; }
.author-info span { font-size: 0.8rem; color: var(--primary-red); }

/* =====================
   FAQ
   ===================== */
.faq { background-color: var(--bg-light-dark); }
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item.active { border-color: rgba(155,0,0,0.4); }

.faq-question {
    padding: 20px 24px;
    background-color: var(--bg-card);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    gap: 16px;
}

.faq-question i { color: var(--primary-red); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer { padding: 20px 24px; max-height: 500px; }

/* =====================
   FINAL CTA
   ===================== */
.final-cta {
    background: var(--bg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-inner {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #130000 0%, #1a0000 50%, #0d0d0d 100%);
    border: 1px solid rgba(155,0,0,0.25);
    border-radius: 20px;
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.final-cta h2 { font-size: 2.8rem; margin-bottom: 16px; }
.final-cta p { font-size: 1.1rem; margin-bottom: 40px; color: #ccc; max-width: 550px; margin-left: auto; margin-right: auto; }

.final-cta-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto 24px; }
.final-cta-form input {
    flex: 1; padding: 14px 18px;
    border-radius: 6px; border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.05);
    color: #fff; font-family: var(--font-sans); font-size: 0.95rem; outline: none;
    transition: border-color 0.3s;
}
.final-cta-form input:focus { border-color: var(--primary-red); }
.final-cta-form input::placeholder { color: #666; }

.guarantee { font-size: 0.85rem; color: #666; }
.guarantee i { color: var(--primary-red); margin-right: 5px; }

/* =====================
   FOOTER
   ===================== */
.site-footer { background-color: #030303; padding: 50px 0 24px; border-top: 1px solid var(--border-color); }

.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 50px; flex-wrap: wrap; gap: 40px; }

.footer-logo { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; display: block; }
.footer-logo span { color: var(--primary-red); }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); }

.footer-links h5 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 16px; font-weight: 700; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: #777; transition: color 0.3s; }
.footer-links a:hover { color: var(--text-main); }

.footer-bottom { text-align: center; font-size: 0.8rem; color: #444; border-top: 1px solid var(--border-color); padding-top: 24px; }

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Typing cursor */
.typed-cursor { color: var(--primary-red); animation: blink 0.9s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Shine line decoration */
.shine-line {
    display: inline-block;
    position: relative;
}
.shine-line::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
    .main-nav { display: none; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 2.6rem; }
    .stats-grid { gap: 40px; }
    .stat-item::after { display: none; }
    .final-cta-form { flex-direction: column; }
    .portfolio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero { min-height: 75vh; }
    .hero-cta { flex-direction: column; align-items: center; }
    .stats-grid { flex-direction: column; gap: 28px; }
    .footer-inner { flex-direction: column; }
}
