/* ==========================================================================
   PriceBundle Pro - Main CSS
   Dynamic Product Bundle Pricing SaaS Template
   ========================================================================== */

/* Color Variables - 5 Primary Colors + Shades */
:root {
    /* Primary Colors */
    --primary-blue: #4f6af5;
    --secondary-teal: #20c997;
    --accent-purple: #8b5fbf;
    --warning-orange: #fd7e14;
    --success-green: #198754;
    
    /* Light Shades */
    --primary-blue-light: #6c7ae0;
    --secondary-teal-light: #40d4aa;
    --accent-purple-light: #a87dd1;
    --warning-orange-light: #fd9135;
    --success-green-light: #20c997;
    
    /* Dark Shades */
    --primary-blue-dark: #3d54c4;
    --secondary-teal-dark: #179a73;
    --accent-purple-dark: #6f4a96;
    --warning-orange-dark: #cc5803;
    --success-green-dark: #146c43;
    
    /* Neutral Colors */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Typography */
    --font-size-small: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Shadows */
    --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);
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: #ffffff;
}

/* Conservative Typography */
.navbar-brand {
    font-size: var(--font-size-xl) !important;
    font-weight: 600;
    color: var(--primary-blue);
}

h1, .h1 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    line-height: 1.3;
}

h2, .h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    line-height: 1.4;
}

h3, .h3, h4, .h4, h5, .h5 {
    font-size: var(--font-size-lg);
    font-weight: 500;
    line-height: 1.5;
}

p, .lead {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background-color: transparent;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700);
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--gray-100) 0%, rgba(79, 106, 245, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 106, 245, 0.03) 0%, transparent 70%);
    transform: rotate(-15deg);
    z-index: 0;
}

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

/* Card Styles */
.card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem 0.75rem 0 0;
}

/* Pricing Cards */
.card.border-primary {
    border: 2px solid var(--primary-blue) !important;
    position: relative;
}

.card.border-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
}

/* Icons */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-success {
    color: var(--success-green) !important;
}

.text-warning {
    color: var(--warning-orange) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(79, 106, 245, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--gray-100) !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
}

footer h5, footer h6 {
    color: white;
    font-weight: 600;
}

footer p, footer .text-light {
    color: rgba(255, 255, 255, 0.8);
}

footer a.text-light:hover {
    color: var(--primary-blue-light) !important;
    text-decoration: none;
}

/* Timeline Styles */
.timeline-item {
    position: relative;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    bottom: -30px;
    width: 2px;
    background-color: var(--gray-300);
}

.timeline-item:last-child::before {
    display: none;
}

/* Gallery */
#gallery img {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

#gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Breadcrumbs */
.breadcrumb-item img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.breadcrumb-item img:hover {
    opacity: 1;
}

/* Responsive Design Helpers */
@media (max-width: 768px) {
    h1, .h1 {
        font-size: var(--font-size-2xl);
    }
    
    h2, .h2 {
        font-size: var(--font-size-xl);
    }
    
    section {
        padding: 2rem 0;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card:hover,
    .btn:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.border-radius-lg {
    border-radius: 1rem !important;
}

/* Performance Optimizations */
.card,
.btn,
img {
    will-change: transform;
}

/* High Contrast Colors - No Gradients in Footer */
footer {
    background-color: var(--gray-900);
}

/* Conservative Font Sizes */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-size: inherit;
}

/* Star Ratings */
.text-warning i {
    color: var(--warning-orange) !important;
} 


/* Team Social Links - Colorful Style */
.team-social-links {
    margin-top: 22px;
    padding: 16px 0;
}

.social-icons-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 19px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(45deg, #1877f2, #42a5f5, #64b5f6);
}

.linkedin-link {
    background: linear-gradient(45deg, #0a66c2, #2196f3, #42a5f5);
}

.instagram-link {
    background: linear-gradient(45deg, #e4405f, #f77737, #fcaf45, #ffdc80);
}

.x-link {
    background: linear-gradient(45deg, #000000, #424242, #666666);
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: 900;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
