/* Basic Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 25px;
}

/* Header */
.header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
    color: #333;
    /* Added styles for logo image and text alignment */
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo image and text */
}

.header-logo-img {
    height: 40px; /* Set a fixed height for the logo */
    width: auto; /* Maintain aspect ratio */
}

.logo .highlight {
    color: #007bff; /* Primary color for highlight */
}

/* Navigation */
.nav-list {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-list li a {
    color: #555;
    text-decoration: none;
    font-weight: 400;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #007bff;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    width: 100%;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: #007bff;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://placehold.co/1920x1080/4F46E5/ffffff/png?text=RBI+Solutions+for+Oil+%26+Gas') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px; /* Offset for fixed header */
    position: relative;
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #333;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.bg-light {
    background-color: #f0f4f8;
}

.bg-dark {
    background-color: #2c3e50;
}

.text-white {
    color: #fff;
}

/* Grid Layout for Solutions/Blog */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.solution-card, .blog-post-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover, .blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.icon-large {
    font-size: 3.5rem;
    color: #007bff;
    margin-bottom: 15px;
}

.solution-card h3, .blog-post-card h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

/* Removed .team-member-card styles as the section is removed */

.blog-post-card .post-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
}

.blog-post-card .read-more {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

/* Flex Layout for About Us */
.flex-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-content ul {
    list-style: none;
    margin-top: 15px;
}

.about-content ul li {
    margin-bottom: 10px;
    color: #555;
}

.about-content ul li i {
    color: #28a745; /* Success color */
    margin-right: 8px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 40px auto 30px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.contact-info {
    text-align: center;
    color: #fff;
    margin-top: 30px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-info i {
    margin-right: 10px;
    color: #007bff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #333;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links a {
    color: #ccc;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .nav-list {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .logo {
        width: 100%;
        margin-bottom: 15px;
    }

    .main-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        display: none; /* Hidden by default on mobile */
        gap: 0;
        margin-top: 15px;
    }

    .nav-list.active {
        display: flex; /* Show when active */
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list li a {
        padding: 15px 0;
        display: block;
        width: 100%;
    }

    .menu-toggle {
        display: block; /* Show on mobile */
        position: absolute;
        right: 25px;
        top: 25px;
    }

    .hero-section {
        height: 70vh;
        padding-top: 120px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .content-section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .flex-layout {
        flex-direction: column;
        gap: 30px;
    }

    .about-image {
        order: -1; /* Move image above content on mobile */
    }

    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .logo {
        font-size: 1.5rem;
    }
    .menu-toggle {
        font-size: 1.5rem;
    }
}
