/* Modern Reset & Root Variables */
:root {
    --primary-color: #0F172A; /* Deep Corporate Slate */
    --accent-color: #E53935;  /* Vibrant Brand Red */
    --text-color: #334155;    /* Muted Slate Text */
    --light-bg: #F8FAFC;      /* Soft Light Gray */
    --white: #FFFFFF;
    --card-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -4px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Flexible Logo Wrapper */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-wrapper img {
    max-height: 50px; /* Adjust based on your logo design dimensions */
    width: auto;
    display: block;
}

/* Fallback Text Logo if image isn't loaded yet */
.logo-text {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.logo-text span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-color);
}

/* Hero Section with High-End Overlay */
.hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(229, 57, 53, 0.4)), 
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #E2E8F0;
}

/* Global Section Layouts */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.section-title span {
    color: var(--accent-color);
}

/* Layout Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
    align-items: center;
}

/* Cards with Dynamic Backgrounds */
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #E2E8F0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.35rem;
}

/* Action Elements */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #C62828;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #FFFFFF;
    color: var(--white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Image Presentation Framework */
.img-responsive {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

/* Form Styling */
.contact-form {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-size: 1rem;
}

/* Footer styling */
footer {
    background: var(--primary-color);
    color: #94A3B8;
    padding: 40px 20px;
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

/* Responsive Rules */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; text-align: center; }
    nav ul { margin-top: 20px; flex-wrap: wrap; justify-content: center; }
    nav ul li { margin: 5px 10px; }
    .hero h1 { font-size: 2.3rem; }
    .grid-2 { grid-template-columns: 1fr; }
}