/*
* PT Trans Ship Management
* Company Profile Website
* Maritime Theme with Blue Color Palette
*/

/* ===== Base Styles ===== */
:root {
    --primary-color: #0d4c91;     /* Deep Blue */
    --secondary-color: #f3b700;   /* Gold Accent */
    --dark-blue: #083363;         /* Darker Blue */
    --light-blue: #5c9bd6;        /* Light Blue */
    --text-color: #333333;        /* Dark Gray for Text */
    --light-color: #f8f9fa;       /* Light Background */
    --transition: all 0.3s ease;  /* Smooth Transition */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);  /* Subtle Shadow */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-blue);
}

section {
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.text-primary {
    color: var(--primary-color) !important;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: var(--box-shadow);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-blue);
    color: white;
}

/* ===== Navigation ===== */
#mainNav {
    padding: 15px 0;
    transition: var(--transition);
    background-color: transparent;
}

#mainNav.navbar-shrink {
    padding: 10px 0;
    background-color: rgba(13, 76, 145, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    padding: 0;
}

.nav-logo {
    height: 50px;
    transition: var(--transition);
}

#mainNav.navbar-shrink .nav-logo {
    height: 40px;
}

.navbar-toggler {
    border: none;
    padding: 0;
    font-size: 24px;
    color: white;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 5px;
    left: 15px;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover:after,
.navbar-dark .navbar-nav .nav-link.active:after {
    width: calc(100% - 30px);
}

/* ===== Hero Section ===== */
.hero-section {
    height: 100vh;
    min-height: 500px;
    background-image: url('https://pixabay.com/get/g3ce6b75a43c032cd59bea4ea8bcf0d70100ecc099ec78619f6d3e88f34a2b1a0b3e1bc0e5bf802fd93dbe379dc98e4d1c9d18293f8cea67eed1a3a3adc7913ac_1280.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 80px;
}

.ocean-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 51, 99, 0.7);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(13, 76, 145, 0.4);
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-weight: 400;
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.wave-image {
    width: 100%;
    height: auto;
}

/* ===== About Section ===== */
.about-section {
    padding: 80px 0;
}

.about-image-container {
    position: relative;
    margin-bottom: 30px;
}

.about-badge {
    position: absolute;
    bottom: -25px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--dark-blue);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.wheel-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.about-content {
    padding: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
}

.feature-item i {
    font-size: 24px;
    margin-right: 10px;
}

/* ===== Services Section ===== */
.services-section {
    background-color: var(--light-color);
    padding: 80px 0;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(13, 76, 145, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.service-card h4 {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark-blue);
}

/* ===== Fleet Gallery Section ===== */
.fleet-section {
    padding: 80px 0;
}

.fleet-item {
    margin-bottom: 30px;
}

.fleet-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.fleet-image img {
    transition: var(--transition);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.fleet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 51, 99, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: var(--transition);
}

.fleet-content {
    padding: 20px;
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
    width: 100%;
}

.fleet-image:hover .fleet-overlay {
    opacity: 1;
}

.fleet-image:hover .fleet-content {
    transform: translateY(0);
}

.fleet-image:hover img {
    transform: scale(1.1);
}

/* ===== Operations Section ===== */
.operations-section {
    background-color: var(--light-color);
    padding: 80px 0;
}

.operations-content {
    padding: 20px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.operations-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Why Choose Us Section ===== */
.why-us-section {
    padding: 80px 0;
}

.why-us-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.why-us-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(243, 183, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.why-us-icon i {
    font-size: 30px;
    color: var(--secondary-color);
}

.why-us-card h4 {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark-blue);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 80px 0;
    position: relative;
}

.ocean-bg-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url('https://pixabay.com/get/g3d57d21f42ff1edd7a9f6254255397200d02fb8a7469788a43e8977d0f25734a3e64f8717fba42608c53dfb125f9c003f5520f3072b681aa0cb77616bc906c70_1280.jpg'); */
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    position: relative;
    z-index: 1;
}

.testimonial-content {
    padding: 30px;
    position: relative;
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: rgba(13, 76, 145, 0.1);
}

.testimonial-author {
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.testimonial-author h5 {
    margin-bottom: 0;
    color: var(--dark-blue);
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--light-blue);
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 80px 0;
}

.contact-info {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: 10px;
    color: white;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-item p {
    margin-bottom: 0;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

.contact-form-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.contact-form .form-control {
    border-radius: 5px;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.contact-form label {
    font-weight: 500;
    margin-bottom: 8px;
}

/* ===== Footer ===== */
.footer-section {
    background-color: var(--dark-blue);
    color: white;
}

.footer-logo {
    height: 40px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--secondary-color);
}

/* ===== Responsive Styles ===== */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background-color: rgba(13, 76, 145, 0.95);
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-section {
        height: 80vh;
    }

    .footer-links {
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 575.98px) {
    section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .about-badge {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 20px;
        display: inline-flex;
    }
}
