/* === Public Website Styles === */

/* Base Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success: #10b981;
    --info: #06b6d4;
    --warning: #f59e0b;
    --dark: #1e1e2d;
    --light-gray: #f8f7fa;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.navbar-brand img {
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #4b4b4b !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.15s ease;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Mobile Nav */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        border-radius: 12px;
        margin-top: 0.75rem;
        padding: 1rem 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        border: 1px solid #f0f0f0;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .navbar-collapse .navbar-nav {
        padding: 0 0.5rem;
    }

    .navbar-collapse .nav-item {
        margin-bottom: 2px;
    }

    .navbar-collapse .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        font-size: 15px;
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link.active {
        background-color: rgba(99, 102, 241, 0.08);
        color: var(--primary) !important;
    }

    .navbar-collapse .nav-item.ms-lg-3 {
        margin-left: 0 !important;
        padding: 0.5rem 1rem 0;
    }

    .navbar-collapse .nav-item.ms-lg-3 .btn {
        margin-top: 0;
    }

    .navbar-collapse hr {
        margin: 0.5rem 1rem;
        border-color: #f0f0f0;
    }

    .navbar-toggler {
        border: 1px solid #e0e0e0;
        padding: 6px 10px;
        border-radius: 8px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Hero Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-illustration {
    animation: float 6s ease-in-out infinite;
}

/* Cards */
.card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 0;
}

.card:hover {
    transform: translateY(-5px);
}

.card.border-primary {
    border: 2px solid var(--primary) !important;
}

.card.border-primary.shadow {
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15) !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Badge */
.badge.bg-primary {
    background-color: var(--primary) !important;
}

.badge.bg-primary.bg-opacity-10 {
    background-color: rgba(99, 102, 241, 0.1) !important;
}

/* Footer */
footer {
    background: var(--dark) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: white !important;
    opacity: 1 !important;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

/* Pricing Toggle */
.pricing-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: 50px;
    padding: 4px;
}

.pricing-toggle .btn {
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 14px;
    border: 0;
}

.pricing-toggle .btn.active {
    background: var(--primary);
    color: white;
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.02);
}

.pricing-card.featured {
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.07);
}

/* FAQ Accordion */
.accordion-item {
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Features Grid */
.features-grid .feature-item {
    transition: all 0.3s ease;
    padding: 2rem;
    border-radius: 12px;
    background: white;
}

.features-grid .feature-item:hover {
    background: var(--light-gray);
    transform: translateY(-5px);
}

.features-grid .feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Newsletter Section */
#newsletterForm .form-control {
    border-radius: 50px;
    padding: 10px 20px;
}

#newsletterForm .btn {
    border-radius: 50px;
    padding: 10px 24px;
}

/* Social Links */
.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

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

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Contact Info Icons */
.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.contact-info-item {
    transition: transform 0.2s ease;
}

.contact-info-item:hover {
    transform: translateX(5px);
}

/* Page Content Styles */
.page-content h1, .page-content h2, .page-content h3, .page-content h4 {
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h1 { font-size: 2.5rem; }
.page-content h2 { font-size: 2rem; }
.page-content h3 { font-size: 1.5rem; }
.page-content h4 { font-size: 1.25rem; }

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul {
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
}

/* Page Header */
.page-header {
    padding: 4rem 0 2.5rem;
}

/* Hero Height for better mobile */
.min-vh-75 {
    min-height: 75vh;
}

/* Section Spacing */
.section-padding {
    padding: 5rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }

    .display-4 {
        font-size: 2rem;
    }

    .min-vh-75 {
        min-height: auto;
    }

    .hero-section .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .page-header {
        padding: 2.5rem 0 1.5rem;
    }
}