/* Modern UI Enhancements */

/* Service Cards with Image Overlay */
.service-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 100, 251, 0.9) 0%, rgba(147, 243, 68, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon-large {
    font-size: 4rem;
    color: white;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.service-card:hover .service-image-wrapper img {
    transform: scale(1.15);
}

.service-card-content {
    padding: 1.5rem;
}

/* Modern Project Cards */
.project-card-modern {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image-modern {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.project-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-modern:hover .project-image-modern img {
    transform: scale(1.15);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 100, 251, 0.95) 0%, rgba(147, 243, 68, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.project-card-modern:hover .project-overlay {
    opacity: 1;
}

.project-overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.project-overlay-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-overlay-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
}

.project-badge.completed {
    background: var(--success-color);
    color: white;
}

.project-badge.ongoing {
    background: var(--warning-color);
    color: white;
}

.project-badge.upcoming {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.project-info-modern {
    padding: 1.5rem;
}

.project-info-modern h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.project-info-modern p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Modern Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
    display: block;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(52, 100, 251, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 100, 251, 0.6);
}

/* Modern Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 4rem 0;
}

/* Enhanced Card Styles */
.card-modern {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(52, 100, 251, 0.1);
}

.card-modern:hover {
    box-shadow: 0 12px 40px rgba(52, 100, 251, 0.15);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Button Styles */
.btn-modern {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-modern:hover::after {
    width: 300px;
    height: 300px;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 100, 251, 0.3) 0%, rgba(147, 243, 68, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    z-index: 5;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-indicator i {
    font-size: 1.5rem;
}

/* Modern Typography */
.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced Feature Cards */
.feature-card {
    position: relative;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(52, 100, 251, 0.15);
    transform: translateY(-8px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-slide .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .service-image-wrapper {
        height: 200px;
    }
    
    .project-image-modern {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .service-image-wrapper {
        height: 180px;
    }

    .service-card-content {
        padding: 1.25rem;
    }

    .service-card-content h3 {
        font-size: 1.35rem;
    }

    .project-image-modern {
        height: 200px;
    }

    .project-info-modern h3 {
        font-size: 1.15rem;
    }

    .project-info-modern p {
        font-size: 0.85rem;
    }

    .stats-section {
        padding: 60px 0;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .fab {
        width: 52px;
        height: 52px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 420px) {
    .service-image-wrapper {
        height: 160px;
    }

    .project-image-modern {
        height: 180px;
    }

    .project-overlay-content {
        padding: 1.5rem;
    }

    .project-overlay-content h4 {
        font-size: 1.25rem;
    }

    .project-overlay-content p {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 2.75rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }
}


/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

