/* Custom CSS for Mascot Freight Movers */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f97316;
    --orange-color: #f97316;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --white-color: #ffffff;
    --gray-color: #6b7280;
    --success-color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

/* Custom Bootstrap Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
}

.btn-orange {
    background-color: var(--orange-color);
    border-color: var(--orange-color);
    color: white;
}

.btn-orange:hover {
    background-color: #ea580c;
    border-color: #ea580c;
    color: white;
}

.text-orange {
    color: var(--orange-color) !important;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--orange-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%), url('../images/cargo-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.85), rgba(30, 64, 175, 0.75));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-stats {
    animation: fadeInRight 1s ease-out 0.5s both;
}

/* Hero Image Carousel Styles */
.hero-carousel {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 58, 138, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.carousel-btn:hover {
    background: rgba(30, 58, 138, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Dots Indicator */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--orange-color);
    transform: scale(1.2);
}

/* Stats Overlay */
.hero-stats-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 15;
}

.stats-content {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-content .stat-item h4 {
    font-size: 1.5rem;
}

.stats-content .stat-item .small {
    font-size: 0.8rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Section Styles */
.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--orange-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about-content {
    padding: 2rem 0;
}

.feature-item {
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Services Section */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card.with-image {
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.service-card.with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(249, 115, 22, 0.75));
    z-index: 1;
}

.service-card.with-image > * {
    position: relative;
    z-index: 2;
}

/* Individual service background images */
.service-air-freight {
    background-image: url('../images/air-1.jpg');
}

.service-sea-freight {
    background-image: url('../images/cargo-1.jpg');
}

.service-custom-clearing {
    background-image: url('../images/air-2.jpg');
}

.service-cargo-handling {
    background-image: url('../images/cargo-2.jpg');
}

.service-freight-forwarding {
    background-image: url('../images/air-3.jpg');
}

.service-agency {
    background-image: url('../images/air-4.jpg');
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    border-top-color: var(--orange-color);
}

.service-card.with-image:hover::before {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(249, 115, 22, 0.8));
}

.service-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.service-card:hover .service-icon i {
    color: var(--orange-color);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Partners Section */
.partner-list .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
}

/* Clients Section */
.client-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.client-card h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Quote Section */
.quote-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    margin-bottom: 1rem;
}

.quote-form .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.quote-form .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--orange-color);
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
    color: white;
}

.quote-form select.form-control {
    color: white;
}

.quote-form select.form-control option {
    color: var(--dark-color);
}

