/*
* PayHR - Payroll & HR SaaS Landing Page
* Main Stylesheet
*/

/* ============= Global Styles ============= */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --body-font: 'Inter', sans-serif;
    --heading-font: 'Poppins', sans-serif;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subheading {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

img {
    max-width: 100%;
}

/* ============= Header & Navigation ============= */
header {
    padding: 15px 0;
    transition: var(--transition);
    background-color: white;
}

.header-scrolled {
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.logo {
    height: 40px;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--dark-color);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* ============= Hero Section ============= */
.hero-section {
    padding: 180px 0 100px;
    background-color: #f8f9ff;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-btns {
    margin-bottom: 2rem;
}

/* ============= Features Section ============= */
.feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ============= Pricing Section ============= */
.pricing-section {
    background-color: #f8f9ff;
}

.pricing-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    z-index: 1;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-bottom-left-radius: 10px;
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.price .period {
    font-size: 1rem;
    color: var(--gray-color);
    font-weight: 400;
}

.pricing-features {
    padding: 30px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    margin-right: 10px;
    color: var(--success-color);
}

.pricing-features li.disabled {
    color: var(--gray-color);
}

.pricing-features li.disabled i {
    color: var(--gray-color);
}

.pricing-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============= Testimonials Section ============= */
.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h5 {
    margin-bottom: 2px;
    font-size: 1.1rem;
}

.testimonial-author p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* ============= Clients Section ============= */
.clients-section {
    padding: 80px 0;
    background-color: white;
}

.client-logos {
    padding: 20px 0;
}

.client-logos img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.client-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ============= About Section ============= */
.about-section {
    background-color: #f8f9ff;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content .lead {
    margin-bottom: 20px;
}

.about-stats {
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ============= Contact Section ============= */
.contact-section {
    background-color: white;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-details {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: var(--gray-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact-form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-label {
    font-weight: 500;
}

.form-control {
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* ============= CTA Section ============= */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section .lead {
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-section .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ============= Footer ============= */
.footer {
    background-color: #1f2937;
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 0;
}

.footer-logo {
    margin-bottom: 20px;
    height: 40px;
}

.footer-about p {
    margin-bottom: 0;
    opacity: 0.7;
}

.footer-links h5 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ============= Back to Top Button ============= */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    z-index: 99;
    display: none;
    transition: var(--transition);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* ============= Modal Styles ============= */
.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-title {
    font-weight: 600;
}

.modal-body h4 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body p {
    margin-bottom: 15px;
}

/* ============= Responsive Styles ============= */
@media (max-width: 991.98px) {
    .section {
        padding: 70px 0;
    }
    
    .hero-section {
        padding: 150px 0 70px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-links {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 50px 0;
    }
    
    .hero-section {
        padding: 130px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .feature-card, .pricing-card, .testimonial-card {
        margin-bottom: 30px;
    }
    
    .about-content {
        margin-bottom: 40px;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
    
    .footer-social {
        justify-content: flex-start;
        margin-top: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-btns .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-btns .btn-outline-dark {
        margin-left: 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
}
