/* CSS Variables for colors, shadows, and spacing */
:root {
    --bs-font-sans-serif: 'Poppins', sans-serif;

    /* Core Colors */
    --phf-primary: #1d4ed8;
    /* Strong Blue */
    --phf-secondary: #10b981;
    /* Emerald Green */

    /* Gradients */
    --phf-gradient-start-1: #06b6d4;
    /* Aqua Blue */
    --phf-gradient-end-1: #3b82f6;
    /* Indigo Blue */
    --phf-gradient-start-2: #9333ea;
    /* Purple */
    --phf-gradient-end-2: #f43f5e;
    /* Coral Pink */

    /* UI Elements */
    --phf-card-bg: #ffffff;
    --phf-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    --phf-border-radius: 1rem;
}



/* General Body & Typography */
body {
    font-family: var(--bs-font-sans-serif);
    color: #495057;
    background-color: #f8f9fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(135deg, var(--phf-gradient-start-2), var(--phf-gradient-end-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-phf {
    background: linear-gradient(135deg, var(--phf-gradient-start-2), var(--phf-gradient-end-2));
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-phf:hover {
    transform: translateY(-3px);
    box-shadow: var(--phf-shadow);
    color: white;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-padding {
    padding: 5rem 0;
}

html {
    scroll-behavior: smooth;
}

/* Navbar Styling */
.navbar-phf {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--phf-shadow);
    transition: all 0.3s ease;
}

.navbar-brand .small {
    font-size: 0.7rem;
    color: #adb5bd;
    display: block;
}

.nav-link {
    font-weight: 500;
    color: #495057;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--phf-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: linear-gradient(to right, var(--phf-gradient-start-1), var(--phf-gradient-end-1));
    transition: width 0.4s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
    background: linear-gradient(to right, var(--phf-gradient-start-1), var(--phf-gradient-end-1));
}

/* Hero Section */
#home {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("assets/banner-bg.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

#home .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0% 100%);
    z-index: 1;
}

#home .container {
    position: relative;
    z-index: 2;
}

/* Subtle Animations */
@keyframes fadeInTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#home h1 {
    animation: fadeInTop 1s forwards 0.5s;
}

#home .lead {
    animation: fadeIn 1s forwards 0.8s;
}

#home .hero-img {
    animation: scaleIn 1s forwards 1s;
}

/* About Section */
#about .about-card {
    background: var(--phf-card-bg);
    border-radius: var(--phf-border-radius);
    box-shadow: var(--phf-shadow);
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

#about .about-card.show {
    opacity: 1;
    transform: translateY(0);
}

#about .about-img {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease-out 0.3s;
}

#about .about-img.show {
    opacity: 1;
    transform: scale(1);
}

.trusted-badge {
    background: linear-gradient(to right, #e0f2fe, #d4e3f4);
    color: #3b82f6;
    font-weight: 500;
}

/* Services Section - Flip Cards */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px;
    margin-bottom: 1.5rem;
    box-shadow: var(--phf-shadow);
    border-radius: var(--phf-border-radius);
    transition: transform 0.6s;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: var(--phf-border-radius);
    box-shadow: var(--phf-shadow);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--phf-border-radius);
    background-color: var(--phf-card-bg);
}

.flip-card-front {
    background: linear-gradient(135deg, var(--phf-gradient-start-2), var(--phf-gradient-end-2));
    color: white;
}

.flip-card-front h5 {
    font-weight: 600;
    margin-top: 1rem;
}

.flip-card-front i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.flip-card-back {
    background-color: var(--phf-card-bg);
    color: #495057;
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flip-card:hover .flip-card-inner,
.flip-card.hover .flip-card-inner {
    transform: rotateY(180deg);
}

/*  */
.flip-card2 {
    background-color: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px;
    margin-bottom: 1.5rem;
    box-shadow: var(--phf-shadow);
    border-radius: var(--phf-border-radius);
    transition: transform 0.6s;
}

.flip-card-inner2 {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
    border-radius: var(--radius);
}

.flip-card2:hover .flip-card-inner2,
.flip-card2:focus .flip-card-inner2 {
    transform: rotateX(180deg);
    /* Flip top-to-bottom */
}

.flip-card-front2,
.flip-card-back2 {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--phf-border-radius);
    background-color: var(--phf-card-bg);
}

