* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background: #ffffff !important;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    position: absolute;
    top: 20px;
    left: 0;
    right: 20px;
    z-index: 1000;
    transition: all 0.5s ease;
    border-top-right-radius: 70px;
    border-bottom-right-radius: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    transition: all 0.5s ease;
    background-color: white;
    border-radius: 60px;
    color: #2667c9;
    box-shadow: 0 4px 20px rgba(38, 103, 201, 0.3);
    min-height: 60px;
}

/* Initial Header State */
.header-top {
    padding: 10px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 1000;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.5s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    transition: all 0.5s ease;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #2667c9;
    font-weight: 800;
    transition: color 0.3s;
    padding: 8px 0;
    position: relative;
    font-size: 16px;
}

.nav-menu a:hover {
    color: #a8d1ff;
}

.nav-menu a.active {
    color: #a8d1ff;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #a8d1ff;
}

.btn {
    display: inline-block;
    background-color: #1e56a0;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #16417d;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2667c9;
    transition: all 0.5s ease;
}

/* Scrolled Header State */
.header-scrolled {
    position: fixed;
    top: 20px;
    left: -100%;
    background-color: transparent;
    box-shadow: none;
}

.header-scrolled .header-container {
    padding: 15px 0;
    background-color: transparent;
    box-shadow: none;
}

.header-scrolled .logo {
    font-size: 1.5rem;
    transform: translateX(-300px);
}

.header-scrolled .nav-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-300px);
}

.header-scrolled .mobile-menu-btn {
    display: block;
    position: fixed;
    top: 40px;
    left: 20px;
    z-index: 1001;
    background-color: #2667c9;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 1.8rem;
}

/* Mobile Menu */
.mobile-nav-menu {
    position: fixed;
    top: 120px;
    left: -100%;
    width: auto;
    height: auto;
    background-color: #2667c9;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: left 0.4s ease;
    z-index: 999;
    border-radius: 0 60px 60px 0;
    display: flex;
    align-items: center;
}

.mobile-nav-menu.active {
    left: 0;
}

.mobile-nav-menu ul {
    display: flex;
    list-style: none;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.mobile-nav-menu a:hover {
    background-color: #1e56a0;
}

.mobile-nav-menu a.active {
    background-color: #1e56a0;
    color: #a8d1ff;
}

.mobile-nav-menu .btn {
    margin-top: 10px;
    background-color: #1e56a0;
    text-align: center;
}

.mobile-nav-menu .btn:hover {
    background-color: #16417d;
}

.close-menu {
    position: absolute;
    top: 40px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    z-index: 1002;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://energy-oil-gas.com/wp-content/uploads/sites/3/2023/05/Solar-panels.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    padding-top: 100px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero .btn {
    background-color: #3a86ff;
    padding: 12px 30px;
    font-size: 1.1rem;
}

.hero .btn:hover {
    background-color: #2667c9;
}

/* Content Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2667c9;
    line-height: 1.2;
}

.section-title p {
    font-size: 1.1rem;
    color: #777;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.content-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #3a86ff;
}

.content-card1 {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border-top: 4px solid #3a86ff;
    width: 100%;
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.content-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2667c9;
}

.content-card .btn {
    background-color: #3a86ff;
}

.content-card .btn:hover {
    background-color: #2667c9;
}

/* Footer */
footer {
    background-color: #1e3a5f;
    color: #fff;
    padding: 70px 0 20px;
    text-align: center;
}

/* Logo Images */
.logo-img,
.logo-img2 {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Stats */
.stats {
    display: flex;
    gap: 70px;
    padding-bottom: 10px;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    justify-content: flex-start;
    /* Align to start */
    overflow-x: auto;
    /* Enable horizontal scrolling */
    scrollbar-width: thin;
    /* For Firefox */
    scrollbar-color: #2667c9 transparent;
    /* For Firefox */
    padding: 20px 10px;
    margin: 0 -10px;
    /* Compensate for padding */
}

/* Custom scrollbar for Webkit browsers */
.stats::-webkit-scrollbar {
    height: 6px;
}

.stats::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.stats::-webkit-scrollbar-thumb {
    background: #2667c9;
    border-radius: 10px;
}

.stats::-webkit-scrollbar-thumb:hover {
    background: #1e56a0;
}

/* For mobile devices */
@media (max-width: 767px) {
    .stats {
        gap: 40px;
        /* Reduce gap on mobile */
        padding: 15px 10px;
    }
}

@media (max-width: 575px) {
    .stats {
        gap: 30px;
        /* Further reduce gap on small mobile */
    }
}

/* Buttons */
.btn1 {
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-align: center;
}

.btn1:hover {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-content {
    padding: 80px 0;
    background-color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    padding: 30px;
}

.contact-info h2 {
    color: #2667c9;
    margin-bottom: 30px;
    font-size: 2rem;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    background-color: #2667c9;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text h4 {
    color: #2667c9;
    margin-bottom: 5px;
}

.contact-form-container {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3 {
    color: #2667c9;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #2667c9;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #2667c9;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #1e56a0;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

/* Map Container */
.map-container {
    margin-top: 0px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.map-container {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 2px solid #ccc;
}

.map-container:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid #4A90E2;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.map-container:hover .map-iframe {
    pointer-events: auto;
}

/* Projects Section */
#projects {
    background-color: #fdf6f0;
    padding: 60px 0;
}

.projects-section {
    background: #ffffff !important;
    position: relative;
    z-index: 1;
}

.projects-section .section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #005f73;
}

.projects-section .section-title p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.projects-list ul {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    background: #f8f9fa;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.projects-list ul li {
    font-size: 1.1rem;
    margin: 12px 0;
    padding: 12px 10px;
    border-left: 4px solid #00b4d8;
    background: #ffffff;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.projects-list ul li:hover {
    transform: translateX(5px);
    background: #e6f7ff;
    border-left-color: #0077b6;
}

/* Careers Section */
.content-card {
    background: #ffffff;
    color: #222;
    max-width: 1000px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: left;
    line-height: 1.7;
    margin: 0 auto;
}

.content-card h3 {
    font-size: 1.8rem;
    color: #005f73;
    margin-bottom: 20px;
}

.content-card p {
    margin-bottom: 15px;
}

.content-card strong {
    color: #003f4f;
}

.openings-list {
    margin: 20px 0;
    padding-left: 25px;
    list-style: none;
}

.openings-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.openings-list li::before {
    content: "• ";
    color: #00b4d8;
}

.content-card a {
    color: #0077b6;
    text-decoration: none;
    font-weight: 600;
}

.content-card a:hover {
    text-decoration: underline;
}

/* Operations Section */
#operations {
    background: white !important;
    color: #333;
    padding: 60px 20px;
}

#operations .section-title {
    text-align: center;
    margin-bottom: 40px;
}

#operations .section-title h2 {
    font-size: 2.3rem;
    font-weight: 700;
    color: #2667c9;
}

