/* Business Website - Black Theme with Red Accents */

/* CSS Reset for Dark Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
:root {
    --primary-color: #dc3545;
    --secondary-color: #000000;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --text-dark: #333333;
    --bg-dark: #000000;
    --bg-darker: #1a1a1a;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
}

/* Force text colors for all elements */
html, body {
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Ensure all text elements have proper color */
h1, h2, h3, h4, h5, h6,
p, span, div, td, th, li, 
a, button, input, textarea, select,
label, small, strong, em, i, b {
    color: var(--text-light) !important;
}

/* Links with primary color */
a {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff6b6b !important;
    text-decoration: underline;
}

/* Form elements */
input, textarea, select {
    background-color: var(--bg-dark) !important;
    border: 1px solid #444 !important;
    color: var(--text-light) !important;
}

input:focus, textarea:focus, select:focus {
    background-color: var(--bg-dark) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-light) ;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    outline: none !important;
}

/* Buttons */
.btn {
    color: var(--text-light) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-light) !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: var(--text-light) !important;
}

/* Navigation and breadcrumbs */
.navbar {
    background-color: var(--bg-darker) !important;
}

.navbar-brand,
.nav-link {
    color: var(--text-light) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.breadcrumb-item {
    color: var(--text-muted) !important;
}

.breadcrumb-item a {
    color: var(--primary-color) !important;
}

.breadcrumb-item.active {
    color: var(--primary-color) !important;
}

/* Gallery specific styles */
.gallery-filter button {
    color: var(--text-light) !important;
    border-color: var(--primary-color) !important;
}

.gallery-filter button:hover,
.gallery-filter button.active {
    background-color: var(--primary-color) !important;
    color: var(--text-light) !important;
}

.nav-pills .nav-link {
    color: var(--text-light) !important;
    background-color: transparent !important;
    border: 1px solid var(--primary-color) !important;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
    color: var(--text-light) !important;
}

.gallery-item {
    background-color: var(--bg-darker) !important;
    border: 1px solid #444 !important;
}

.gallery-item h5,
.gallery-item p {
    color: var(--text-light) !important;
}

/* Section titles */
.section-title h2 {
    color: var(--text-light) !important;
}

/* Cards and containers */
.card {
    background-color: var(--bg-darker) !important;
    border: 1px solid #444 !important;
    color: var(--text-light) !important;
}

.card-header {
    background-color: var(--primary-color) !important;
    color: var(--text-light) !important;
}

/* Tables */
.table {
    background-color: var(--bg-darker) !important;
    color: var(--text-light) !important;
}

.table thead th {
    background-color: var(--primary-color) !important;
    color: var(--text-light) !important;
}

/* Override any black text */
.text-black {
    color: var(--text-light) !important;
}

/* Ensure Bootstrap classes work with dark theme */
.text-white {
    color: var(--text-light) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #b02a37;
    text-decoration: none;
}

/* Header & Navigation */
.navbar {
    background-color: var(--bg-darker) !important;
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.navbar-brand {
    color: var(--text-light) !important;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: var(--text-light) !important;
}

.navbar-toggler {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.jpg') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #b02a37 !important;
    border-color: #b02a37 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-light) !important;
}

/* Slider Section */
.slider-section {
    position: relative;
    overflow: hidden;
}

.slider-item {
   
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(220,53,69,0.6) 100%);
    z-index: 1;
}

.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.slider-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slider-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

/* Section Styles */
.section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.section-alt {
    background-color: var(--bg-darker);
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* About Preview */
.about-preview {
    background-color: var(--bg-darker);
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Blog Preview */
.blog-card {
    background-color: var(--bg-darker);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.blog-card-meta {
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-card-text {
    color: #cccccc;
    margin-bottom: 1rem;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(220,53,69,0.9) 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--text-light);
    text-align: center;
    padding: 1rem;
}

/* Video Gallery */
.video-item {
    background-color: var(--bg-darker);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.video-item iframe {
    width: 100%;
    height: 250px;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.video-description {
    color: #cccccc;
    margin-bottom: 1rem;
}

/* Events */
.event-card {
    background-color: var(--bg-darker);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card-body {
    padding: 1.5rem;
}

.event-date {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.event-venue {
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-darker);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.form-control {
    background-color: var(--bg-dark) !important;
    border: 1px solid #444 !important;
    color: var(--text-light) !important;
    border-radius: 5px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--bg-dark) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-light) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-label {
    color: #cccccc;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    border-top: 2px solid var(--primary-color);
    padding: 3rem 0 1rem;
    color: #cccccc;
}

footer h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: #cccccc;
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #b02a37;
    transform: translateY(-3px);
}

/* Admin Panel Styles */
.admin-header {
    background-color: var(--bg-darker) !important;
    border-bottom: 2px solid var(--primary-color);
}

.admin-sidebar {
    background-color: var(--bg-darker);
    min-height: 100vh;
    border-right: 1px solid #444;
}

.admin-sidebar .nav-link {
    color: #cccccc;
    padding: 1rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.admin-content {
    background-color: var(--bg-dark);
    min-height: 100vh;
    padding: 2rem;
}

.admin-card {
    background-color: var(--bg-darker);
    border: 1px solid #444;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.admin-card .card-header {
    background-color: var(--primary-color);
    border-bottom: none;
    color: var(--text-light);
    font-weight: 700;
}

/* Tables */
.table {
    background-color: var(--bg-darker);
    color: #cccccc;
}

.table thead th {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: #b02a37;
}

.table tbody tr:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .slider-content h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .navbar-nav {
        background-color: var(--bg-darker);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-left: 4px solid #ffc107;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

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