:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    
    --font-family-serif: 'Crimson Text', serif;
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Typography */
body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: #333;
}

/* Thumbnail images - responsive layouts */
.thumbnail-image {
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid #dee2e6;
    transition: var(--transition);
}

.thumbnail-image:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.placeholder-image {
    opacity: 0.7;
    border-color: #adb5bd !important;
    border-style: dashed !important;
}

/* Single image layout */
.thumbnail-image.single {
    width: 100%;
    height: 120px;
    max-width: 200px;
}

/* Landing Page Enhancements */
/* Hero section enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/hero-pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Pricing card enhancements */
.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.popular-badge {
    position: relative;
    margin-top: -1px;
}

/* Animation effects */
.step-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

/* Navbar adjustments for fixed positioning */
body {
    padding-top: 76px; /* Account for fixed navbar */
}

/* Section spacing */
section {
    scroll-margin-top: 76px; /* Account for fixed navbar when scrolling to anchors */
}

/* Enhanced button styles */
.btn-warning {
    background: linear-gradient(45deg, #ffc107, #ffb300);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    section {
        scroll-margin-top: 66px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-actions .btn:last-child {
        margin-bottom: 0;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Updated Landing Page Styles */
/* Improved spacing and layout */
.container {
    max-width: 1200px;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

.col-lg-4, .col-md-6, .col-sm-6 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Better color scheme */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
}

/* Hero section improvements */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Card hover effects */
.step-card:hover, .story-card:hover, .problem-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Pricing card enhancements */
.pricing-card.featured {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Better button styling */
.btn-warning {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-warning:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Video overlay styling */
.video-overlay {
    pointer-events: none;
}

/* Improved spacing for sections */
section {
    padding: 80px 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    section {
        scroll-margin-top: 66px;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .comparison-container {
        padding: 20px !important;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-actions .btn:last-child {
        margin-bottom: 0;
    }
}

/* Dual image layout */
.thumbnail-image.dual {
    width: 80px;
    height: 80px;
    flex: 1;
}

/* Three image layout */
.three-image-layout {
    display: flex;
    gap: 8px;
    height: 100px;
}

.three-image-layout .main-image {
    flex: 2;
}

.three-image-layout .side-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thumbnail-image.main {
    width: 100%;
    height: 100px;
}

.thumbnail-image.side {
    width: 100%;
    height: 48px;
}

/* Multi-image grid (4+ images) */
.multi-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    height: 100px;
}

.grid-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.thumbnail-image.grid {
    width: 100%;
    height: 48px;
}

.image-count-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Order cards for previous deployments */
.order-from-previous {
    border-left: 4px solid var(--warning);
}

.previous-deployment-badge {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.brand-text {
    font-family: var(--font-family-serif);
    font-weight: 600;
    font-size: 1.5rem;
}

.hero-title {
    font-family: var(--font-family-serif);
    font-weight: 600;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-family-serif);
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--secondary);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Before/After Demo */
.before-after-demo {
    text-align: center;
    padding: 2rem;
}

.image-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 500;
}

.image-placeholder.damaged {
    background: linear-gradient(45deg, #6c757d, #495057);
    opacity: 0.7;
}

.image-placeholder.restored {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    box-shadow: var(--box-shadow);
}

.arrow-transform {
    font-size: 2rem;
    color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Step Cards */
.step-card {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
}

/* Package Cards */
.package-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.package-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

.package-card.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.package-warning {
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--warning);
    color: var(--dark);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.package-name {
    font-family: var(--font-family-serif);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.package-price {
    margin-bottom: 1.5rem;
}

.package-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.package-price .photos {
    display: block;
    font-size: 1rem;
    color: var(--secondary);
    margin-top: 0.25rem;
}

.package-price .per-photo {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.package-description {
    color: var(--secondary);
    margin-bottom: 2rem;
}

.package-features ul {
    margin-bottom: 2rem;
}

.package-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.turnaround {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    height: 100%;
    text-align: center;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-author strong {
    color: var(--dark);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 4rem 0;
}

.cta-title {
    font-family: var(--font-family-serif);
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-dark), #004085);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* Utility Classes */
.min-vh-75 {
    min-height: 75vh;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .image-comparison {
        flex-direction: column;
        gap: 1rem;
    }
    
    .arrow-transform {
        transform: rotate(90deg);
    }
    
    .package-price .price {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .step-card, .testimonial-card {
        padding: 1.5rem;
    }
    
    .package-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading States */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .alert {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}
