:root {
    /* Brand Colors - AI Perfect Ads New Wordmark */
    --brand-blue: #216BFF;
    --brand-dark: #1E2C4E;
    --brand-footer: #1F2937;
    --brand-light: #F9FAFC;
    --brand-gray: #6B7280;
    --brand-text-dark: #1E2C4E;
    --brand-text-light: #FFFFFF;
    --brand-hover: #1B5EE6;
    
    /* Legacy Support */
    --primary-color: #216BFF;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #F9FAFC;
    --dark-color: #1E2C4E;
    
    /* Enhanced Brand Gradients */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #60a5fa 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    
    /* Typography */
    --font-heading-latin: 'Poppins', sans-serif;
    --font-body-latin: 'Inter', sans-serif;
    --font-heading-arabic: 'Tajawal', sans-serif;
    --font-body-arabic: 'Cairo', sans-serif;
}

/* Typography Classes */
.font-heading-latin {
    font-family: var(--font-heading-latin);
}

.font-body-latin {
    font-family: var(--font-body-latin);
}

.font-heading-arabic {
    font-family: var(--font-heading-arabic);
}

.font-body-arabic {
    font-family: var(--font-body-arabic);
}

/* Global typography based on language */
html[data-lang="en"] body {
    font-family: var(--font-body-latin);
}

html[data-lang="ar"] body {
    font-family: var(--font-body-arabic);
}

html[data-lang="en"] h1,
html[data-lang="en"] h2,
html[data-lang="en"] h3,
html[data-lang="en"] h4,
html[data-lang="en"] h5,
html[data-lang="en"] h6,
html[data-lang="en"] .navbar-brand {
    font-family: var(--font-heading-latin);
}

html[data-lang="ar"] h1,
html[data-lang="ar"] h2,
html[data-lang="ar"] h3,
html[data-lang="ar"] h4,
html[data-lang="ar"] h5,
html[data-lang="ar"] h6,
html[data-lang="ar"] .navbar-brand {
    font-family: var(--font-heading-arabic);
}

/* Enhanced Card Styles from Theme */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Enhanced Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #60a5fa 100%);
}

.transform-flip {
    transform: scaleX(-1);
}

/* Enhanced Pricing Cards */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #216BFF, #60a5fa);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card.featured {
    border: 2px solid #216BFF;
    box-shadow: 0 15px 35px rgba(33, 107, 255, 0.1);
}

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

/* Enhanced Feature List */
.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Enhanced Buttons */
.btn-primary {
    background: linear-gradient(135deg, #216BFF, #1B5EE6);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1B5EE6, #1650D9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 107, 255, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Enhanced Features Section */
.features-section {
    background: white;
}

.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #216BFF, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

/* Brand Logo Styles - Wordmark */
.brand-logo {
    height: 50px;
    width: auto;
    max-width: 250px;
}

.brand-logo-nav {
    height: 40px;
    width: auto;
    max-width: 200px;
}

/* Navigation Brand with Dynamic Logo */
.navbar-brand {
    font-weight: 700;
    color: var(--brand-text-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    position: relative;
    min-height: 40px;
}

/* Language-specific logo display with higher specificity */
html[data-lang="en"] .navbar-brand .logo-ar,
html[data-lang="en"] .footer .logo-ar {
    display: none !important;
}

html[data-lang="ar"] .navbar-brand .logo-en,
html[data-lang="ar"] .footer .logo-en {
    display: none !important;
}

/* Default display for English */
.navbar-brand .logo-en,
.footer .logo-en {
    display: block;
}

.navbar-brand .logo-ar,
.footer .logo-ar {
    display: none;
}

/* Prevent logo flipping in RTL - Force LTR direction for logos */
.navbar-brand {
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
}

.brand-logo {
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
}

/* Ensure logo elements maintain LTR order in RTL context */
html[data-lang="ar"] .navbar-brand {
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
    flex-direction: row !important;
}

html[data-lang="ar"] .brand-logo {
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
    flex-direction: row !important;
}

/* Mobile logo sizing */
@media (max-width: 768px) {
    .brand-logo-nav {
        height: 32px;
        max-width: 160px;
    }
    
    .navbar-toggler {
        border-color: var(--brand-blue) !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
    }
}

/* Update button colors to match brand */
.btn-primary {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white;
    font-weight: 700;
}

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

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

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

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

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

.border-primary {
    border-color: var(--brand-blue) !important;
}

/* Language toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.language-toggle .btn {
    transition: all 0.3s ease;
}

.language-toggle .btn:hover {
    background-color: var(--brand-blue) !important;
    color: white !important;
    border-color: var(--brand-blue) !important;
}

/* Navigation link hover effects */
.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-blue) !important;
}

/* Footer link hover effects */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--brand-blue) !important;
}

/* Navbar brand hover effects */
.navbar-brand:hover {
    color: var(--brand-blue) !important;
}

.navbar-brand:hover span {
    color: var(--brand-blue) !important;
}

/* Language content display with higher specificity */
html .lang-ar,
body .lang-ar {
    display: none !important;
}

/* Default to English on initial load */
html .lang-en,
body .lang-en {
    display: block !important;
}

/* Language display based on document attribute with highest specificity */
html[data-lang="en"] .lang-ar,
html[data-lang="en"] body .lang-ar {
    display: none !important;
}

html[data-lang="en"] .lang-en,
html[data-lang="en"] body .lang-en {
    display: block !important;
}