.flip-card-front2 h5 {
    font-weight: 600;
    margin-top: 1rem;
}

.flip-card-front2 i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.flip-card-front2 {
    background: linear-gradient(135deg, var(--phf-gradient-start-2), var(--phf-gradient-end-2));
    color: white;
}

.flip-card-back2 {
    transform: rotateX(180deg);
    /* Rotate back side for vertical flip */
}

/*  */

/* Why Choose Us Section */
#why-choose-us .card {
    border: none;
    box-shadow: var(--phf-shadow);
    border-radius: var(--phf-border-radius);
    transition: transform 0.3s;
    background: var(--phf-card-bg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

#why-choose-us .card.show {
    opacity: 1;
    transform: translateY(0);
}

#why-choose-us .card:hover {
    transform: translateY(-5px);
}

#why-choose-us .icon {
    font-size: 2rem;
    color: var(--phf-gradient-start-1);
    background: rgba(200, 220, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-card {
    background: linear-gradient(to right, var(--phf-gradient-start-1), var(--phf-gradient-end-1));
    color: white;
    border-radius: var(--phf-border-radius);
    padding: 2rem;
    text-align: center;
}

/* Testimonials Section */
#testimonials .carousel-item {
    padding: 2rem 4rem;
}

#testimonials .testimonial-card {
    background-color: var(--phf-card-bg);
    border-radius: var(--phf-border-radius);
    box-shadow: var(--phf-shadow);
    padding: 2rem;
    text-align: center;
}

#testimonials .testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--phf-gradient-start-1);
    margin-bottom: 1rem;
}

.star-rating {
    color: #ffc107;
    font-size: 1.2rem;
}

/* Subscribe Section */
#subscribe .card {
    background: var(--phf-card-bg);
    box-shadow: var(--phf-shadow);
    border: none;
    border-radius: var(--phf-border-radius);
    padding: 3rem 2rem;
}

/* FAQ & Privacy & Terms */
.accordion-button {
    background-color: white;
    color: var(--phf-primary);
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    color: white;
    background: linear-gradient(to right, var(--phf-gradient-start-1), var(--phf-gradient-end-1));
}

.accordion-item {
    border-radius: var(--phf-border-radius);
    overflow: hidden;
    box-shadow: var(--phf-shadow);
    border: none;
    /* Override default bootstrap border */
}

.accordion-body {
    max-height: 200px;
    overflow-y: auto;
}

/* Contact Section */
#contact .card {
    background: var(--phf-card-bg);
    box-shadow: var(--phf-shadow);
    border-radius: var(--phf-border-radius);
    border: none;
}

#contact .contact-icon {
    color: var(--phf-gradient-start-1);
    margin-right: 0.75rem;
}

.map-iframe {
    border-radius: var(--phf-border-radius);
    overflow: hidden;
    box-shadow: var(--phf-shadow);
}

/* Footer */
.footer-phf {
    background-color: #343a40;
    color: #adb5bd;
    padding-top: 4rem;
    padding-bottom: 1rem;
}

.footer-phf .social-icons a {
    color: #adb5bd;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s;
}

.footer-phf .social-icons a:hover {
    background: linear-gradient(to right, var(--phf-gradient-start-1), var(--phf-gradient-end-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-phf a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-phf a:hover {
    color: white;
}

.footer-phf ul {
    padding: 0;
    list-style: none;
}

.footer-phf ul li {
    margin-bottom: 0.5rem;
}

/* Custom modal/overlay for subscription success */
.custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.custom-overlay.show {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    background: white;
    padding: 2rem;
    border-radius: var(--phf-border-radius);
    text-align: center;
    max-width: 500px;
    box-shadow: var(--phf-shadow);
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.custom-overlay.show .overlay-content {
    transform: translateY(0);
}