/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #004085;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
}

/* Header Styles */
.header-area {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.top-header {
    padding: 10px 0;
}

.contact-info a {
    color: white;
    margin-right: 20px;
    text-decoration: none;
    font-size: 14px;
}

.contact-info i {
    margin-right: 5px;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-weight: 500;
    padding: 25px 15px !important;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Sticky Header */
.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    animation: slideDown 0.5s ease-out;
    background: white;
}

.is-sticky .navbar {
    padding: 10px 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Enhanced Navigation */
.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-item:hover::after,
.navbar-nav .nav-item.active::after {
    width: 100%;
    left: 0;
}

/* Hero Section Styles */
.hero-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.hero-btns .btn {
    padding: 12px 28px;
    margin-right: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* These styles are for existing classes/elements */

/* Page Title */
.page-title {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/page-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    color: white;
    margin-bottom: 50px;
}

.bg-fleet {
    background-image: url('../img/fleet-bg.jpg');
}

.bg-tank {
    background-image: url('../img/tank-bg.jpg');
}

/* Service Cards */
.service-card {
    height: 100%; /* Ensures all cards have the same height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Feature Cards */
.feature-card .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card .card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.feature-list li:before {
    content: "\e876";
    font-family: 'boxicons';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Tank Type Cards */
.tank-type-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tank-type-card:hover {
    transform: translateY(-5px);
}

.tank-type-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Fleet Categories */
.category-card .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card .card:hover {
    transform: translateY(-5px);
}

.category-card img {
    height: 200px;
    object-fit: cover;
}

/* Footer */
.footer-area {
    background-color: var(--dark-color);
}

.footer-area a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-area a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.scroll-top:hover {
    background-color: var(--secondary-color);
}

/* Preloader */
.preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    background: white;
}

.preloader .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Page Transitions */
.page-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s;
}

/* Enhanced Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 991px) {
    .nav-link {
        padding: 10px 15px !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-info a {
        display: block;
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .page-title {
        padding: 120px 0 60px;
    }
}

/* About Page Styles */
.bg-about {
    background-image: url('../img/about-bg.jpg');
}

.history-timeline {
    list-style: none;
    padding-left: 0;
    position: relative;
}

.history-timeline li {
    padding: 15px 0 15px 30px;
    position: relative;
}

.history-timeline li:before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 20px;
}

.value-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.value-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%; /* Increased height */
    display: flex;
    flex-direction: column;
}

.team-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1; /* Allow team-info to fill remaining space */
}

.team-info h4 {
    margin-bottom: 5px;
}

.team-info p {
    color: var(--gray-color);
    margin: 0;
}

/* Contact Page Styles */
.bg-contact {
    background-image: url('../img/contact-bg.jpg');
}

.contact-info-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
}

