/*
======================================================================================================
COLOR PALETTE
======================================================================================================
Primary/Accent: Deep Indigo/Teal/Gold
--ft-primary-indigo: #1e3a8a;
--ft-secondary-teal: #14b8a6;
--ft-dark-teal: #0d9488;
--ft-gold: #f59e0b;
--ft-light-subtle: #f8fafc;
--ft-dark-bg: #1f2937; /* Dark background for footer / contrast sections */
*/

/* Custom Gradient Utilities */
.text-gold {
    color: var(--ft-gold) !important;
}

.bg-teal-dark {
    background-color: var(--ft-dark-teal) !important;
}

/*
======================================================================================================
GENERAL STYLES & TYPOGRAPHY
======================================================================================================
*/
:root {
    --ft-primary-indigo: #1e3a8a;
    --ft-secondary-teal: #14b8a6;
    --ft-dark-teal: #0d9488;
    --ft-gold: #f59e0b;
    --ft-dark-bg: #1f2937;
    --ft-light-subtle: #f8fafc;
    --ft-text-color: #333;
    --ft-link-hover-color: var(--ft-gold);

    /* Animation config for prefers-reduced-motion */
    --animation-duration: 0.5s;
}

/* Base font and color */
body {
    font-family: 'Inter', sans-serif; /* Recommended modern font */
    color: var(--ft-text-color);
}

/*
======================================================================================================
NAVBAR STYLING
======================================================================================================
*/
.logo-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--ft-secondary-teal), var(--ft-primary-indigo));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 8px; /* Subtle rounding */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: background-color 0.4s ease-in-out, padding 0.4s ease-in-out;
    background-color: transparent;
}

.navbar-scrolled {
    background-color: var(--ft-primary-indigo) !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active-link {
    color: var(--ft-gold) !important;
}

/* Hover Underline Effect */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--ft-secondary-teal);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease-in-out;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active-link::after {
    width: 100%;
}

/* Dropdown Menu Style */
.dropdown-menu-dark {
    background-color: var(--ft-primary-indigo);
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-item:hover {
    background-color: var(--ft-dark-teal);
    color: var(--ft-gold);
}

/*
======================================================================================================
HERO SECTION
======================================================================================================
*/
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--ft-primary-indigo); /* Fallback */
}

/* Multicolor Animated Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 400%; /* Larger to accommodate movement */
    height: 400%;
    background: 
        radial-gradient(circle at 10% 20%, #1e3a8a 0%, #14b8a6 25%, #f59e0b 50%, #1e3a8a 75%, #14b8a6 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite alternate;
    opacity: 0.7;
    z-index: 1;
}

@keyframes gradient-shift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Final dark overlay for text readability */
    z-index: 2;
}

.hero-section > .container-xl {
    position: relative;
    z-index: 3;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 600px;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.floating-card {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

/* Blurred Badges */
.badge-blur {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    width: fit-content;
    min-width: 150px;
    text-align: center;
}

.badge-blur:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5); /* Gold glow on hover */
}

.badge-blur:nth-child(1) { animation: float 5s ease-in-out infinite 0s; }
.badge-blur:nth-child(2) { animation: float 5.5s ease-in-out infinite 0.5s; }
.badge-blur:nth-child(3) { animation: float 6s ease-in-out infinite 0s; }
.badge-blur:nth-child(4) { animation: float 5s ease-in-out infinite 1s; }


