/* Custom Styles for MoyoMovers */

/* Variables */
:root {
    --primary: #1a3a6c; /* Dark blue color */
    --secondary: #6c757d;
    --warning: #ffc107;
    --dark: #212529;
    --light: #f8f9fa;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* General Styles */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Top Bar */
.top-bar {
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    position: relative;
}

.hero-video-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-video-container video {
    object-fit: cover;
    height: 100%;
}

.hero-video-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    width: 100%;
    z-index: 1;
}

.hero-content h1 {
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
    font-size: 1.4rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Service Cards */
.card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

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

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-footer {
    padding: 1rem 1.5rem;
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.service-badge .badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* How It Works Section */
.how-it-works .rounded-circle {
    width: 120px;
    height: 120px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works .col-md-3:hover .rounded-circle {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Testimonials */
.testimonials .card {
    border-radius: 1rem;
}

.testimonials .carousel-control-prev-icon,
.testimonials .carousel-control-next-icon {
    width: 50px;
    height: 50px;
    padding: 15px;
    border-radius: 50%;
}

/* App Download Section */
.app-download {
    background: linear-gradient(135deg, var(--primary) 0%, #0f2342 100%);
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.app-download .btn {
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
}

/* Moving Help and Equipment Sections */
.moving-help, .equipment {
    overflow: hidden;
}

.moving-help img, .equipment img {
    transition: transform 0.5s ease;
}

.moving-help:hover img, .equipment:hover img {
    transform: scale(1.05);
}

/* Service Table */
.all-services .table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.all-services th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Enhancements */
footer {
    border-top: 5px solid var(--primary);
}

footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        height: 70vh;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .how-it-works .rounded-circle {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .moving-help .btn, .equipment .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    /* Hide the top bar completely */
    .top-bar {
        display: none !important;
    }
    
    /* Additional rule to ensure it's hidden */
    @media screen and (max-width: 576px) {
        body .top-bar {
            display: none !important;
            visibility: hidden !important;
            height: 0 !important;
            overflow: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
    }
    
    /* Navbar brand (logo) - make it MoyoMovers text */
    .navbar-brand {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 18px !important;
        font-weight: bold !important;
        color: white !important;
        text-decoration: none !important;
    }
    
    /* Show the text MoyoMovers instead of the logo image */
    .navbar-brand::before {
        content: "MoyoMovers" !important;
    }
    
    .navbar-brand img {
        display: none !important;
    }
    
    /* Tighten up the button container */
    .navbar .d-flex.order-lg-last {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Make buttons more compact */
    .navbar .btn-sm {
        font-size: 12px !important;
        padding: 3px 6px !important; /* Reduce horizontal padding */
        margin-right: 3px !important; /* Reduce margin between buttons */
        border-radius: 3px !important;
        line-height: 1.2 !important;
    }
    
    /* Make hamburger menu more compact */
    .navbar-toggler {
        padding: 0 !important;
        width: 28px !important; /* Smaller width */
        height: 28px !important; /* Smaller height */
        margin-left: 3px !important; /* Less margin */
        border: 1px solid rgba(255,255,255,0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .navbar-toggler-icon {
        width: 1em !important; /* Smaller icon */
        height: 1em !important;
    }
    
    /* Tighten container padding */
    .navbar .container {
        padding: 0 8px !important; /* Less padding */
    }
    
    /* Hero section - exact match */
    .hero-section {
        height: auto !important;
        min-height: 250px !important;
        background-color: #555 !important;
    }
    
    .hero-content {
        text-align: center !important;
        padding: 30px 20px !important;
    }
    
    .hero-content h1 {
        font-size: 24px !important;
        margin-bottom: 10px !important;
        font-weight: 600 !important;
    }
    
    .hero-content .lead {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    .hero-content .btn-lg {
        width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important;
        margin-bottom: 0 !important;
        text-transform: uppercase !important;
        font-weight: bold !important;
        background-color: #ffc107 !important;
        color: #212529 !important;
        border: none !important;
    }
    
    /* Hide the second button on mobile */
    .hero-content .btn-outline-light {
        display: none !important;
    }
    
    /* Hide video on mobile */
    .hero-video-container video {
        display: none !important;
    }
    
    /* Services section styling */
    .services h2 {
        font-size: 20px !important;
        margin-top: 20px !important;
    }
    
    .services .lead {
        font-size: 14px !important;
    }
    
    /* Ensure logo image is visible on mobile */
    .navbar-brand img {
        display: inline-block !important;
        height: 30px !important;
    }
    
    /* Remove any text that might be showing */
    .navbar-brand::before,
    .navbar-brand::after {
        content: none !important;
        display: none !important;
    }
    
    /* Override any other styles that might be hiding the image */
    .navbar-brand {
        font-size: 0 !important; /* Hide any text */
        display: flex !important;
        align-items: center !important;
    }
}

/* Add these custom styles to enhance the design */

/* Custom button styles */
.btn-warning {
    color: var(--dark);
    font-weight: 600;
    border: none;
}

.btn-warning:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    font-weight: 600;
    border: none;
}

.btn-primary:hover {
    background-color: #15305d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced section styling */
section {
    position: relative;
    padding: 5rem 0;
}

section:not(.bg-light):not(.bg-primary) {
    background-color: #ffffff;
}

/* Improved table styling */
.table {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table th {
    background-color: var(--primary);
    color: white;
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Enhanced testimonial styling */
.testimonials .card {
    border: none;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.testimonials .rounded-circle {
    border: 3px solid var(--primary);
}

/* Animated features */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px);
    color: var(--primary);
}

/* Improved mobile experience */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Ensure the hero content stays centered */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Fix any potential horizontal scrolling issues */
body {
    overflow-x: hidden;
}

/* Adjust navbar container for better spacing */
.navbar .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Navbar styling updates */
.navbar {
    background: linear-gradient(to right, #1a3a6c, #2c5282) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

/* Remove container padding in navbar */
.navbar > .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

/* Fix logo spacing */
.navbar-brand {
    margin-left: 15px;
}

/* Fix button spacing */
.navbar .d-flex.order-lg-last {
    margin-right: 15px;
}

/* Standard container */
.container {
    max-width: 1320px;
    margin: 0 auto;
}

/* Navbar styling updates */
.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 1rem;
    padding: 0;
}

.navbar-brand span {
    color: white;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar .nav-item:hover .nav-link {
    color: var(--warning);
}

/* Make top bar visible on mobile */
@media (max-width: 768px) {
    .top-bar {
        display: block !important;
        font-size: 0.75rem;
    }
    
    .top-bar .container {
        flex-direction: column;
        align-items: center;
    }
    
    .top-bar .d-flex:first-child {
        margin-bottom: 0.5rem;
    }
}

/* Remove any potential container padding in header elements */
.top-bar .container,
.navbar .container {
    width: 100%;
    max-width: 1320px; /* Bootstrap default container max-width */
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Fix for any potential html margin */
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header refinements for desktop */
@media (min-width: 992px) {
    .navbar .container {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        margin-right: 2rem;
    }
    
    .navbar .nav-link {
        padding: 0.5rem 1.25rem;
        margin: 0 0.25rem;
        transition: all 0.3s ease;
    }
    
    .navbar .nav-item:hover .nav-link {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: var(--border-radius);
        padding: 1rem 0;
        margin-top: 0.5rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 1.5rem;
        transition: all 0.2s ease;
    }
    
    .dropdown-item:hover {
        background-color: rgba(26, 58, 108, 0.05);
        color: var(--primary);
    }
}

/* Service content alignment improvements */
.card-body {
    display: flex;
    flex-direction: column;
}

.card-text {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card-body .d-flex {
    justify-content: space-between;
    width: 100%;
}

/* Make service cards equal height */
.services .row {
    display: flex;
    flex-wrap: wrap;
}

.services .col-md-6,
.services .col-lg-4 {
    display: flex;
}

.services .card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Improve service table for better readability */
.table th {
    white-space: nowrap;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

/* Add subtle divider between sections */
section:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Improve button consistency */
.btn {
    letter-spacing: 0.5px;
    font-weight: 600;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Add subtle animation to CTA buttons */
.btn-warning, .btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-warning:before, .btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-warning:hover:before, .btn-primary:hover:before {
    left: 0;
}

/* Update other elements that use the primary color */
.how-it-works .rounded-circle i,
.equipment .rounded-circle i,
.feature-item:hover .feature-icon {
    color: var(--primary);
}

/* Center the navigation items */
.navbar-collapse {
    justify-content: center;
}

/* Adjust mobile view */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary);
        z-index: 1000;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
}

/* Reset navbar container */
.navbar .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Reset navbar */
.navbar {
    background: linear-gradient(to right, #1a3a6c, #2c5282) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

/* Reset navbar brand */
.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 1rem;
    padding: 0;
}

/* Reset top bar */
.top-bar {
    font-size: 0.85rem;
}

/* Reset hero section */
.hero-section {
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    position: relative;
}

/* Reset hero video container */
.hero-video-container {
    height: 100%;
    width: 100%;
    position: relative;
}

/* Fix for mobile navigation toggle button */
.navbar-toggler {
    padding: 0.25rem !important;
    font-size: 1rem !important;
    border: none !important;
    margin-left: 0.5rem !important;
}

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