/*
Theme Name: Grace Shipping HTML Converted
Theme URI: https://graceshippingqa.com
Author: Grace Shipping
Description: Custom WordPress theme converted from static HTML.
Version: 1.0
Text Domain: grace-shipping
*/

:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #00d2ff;
    --text-dark: #2b2b2b;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--bg-light);
}

html {
    scroll-behavior: smooth;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.section-padding {
    padding: 80px 0;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.5);
    color: var(--text-light);
}

.btn-outline-custom {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    transition: all 0.4s ease;
    padding: 20px 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 10px 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    margin: 0 10px;
    transition: 0.3s;
}

.navbar.scrolled .nav-link {
    color: var(--text-dark) !important;
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-color) !important;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9) 0%, rgba(42, 82, 152, 0.8) 100%), 
                url('https://images.unsplash.com/photo-1586528116311-ad8ed3c912b2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    align-items: center;
    position: relative;
}

/* Glassmorphism Cards */
.glass-bg-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    color: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.15);
}

.glass-card .icon-box {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Features/Why Choose Us */
.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(30, 60, 114, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: 0.3s;
}

.feature-box:hover .feature-icon {
    background: var(--primary-color);
    color: white;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(30,60,114,0.2);
}

/* Contact Form */
.contact-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-control, .form-select {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

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

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #b0b0b0;
    padding-top: 60px;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
}

footer a {
    color: #b0b0b0;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: var(--accent-color);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    color: white;
    transform: scale(1.1);
}

/* Form validation styles */
.is-invalid {
    border-color: #dc3545 !important;
}
.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875em;
}
.is-invalid ~ .invalid-feedback {
    display: block;
}
 /* ==========================================================================
   Global Fixes for Overlap & Menu Visibility
   ========================================================================== */
.navbar {
    z-index: 1050 !important; /* Forces the menu to sit on top of everything */
}

/* Ensure the section right below the hero has breathing room */
#about {
    position: relative;
    z-index: 10;
    
}

/* ==========================================================================
   Showcase Hero Slider Styles
   ========================================================================== */
.showcase-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-color: #0a1128;
    overflow: hidden;
    
}

.showcase-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 7s ease-out;
}

/* Slow zoom effect on the active slide */
.carousel-item.active .showcase-bg {
    transform: scale(1);
}

/* Gradients: Dark at top for the menu, dark at bottom for text readability */
.showcase-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 40%, rgba(10,20,40,0.9) 100%);
    z-index: 2;
}

/* Slider Typography & Badges */
.badge-custom {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 210, 255, 0.15);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: #00d2ff;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Staggered Content Animation */
.showcase-content {
    padding-top: 150px; /* Pushes content down so header doesn't overlap it */
}

