/* Global Reset & Variables */
:root {
    --primary-color: #b71c1c; /* Dark Red */
    --primary-hover: #d32f2f;
    --accent-color: #ff5252;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-header: #000000;
    --text-main: #e0e0e0;
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { 
    font-size: 2rem; 
    border-bottom: 2px solid var(--primary-color); 
    padding-bottom: 10px; 
    display: inline-block; 
    margin-bottom: 30px; 
}
h3 { font-size: 1.5rem; color: var(--accent-color); margin-top: 2rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.5rem; }

/* Layout Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 60px 0;
}

/* Header & Navigation */
header {
    background-color: var(--bg-header);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border-bottom: 1px solid #333;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: #ccc;
    font-weight: 500;
    padding: 5px 0;
    font-size: 15px;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu li a:hover::after, .nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a:hover, .nav-menu li a.active {
    color: #fff;
}

/* Nav Actions (Desktop) */
.nav-actions {
    display: flex;
    gap: 10px;
}

/* Mobile Actions (Hidden on Desktop) */
.mobile-actions {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(183, 28, 28, 0.4);
}

.btn-login {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 60vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Grid System & Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none; /* Ensure links wrapping cards don't have underline */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #333;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.card-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #333;
    color: #ccc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.card:hover .tag {
    background-color: #444;
    color: #fff;
}

/* Features Grid (Icon based) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 40px 0;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-card);
    border-radius: 8px;
    border: 1px solid #333;
}

.feature-icon {
    width: 60px;
    height: 60px;
    fill: var(--primary-color);
    margin-bottom: 20px;
}

/* Content Area for SEO Text */
.content-area {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
    border: 1px solid #333;
}

.content-area h2, .content-area h3 {
    margin-top: 30px;
}

.content-area ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-area li {
    margin-bottom: 10px;
}

/* Forms */
input[type="text"], 
input[type="email"], 
input[type="password"], 
select, 
textarea {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #000000;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    color: #666;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-header);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
        align-items: stretch;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-actions {
        display: none; /* Hide top buttons on mobile, move to menu */
    }
    
    .mobile-actions {
        display: flex; /* Show buttons inside menu */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-container {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    
    .container {
        width: 95%;
    }
}