/*
======================================================================================================
BUTTONS (Gradient and Animation)
======================================================================================================
*/
.btn-gradient-primary {
    background: linear-gradient(90deg, var(--ft-secondary-teal) 0%, var(--ft-primary-indigo) 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

.btn-gradient-primary:hover,
.btn-gradient-primary:focus {
    background: linear-gradient(90deg, var(--ft-dark-teal) 0%, var(--ft-primary-indigo) 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.6);
}

.btn-gradient-secondary {
    background: linear-gradient(90deg, var(--ft-gold) 0%, #cc8400 100%);
    border: none;
    color: var(--ft-dark-bg);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-gradient-secondary:hover,
.btn-gradient-secondary:focus {
    background: linear-gradient(90deg, #cc8400 0%, var(--ft-gold) 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
    color: white;
}

/* CTA Icon Animation */
.cta-btn:hover .cta-icon {
    transform: translateX(5px) rotate(5deg);
    transition: transform 0.3s ease-in-out;
}

/*
======================================================================================================
ABOUT SECTION
======================================================================================================
*/
/* Floating Image container */
.about-img-container {
    /* REPLACE IMAGE URL HERE */
    background-image: url('images/a.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    min-height: 300px; /* Ensure visibility on smaller screens */
    animation: float 6s ease-in-out infinite 0.5s;
    will-change: transform;
}

/*
======================================================================================================
SERVICES SECTION
======================================================================================================
*/
.service-card {
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

/* Card Hover Effect: Lift and Shadow */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon-box {
    color: var(--ft-primary-indigo);
    background-color: var(--ft-light-subtle);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.5s ease;
}

/* Icon Animation on Card Hover */
.service-card:hover .service-icon-box {
    background-color: var(--ft-gold);
    color: white;
    transform: rotate(15deg);
}

.service-detail-card {
    background-color: var(--ft-light-subtle);
    border-top: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

/* Icon entry animation (subtle pop) */
.service-detail-card i {
    transition: transform 0.3s ease-out;
}

.service-card:hover .service-detail-card i {
    transform: scale(1.1);
}

.services-premium {
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
}

/* Card */
.service-card-premium {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.35s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* Hover Glow Effect */
.service-card-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(0, 123, 255, 0.15), transparent);
    transition: 0.6s;
}

.service-card-premium:hover::before {
    left: 100%;
}

.service-card-premium:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Icon */
.service-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
}

/* Title */
.service-card-premium h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Text */
.service-card-premium p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}

/* Service List */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list span {
    font-size: 14px;
    color: #374151;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

.service-list span:hover {
    color: #2563eb;
    padding-left: 5px;
}

.service-list span:last-child {
    border-bottom: none;
}

/*
======================================================================================================
TESTIMONIAL SECTION
======================================================================================================
*/
.testimonial-img {
    /* REPLACE IMAGE URL HERE */
    background-image: url('images/Happy\ Clients\ Say.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    min-height: 350px;
}

/* Modal Styling */
.modal-content-custom {
    background-color: var(--ft-dark-bg);
    color: white;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.testimonial-item-modal {
    /* Base for animation delay */
    opacity: 0;
}

/* Custom testimonial entrance animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.testimonial-item-modal.animate__fadeInUp {
    animation-name: fadeInUp;
    animation-duration: var(--animation-duration); /* Default duration */
    animation-fill-mode: both;
}

/* Apply staggered delay for subtle per-testimonial animation */
.testimonial-item-modal:nth-child(1) { animation-delay: 0.1s; }
.testimonial-item-modal:nth-child(2) { animation-delay: 0.3s; }
.testimonial-item-modal:nth-child(3) { animation-delay: 0.5s; }
.testimonial-item-modal:nth-child(4) { animation-delay: 0.7s; }

/*
======================================================================================================
FAQ SECTION (Accordion)
======================================================================================================
*/
.accordion-button {
    background-color: white !important;
    color: var(--ft-text-color) !important;
    transition: background-color 0.3s, color 0.3s;
}

.accordion-button:not(.collapsed) {
    background-color: var(--ft-light-subtle) !important;
    color: var(--ft-primary-indigo) !important;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Accordion Answer Animation (Slide/Fade In) */
.accordion-collapse {
    transition: height var(--animation-duration) ease-in-out, opacity var(--animation-duration) ease-in-out;
    opacity: 0;
}

/* Custom class added by JS on 'show.bs.collapse' event */
.accordion-collapse.accordion-animate-in {
    opacity: 1;
}

.faq-body {
    border-left: 3px solid var(--ft-secondary-teal);
    padding-left: 1.5rem;
}

/*
======================================================================================================
FORMS (Contact/Newsletter)
======================================================================================================
*/
/* Ensure form inputs look good on dark backgrounds */
#contact .form-control, 
#contact .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s;
}

#contact .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#contact .form-control:focus, 
#contact .form-select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--ft-gold);
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.3);
}

/* Newsletter (white background) */
#newsletter .form-control:focus, 
#newsletter .form-select:focus {
    border-color: var(--ft-primary-indigo);
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.3);
}
#contactService option {
    background-color: #000;            /* Black background for options */
    color: #fff;                        /* White text for options */
}

/*
======================================================================================================
FOOTER
======================================================================================================
*/
.footer-gradient {
    /* Complementary dark gradient */
    background: linear-gradient(135deg, var(--ft-dark-bg) 0%, #17202b 100%);
}

.footer-logo {
    background: linear-gradient(135deg, var(--ft-gold), var(--ft-secondary-teal));
}

.footer-link-hover {
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
    line-height: 2;
}

.footer-link-hover:hover {
    color: var(--ft-gold) !important;
    opacity: 1;
}

.border-gold {
    border-color: rgba(245, 158, 11, 0.3) !important;
}

/*
======================================================================================================
ACCESSIBILITY: prefers-reduced-motion
======================================================================================================
*/
@media (prefers-reduced-motion: reduce) {
    /* Disable floating animations */
    .floating-card, 
    .floating-image, 
    .badge-blur {
        animation: none !important;
        transform: none !important;
    }
    
    /* Simplify button hover */
    .btn-gradient-primary:hover,
    .btn-gradient-secondary:hover {
        transform: none;
    }

    /* Simplify hero background */
    .hero-section::before {
        animation: none;
        background-image: linear-gradient(to right bottom, #1e3a8a, #14b8a6);
        background-size: 100% 100%;
    }

    /* Simplify transitions */
    :root {
        --animation-duration: 0s;
    }

    /* Remove testimonial modal animation */
    .testimonial-item-modal.animate__fadeInUp {
        animation: none;
        opacity: 1;
    }
}