/* Contact Form and Form Status Styles */
.contact-form {
    position: relative;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-status.show {
    opacity: 1;
    transform: translateY(0);
}

.form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.form-status.loading {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.slide-in-right {
    transform: translateX(30px);
}

.scroll-reveal.slide-in-left {
    transform: translateX(-30px);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Button Magnetic Effect */
.magnetic {
    position: relative;
    transition: all 0.3s ease;
}

.magnetic:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.magnetic:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Form Loading State */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-loading .btn {
    opacity: 0.7;
}

/* Form validation styles for quote form in white section */
.quote-form .form-control.is-valid {
    border-color: #10b981;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='m2.3 6.73.8-.92 2.2-2.57'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
}

.quote-form .form-control.is-invalid {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m6 3v4'/%3e%3cpath d='m6 8.5v.5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
}

/* Contact Section */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--orange-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    color: white;
    font-size: 2rem;
}

.contact-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-email {
    background: var(--light-color);
    padding: 3rem;
    border-radius: 15px;
}

/* Contact Form Section Styles */
.contact-form-section {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form-section h4 {
    color: var(--primary-color);
    text-align: center;
}

.contact-form-section .form-control {
    background: white;
    border: 2px solid #e5e7eb;
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form-section .form-control::placeholder {
    color: var(--gray-color);
}

.contact-form-section .form-control:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
    color: var(--dark-color);
}

.contact-form-section .form-control.is-valid {
    border-color: #10b981;
}

.contact-form-section .form-control.is-invalid {
    border-color: #ef4444;
}

.contact-form-section .form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
}

.contact-form-section .form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.contact-form-section .form-status.loading {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--orange-color) !important;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
    color: white;
    font-size: 1.8rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card,
    .contact-card,
    .client-card {
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        margin-top: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Carousel Responsive Styles */
    .hero-carousel {
        height: 300px;
        margin-top: 2rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .hero-stats-overlay {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        text-align: center;
    }
    
    .stats-content {
        display: inline-block;
    }
    
    .carousel-dots {
        bottom: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .contact-email {
        padding: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand span {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-icon i,
    .contact-icon i {
        font-size: 2rem;
    }
    
    /* Mobile Carousel Styles */
    .hero-carousel {
        height: 250px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .stats-content .stat-item h4 {
        font-size: 1.2rem;
    }
    
    .stats-content .stat-item .small {
        font-size: 0.7rem;
    }
    
    .hero-stats-overlay .stats-content {
        padding: 0.5rem !important;
    }
    
    .feature-item,
    .service-card,
    .contact-card {
        padding: 1.5rem;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn i {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .hero-section,
    #quote {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        font-size: 12pt;
    }
    
    .section-title {
        color: black !important;
    }
    
    .service-card,
    .contact-card,
    .client-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-section {
        background: black;
        color: white;
    }
    
    .service-card,
    .contact-card,
    .client-card {
        border: 2px solid black;
    }
    
    .btn-primary,
    .btn-orange {
        border: 2px solid white;
    }
}

/* International Tel Input Styles */
.iti {
    width: 100%;
}

.iti__country-list {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    z-index: 1060;
}

.iti__country {
    padding: 8px 12px;
    transition: background-color 0.2s ease;
}

.iti__country:hover {
    background-color: var(--light-color);
}

.iti__country.iti__highlight {
    background-color: var(--primary-color);
    color: white;
}

.iti__flag-box {
    margin-right: 8px;
}

.iti__search-input {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin: 8px;
    width: calc(100% - 16px);
}

/* Quote form phone input styling */
.quote-form .iti__tel-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

.quote-form .iti__tel-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.quote-form .iti__tel-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--orange-color);
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
    color: white;
    outline: none;
}

.quote-form .iti__selected-flag {
    background: rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.3);
    border-radius: 0.375rem 0 0 0.375rem;
}

.quote-form .iti__selected-flag:hover {
    background: rgba(255,255,255,0.15);
}

.quote-form .iti__arrow {
    border-top-color: rgba(255,255,255,0.7);
}

/* Contact form phone input styling */
.contact-form-section .iti__tel-input {
    background: white;
    border: 2px solid #e5e7eb;
    color: var(--dark-color);
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form-section .iti__tel-input::placeholder {
    color: var(--gray-color);
}

.contact-form-section .iti__tel-input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
    color: var(--dark-color);
    outline: none;
}

.contact-form-section .iti__selected-flag {
    background: white;
    border-right: 1px solid #e5e7eb;
    border-radius: 8px 0 0 8px;
}

.contact-form-section .iti__selected-flag:hover {
    background: #f9fafb;
}

.contact-form-section .iti__arrow {
    border-top-color: var(--gray-color);
}

/* Validation styles for intl-tel-input */
.iti.iti--allow-dropdown.is-valid .iti__tel-input {
    border-color: #10b981;
}

.iti.iti--allow-dropdown.is-invalid .iti__tel-input {
    border-color: #ef4444;
}

/* Error message styling */
.phone-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.quote-form .phone-error {
    color: rgba(239, 68, 68, 0.9);
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .iti__country-list {
        max-height: 150px;
    }
    
    .iti__selected-flag {
        padding: 0 8px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .service-card,
    .contact-card,
    .client-card,
    .hero-stats {
        background: #374151;
        color: white;
    }
    
    .bg-light {
        background-color: #1f2937 !important;
    }
}