#operations .section-title p {
    font-size: 1.1rem;
    color: #666;
}

.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    color: #555;
}

.accordion {
    max-width: 950px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.accordion-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2667c9;
    padding: 20px 25px;
    cursor: pointer;
}

.accordion-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.know-more-btn {
    background: #ffd700;
    color: #003820;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    font-size: 0.9rem;
}

.know-more-btn:hover {
    background: #fff;
    color: #006642;
    transform: scale(1.05);
}

/* Accordion Expanded Area */
.accordion-content {
    display: none;
    padding: 30px;
    background: #ffffff;
    color: #333;
    line-height: 1.7;
    border-top: 1px solid #e9ecef;
}

.accordion-content p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}

.accordion-content strong {
    color: #2667c9;
}

/* Active Accordion Style */
.accordion-item.active .accordion-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large Devices (Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium Devices (Tablets, 992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }
}

/* Small Devices (Landscape Tablets, 768px - 991px) */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-top .mobile-menu-btn {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .stats {
        gap: 40px;
    }
}

/* Extra Small Devices (Phones, 576px - 767px) */
@media (max-width: 767px) {
    header {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .header-container {
        padding: 10px 20px;
        min-height: 50px;
    }

    .logo-img {
        height: 50px;
    }

    .logo-img2 {
        height: 150px;
    }

    .mobile-nav-menu {
        top: 100px;
        padding: 15px 20px;
    }

    .hero {
        height: 70vh;
        min-height: 500px;
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-content {
        padding-top: 80px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .content-card {
        padding: 20px;
    }

    .contact-form-container {
        padding: 25px;
    }

    .accordion-header-line {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .accordion-title {
        font-size: 1.1rem;
    }

    .projects-list ul {
        padding: 20px;
    }

    .stats {
        gap: 30px;
        justify-content: space-around;
    }

    .btn1 {
        padding: 10px 30px;
        font-size: 14px;
    }
}

/* Extra Extra Small Devices (Small Phones, 575px and below) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }

    header {
        top: 5px;
        left: 5px;
        right: 5px;
    }

    .header-container {
        padding: 8px 15px;
        border-radius: 50px;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-card {
        padding: 15px;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .contact-icon {
        margin-right: 0;
    }

    .mobile-nav-menu {
        width: 100%;
        border-radius: 0;
        top: 0;
        height: 100vh;
        justify-content: center;
    }

    .mobile-nav-menu ul {
        width: 100%;
        text-align: center;
    }

    .close-menu {
        top: 20px;
        right: 20px;
    }

    .accordion-content {
        padding: 20px;
    }

    .map-container {
        height: 150px;
    }

    .btn,
    .btn1 {
        width: 100%;
        text-align: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .content-card:hover {
        transform: none;
    }

    .map-container:hover {
        transform: none;
    }

    .map-container .map-iframe {
        pointer-events: auto;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://energy-oil-gas.com/wp-content/uploads/sites/3/2023/05/Solar-panels.jpg');
    }
}

.carousel-section {
  width: 90%;
  max-width: 800px;
  text-align: center;
  margin: 0 auto 10px;
}

.carousel-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #00bfa6;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fffff0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.carousel {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 2rem;
  box-sizing: border-box;
}

.testimonial-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #00bfa6;
}

.testimonial-card h3 {
  margin: 0.3rem 0;
  color: black;
  font-size: 1.1rem;
}

.testimonial-card p.role {
  color: black;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.testimonial-card p.review {
  font-style: italic;
  line-height: 1.5;
  color: black;
  font-size: 0.95rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 50%;
  transition: background 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: #00bfa6;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}