/* ==================== Global Styles ==================== */
:root {
    --primary-color: #6C5CE7;
    --secondary-color: #00B894;
    --dark-color: #2D3436;
    --light-color: #F8F9FA;
    --gradient-1: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-2: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
    --gradient-3: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
    line-height: 1.6;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1rem;
    color: #6C757D;
}

/* ==================== Navbar ==================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: #fff;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.btn-login {
    background: var(--gradient-1);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.btn-login::after {
    display: none;
}

/* ==================== Hero Section ==================== */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-1);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-buttons .btn-outline-light:hover {
    transform: translateY(-3px);
}

.hero-stats {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.7rem;
}

.hero-image img {
    animation: float 3s ease-in-out infinite;
}

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

/* ==================== Features Section ==================== */
.features-section {
    background: var(--light-color);
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.feature-box h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ==================== Plans Section ==================== */
.plans-section {
    padding: 5rem 0;
}

.plan-filter .btn {
    margin: 0 0.25rem;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
}

.plan-filter .btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, #f8f7ff 0%, white 100%);
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gradient-1);
    color: white;
    padding: 0.4rem 3rem;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.plan-badge.best-value {
    background: var(--gradient-2);
}

.plan-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.3rem;
    color: white;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.plan-price {
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.1rem;
    vertical-align: super;
    color: var(--primary-color);
}

.amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 0.9rem;
    color: #6C757D;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.plan-duration {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #6C757D;
}

.btn-plan {
    width: 100%;
    padding: 0.875rem;
    border-radius: 50px;
    background: var(--gradient-1);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
}

/* ==================== Calculator Section ==================== */
.calculator-section {
    background: var(--light-color);
}

.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.calculator-inputs label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.calculator-inputs input[type="number"],
.calculator-inputs input[type="text"] {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.calculator-inputs input[type="range"] {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 10px;
}

.calculator-inputs input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.calculator-results {
    background: linear-gradient(135deg, #f8f7ff 0%, #fff 100%);
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.highlight-result {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
}

.result-item strong {
    font-size: 1rem;
}

/* ==================== How It Works ==================== */
.how-it-works {
    background: white;
}

.step-card {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.step-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f8f7ff 0%, #fff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    border: 3px solid #f0f0f0;
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    background: var(--gradient-1);
    color: white;
    transform: scale(1.1);
}

/* ==================== Testimonials ==================== */
.testimonials-section {
    background: var(--light-color);
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.rating {
    color: #FFC107;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    color: #6C757D;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.875rem;
    color: #6C757D;
}

/* ==================== About Section ==================== */
.about-section {
    background: white;
}

.about-features {
    margin-top: 2rem;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.about-feature-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* ==================== Contact Section ==================== */
.contact-section {
    background: var(--light-color);
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
}

.contact-form-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem;
}

.contact-form-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-link:hover {
    color: white;
}

/* ==================== Modal ==================== */
.modal-content {
    border-radius: 20px;
    border: none;
}

.modal-header {
    background: var(--gradient-1);
    color: white;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.purchase-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.purchase-summary h6 {
    font-weight: 600;
    color: #6C757D;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.plan-name-modal {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.amount-modal {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.return-modal {
    font-size: 1.2rem;
    font-weight: 600;
    color: #28a745;
}

/* ==================== Scroll to Top ==================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.scroll-top-btn.show {
    display: flex;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .plan-price .amount {
        font-size: 2.5rem;
    }
    
    .calculator-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ==================== Print Styles ==================== */
@media print {
    .navbar,
    .footer,
    .scroll-top-btn,
    .hero-buttons,
    .btn-plan {
        display: none !important;
    }
}