/* ================== GLOBAL STYLES & VARIABLES ================== */
:root {
    --primary-color: #c0392b; /* A strong, professional red */
    --primary-hover-color: #a93226; /* A darker red for hover effects */
    --secondary-color: #751818; /* A dark slate blue (contrasts well with red) */
    --accent-color: #e74c3c; /* A brighter red for special buttons */
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --text-color: #555;
    --light-text-color: #ecf0f1;
    --white-color: #ffffff;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Offset for fixed header */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

/* ================== UTILITY & REUSABLE CLASSES ================== */
.page-section {
    padding: 60px 20px;
    text-align: center;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.bg-light { background-color: var(--light-gray); }
.bg-dark { background-color: var(--secondary-color); }
.bg-dark .section-heading { color: var(--white-color); }

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
}

/* ================== HEADER & NAVIGATION ================== */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-branding {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 25px;
}

.nav-item { position: relative; }

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover { color: var(--primary-color); }

.nav-contact-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 8px 16px;
    border-radius: 5px;
}
.nav-contact-btn:hover { 
    color: var(--white-color);
    background-color: var(--primary-hover-color);
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    list-style: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 180px;
}

.nav-item:hover .dropdown-menu { display: block; }
.dropdown-menu li { padding: 10px 20px; }
.dropdown-menu li a { white-space: nowrap; }

/* Hamburger Menu for Mobile */
.hamburger { display: none; cursor: pointer; }
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-gray);
    transition: all 0.3s ease-in-out;
}

/* ================== HERO SECTION (UPDATED) ================== */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('unnamed.jpg') no-repeat center center/cover;
    height: 70vh; /* Reduced from 100vh */
    min-height: 450px; /* Ensures it doesn't get too small on short screens */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ================== SERVICES SECTION ================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-card p { margin-bottom: 20px; }

.service-card .btn { background-color: var(--secondary-color); color: var(--white-color); }
.service-card .btn:hover { background-color: #4e6a85; }

.tech-service {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}
.tech-service h3 { color: var(--white-color); }
.tech-service p { color: #bdc3c7; }
.tech-service .btn { background-color: var(--accent-color); }
.tech-service .btn:hover { background-color: var(--primary-color); }

/* ================== ABOUT & REVIEWS SECTIONS ================== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color); /* Now uses the red theme color */
}

.review-card p {
    font-style: italic;
    margin-bottom: 15px;
}

.review-card cite {
    font-weight: bold;
    color: var(--secondary-color);
}

/* ================== CONTACT SECTION ================== */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form .form-group {
    display: flex;
    gap: 15px;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    align-self: center;
    width: 200px;
}

/* ================== FOOTER ================== */
footer {
    background-color: var(--dark-gray);
    color: var(--light-text-color);
    text-align: center;
    padding: 20px;
}

/* ================== RESPONSIVE DESIGN (MOBILE-FIRST) ================== */
@media(max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active { left: 0; }

    .nav-item { margin: 16px 0; }
    .nav-item:hover .dropdown-menu { display: none; } /* Disable dropdown on mobile nav */

    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-content h1 { font-size: 2.5rem; }
    .section-heading { font-size: 2rem; }
    .contact-form .form-group { flex-direction: column; }
}
