
/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
}

.top-bar .social-icons a {
    margin-right: 10px;
    color: #fff;
    transition: color 0.3s;
}

.top-bar .social-icons a:hover {
    color: #ff9800;
}

.top-bar .contact-info span {
    margin-right: 20px;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center;
    background-color: #000000;
    padding: 15px 20px;
    border-bottom: 2px solid #0e0e0e;
    position: relative;
}

nav .logo {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    display: flex;
    align-items: center;
}

nav .logo img {
    height: 80px;
    width: 90px;
    
    margin-right: 10px;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    position: relative;
    margin: 0 auto; /* Center the nav-links */
}

nav .nav-links li {
    position: relative;
}

nav .nav-links a {
    text-decoration: none;
    color: #f8f1f1;
    font-size: 18px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

nav .nav-links a:hover {
    color: #ff9800;
}

nav .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #ff9800;
    transition: width 0.3s;
}

nav .nav-links a:hover::after {
    width: 100%;
}

nav .cta a {
    text-decoration: none;
    padding: 10px 20px;
    background-color: #f0eee9;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
}

nav .cta a:hover {
    background-color: #f3f1ef;
}
/* Hamburger Menu */
nav .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    left: 20px;
}

nav .hamburger div {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

/* Background Overlay */
nav .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 998;
}

nav .overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive Navigation */
@media (max-width: 1024px) {
    nav {
        flex-wrap: wrap;
    }

   
    nav .nav-links {
        position: absolute;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background-color: #f7cc0c;
        flex-direction: column;
        padding: 20px; /* Padding inside the capsule */
        gap: 20px;
        border-radius: 20px; /* Capsule shape */
        transition: left 0.5s ease-in-out;
        z-index: 999;
    }

    nav .nav-links.active {
        left: 0;
    }

    nav .nav-links li {
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    nav .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    nav .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    nav .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    nav .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    nav .hamburger {
        display: flex;
    }

    nav .cta {
        display: none;
    }

    /* Hamburger Animation */
    nav.active .hamburger div:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #ff9800;
    }

    nav.active .hamburger div:nth-child(2) {
        opacity: 0;
    }

    nav.active .hamburger div:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #ff9800;
    }
}


/* Search Bar Styles */
.search-container {
    position: absolute;
    top: 60px; /* Positioned below the hamburger menu */
    right: 15px; /* Aligned with hamburger menu */
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

#searchInput {
    padding: 12px 16px;
    width: 0;
    border: none;
    border-radius: 50px; /* Rounded corners for modern look */
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother animation */
    opacity: 0;
    visibility: hidden;
    outline: none; /* Remove outline on focus */
}

#searchInput.active {
    width: 240px;
    opacity: 1;
    visibility: visible;
}

#searchInput:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on focus */
}