html[data-lang="ar"] .lang-en,
html[data-lang="ar"] body .lang-en {
    display: none !important;
}

html[data-lang="ar"] .lang-ar,
html[data-lang="ar"] body .lang-ar {
    display: block !important;
}

/* Additional specificity for card body content */
html[data-lang="en"] .card-body .lang-ar,
html[data-lang="en"] .container .lang-ar,
html[data-lang="en"] .row .lang-ar {
    display: none !important;
}

html[data-lang="en"] .card-body .lang-en,
html[data-lang="en"] .container .lang-en,
html[data-lang="en"] .row .lang-en {
    display: block !important;
}

html[data-lang="ar"] .card-body .lang-en,
html[data-lang="ar"] .container .lang-en,
html[data-lang="ar"] .row .lang-en {
    display: none !important;
}

html[data-lang="ar"] .card-body .lang-ar,
html[data-lang="ar"] .container .lang-ar,
html[data-lang="ar"] .row .lang-ar {
    display: block !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-brand {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .btn-group > .btn:not(:last-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

[dir="rtl"] .btn-group > .btn:not(:first-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-hover) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200"><polygon fill="%23ffffff" fill-opacity="0.1" points="0,0 1000,0 1000,200 0,150"/></svg>');
    background-size: cover;
    background-position: bottom;
}

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

.hero-section h1 {
    font-family: var(--font-heading-latin);
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
}

html[data-lang="ar"] .hero-section h1 {
    font-family: var(--font-heading-arabic);
}

.hero-section .lead {
    font-family: var(--font-body-latin);
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

html[data-lang="ar"] .hero-section .lead {
    font-family: var(--font-body-arabic);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.hero-image {
    text-align: center;
    padding: 2rem;
}

/* Pricing Cards */
.pricing-section {
    background: var(--light-gray);
}

.pricing-section h2 {
    font-family: var(--font-heading-latin);
    color: var(--brand-black);
}

html[data-lang="ar"] .pricing-section h2 {
    font-family: var(--font-heading-arabic);
}

.pricing-section .lead {
    font-family: var(--font-body-latin);
    color: var(--medium-gray);
}

html[data-lang="ar"] .pricing-section .lead {
    font-family: var(--font-body-arabic);
}

.pricing-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 3px solid var(--brand-blue);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge-featured {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--brand-blue);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-family: var(--font-body-latin);
    z-index: 1;
}

html[data-lang="ar"] .badge-featured {
    font-family: var(--font-body-arabic);
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--brand-blue);
    font-family: var(--font-heading-latin);
}

html[data-lang="ar"] .price {
    font-family: var(--font-heading-arabic);
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.feature-list li {
    padding: 0.5rem 0;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card h3 {
    font-family: var(--font-heading-latin);
    color: var(--brand-black);
}

html[data-lang="ar"] .feature-card h3 {
    font-family: var(--font-heading-arabic);
}

.feature-card p {
    font-family: var(--font-body-latin);
    color: var(--medium-gray);
}

html[data-lang="ar"] .feature-card p {
    font-family: var(--font-body-arabic);
}

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

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

/* Admin Dashboard */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background: var(--light-color);
    border-top: none;
    font-weight: 600;
}

/* Success Page */
.success-icon {
    animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.order-details {
    border: 1px solid #dee2e6;
    border-radius: 10px;
}

.step-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info {
    border-radius: 10px;
}

/* Payment Methods */
.payment-methods .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Admin Dashboard Enhancements */
.admin-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.admin-filters .row {
    align-items: end;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #666;
    margin: 0;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.order-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: #f0f8ff;
}

.upload-zone.drag-over {
    border-color: var(--success-color);
    background: #f0fff0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .price {
        font-size: 2rem;
    }
    
    .language-toggle {
        top: 10px;
        right: 10px;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .admin-filters {
        padding: 1rem;
    }
    
    .admin-filters .row {
        align-items: stretch;
    }
    
    .admin-filters .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .language-toggle,
    .action-buttons,
    .navbar,
    .footer {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gradient-success);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: var(--gradient-success);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: none;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.testimonials-section .feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonials-section .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonials-section .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.testimonials-section .feature-icon {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.testimonials-section .feature-card p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: auto;
}

.testimonial-author h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-author small {
    font-size: 0.9rem;
    color: #666;
}

/* Portfolio Page Styles */
.portfolio-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.video-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.portfolio-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Statistics Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 15px 15px 0 0;
}

/* Badge Styles */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: 50px;
}

/* Table Styles */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table td,
.table th {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

/* 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-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Portfolio Filter Styles */
.btn-group [data-filter] {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-group [data-filter].active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.btn-group [data-filter]:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
    transform: translateY(-2px);
}

/* Portfolio Item Animations */
.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Enhanced Portfolio Cards */
.portfolio-item .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Call-to-Action Button Styling */
.portfolio-item .btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.portfolio-item .btn-success:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Context Information Styling */
.context-info {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.context-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.context-item i {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.context-item strong {
    margin-right: 0.5rem;
    color: #495057;
}

.context-item span {
    color: #6c757d;
}

/* Testimonial Footer */
.testimonial-footer {
    margin-top: 0.5rem;
    font-style: italic;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Filter Button Responsive */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn:last-child {
        margin-bottom: 0;
    }
    
    .context-info {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}
