/* =============================================
   MPU ENGINEERING - MAIN STYLES
   ============================================= */

:root {
    --gold: #f2b90d;
    --navy: #1a2744;
}

/* =============================================
   ANIMATIONS & KEYFRAMES
   ============================================= */

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-up {
    animation: scaleUp 0.8s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #1f2937;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero-overlay {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(10, 25, 47, 0.7) 100%);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-gold {
    background: linear-gradient(135deg, #D4A017 0%, #f2b90d 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-gold:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(242, 185, 13, 0.4);
}

/* =============================================
   MARQUEE ANIMATION
   ============================================= */

.marquee-container {
    overflow: hidden;
    background: transparent;
}

.marquee-track {
    display: flex;
    gap: 30px;
    animation: scroll 40s linear infinite;
    width: max-content;
    padding: 20px 0;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    padding: 12px 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    white-space: nowrap;
    flex-shrink: 0;
    color: #0a192f;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* =============================================
   SECTION STYLES
   ============================================= */

.section-alt {
    background: #f8fafc;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.badge-gold {
    background: rgba(242, 185, 13, 0.1);
    border: 1px solid rgba(242, 185, 13, 0.3);
    color: #f2b90d;
}

/* =============================================
   FORM STYLES
   ============================================= */

#enquiryModal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Center Magnific Popup modals vertically */
.mfp-flex-center.mfp-wrap {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.mfp-flex-center .mfp-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mfp-flex-center .mfp-content {
    margin: 0 auto;
}

.modal-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    position: relative;
}

.modal-form .mfp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-form .mfp-close:hover {
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #f2b90d;
    box-shadow: 0 0 0 3px rgba(242, 185, 13, 0.1);
}

.error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-input.error-field {
    border-color: #dc2626;
}

.form-input.error-field ~ .error {
    display: block;
}

/* jQuery Validate error message styling */
label.error {
    color: #dc2626 !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    display: block !important;
    font-weight: 500;
}

.form-input.error-field {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

/* =============================================
   IMAGE OVERLAY
   ============================================= */

.img-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.img-overlay img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-overlay:hover img {
    transform: scale(1.1);
}

.img-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 39, 68, 0.95), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.img-overlay:hover .img-overlay-text {
    transform: translateY(0);
}

/* =============================================
   FAQ ACCORDION
   ============================================= */

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    background: white;
}

.faq-toggle {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-toggle:hover {
    background: #f8fafc;
}

.faq-toggle .icon {
    transition: transform 0.3s ease;
    font-size: 20px;
}

.faq-toggle.active .icon {
    transform: rotate(180deg);
}

.faq-content {
    display: none;
    padding: 15px 20px 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    border-top: 1px solid #f0f0f0;
}

.faq-content.show {
    display: block;
}

/* =============================================
   TESTIMONIALS
   ============================================= */

.testimonial-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.star {
    color: #f2b90d;
    font-size: 14px;
}

/* =============================================
   OWL CAROUSEL CUSTOM STYLES
   ============================================= */

.owl-carousel .owl-item img {
    display: block;
    width: 100%;
}

.owl-nav {
    margin-top: 20px;
}

.owl-nav button {
    color: #f2b90d;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 10px;
}

.owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-dot {
    height: 8px;
    width: 8px;
    margin: 0 6px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
}

.owl-dot.active {
    background: #f2b90d;
}

/* =============================================
   NAVIGATION BAR
   ============================================= */

nav {
    background-color: #1a2744;
    color: white;
    z-index: 50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #f2b90d;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
    background-color: #1a2744;
    color: white;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #f2b90d;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(135deg, rgba(10, 25, 47, 0.92) 0%, rgba(10, 25, 47, 0.85) 100%);
    }

    .modal-form {
        padding: 30px 20px;
    }

    .marquee-item {
        padding: 8px 16px;
        font-size: 12px;
    }

    nav {
        padding: 12px 16px;
    }
}

/* =============================================
   SHADOW AND EFFECTS
   ============================================= */

.shadow-gold {
    box-shadow: 0 4px 20px rgba(242, 185, 13, 0.25);
}

/* =============================================
   ENHANCED TRANSITIONS & HOVER EFFECTS
   ============================================= */

h1, h2, h3, h4, h5, h6 {
    transition: all 0.3s ease;
}


.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    animation: none;
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.marquee-item {
    transition: all 0.3s ease;
}

.marquee-item:hover {
    background: rgba(242, 185, 13, 0.1);
    border-color: #D4A017;
    transform: scale(1.05);
}

/* Smooth transitions for all links and buttons */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Form element animations */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 185, 13, 0.2);
}

/* Badge and pill animations */
.badge-gold, .marquee-item {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-gold:hover {
    transform: scale(1.08);
}


/* Icon pulse effect */
i[class*="fas fa-"] {
    transition: all 0.3s ease;
}

.card-hover:hover i {
    transform: scale(1.1);
    color: #f2b90d;
}

/* =============================================
   INTERNATIONAL TEL INPUT STYLES
   ============================================= */

.iti {
    width: 100%;
    display: block;
}

.iti--allow-dropdown input,
.iti input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.iti input:focus {
    outline: none;
    border-color: #f2b90d;
    box-shadow: 0 0 0 3px rgba(242, 185, 13, 0.1);
}

/* Prevent validation error labels from appearing inside .iti wrapper */
.iti label.error {
    display: none !important;
}

/* Ensure error span below .iti doesn't break layout when shown */
.iti + .error {
    width: 100%;
}

/* Error state border for phone input inside .iti */
.iti input.error-field {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

/* =============================================
   UTILITIES
   ============================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
}
