/**
 * Page-Specific Modern Enhancements
 * Additional styling for individual pages
 */

/* ============================================
   Blog Page Enhancements
   ============================================ */

.blog-featured-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.blog-featured-image img {
    transition: transform 0.4s ease;
}

.blog-featured-image:hover img {
    transform: scale(1.02);
}

.blog-content-wrapper {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.blog-content-wrapper h2,
.blog-content-wrapper h3 {
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.blog-content-wrapper p {
    margin-bottom: 20px;
}

/* ============================================
   Portfolio Detail Page
   ============================================ */

.portfolio-featured-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.portfolio-featured-image img {
    transition: transform 0.4s ease;
}

.portfolio-featured-image:hover img {
    transform: scale(1.02);
}

.portfolio-content-wrapper {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

/* ============================================
   Service Detail Page
   ============================================ */

.about-thumb {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-thumb img {
    transition: transform 0.4s ease;
}

.about-thumb:hover img {
    transform: scale(1.05);
}

/* ============================================
   Demo Page Enhancements
   ============================================ */

.demo-item {
    border-radius: 16px;
    overflow: hidden;
}

.demo-credentials-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.5;
}

/* ============================================
   About Page Enhancements
   ============================================ */

.about-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.about-content h2 {
    color: var(--text-primary);
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* ============================================
   Contact Page Enhancements
   ============================================ */

.contact-box {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Alert Messages
   ============================================ */

.alert {
    border-radius: 12px;
    padding: 16px 20px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.alert-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.alert-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

/* ============================================
   Loading States
   ============================================ */

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ============================================
   Scroll to Top Button
   ============================================ */

#scrollUp {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: var(--transition);
    color: #fff;
    font-size: 20px;
}

#scrollUp:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* ============================================
   Preloader Enhancement
   ============================================ */

#preloader {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* ============================================
   Responsive Enhancements
   ============================================ */

@media (max-width: 768px) {
    .contact-box {
        padding: 24px;
    }
    
    .blog-featured-image,
    .portfolio-featured-image {
        margin-bottom: 30px;
    }
    
    .section-heading {
        margin-bottom: 30px !important;
    }
}
