/* Custom CSS for Vehicle Shipping Company Website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
    --primary-color: #1C2C43;
    --secondary-color: #55A7D9;
    --accent-color: #4a96c4;
    --text-color: #363636;
    --text-light: #7a7a7a;
    --background-light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Bulma Overrides */
.has-text-primary {
    color: var(--primary-color) !important;
}

.is-primary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.is-primary:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

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

/* Navigation Styles */
.navbar {
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar-brand img {
    max-height: 80px; /* Increased from 60px for more prominence */
    width: auto;
}

.navbar-item {
    font-weight: 500;
    transition: var(--transition);
}

.navbar-item:hover {
    background-color: var(--background-light) !important;
    color: var(--secondary-color) !important;
}

.navbar-item.is-active {
    color: var(--secondary-color) !important;
    background-color: var(--background-light) !important;
}

.navbar-burger {
    color: var(--primary-color);
}

.navbar-burger:hover {
    background-color: var(--background-light);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background-attachment: fixed; /* Parallax effect */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    background-color: #1C2C43; /* Dark blue background */
}

.hero-with-bg {
    background-image: url('images/hero1.webp');
    background-color: #1C2C43; /* Dark blue background */
    background-blend-mode: overlay; /* Creates 50% transparency effect */
}

.hero-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 44, 67, 0.5); /* 50% transparent dark blue overlay */
    z-index: 1;
}

.hero-with-bg .hero-body {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
}

.hero-about {
    background-image: url('images/about.webp');
    background-color: #1C2C43; /* Dark blue background */
    background-blend-mode: overlay; /* Creates 50% transparency effect */
}

.hero-services {
    background-image: url('images/service1.webp');
    background-color: #1C2C43; /* Dark blue background */
    background-blend-mode: overlay; /* Creates 50% transparency effect */
}

.hero .title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Stronger shadow */
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Stronger shadow */
    margin-bottom: 2rem;
}

/* Section Styles */
.section {
    padding: 4rem 1.5rem;
}

.section .title {
    margin-bottom: 1rem;
}

.section .subtitle {
    margin-bottom: 3rem;
    text-align: left;
}

/* Card Styles */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-content {
    padding: 1.5rem;
}

.card .title {
    margin-bottom: 0.75rem;
}

.card .subtitle {
    margin-bottom: 0;
}

/* Box Styles */
.box {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
    padding: 2rem;
}

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

.box .icon {
    margin-bottom: 1rem;
}

/* Button Styles */
.button {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.button .icon {
    margin-right: 0.5rem;
}

/* Form Styles */
.field {
    margin-bottom: 1.5rem;
}

.label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.input, .select select, .textarea {
    border-radius: var(--border-radius);
    border: 2px solid #dbdbdb;
    transition: var(--transition);
}

.input:focus, .select select:focus, .textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.125em rgba(85, 167, 217, 0.25);
}

.control.has-icons-left .icon {
    color: var(--secondary-color);
}

/* Contact Information */
.contact-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Service Features */
.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.feature-icon-small {
    width: 16px;
    height: 16px;
}

/* Footer */
.footer {
    padding: 3rem 1.5rem 1.5rem;
    background-color: #55A7D9 !important;
}

.footer .has-text-light {
    color: #000000 !important;
}

.footer .buttons {
    margin-bottom: 2rem;
}

.footer .button {
    margin: 0 0.25rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    
    .hero .title {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.125rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .box {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    /* Disable parallax on mobile for better performance */
    .hero {
        background-attachment: scroll;
    }
    
    /* Services layout - stack on mobile */
    .columns.is-multiline .column.is-6 {
        flex: none;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 2rem 1rem;
    }
    
    .hero .title {
        font-size: 1.75rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .buttons.is-centered {
        flex-direction: column;
        align-items: center;
    }
    
    .buttons.is-centered .button {
        margin: 0.25rem 0;
        width: 100%;
        max-width: 300px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.is-loading::after {
    content: '';
    position: absolute;
    top: calc(50% - 0.5em);
    left: calc(50% - 0.5em);
    width: 1em;
    height: 1em;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    border-right-color: transparent;
    animation: spinAround 0.5s infinite linear;
}

@keyframes spinAround {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.button:focus,
.input:focus,
.select select:focus,
.textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .button {
        display: none !important;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card,
    .box {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
