/* ============================================
   Landing Page Styles - QuanTax
   ============================================ */

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --text-muted: #6c757d;
    --white: #ffffff;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* ============================================
   Global Styles
   ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.container-lg {
    max-width: 1200px;
}

/* Divider for sections */
.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    border-radius: 2px;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-delayed {
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Intersection Observer animations */
.fade-in-on-scroll {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
    background-color: var(--white) !important;
    transition: box-shadow 0.3s ease;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    margin: 0 0.5rem;
    color: var(--text-muted) !important;
    transition: color 0.3s ease;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 102, 204, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-section .row {
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: 2rem;
}

.hero-content h1 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-content h2 {
    color: #333;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-illustration {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-placeholder {
    position: relative;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
}

.illustration-placeholder i {
    color: var(--primary-color);
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

.illustration-placeholder i:nth-child(2) {
    animation-delay: 0.4s;
}

.illustration-placeholder i:nth-child(3) {
    animation-delay: 0.8s;
}

/* ============================================
   About Section
   ============================================ */

.about-section {
    padding: 6rem 0;
}

.feature-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-box i {
    color: var(--primary-color);
}

/* ============================================
   Modules Section
   ============================================ */

.modules-section {
    padding: 6rem 0;
    background: var(--white);
}

.module-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.module-card:hover::before {
    opacity: 1;
}

.module-card > * {
    position: relative;
    z-index: 1;
}

.module-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.module-card h5 {
    color: #333;
    margin-top: 1.5rem;
}

.module-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    padding: 6rem 0;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.feature-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-item h5 {
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   Pricing Section — 3-Tier Layout
   ============================================ */

.pricing-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--white) 0%, #f0f4f8 100%);
}

.pricing-toggle {
    margin: 1.5rem 0;
}

.toggle-label {
    transition: opacity 0.3s ease;
    font-size: 0.95rem;
}

.pricing-switch {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Base Pricing Card */
.pricing-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border-color);
    transition: background 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Tier-specific Styles */
.tier-starter::before {
    background: linear-gradient(90deg, #28a745, #5cb85c);
}

.tier-professional {
    border-color: var(--primary-color);
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.15);
    z-index: 2;
}

.tier-professional::before {
    background: linear-gradient(90deg, var(--primary-color), #3399ff);
    height: 5px;
}

.tier-professional:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 102, 204, 0.25);
}

.tier-enterprise::before {
    background: linear-gradient(90deg, #ff6b35, #ffb347);
}

/* Popular / Best Value Badge */
.popular-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    z-index: 3;
}

.popular-badge .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Pricing Card Header */
.pricing-card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.tier-icon {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.pricing-card-header h4 {
    font-size: 1.4rem;
    color: #1a1a2e;
}

.pricing-card-header p {
    font-size: 0.85rem;
    line-height: 1.5;
    min-height: 2.5em;
}

/* Price Display */
.price-display {
    margin-top: 0.75rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    align-self: flex-start;
    margin-top: 0.3rem;
}

.price-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.price-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 3px;
    font-weight: 500;
}

/* User Limit Badge */
.user-limit-badge {
    background: linear-gradient(135deg, #e8f4fd, #d1e8ff);
    border: 1px solid rgba(0, 102, 204, 0.15);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #1a5276;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.tier-enterprise .user-limit-badge {
    background: linear-gradient(135deg, #fff4ec, #ffe8d6);
    border-color: rgba(255, 107, 53, 0.15);
    color: #8b4513;
}

.tier-starter .user-limit-badge {
    background: linear-gradient(135deg, #e8f8e8, #d4f0d4);
    border-color: rgba(40, 167, 69, 0.15);
    color: #1e7e34;
}

/* Pricing Features */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.55rem 0;
    color: #444;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: #28a745;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Pricing CTA Button */
.pricing-card .btn {
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pricing-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-light {
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: #1a1a1a;
    color: var(--text-muted);
    padding: 3rem 0 1rem;
    margin-top: 0;
}

footer h5,
footer h6 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

footer .text-primary {
    color: var(--primary-color) !important;
}

footer a:hover {
    color: var(--primary-color);
}

footer hr {
    margin: 1.5rem 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* ============================================
   Modal
   ============================================ */

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
}

.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .hero-content {
        padding: 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-illustration {
        height: 300px;
        margin-top: 2rem;
    }

    .illustration-placeholder {
        width: 250px;
        height: 250px;
        font-size: 3rem;
        gap: 1rem;
    }

    .modules-section,
    .features-section,
    .about-section {
        padding: 4rem 0;
    }

    .tier-professional {
        transform: scale(1);
    }

    .cta-section {
        padding: 3rem 0;
        text-align: center;
    }

    .cta-section .col-lg-4 {
        margin-top: 2rem;
    }

    .cta-section .text-lg-end {
        text-align: center !important;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .feature-item {
        gap: 1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1rem;
    }

    .price-value {
        font-size: 2rem;
    }

    .module-card,
    .pricing-card {
        padding: 1.5rem;
    }

    .illustration-placeholder {
        width: 200px;
        height: 200px;
        font-size: 2rem;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ============================================
   Scrollbar Styling
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   Logo & Highlight Styles
   ============================================ */

.brand-highlight {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(0, 102, 204, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.brand-highlight:hover {
    background: rgba(0, 102, 204, 0.08);
    border-color: rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.brand-logo-img {
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    padding: 2px;
    background: #fff;
    filter: drop-shadow(0 4px 6px rgba(0, 102, 204, 0.15));
    transition: transform 0.4s ease;
}

.brand-highlight:hover .brand-logo-img {
    transform: rotate(-5deg) scale(1.05);
}

/* Hero Highlight Redesign */
.logo-highlight-wrapper {
    position: relative;
    display: inline-block;
    padding: 2rem;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.2) 0%, transparent 70%);
    z-index: -1;
    animation: pulseGlow 4s infinite ease-in-out;
}

.main-logo-hero {
    height: 450px;
    width: 450px; /* Force square ratio for perfect circle */
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid #fff;
    box-shadow: 0 15px 45px rgba(0, 102, 204, 0.3), 
                inset 0 0 20px rgba(0, 102, 204, 0.1);
    background: #fff;
    animation: floatingLogo 6s infinite ease-in-out;
    padding: 10px; /* Space for the "frame" look */
}

@keyframes pulseGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.8; }
}

@keyframes floatingLogo {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-content {
    text-align: left;
}

/* ============================================
   Hero Dashboard Mockup Styles
   ============================================ */

.dashboard-mockup-container {
    position: relative;
    padding: 2rem;
    perspective: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.15) 0%, transparent 70%);
    z-index: 0;
    filter: blur(40px);
}

.dashboard-mockup {
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 102, 204, 0.25), 
                0 10px 20px rgba(0, 0, 0, 0.1);
    transform: rotateY(-12deg) rotateX(8deg) rotateZ(-2deg);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: floatingDashboard 8s infinite ease-in-out;
}

.dashboard-mockup-container:hover .dashboard-mockup {
    transform: rotateY(-5deg) rotateX(3deg) rotateZ(0deg) scale(1.02);
}

@keyframes floatingDashboard {
    0%, 100% { transform: rotateY(-12deg) rotateX(8deg) rotateZ(-2deg) translateY(0); }
    50% { transform: rotateY(-15deg) rotateX(10deg) rotateZ(-3deg) translateY(-25px); }
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.05);
    background: #fff;
    box-shadow: 0 20px 45px rgba(0, 102, 204, 0.2);
}

.stat-up {
    top: 5%;
    right: -5%;
    animation: float1 5s infinite ease-in-out;
}

.stat-down {
    bottom: 10%;
    left: -5%;
    animation: float2 7s infinite ease-in-out;
}

.stat-center {
    top: 60%;
    right: -10%;
    animation: float3 6s infinite ease-in-out;
}

@keyframes float1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes float3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.bg-success-light { background: rgba(40, 167, 69, 0.1); }
.bg-primary-light { background: rgba(0, 102, 204, 0.1); }
.bg-warning-light { background: rgba(255, 193, 7, 0.1); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

@media (max-width: 991px) {
    .dashboard-mockup-container {
        padding: 1rem;
        margin-top: 3rem;
    }
    .dashboard-mockup {
        max-width: 450px;
        transform: none !important;
        animation: floatingSimple 6s infinite ease-in-out;
    }
    @keyframes floatingSimple {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }
    .floating-card {
        display: none; /* Hide floating elements on smaller screens for clarity */
    }
}