.suggestions {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: none;
    border-radius: 12px;
    width: 240px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.suggestions div {
    padding: 12px 16px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.suggestions div:last-child {
    border-bottom: none;
}

.suggestions div:hover {
    background: #f7f7f7;
}

/* Search Icon */
.search-icon {
    cursor: pointer;
    font-size: 22px;
    color: white;
    margin-left: 12px;
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.search-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Responsive Styles - comprehensive for all devices */
@media (max-width: 1200px) {
    #searchInput.active {
        width: 220px;
    }
}

@media (max-width: 992px) {
    #searchInput.active {
        width: 200px;
    }
    
    .suggestions {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .search-container {
        top: 40px; /* Maintain position below hamburger menu */
        right: 2px; /* Keep aligned with hamburger menu */
    }
    
    #searchInput.active {
        width: 180px;
    }
    
    .suggestions {
        width: 180px;
    }
    
    .search-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .search-container {
        top: 40px; /* Consistent positioning */
        right: 5px;
    }
    
    #searchInput.active {
        width: 150px;
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .suggestions {
        width: 150px;
        top: 45px;
    }
    
    .suggestions div {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .search-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

@media (max-width: 380px) {
    #searchInput.active {
        width: 120px;
    }
    
    .suggestions {
        width: 120px;
    }
}

/* For extremely small devices */
@media (max-width: 320px) {
    #searchInput.active {
        width: 100px;
    }
    
    .suggestions {
        width: 100px;
    }
    
    .search-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* contact icon*/

.fixed-contact {
    position: fixed;
    left: 20px;  /* Distance from the left */
    bottom: 50px;  /* Distance from the bottom */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000; /* Ensures it stays on top */
}

.fixed-contact a img {
    width: 50px;  /* Adjust size */
    height: 50px;
    border-radius: 50%;  /* Make it round */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.fixed-contact a img:hover {
    transform: scale(1.1);
}
/* About Us Heading */
.bg-heading {
    background-image: url('images/marineproo.jpg'); /* Add your background image */
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #dadada;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bg-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.bg-heading h1 {
    font-size: 48px;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s ease-out forwards 0.5s;
}

.bg-heading p {
    font-size: 18px;
    margin: 10px 0 0;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s ease-out forwards 0.8s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* General Section Styling */
.section {
    color: #fff;
    text-align: center;
    padding: 50px 20px;
    background-color: #222; /* Dark background */
    position: relative;
}

/* Diesel Section Styling */
.diesel-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    background-color: #111; /* Deep black background */
    flex-wrap: wrap;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.2); /* Gold glow effect */
}

/* Content Styling */
.diesel-content {
    flex: 1;
    max-width: 50%;
    color: #fff;
}

.diesel-content h2 {
    font-size: 30px;
    color: #f0b61f; /* Gold */
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 3px solid #f0b61f;
    padding-bottom: 10px;
    display: inline-block;
}

.diesel-content ul {
    list-style: none;
    padding-left: 0;
    font-size: 18px;
    color: #ddd;
}

.diesel-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

/* Custom Bullet Icon */
.diesel-content ul li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: #f0b61f;
    font-size: 18px;
}

/* Button Styling */
.know-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background-color: #f0b61f;
    color: #222;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}

.know-more-btn:hover {
    background-color: #ffcc00;
    transform: scale(1.05);
}

/* Diesel Image Styling */
.diesel-image {
    flex: 1;
    text-align: right;
}

.diesel-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    border: 3px solid #f0b61f;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
    transition: 0.3s ease-in-out;
}

/* Image Hover Effect */
.diesel-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.5);
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
    .diesel-section {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .diesel-content {
        max-width: 100%;
    }

    .diesel-image {
        text-align: center;
        margin-top: 20px;
    }

    .diesel-image img {
        width: 80%;
    }
}

footer {
    background-color: #111;
    color: #fff;
    padding: 40px 20px 10px;
    font-family: sans-serif;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }
  
  .footer-section {
    flex: 1 1 200px;
  }
  
  .footer-section h3 {
    color: #f4c10f;
    margin-bottom: 10px;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section a {
    text-decoration: none;
    color: #ccc;
  }
  
  .footer-section a:hover {
    color: #f4c10f;
  }
  
  .footer-section input,
  .footer-section textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
  }
  
  .footer-section button {
    width: 100%;
    padding: 10px;
    background-color: #f4c10f;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .footer-bottom {
    text-align: center;
    color: #aaa;
    border-top: 1px solid #333;
    margin-top: 30px;
    padding-top: 10px;
    font-size: 14px;
  }
  
  /* Mobile Layout Fix */
  @media (max-width: 768px) {
    .footer-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      text-align: left;
    }
  
    .quick-links     { grid-column: 1; grid-row: 1; }
    .address         { grid-column: 2; grid-row: 1; }
    .contact-info    { grid-column: 1; grid-row: 2; }
    .follow-us       { grid-column: 2; grid-row: 2; }
    .contact-us      { grid-column: 1 / span 2; grid-row: 3; text-align: center; }
  
    .footer-section form {
      max-width: 90%;
      margin: 0 auto;
    }
  
    .footer-bottom {
      margin-top: 15px;
    }
  }
  