/* Interrand Group Corporate Website - Lazy Loading Styles */

/* ===== IMAGE LAZY LOADING ===== */

/* Lazy images initial state */
img.lazy {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(20px);
}

/* Loaded images */
img.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Image skeleton placeholder */
.image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--theme-gray-light, #f3f4f6);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.image-skeleton .skeleton-icon {
    color: var(--theme-gray, #6b7280);
    font-size: 2rem;
    opacity: 0.5;
    z-index: 2;
}

.image-skeleton .skeleton-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* ===== SECTION LAZY LOADING ===== */

/* Lazy sections initial state */
.lazy-section {
    min-height: 200px;
    position: relative;
    background: var(--theme-gray-light, #f3f4f6);
    border-radius: 12px;
    overflow: hidden;
}

/* Loaded sections */
.loaded-section {
    background: transparent;
}

/* Section skeleton placeholder */
.section-skeleton {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.section-skeleton .skeleton-header {
    height: 2rem;
    background: var(--theme-gray, #6b7280);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.section-skeleton .skeleton-content {
    margin-bottom: 1rem;
}

.section-skeleton .skeleton-line {
    height: 1rem;
    background: var(--theme-gray, #6b7280);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.section-skeleton .skeleton-line.short {
    width: 60%;
}

.section-skeleton .skeleton-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2.5s infinite;
}

/* ===== ERROR STATES ===== */

/* Image error placeholder */
.image-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--theme-gray-light, #f3f4f6);
    color: var(--theme-gray, #6b7280);
    border-radius: inherit;
    text-align: center;
    padding: 2rem;
}

.image-error i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.image-error span {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Section error state */
.lazy-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-radius: 12px;
    text-align: center;
    padding: 2rem;
    border: 2px dashed rgba(239, 68, 68, 0.3);
    animation: errorFadeIn 0.5s ease-out;
}

.lazy-error i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.7;
    animation: errorPulse 2s infinite;
}

.lazy-error h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #dc2626;
}

.lazy-error p {
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.9rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.lazy-error .btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--button-radius, 10px);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.lazy-error .btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.lazy-error .btn-outline {
    background: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
}

.lazy-error .btn-outline:hover {
    background: #dc2626;
    color: white;
}

/* ===== ANIMATIONS ===== */

/* Shimmer animation */
@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered fade in */
.stagger-fade-in {
    animation: fadeIn 0.8s ease forwards;
    animation-delay: var(--stagger-delay, 0ms);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile optimizations */
@media (max-width: 768px) {
    .image-skeleton .skeleton-icon {
        font-size: 1.5rem;
    }
    
    .section-skeleton {
        padding: 1.5rem;
    }
    
    .section-skeleton .skeleton-header {
        height: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .section-skeleton .skeleton-line {
        height: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .lazy-error {
        padding: 1.5rem;
        min-height: 150px;
    }
    
    .lazy-error i {
        font-size: 2rem;
    }
    
    /* Enhanced skeleton mobile styles */
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skeleton-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .skeleton-about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skeleton-blog-grid,
    .skeleton-projects-grid,
    .skeleton-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skeleton-filters {
        gap: 0.5rem;
    }
    
    .skeleton-filter-btn {
        width: 100px;
        height: 35px;
    }
    
    .skeleton-image {
        height: 250px;
    }
    
    .skeleton-blog-image,
    .skeleton-project-image {
        height: 180px;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .lazy-error .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) {
    .section-skeleton {
        padding: 1.75rem;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* GPU acceleration for animations */
.image-skeleton,
.section-skeleton,
.skeleton-shimmer {
    will-change: transform;
    transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .skeleton-shimmer {
        animation: none;
    }
    
    .section-skeleton .skeleton-header,
    .section-skeleton .skeleton-line {
        animation: none;
        opacity: 0.4;
    }
    
    img.lazy,
    img.loaded {
        transition: opacity 0.3s ease;
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .image-skeleton {
        background: #e5e7eb;
        border: 2px solid #9ca3af;
    }
    
    .section-skeleton .skeleton-header,
    .section-skeleton .skeleton-line {
        background: #6b7280;
        opacity: 0.8;
    }
    
    .lazy-error {
        background: #fef2f2;
        border-color: #dc2626;
    }
}

/* ===== UTILITY CLASSES ===== */

/* Force immediate loading */
.lazy-load-immediate img.lazy {
    opacity: 1;
    transform: translateY(0);
}

/* Disable lazy loading */
.lazy-disabled img.lazy {
    opacity: 1;
    transform: translateY(0);
}

/* Custom skeleton heights */
.skeleton-sm {
    min-height: 100px;
}

.skeleton-md {
    min-height: 200px;
}

.skeleton-lg {
    min-height: 300px;
}

.skeleton-xl {
    min-height: 400px;
}

/* Custom animation delays */
.delay-100 {
    --stagger-delay: 100ms;
}

.delay-200 {
    --stagger-delay: 200ms;
}

.delay-300 {
    --stagger-delay: 300ms;
}

.delay-400 {
    --stagger-delay: 400ms;
}

.delay-500 {
    --stagger-delay: 500ms;
}

/* ===== ENHANCED SKELETON TYPES ===== */

/* Services Skeleton */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.skeleton-card {
    background: var(--theme-gray, #6b7280);
    border-radius: 10px;
    padding: 1rem;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.skeleton-icon {
    width: 48px;
    height: 48px;
    background: var(--theme-gray, #6b7280);
    border-radius: 10px;
    margin-bottom: 1rem;
    opacity: 0.4;
    animation: pulse 2s infinite;
}

/* Stats Skeleton */
.skeleton-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.skeleton-stat {
    text-align: center;
    padding: 1rem;
    background: var(--theme-gray-light, #f3f4f6);
    border-radius: 12px;
}

.skeleton-number {
    width: 60px;
    height: 40px;
    background: var(--theme-gray, #6b7280);
    border-radius: 6px;
    margin: 0 auto 0.5rem;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.skeleton-label {
    width: 80px;
    height: 16px;
    background: var(--theme-gray, #6b7280);
    border-radius: 4px;
    margin: 0 auto;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

/* About Skeleton */
.skeleton-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.skeleton-title {
    width: 80%;
    height: 3rem;
    background: var(--theme-gray, #6b7280);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.skeleton-features {
    margin-top: 2rem;
}

.skeleton-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--theme-gray-light, #f3f4f6);
    border-radius: 10px;
}

.skeleton-text {
    flex: 1;
}

.skeleton-image {
    width: 100%;
    height: 400px;
    background: var(--theme-gray, #6b7280);
    border-radius: 12px;
    opacity: 0.3;
    animation: pulse 2s infinite;
    position: relative;
}

/* Blog Skeleton */
.skeleton-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.skeleton-blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.skeleton-blog-image {
    width: 100%;
    height: 200px;
    background: var(--theme-gray, #6b7280);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.skeleton-blog-content {
    padding: 1.5rem;
}

/* Projects Skeleton */
.skeleton-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.skeleton-filter-btn {
    width: 120px;
    height: 40px;
    background: var(--theme-gray, #6b7280);
    border-radius: 25px;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

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

.skeleton-project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.skeleton-project-image {
    width: 100%;
    height: 250px;
    background: var(--theme-gray, #6b7280);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.skeleton-project-content {
    padding: 1.5rem;
}

/* Testimonials Skeleton */
.skeleton-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skeleton-testimonial {
    background: var(--theme-gray-light, #f3f4f6);
    padding: 1.5rem;
    border-radius: 12px;
}

.skeleton-quote {
    width: 100%;
    height: 80px;
    background: var(--theme-gray, #6b7280);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.skeleton-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    background: var(--theme-gray, #6b7280);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.skeleton-author-info {
    flex: 1;
}

/* Loading state overlay */
.loading-state {
    position: relative;
    pointer-events: none;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

.loading-state::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-orange, #ea6004);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 11;
}

/* Spin animation for loading */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Error animations */
@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes errorPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}
/* 
===== LAZY-LOADED COMPONENT STYLES ===== */

/* Services Section Styles */
.services-detailed-content {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.services-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.services-intro h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--theme-black, #000000);
    margin-bottom: 0.5rem;
}

.services-intro p {
    color: var(--theme-gray, #6b7280);
    font-size: 1.1rem;
}

.services-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--theme-gray-light, #f3f4f6);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 96, 4, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-orange, #ea6004);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-black, #000000);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--theme-gray, #6b7280);
    font-size: 0.9rem;
    line-height: 1.5;
}

.services-cta {
    text-align: center;
}

/* Testimonials Section Styles */
.testimonials-content {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 2rem;
}

.testimonials-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--theme-black, #000000);
    margin-bottom: 0.5rem;
}

.testimonials-header p {
    color: var(--theme-gray, #6b7280);
    font-size: 1.1rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--theme-gray-light, #f3f4f6);
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: var(--primary-orange, #ea6004);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    color: var(--theme-gray-dark, #4b5563);
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-black, #000000);
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--theme-gray, #6b7280);
    font-size: 0.875rem;
}

/* Stats Section Styles */
.stats-detailed-content {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stats-header {
    text-align: center;
    margin-bottom: 2rem;
}

.stats-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--theme-black, #000000);
    margin-bottom: 0.5rem;
}

.stats-header p {
    color: var(--theme-gray, #6b7280);
    font-size: 1.1rem;
}

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

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--theme-gray-light, #f3f4f6);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(234, 96, 4, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-orange, #ea6004);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-orange, #ea6004);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-black, #000000);
    margin-bottom: 0.25rem;
}

.stat-description {
    color: var(--theme-gray, #6b7280);
    font-size: 0.875rem;
}

.stats-cta {
    text-align: center;
}

/* Button Styles for Lazy Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-orange, #ea6004);
    color: white;
    text-decoration: none;
    border-radius: var(--button-radius, 10px);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-orange-dark, #d45500);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 96, 4, 0.3);
}

.btn i {
    font-size: 1rem;
}

/* Responsive Design for Lazy Components */
@media (max-width: 768px) {
    .services-detailed-content,
    .testimonials-content,
    .stats-detailed-content {
        padding: 1.5rem;
    }
    
    .services-features {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-detailed {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ===== ENHANCED LAZY-LOADED COMPONENT STYLES ===== */

/* About Preview Section Styles */
.about-preview-content {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content {
    padding-right: 2rem;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--theme-black, #000000);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-description {
    color: var(--theme-gray, #6b7280);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-features {
    margin-bottom: 2rem;
}

.about-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--theme-gray-light, #f3f4f6);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-features .feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(234, 96, 4, 0.1);
}

.about-features .feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-orange, #ea6004);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-features .feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-black, #000000);
    margin-bottom: 0.5rem;
}

.about-features .feature-content p {
    color: var(--theme-gray, #6b7280);
    font-size: 0.9rem;
    line-height: 1.5;
}

.about-image {
    position: relative;
}

.about-image .image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.floating-stat {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.floating-stat.stat-1 {
    top: 20px;
    right: -20px;
    animation-delay: 0s;
}

.floating-stat.stat-2 {
    bottom: 20px;
    left: -20px;
    animation-delay: 3s;
}

.floating-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange, #ea6004);
    margin-bottom: 0.25rem;
}

.floating-stat .stat-text {
    font-size: 0.875rem;
    color: var(--theme-gray, #6b7280);
    font-weight: 500;
}

/* Blog Preview Section Styles */
.blog-preview-content {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-orange, #ea6004);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 2;
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-black, #000000);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--theme-gray, #6b7280);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--theme-gray-light, #f3f4f6);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--theme-gray-dark, #4b5563);
}

.blog-date-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.blog-date,
.blog-read-time {
    font-size: 0.75rem;
    color: var(--theme-gray, #6b7280);
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-orange, #ea6004);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: var(--primary-orange-dark, #d45500);
}

.blog-cta {
    text-align: center;
}

/* Projects Showcase Section Styles */
.projects-showcase-content {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--theme-gray-light, #f3f4f6);
    color: var(--theme-gray, #6b7280);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-orange, #ea6004);
    border-color: var(--primary-orange, #ea6004);
    color: white;
    transform: translateY(-2px);
}

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

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.action-btn {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary-orange, #ea6004);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-orange, #ea6004);
    color: white;
    transform: scale(1.1);
}

.project-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-orange, #ea6004);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 2;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-black, #000000);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--theme-gray, #6b7280);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--theme-gray-light, #f3f4f6);
}

.project-location,
.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.project-location {
    color: var(--theme-gray, #6b7280);
}

.project-status.completed {
    color: #10b981;
}

.project-status.ongoing {
    color: #f59e0b;
}

.project-status.planned {
    color: #6366f1;
}

.project-stats {
    display: flex;
    justify-content: space-between;
}

.project-stats .stat {
    text-align: center;
}

.project-stats .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-orange, #ea6004);
    margin-bottom: 0.25rem;
}

.project-stats .stat-label {
    font-size: 0.75rem;
    color: var(--theme-gray, #6b7280);
    font-weight: 500;
}

.projects-cta {
    text-align: center;
}

/* Responsive Design for New Components */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .floating-stat.stat-1,
    .floating-stat.stat-2 {
        position: static;
        margin: 1rem auto;
        display: inline-block;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-preview-content,
    .blog-preview-content,
    .projects-showcase-content {
        padding: 1.5rem;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .project-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-stats {
        justify-content: space-around;
    }
}

/* Animation enhancements for lazy-loaded content */
.lazy-section.loaded-section .about-preview-content,
.lazy-section.loaded-section .blog-preview-content,
.lazy-section.loaded-section .projects-showcase-content {
    animation: slideInUp 0.8s ease-out;
}

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

/* Enhanced floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

/* Filter animation */
.project-card {
    transition: all 0.5s ease;
}

.project-card.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.project-card.filtered-in {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}/*
 ===== INTERACTIVE ELEMENTS ENHANCEMENTS ===== */

/* Button ripple effect */
.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Enhanced hover effects for cards */
.hover-lift-3d {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.hover-lift-3d:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Loading states for interactive elements */
.loading-state {
    position: relative;
    pointer-events: none;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

.loading-state::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-orange);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Success state animation */
.success-state {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Error state styling */
.error-state {
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.05);
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Enhanced skeleton animations */
.skeleton-pulse {
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.6;
    }
}

/* Staggered loading animation */
.stagger-load {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.6s ease-out forwards;
}

.stagger-load:nth-child(1) { animation-delay: 0.1s; }
.stagger-load:nth-child(2) { animation-delay: 0.2s; }
.stagger-load:nth-child(3) { animation-delay: 0.3s; }
.stagger-load:nth-child(4) { animation-delay: 0.4s; }
.stagger-load:nth-child(5) { animation-delay: 0.5s; }
.stagger-load:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress indicator for lazy loading */
.lazy-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-light));
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .hover-lift-3d:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .btn-ripple {
        display: none;
    }
    
    .stagger-load {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .skeleton-pulse {
        animation: none;
        opacity: 0.6;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .lazy-error {
        border-width: 3px;
        background: #fef2f2;
    }
    
    .error-state {
        border-width: 3px;
    }
    
    .skeleton-shimmer {
        background: linear-gradient(
            90deg,
            transparent,
            rgba(0, 0, 0, 0.3),
            transparent
        );
    }
}

/* Print styles */
@media print {
    .lazy-section,
    .image-skeleton,
    .section-skeleton {
        display: none;
    }
    
    .loaded-section {
        display: block;
    }
    
    .lazy-error {
        display: none;
    }
}