﻿@media (max-width: 767.98px) {
    .passport-hero-banner {
        height: 180px !important;
    }

        .passport-hero-banner h1 {
            font-size: 1.2rem !important;
        }

        .passport-hero-banner div[style*='font-size: 1.2rem'] {
            font-size: 0.95rem !important;
        }
}

.passport-hero-banner {
    position: relative;
    width: 100%;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/assets/passport.webp') center center/cover no-repeat;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
}

    .passport-hero-banner .passport-hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(20, 40, 80, 0.45);
        z-index: 1;
    }

    .passport-hero-banner .passport-hero-content {
        position: relative;
        z-index: 2;
        width: 100%;
        text-align: center;
        color: #fff;
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .passport-hero-banner h1 {
        font-size: 2.2rem;
        font-weight: 900;
        margin-bottom: 14px;
        color: #fff;
        letter-spacing: 1px;
        text-shadow: 0 4px 24px rgba(20,40,80,0.25), 0 1px 0 #2563eb;
    }

    .passport-hero-banner .passport-hero-desc {
        font-size: 1.1rem;
        color: #e3e8f0;
        max-width: 700px;
        margin: 0 auto;
        text-shadow: 0 2px 8px rgba(0,0,0,0.18);
        font-weight: 400;
        line-height: 1.5;
    }

/* Mobile styles */
@media (max-width: 576px) {
    .passport-hero-banner {
        height: 180px;
        border-radius: 0 0 12px 12px;
    }

        .passport-hero-banner h1 {
            font-size: 1.1rem;
            margin-bottom: 8px;
            padding: 0 2vw;
            font-weight: 700;
        }

        .passport-hero-banner .passport-hero-desc {
            font-size: 0.95rem;
            padding: 0 2vw;
        }
}

body, html {
    overflow-x: hidden;
    background: #144aa6 !important;
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, system-ui, sans-serif;
}

/* Enhanced Services Section Styling */
#services {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

#services::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

#services .container {
    position: relative;
    z-index: 2;
}

#services h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#services .lead {
    color: #e3e8f0;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* Enhanced Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.service-card .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
}

.service-card h5 {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.service-card h5:last-of-type {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.service-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Damaged Passport Icon Styling */
.damaged-passport-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.service-card.damaged-passport .service-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c53030 100%);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.4);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
}

.service-card.damaged-passport .service-icon img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important; /* Makes the image white */
    transition: all 0.3s ease !important;
}

.service-card.damaged-passport:hover .service-icon img {
    transform: scale(1.1) rotate(5deg) !important;
}

/* Special styling for damaged passport card */
.service-card.damaged-passport {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 248, 0.95) 100%);
    border: 2px solid rgba(220, 53, 69, 0.2);
}

.service-card.damaged-passport .service-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c53030 100%);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.4);
}

.service-card.damaged-passport:hover .service-icon {
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.6);
}

.service-card.damaged-passport .btn {
    background: linear-gradient(135deg, #dc3545 0%, #c53030 100%);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.service-card.damaged-passport .btn:hover {
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #c53030 0%, #b91c1c 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #services h2 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card.damaged-passport .service-icon img {
        width: 45px !important;
        height: 45px !important;
    }
}

/* Animation for cards on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
