/* ============================================
   ReaperCode - Dark Theme Stylesheet
   Palette: #0d0d0d (bg), #9b1c1c (accent), #f0f0f0 (text)
   Font: 'Rajdhani' for headings, system sans for body
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');

/* ============================================
   CSS Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #0d0d0d;
    color: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: #9b1c1c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c92a2a;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

h1 {
    font-size: 3rem;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #d0d0d0;
}

/* ============================================
   Navigation
   ============================================ */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #9b1c1c;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.hero-logo {
    display: block;
    max-width: 480px;
    width: 80%;
    height: auto;
    margin: 0 auto 2rem;
    border-radius: 4px;
}

.nav-logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: #f0f0f0;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #9b1c1c;
    border-bottom-color: #9b1c1c;
}

/* Dropdown for Products */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    border: 1px solid #9b1c1c;
    border-radius: 4px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #f0f0f0;
    border-bottom: none;
}

.nav-dropdown-content a:hover {
    background-color: #9b1c1c;
    color: #ffffff;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #f0f0f0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: rgba(13, 13, 13, 0.98);
        width: 70%;
        height: calc(100vh - 70px);
        padding: 2rem;
        gap: 1.5rem;
        align-items: flex-start;
        transition: right 0.3s ease, visibility 0.3s ease;
        border-left: 2px solid #9b1c1c;
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
        padding-left: 1rem;
    }

    .nav-dropdown.active .nav-dropdown-content {
        display: block;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0505 100%);
    border-bottom: 3px solid #9b1c1c;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(155, 28, 28, 0.03) 50px,
            rgba(155, 28, 28, 0.03) 51px
        );
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(155, 28, 28, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #d0d0d0;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #9b1c1c;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #c92a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 28, 28, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #f0f0f0;
    border: 2px solid #9b1c1c;
}

.btn-secondary:hover {
    background-color: #9b1c1c;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.25rem;
    color: #b0b0b0;
}

/* ============================================
   Card Grid
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #9b1c1c, #c92a2a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    border-color: #9b1c1c;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(155, 28, 28, 0.2);
}

.card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.card p {
    margin-bottom: 1.5rem;
    color: #c0c0c0;
}

.card ul {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #d0d0d0;
}

.card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #9b1c1c;
    font-weight: bold;
}

/* ============================================
   Product Page Specific
   ============================================ */
.product-hero {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #1a0505 0%, #0d0d0d 100%);
    border-bottom: 2px solid #9b1c1c;
}

.product-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.product-hero p {
    font-size: 1.5rem;
    color: #b0b0b0;
}

.product-features {
    padding: 4rem 2rem;
}

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

.feature-item {
    background-color: #1a1a1a;
    padding: 2rem;
    border-left: 4px solid #9b1c1c;
    border-radius: 4px;
}

.feature-item h4 {
    color: #9b1c1c;
    margin-bottom: 0.75rem;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background-color: #1a1a1a;
    padding: 3rem;
    border-radius: 8px;
    border: 2px solid #2a2a2a;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f0f0f0;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #0d0d0d;
    border: 2px solid #2a2a2a;
    border-radius: 4px;
    color: #f0f0f0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9b1c1c;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 600;
}

.form-message.success {
    background-color: rgba(46, 125, 50, 0.2);
    border: 2px solid #2e7d32;
    color: #66bb6a;
}

.form-message.error {
    background-color: rgba(155, 28, 28, 0.2);
    border: 2px solid #9b1c1c;
    color: #ef5350;
}

/* ============================================
   Footer
   ============================================ */
#site-footer {
    background-color: #0a0a0a;
    border-top: 2px solid #9b1c1c;
}

footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

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

.footer-section h3 {
    color: #9b1c1c;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d0d0d0;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #9b1c1c;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2a2a2a;
    color: #808080;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

/* ============================================
   Responsive Breakpoints
   ============================================ */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

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

    .hero p {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .container {
        padding: 3rem 1.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}