.fade-up-1, .fade-up-2, .fade-up-3, .fade-up-4 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-item.active .fade-up-1 { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.carousel-item.active .fade-up-2 { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.carousel-item.active .fade-up-3 { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.carousel-item.active .fade-up-4 { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }

/* ==========================================================================
   Modern Right-Side Vertical Indicators
   ========================================================================== */
.showcase-indicators {
    z-index: 15;
    margin: 0;
    padding: 0;
}

.showcase-indicators button {
    width: auto !important;
    height: auto !important;
    text-indent: 0 !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.showcase-indicators button.active {
    color: #fff;
}

.showcase-indicators .num {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 700;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

/* DESKTOP: Vertical on the Right */
@media (min-width: 769px) {
    .showcase-indicators {
        position: absolute;
        top: 50%;
        right: 4%;
        left: auto;
        bottom: auto;
        transform: translateY(-50%);
        flex-direction: column;
        align-items: flex-end;
    }

    .showcase-indicators button {
        margin: 15px 0 !important;
        padding: 5px 25px 5px 0 !important; /* Space for the animated line on the right */
        justify-content: flex-end;
    }

    /* Vertical Animated Line on the Right Edge */
    .showcase-indicators button::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 3px;
        height: 0%;
        background-color: var(--accent-color);
        transition: height 0.4s ease;
    }

    .showcase-indicators button.active::after {
        height: 100%;
    }
}

/* MOBILE: Horizontal on the Bottom */
@media (max-width: 768px) {
    .showcase-indicators {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        justify-content: center;
        flex-direction: row;
    }

    .showcase-indicators button {
        margin: 0 10px !important;
        padding: 0 0 10px 0 !important;
        justify-content: center;
    }

    /* Horizontal Animated Line on the Bottom Edge */
    .showcase-indicators button::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 3px;
        background-color: var(--accent-color);
        transition: width 0.4s ease;
    }

    .showcase-indicators button.active::after {
        width: 100%;
    }
    
    .showcase-content {
        padding-top: 40px;
    }
}
/* ==========================================================================
   Image Service Cards (Home Page)
   ========================================================================== */
.service-image-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-img-wrapper {
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Image zoom effect on card hover */
.service-image-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}

/* Floating Icon between image and text */
.icon-box-floating {
    position: absolute;
    bottom: -25px; /* Pulls it halfway down into the text area */
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    transition: transform 0.4s ease;
}

.service-image-card:hover .icon-box-floating {
    transform: rotateY(180deg);
}
/* ==========================================================================
   Header & Top Bar Styles
   ========================================================================== */
.transition-all {
    transition: all 0.3s ease-in-out;
}

.hover-info:hover {
    color: var(--accent-color) !important;
    opacity: 1 !important;
}

/* Base Header (Transparent/Dark Mode) */
.header-dark {
    background: transparent;
}

/* Scrolled Header (Solid/Light Mode) */
.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Hide Top Bar smoothly on scroll */
.header-scrolled .top-bar {
    margin-top: -50px; /* Slides it up out of view */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

/* Change Navbar text colors on scroll */
.header-scrolled .navbar-brand {
    color: var(--primary-color) !important;
}
.header-scrolled .nav-link {
    color: var(--text-dark) !important;
}
.header-scrolled .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Mobile Toggle Icon fix for light background */
.header-scrolled .navbar-toggler {
    border-color: rgba(0,0,0,0.1);
}
.header-scrolled .navbar-toggler-icon {
    filter: invert(1); /* Makes the hamburger icon dark */
}
/* ==========================================================================
   Mobile Menu & Toggle Icon Fixes
   ========================================================================== */

/* 1. Fix the Toggle Icon Visibility (Before Scroll) */
.navbar-toggler {
    border: none;
    padding: 10px;
    background: rgba(255, 255, 255, 0.15) !important; /* Slight white background to make it pop */
    backdrop-filter: blur(5px);
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Ensure the hamburger lines are pure white before scrolling */
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* 2. Adjust Toggle Icon (After Scroll) */
.header-scrolled .navbar-toggler {
    background: rgba(0, 0, 0, 0.05) !important;
}

.header-scrolled .navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    filter: none; /* Removing the invert filter from previous steps */
}

/* Remove ugly focus outline */
.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--accent-color);
}

/* 3. Modern Mobile Menu Design */
@media (max-width: 991.98px) {
    /* Create a floating white card for the menu */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        padding: 20px 25px 30px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        margin-top: 10px;
        border-top: 3px solid var(--accent-color);
        z-index: 1000;
    }

    /* Style the links */
    .navbar-nav .nav-link {
        color: var(--text-dark) !important; /* Force dark text */
        font-size: 1.15rem;
        font-weight: 600;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    /* Add a nice hover/active effect */
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--primary-color) !important;
        padding-left: 10px; /* Slight indent on tap */
        border-bottom-color: var(--accent-color);
    }

    /* Remove bottom border from the last link before the button */
    .nav-item:last-of-type .nav-link {
        border-bottom: none;
    }

    /* Make the CTA button full width */
    .navbar-collapse .ms-lg-3 {
        margin-left: 0 !important;
        margin-top: 20px !important;
    }
    
    .navbar-collapse .btn-custom {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        font-size: 1.1rem;
    }
}
/* ==========================================================================
   Fix Mobile Horizontal Scroll (X-Scroll Overflow)
   ========================================================================== */
@media (max-width: 992px) {
/* Enforce strict width containment on the entire page */
html, body {
    overflow-x: hidden !important;
    max-width: 100%;
    position: relative;
    width: 100vw;
}

/* Ensure the Hero Slider and its absolute backgrounds don't bleed out */
.showcase-hero {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Prevent Bootstrap rows from causing overflow if placed outside a container */
.container, .container-fluid {
    overflow-x: hidden;
}

/* Optional: Fix for Apple devices (iOS Safari) which sometimes ignore standard overflow-x */
body {
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-x: none;
}
}
/***********Custome  Code************/
.header-scrolled .logo-head{
	width: 170px !important;
	transition: 0.5s;
}
img.logo-head {
    width: 300px;
    border-radius: 20px;
	transition: 0.5s;
}
h1.display-2 {
    line-height: 78px !important;
}
#quoteForm input, #quoteForm select {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;

    display: block;
    width: 100%;
	height:50px;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;   
}
#quoteForm textarea{
	width:100%;
	padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    height: 120px;
}