/* Global Styles */
:root {
    --primary-color: #d32f2f;
    --primary-hover: #b71c1c;
    --dark-bg: #121212;
    --light-bg: #f8f9fa;
    --text-main: #333;
    --text-light: #666;
    --white: #fff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

/* Headings Font */
h1, h2, h3, h4, h5, h6, .logo, .main-nav a, .btn {
    font-family: 'Poppins', sans-serif;
}

body.dark-bg {
    background-color: #121212;
    color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #d32f2f;
    transition: color 0.3s;
}

a:hover {
    color: #f44336;
}

/* Topbar Styles */
.topbar {
    background-color: #121212;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: #fff;
    font-weight: 500;
    padding: 5px 10px;
}

.main-nav a:hover {
    color: #d32f2f;
}

/* Footer Styles */
.footer {
    background-color: #121212;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

/* Button Styles */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    color: var(--white);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 100px;
    left: 50px;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    color: #fff;
    border-left: 4px solid var(--primary-color);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #d32f2f;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.slide-nav button {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.slide-nav button.active {
    background-color: #d32f2f;
}

/* Section Title Styles */
.section-title-red {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}

/* Hero CTA Button */
.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    margin-top: 15px;
    text-decoration: none;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    color: var(--white);
}

/* Premium Card Carousel Gallery */
.premium-gallery-wrapper {
    margin: 40px 0;
    padding: 20px 0;
    position: relative;
}

.gallery-scroll-hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.premium-gallery {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    margin: -10px;
}

/* Custom Scrollbar */
.premium-gallery::-webkit-scrollbar {
    height: 10px;
}

.premium-gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 0 20px;
}

.premium-gallery::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.premium-gallery::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

/* Gallery Cards */
.premium-card {
    flex-shrink: 0;
    width: 340px;
    scroll-snap-align: start;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    transform: translateY(-8px);
}