.contact-info-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-map {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.map-container {
    width: 100%;
    height: 220px; /* Slightly increase map height */
    margin-bottom: 0; /* Remove spacing below the map */
    border-radius: 15px 15px 0 0; /* Rounded corners at the top */
    overflow: hidden; /* Prevent overflow */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.hours-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.emergency-contact {
    padding: 20px;
    background: var(--light-color);
    border-radius: 5px;
    text-align: center;
}

.emergency-phone {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.emergency-phone:hover {
    background: var(--secondary-color);
    color: white;
}

/* Global Locations Page */
.bg-locations {
    background-image: url('../img/locations-bg.jpg');
}

.location-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.location-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.location-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.location-details ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.location-details ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.location-details ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Services Page */
.bg-services {
    background-image: url('../img/services-bg.jpg');
}

.services-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.services-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.services-features li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.service-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.process-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.process-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Team Page */
.bg-team {
    background-image: url('../img/team-bg.jpg');
}

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
}

.team-social a:hover {
    color: var(--primary-color);
}

.team-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1; /* Allow team-info to fill remaining space */
}

.team-info .position {
    color: var(--primary-color);
    font-weight: 600;
    margin: 5px 0;
}

.team-info .description {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.responsibilities {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    text-align: left;
}

.responsibilities li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.values-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fleet-card {
    height: auto; /* Allow dynamic height */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    overflow: hidden; /* Prevent overflow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover animation */
}

.fleet-card:hover {
    transform: translateY(-10px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.fleet-card .card-image-wrapper {
    height: 180px; /* Adjusted image height */
    overflow: hidden; /* Prevent overflow */
}

.fleet-card .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image fits nicely */
    transition: transform 0.3s ease; /* Smooth zoom effect */
}

.fleet-card:hover .card-image-wrapper img {
    transform: scale(1.1); /* Zoom effect on hover */
}

.fleet-card .fleet-info {
    padding: 15px; /* Add padding for content */
    background-color: #fff; /* White background */
    text-align: left; /* Align text to the left */
}

.fleet-card .fleet-title {
    font-size: 1.2rem; /* Modern font size */
    font-weight: bold;
    margin-bottom: 10px;
    color: #333; /* Darker text color */
}

.fleet-card .fleet-details {
    font-size: 0.9rem; /* Smaller font for details */
    color: #666; /* Subtle text color */
    margin-bottom: 10px; /* Adjust spacing */
}

.fleet-card .fleet-link {
    text-decoration: none; /* Remove underline */
    color: var(--primary-color); /* Keep primary color */
    background-color: transparent; /* Ensure no background */
    padding: 0; /* Remove padding */
}

.fleet-card .fleet-link:hover {
    color: var(--primary-color); /* Keep color consistent on hover */
    background-color: transparent; /* Ensure no background on hover */
}

/* Adjust modal font size and ensure it displays in the middle */
.modal-content {
    font-size: 0.9rem; /* Maintain reduced font size */
    width: 35%; /* Slightly increase modal width */
    padding: 20px; /* Add more padding for better spacing */
    border-radius: 15px; /* More rounded corners */
    background: linear-gradient(to bottom, #ffffff, #f8f9fa); /* Subtle gradient background */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow for depth */
    position: relative; /* For better positioning of elements */
    animation: fadeIn 0.3s ease-in-out; /* Keep fade-in animation */
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed; /* Ensure modal stays in the center */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Darker background for better focus */
    z-index: 1000; /* Ensure it is above other elements */
}

/* Adjust vessel name position to the top */
.modal-header {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center align the text */
}

.modal-header h2 {
    order: -1; /* Move the vessel name to the top */
    font-size: 1rem; /* Adjust font size */
    margin-bottom: 10px; /* Add spacing below the name */
    color: #333; /* Darker text color */
}

.map-container {
    width: 100%;
    height: 220px; /* Slightly increase map height */
    margin-bottom: 0; /* Remove spacing below the map */
    border-radius: 15px 15px 0 0; /* Rounded corners at the top */
    overflow: hidden; /* Prevent overflow */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.modal-body {
    margin-top: 20px; /* Add spacing between header and body */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Add spacing between sections */
}

.modal-body h4 {
    font-size: 1rem; /* Adjust section title size */
    color: #444; /* Subtle text color */
    border-bottom: 1px solid #ddd; /* Add underline for section titles */
    padding-bottom: 5px; /* Add spacing below titles */
}

/* Update operational card colors to match website blue */
.operational-card {
    padding: 10px; /* Reduce padding */
    font-size: 0.85rem; /* Decrease font size */
    border-radius: 6px; /* Slightly smaller rounded corners */
    margin-bottom: 10px; /* Reduce spacing between cards */
    background-color: #0056b3; /* Website's primary blue color */
    color: #ffffff; /* White text for contrast */
    display: flex; /* Flexbox for alignment */
    align-items: center; /* Center align items vertically */
    gap: 10px; /* Spacing between icon and text */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.operational-card i {
    font-size: 1.2rem; /* Decrease icon size */
    color: #ffffff; /* White icon color */
}

.operational-card .metric-label {
    font-size: 0.9rem; /* Adjust label font size */
    color: #d1e7ff; /* Lighter blue for label */
    margin: 0; /* Remove margin */
}

.operational-card .metric-value {
    font-size: 1rem; /* Adjust value font size */
    font-weight: bold; /* Emphasize value */
    margin: 0; /* Remove margin */
}

.operational-card .metric-subtext {
    font-size: 0.75rem; /* Adjust subtext font size */
    color: #d1e7ff; /* Lighter blue for subtext */
    margin-top: 5px; /* Add spacing above subtext */
}

/* Style the close button */
.close-button {
    position: absolute; /* Position at the top-right corner */
    top: 10px;
    right: 10px;
    background-color: #007bff; /* Blue background */
    color: white; /* White text color */
    border: none; /* Remove border */
    border-radius: 50%; /* Circular shape */
    width: 30px; /* Set width */
    height: 30px; /* Set height */
    font-size: 1.2rem; /* Increase font size for the 'X' */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; /* Pointer cursor on hover */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.close-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Enhance vessel specification section */
.vessel-specifications {
    background-color: #ffffff; /* White background for the container */
    border-radius: 10px; /* Subtle corner rounding */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Light box shadow */
    padding: 1.5rem; /* Consistent padding around the text */
    margin-bottom: 20px; /* Spacing below the container */
    height: auto; /* Allow dynamic height */
    max-height: 300px; /* Match operational data height */
    overflow-y: auto; /* Add scroll if content exceeds height */
}

.vessel-specifications h4 {
    font-size: 1.2rem; /* Slightly larger font for the title */
    color: #333; /* Dark gray for the title */
    margin-bottom: 1rem; /* Spacing below the title */
    border-bottom: 1px solid #eee; /* Subtle divider below the title */
    padding-bottom: 0.5rem; /* Padding below the title */
}

.vessel-specifications ul {
    list-style: none; /* Remove default list styling */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

.vessel-specifications li {
    font-size: 0.95rem; /* Adjust font size for readability */
    color: #444; /* Dark gray for text */
    margin-bottom: 0.75rem; /* Spacing between items */
    display: flex; /* Flexbox for label and value alignment */
    justify-content: space-between; /* Align label and value */
    border-bottom: 1px solid #eee; /* Optional divider between rows */
    padding-bottom: 0.5rem; /* Padding below each row */
}

.vessel-specifications li:last-child {
    border-bottom: none; /* Remove divider for the last item */
}

.vessel-specifications li strong {
    font-weight: 600; /* Emphasize labels */
    color: #333; /* Darker gray for labels */
}