:root {
    --primary-color: #2563eb;
    --secondary-color: #0d47a1;
    --accent-color: #4f46e5;
    --light-color: #f3f4f6;
    --dark-color: #111827;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: #fafafa;
}

/* Navbar Styling */
.navbar {
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    transform: scale(0.9);
}

.nav-link {
    position: relative;
    margin: 0 0.5rem;
    padding: 0.5rem 0;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg-header.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.8s;
}

.hero-btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 1.1s;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.hero-btn:hover::before {
    left: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Wave */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-container svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-container .shape-fill {
    fill: #FFFFFF;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
}

.section-title {
    position: relative;
    margin-bottom: 60px;
    font-weight: 700;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    bottom: -15px;
    left: 0;
    background-color: var(--primary-color);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.feature-card {
    border: none;
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: all 0.5s ease;
    z-index: -1;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card:hover::before {
    height: 100%;
    opacity: 1;
}

.feature-card:hover .feature-icon,
.feature-card:hover .card-title,
.feature-card:hover .card-text {
    color: white;
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card .card-title {
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feature-card .card-text {
    transition: all 0.3s ease;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    position: relative;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Testimonial Section */
.testimonial-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
}

.testimonial-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    margin: 20px 15px;
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 15px;
    left: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-info h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    color: #6c757d;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* How it Works Section */
.how-it-works-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.step-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.step-number {
    position: absolute;
    top: 0;
    right: 0;
    background-color: white;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Form Section */
.form-section {
    padding: 100px 0;
    position: relative;
}

.form-container {
    position: relative;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 25px 30px;
    color: white;
}

.form-header h3 {
    margin: 0;
    font-weight: 600;
}

.form-body {
    padding: 40px;
}

.form-control {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    background-color: white;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(37, 99, 235, 0.25);
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/dots-pattern.png');
    background-repeat: repeat;
    opacity: 0.1;
}

/* Floating Shape Animation */
.shape {
    position: absolute;
    opacity: 0.6;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    background-color: rgba(79, 70, 229, 0.2);
    border-radius: 50%;
    animation: float 8s infinite;
}

.shape-2 {
    top: 60%;
    right: 10%;
    width: 120px;
    height: 120px;
    background-color: rgba(37, 99, 235, 0.2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 12s infinite;
}

.shape-3 {
    bottom: 20%;
    left: 15%;
    width: 60px;
    height: 60px;
    background-color: rgba(79, 70, 229, 0.2);
    border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%;
    animation: float 10s infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(15px, 15px) rotate(5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
    position: relative;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    bottom: -10px;
    left: 0;
    background-color: var(--primary-color);
}

.footer-text {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    padding-left: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-right: 15px;
    width: 25px;
    color: var(--primary-color);
}

.footer-social {
    margin-top: 30px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .form-body {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .stat-card {
        margin-bottom: 30px;
    }
    
    .form-section {
        padding: 60px 0;
    }
}