.premium-card-inner {
    position: relative;
    width: 100%;
    height: 280px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover .premium-card-inner {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 2px #d32f2f;
    border-color: #d32f2f;
}

.premium-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover .premium-card-inner img {
    transform: scale(1.08);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .premium-card {
        width: 300px;
    }
    
    .premium-card-inner {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .premium-card {
        width: 260px;
    }
    
    .premium-card-inner {
        height: 220px;
    }
    
    .premium-gallery {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .premium-card {
        width: 240px;
    }
    
    .premium-card-inner {
        height: 200px;
    }
}

/* Client Logo Carousel */
.clients-section {
    background: linear-gradient(180deg, #333 0%, #333 100%);
    padding: 20px 0;
    margin: 40px 0;
    overflow: hidden;
}

.clients-title {
    text-align: center;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: 600;
    position: relative;
}

.clients-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #f44336);
    margin: 15px auto 0;
    border-radius: 2px;
}

.clients-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.clients-carousel {
    display: flex;
    gap: 40px;
    animation: scroll-logos 30s linear infinite;
    width: fit-content;
}

.clients-carousel:hover {
    animation-play-state:paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo-item {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    filter: grayscale(10%);
    opacity: 0.75;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.client-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    border-color: #d32f2f;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .clients-section {
        padding: 40px 0;
    }
    
    .clients-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .client-logo-item {
        width: 160px;
        height: 100px;
    }
    
    .client-logo-box {
        font-size: 1rem;
    }
    
    .clients-carousel {
        gap: 25px;
        animation-duration: 20s;
    }
}

/* Feature Grid - Why Choose Us Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(211, 47, 47, 0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
}


/* About Page */
.about-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position-x: center;
    background-position-y: 25%;
    margin-bottom: 40px;
}

.about-text {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    max-width: 600px;
}

.about-section {
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.vision-mission {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.vision,
.mission {
    flex: 1;
    padding: 20px;
    background-color: #f5f5f5;
    border-left: 4px solid #d32f2f;
}

body.dark-bg .vision,
body.dark-bg .mission {
    background-color: #1e1e1e;
    color: #fff;
}

/* Service Page */
.service-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    margin-bottom: 40px;
}

.service-content {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    max-width: 500px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    color: #fff;
}

.service-boxes {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.service-box {
    width: 50%;
    padding: 20px;
    border: 1px solid #ddd;
    text-align: center;
    transition: box-shadow 0.3s;
}

.service-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Modern Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.service-card {
    background: #fff;
    border-radius: 12px; /* Softer corners */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Modern subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee; /* Light border */
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Dark Mode Support */
body.dark-bg .service-card {
    background: #1e1e1e;
    border-color: #333;
}

/* Client Page */
.client-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    margin-bottom: 40px;
}

.client-content {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    max-width: 500px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    color: #fff;
}

.client-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.client-card {
    flex: 1 1 calc(25% - 20px);
    min-width: 200px;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.client-card:hover {
    transform: translateY(-5px);
}

.client-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Blog Page */
.blog-container {
    margin: 40px 0;
}

.blog-post {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.blog-title {
    font-size: 1.5rem;
    color: #d32f2f;
}

.blog-date {
    color: #777;
}

.blog-content {
    display: none;
    margin-top: 20px;
}

.blog-content img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
}

.blog-post.active .blog-content {
    display: block;
}

/* Contact Page */
.contact-cards {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.contact-card {
    flex: 1;
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-align: center;
}

body.dark-bg .contact-card {
    background-color: #1e1e1e;
    color: #fff;
}

.contact-card h3 {
    color: #d32f2f;
    margin-bottom: 15px;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    height: 150px;
}

/* Admin Styles */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: #1a1a1a;
    color: #fff;
    flex-shrink: 0;
    transition: all 0.3s;
}

.sidebar-header {
    padding: 20px;
    background-color: #d32f2f;
    text-align: center;
}

.sidebar-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    color: #b0b0b0;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: all 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background-color: #333;
    color: #fff;
    border-left: 4px solid #d32f2f;
}

.sidebar-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.logout-link {
    color: #ff6b6b !important;
}

.logout-link:hover {
    background-color: #2a0000 !important;
}

.admin-content {
    flex-grow: 1;
    padding: 30px;
    background-color: #f4f6f9;
    overflow-y: auto;
}

/* Dashboard Widgets */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.widget-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.widget-card:hover {
    transform: translateY(-5px);
}

.widget-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    color: #fff;
}

.bg-blue { background-color: #0d6efd; }
.bg-green { background-color: #198754; }
.bg-yellow { background-color: #ffc107; color: #000 !important; }
.bg-red { background-color: #dc3545; }

.widget-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.widget-info h2 {
    margin: 5px 0 0;
    font-size: 1.8rem;
    color: #333;
}

/* Existing Admin Styles adapted */
.admin-container {
    padding: 0; /* Reset padding as it's now inside admin-content */
}

.admin-form {
    max-width: 100%; /* Allow full width in new layout */
    margin: 0 auto 40px;
    background-color: #fff; /* White background for better contrast on gray bg */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-form h2 {
    margin-bottom: 20px;
    color: #d32f2f;
}

.admin-form .form-group {
    margin-bottom: 15px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background-color: #f1f1f1;
}

.action-btn {
    padding: 6px 12px;
    margin-right: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.dark-bg .login-container {
    background-color: #1e1e1e;
    color: #fff;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #d32f2f;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #f44336;
}

.error-message {
    color: #d32f2f;
    margin-top: 10px;
    text-align: center;
}

/* Card Styles */
.card-container {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

body.dark-bg .card {
    background-color: #1e1e1e;
    color: #fff;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    background-color: #d32f2f;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 2rem;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    color: #d32f2f;
    margin-bottom: 15px;
}

/* Board Members Styles */
.board-members {
    margin: 60px auto;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.member-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

body.dark-bg .member-card {
    background-color: #1e1e1e;
    color: #fff;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.member-card h3 {
    margin: 15px 0 5px;
    color: #d32f2f;
}

.member-card .position {
    color: #777;
    font-weight: bold;
    margin-bottom: 15px;
}

.member-card .bio {
    padding: 0 20px 20px;
    font-size: 0.9rem;
}

/* Contact Page Styles */
.contact-intro {
    margin: 40px auto;
}

.contact-intro h1 {
    text-align: center;
    color: #d32f2f;
    margin-bottom: 30px;
}

.intro-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.intro-text {
    flex: 1;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.assurance {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.assurance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

body.dark-bg .assurance-item {
    background-color: #2a2a2a;
}

.assurance-item i {
    color: #d32f2f;
}

.contact-cards {
    display: flex;
    gap: 30px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.contact-card {
    flex: 1;
    min-width: 250px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

body.dark-bg .contact-card {
    background-color: #1e1e1e;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card .card-icon {
    background-color: #d32f2f;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.contact-card h3 {
    color: #d32f2f;
    margin-bottom: 20px;
}

.contact-card p {
    margin-bottom: 10px;
}

.contact-card .note {
    color: #777;
    font-size: 0.85rem;
    margin-top: 20px;
}

.contact-card a {
    color: #333;
    transition: color 0.3s;
}

body.dark-bg .contact-card a {
    color: #fff;
}

.contact-card a:hover {
    color: #d32f2f;
}

.contact-form-section {
    max-width: 800px;
    margin: 60px auto;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    color: #d32f2f;
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-large i {
    margin-right: 10px;
}

.required-note {
    color: #777;
    font-size: 0.9rem;
}

.success-message,
.error-message {
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-message {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.error-message {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

.success-message i {
    color: #4caf50;
    font-size: 1.5rem;
}

.error-message i {
    color: #f44336;
    font-size: 1.5rem;
}

body.dark-bg .success-message {
    background-color: #1b5e20;
    color: #fff;
}

body.dark-bg .error-message {
    background-color: #b71c1c;
    color: #fff;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
}

body.dark-bg.login-page {
    background-color: #121212;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.dark-bg .login-container {
    background-color: #1e1e1e;
    color: #fff;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #d32f2f;
}

.login-container h2 i {
    margin-right: 10px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-form label i {
    margin-right: 8px;
    color: #777;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background-color: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: #f44336;
}

.login-form button i {
    margin-right: 8px;
}

/* Blog Page Styles */
.blog-intro {
    text-align: center;
    padding: 80px 0 60px;
    background-color: #f9f9f9;
}

body.dark-bg .blog-intro {
    background-color: #1a1a1a;
}

.blog-intro h1 {
    font-size: 2.8rem;
    color: #d32f2f;
    margin-bottom: 15px;
}

.blog-intro .subtitle {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 30px;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-container {
    padding: 60px 0;
}

.blog-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

body.dark-bg .blog-post {
    background: #2a2a2a;
}

.blog-post.animated {
    transform: translateY(0);
    opacity: 1;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-header {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    transition: background-color 0.3s;
}

.blog-title {
    margin: 0;
    font-size: 1.5rem;
}

.blog-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.blog-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 25px;
}

.blog-post.active .blog-content {
    max-height: 2000px;
    padding: 25px;
}

.blog-image {
    margin-bottom: 20px;
}

.blog-image img {
    width: 100%;
    border-radius: 4px;
}

.blog-text {
    line-height: 1.8;
}

.no-posts {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #777;
}

/* Animation Classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fadeIn {
    animation-name: fadeIn;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInDown {
    animation-name: fadeInDown;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

/* Admin Table Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-actions {
    display: flex;
    gap: 15px;
}

.btn-logout {
    background-color: #f44336;
}

.admin-table-container {
    overflow-x: auto;
    margin-top: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    position: relative;
}

body.dark-bg .admin-table th {
    background-color: #2a2a2a;
}

.sortable {
    cursor: pointer;
}

.sortable:hover {
    background-color: #eee;
}

body.dark-bg .sortable:hover {
    background-color: #333;
}

.sortable i {
    margin-left: 5px;
}

.admin-table tr:hover {
    background-color: #f9f9f9;
}

body.dark-bg .admin-table tr:hover {
    background-color: #333;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn-view {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-delete {
    background-color: #f44336;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

body.dark-bg .modal-content {
    background-color: #2a2a2a;
    color: #fff;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
}

.modal-body {
    margin-top: 20px;
    line-height: 1.6;
}

.modal-info {
    margin: 15px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

body.dark-bg .modal-info {
    background-color: #333;
}

.modal img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Products Page Styles */
.products-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

body.dark-bg .products-section {
    background-color: #1a1a1a;
}

.products-section h1 {
    text-align: center;
    color: #d32f2f;
    margin-bottom: 15px;
}

.products-section .subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-box {
    display: grid;
    grid-template-columns: 150px 1fr 2fr;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-bg .product-box {
    background: #2a2a2a;
}

.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-img {
    padding: 20px;
    display: flex;
    align-items: center;
}

.product-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.product-name {
    padding: 20px 0;
    display: flex;
    align-items: center;
    border-right: 1px solid #eee;
    border-left: 1px solid #eee;
}

body.dark-bg .product-name {
    border-color: #444;
}

.product-name h3 {
    margin: 0;
    color: #333;
    padding: 0 20px;
}

body.dark-bg .product-name h3 {
    color: #fff;
}

.product-desc {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-desc p {
    margin: 0 0 15px 0;
    color: #555;
}

body.dark-bg .product-desc p {
    color: #ddd;
}

.product-desc .btn {
    align-self: flex-start;
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .product-box {
        grid-template-columns: 120px 1fr;
    }

    .product-name {
        grid-column: span 2;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid #eee;
    }

    body.dark-bg .product-name {
        border-bottom-color: #444;
    }
}

@media (max-width: 600px) {
    .product-box {
        grid-template-columns: 1fr;
    }

    .product-img {
        justify-content: center;
    }

    .product-img img {
        max-width: 200px;
    }

    .product-name {
        grid-column: span 1;
        padding: 0 20px 20px;
        text-align: center;
    }

    .product-desc {
        text-align: center;
    }

    .product-desc .btn {
        align-self: center;
    }
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 15px 15px 5px;
    color: #d32f2f;
}

.service-card p {
    padding: 0 15px 15px;
    color: #666;
}

/* Modern Footer */
.main-footer {
    background-color: #121212;
    color: #b0b0b0;
    padding: 60px 0 20px;
    margin-top: 60px;
    font-family: 'Inter', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    justify-content: center;
}

.footer-col {
    text-align:center;
}

.footer-col h3 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #d32f2f;
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #2a2a2a;
    color: #fff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #d32f2f;
}

.contact-info i {
    color: #d32f2f;
    width: 20px;
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Filter Buttons */
.filter-bar .btn {
    margin: 0 5px 10px;
    background: #eee;
    color: #333;
    box-shadow: none;
}

.filter-bar .btn:hover, .filter-bar .btn.active-filter {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-content h3 {
    color: #d32f2f;
    margin-bottom: 20px;
}

.modal-content p {
    color: #666;
    margin-bottom: 30px;
}

/* Small Button */
.btn-sm {
    background: transparent;
    border: 1px solid #d32f2f;
    color: #d32f2f;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.btn-sm:hover {
    background: #d32f2f;
    color: #fff;
}

/* Mobile Header Styles */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #121212;
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav li {
        margin: 15px 20px;
        width: 100%;
    }

    .main-nav a {
        display: block;
        width: 100%;
        font-size: 1.1rem;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Admin Mobile Responsiveness */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    margin-right: 15px;
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .admin-sidebar.active {
        left: 0;
    }

    .sidebar-close-btn {
        display: block;
    }

    .sidebar-toggle-btn {
        display: block;
    }

    .admin-content {
        width: 100%;
        padding: 15px;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
}
