/* 
   Premium Modern Design System 
   Overriding defaults for a sleek, high-end corporate aesthetic
*/

:root {
    /* Color Palette */
    --primary-color: #0b2e1e;
    /* Deep elegant green */
    --accent-color: #4caf50;
    /* Vibrant brand green */
    --surface-light: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Transitions */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #f8fafc;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Base Overrides */
.bg-black {
    background-color: var(--primary-color) !important;
}

.text-white {
    color: #ffffff !important;
}

/* Navbar */
.floating-nav-container {
    position: absolute;
    width: 100%;
    z-index: 100;
}

nav.navbar.bootsnav {
    background-color: var(--surface-glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 95%;
    max-width: 1200px;
    top: 25px !important;
    position: fixed;
    transition: all 0.4s ease;
    padding-left: 20px;
    padding-right: 20px;
}

nav.bootsnav .navbar-brand {
    padding-top: 8px;
    /* Alignment for the logo */
    margin-left: 20px !important;
}

nav.bootsnav ul.nav.navbar-right {
    margin-right: 20px !important;
}

nav.bootsnav ul.nav>li>a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    padding: 20px 18px;
    transition: var(--transition-smooth);
}

nav.bootsnav ul.nav>li>a:hover,
nav.bootsnav ul.nav>li.active>a {
    color: var(--accent-color) !important;
    transform: translateY(0px);
}

/* Home Section Background Engine */
.creative-hero {
    position: relative;
    overflow: hidden;
}

.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/teset1.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
    animation: kenBurns 12s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15) rotate(0.5deg);
    }
}

.creative-hero .overlay {
    background: radial-gradient(circle at center, rgb(11, 46, 30) 0%, rgba(6, 24, 15, 0.85) 100%);
    z-index: 1;
    animation: breathGradient 5s infinite alternate ease-in-out;
}

@keyframes breathGradient {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

.creative-hero .container {
    position: relative;
    z-index: 5;
    padding-top: 50px;
    padding-bottom: 80px;
}

/* Background Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.95;
    animation: floatOrb 15s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: #205c3b;
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #81c784;
    top: 40%;
    left: 40%;
    animation-duration: 20s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(80px, 50px) scale(1.15);
    }
}

#home h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#home h4 {
    font-weight: 400;
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Buttons */
.btn-premium,
.btn-primary {
    background-color: var(--accent-color);
    color: white !important;
    padding: 16px 40px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    border: 2px solid var(--accent-color);
    display: inline-block;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

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

.btn-premium:hover,
.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-premium:hover i,
.btn-primary:hover i {
    transform: translateX(5px);
}

/* Modern Services Section */
.modern-services {
    margin-top: 40px;
}

.premium-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.premium-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition-smooth);
}

.icon-wrapper i {
    color: var(--accent-color);
}

.icon-wrapper.fuel-icon {
    background: rgba(239, 68, 68, 0.1);
}

.icon-wrapper.fuel-icon i {
    color: #ef4444;
}

.premium-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.info-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    text-align: center;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Generic Section Titles */
.head_title h2 {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.head_title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* History / Images fixes */
.port_img img {
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.port_item:hover .port_img img {
    transform: scale(1.05);
}

/* Contact form update */
.form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 15px 20px;
    height: auto;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    background-color: #f8fafc;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

label {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main);
}

/* Modern Preloader */
#loading {
    background-color: var(--primary-color) !important;
}

.modern-loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spinLoader 1s ease-in-out infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -30px;
    margin-top: -30px;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.4);
}

@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

/* Global Standard Section Padding */
.section-padding {
    padding: 150px 0 !important;
}

/* Footer Premium Overrides */
.footer.bg-black {
    background-color: var(--primary-color) !important;
}

.main_footer.bg-mega {
    background-color: #06180f !important;
    /* Extremely dark green almost black for contrast */
    border-top: 1px solid rgba(76, 175, 80, 0.15);
    /* Subtle brand green border */
}

/* Footer Typography Visibility Override */
.footer p,
.footer a,
.footer i,
.footer .widget_ab_item_text p,
.main_footer p {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: var(--transition-smooth);
}

.footer a:hover {
    color: var(--surface-light) !important;
}

/* MVV Section Hover Effects */
#MVV .premium-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#MVV .premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(11, 46, 30, 0.12) !important;
}

#MVV .premium-card i {
    transition: transform 0.5s ease;
}

#MVV .premium-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Equal Height Service Cards */
.modern-services {
    display: flex;
    flex-wrap: wrap;
}

.modern-services>[class*='col-'] {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.modern-services .premium-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-services .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.modern-services .info-card {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.modern-services .info-card h4 {
    min-height: 3em;
    /* Ensures titles align even with different line counts */
    display: flex;
    align-items: center;
}

.modern-services .info-card p {
    margin-top: auto;
    color: var(--text-muted);
}

/* ==========================================================================
   Mobile Responsiveness (Media Queries)
   ========================================================================== */

@media (max-width: 991px) {

    /* Navbar Mobile Fixes */
    nav.navbar.bootsnav {
        width: 100%;
        max-width: none;
        border-radius: 0;
        top: 0 !important;
        padding: 10px 0;
    }

    nav.bootsnav .navbar-brand {
        margin-left: 15px !important;
    }

    .navbar-header {
        padding: 0 15px;
    }

    .navbar-toggle {
        color: var(--primary-color) !important;
        font-size: 24px;
        margin-top: 15px;
        margin-right: 15px;
        background: transparent !important;
        border: none !important;
    }

    .navbar-collapse {
        background: white;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }

    nav.bootsnav ul.nav>li>a {
        padding: 15px 25px !important;
        border-bottom: 1px solid #f8fafc;
        color: var(--text-main) !important;
    }

    nav.bootsnav ul.nav>li.active>a {
        background: #f0fdf4 !important;
        color: var(--accent-color) !important;
    }

    /* Hero Section Scaling */
    #home h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    #home h4 {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .creative-hero .container {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    /* Section Spacing Adjustments */
    .section-padding {
        padding: 80px 0 !important;
    }

    /* About Us Grid Stack */
    .main_features {
        display: block !important;
        padding-bottom: 40px !important;
    }

    .about-image {
        margin-bottom: 50px !important;
    }

    /* MVV and Services */
    #MVV .col-md-4,
    .modern-services .col-md-6 {
        margin-bottom: 30px;
    }

    .premium-card {
        padding: 30px 20px;
    }
}

@media (max-width: 575px) {
    #home h1 {
        font-size: 2rem;
    }

    .hero-bg-anim {
        animation-duration: 8s;
        /* Slightly faster on small screens */
    }

    nav.bootsnav .navbar-brand img {
        max-width: 140px;
    }
}

/* Contact Form Alerts */
.alert-success-premium,
.alert-danger-premium {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success-premium {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger-premium {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success-premium i,
.alert-danger-premium i {
    font-size: 20px;
}

/* Contact Form Layout Refinement */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

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

@media (max-width: 767px) {
    .card-body {
        padding: 30px 20px !important;
    }

    .form-group {
        margin-bottom: 15px;
    }
}