/* --- GLOBAL STYLES --- */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #0ea5e9;
    --dark-bg: #0f172a;
    --card-bg: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVBAR --- */
.custom-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

/* --- ULTRA PREMIUM WELCOME BANNER --- */
.premium-banner-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

.premium-banner {
    background: linear-gradient(-45deg, #020024, #090979, #00d4ff, #090979);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50% 50% / 40px;
    box-shadow: 0 15px 40px rgba(9, 9, 121, 0.3);
}

.premium-banner::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatShape 6s infinite ease-in-out;
}

.premium-banner::after {
    content: "";
    position: absolute;
    bottom: 20px;
    right: 10%;
    width: 100px;
    height: 100px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: floatShape 8s infinite ease-in-out reverse;
}

.banner-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: linear-gradient(to right, #ffffff, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-text {
    font-size: 1.25rem;
    color: #e0f2fe;
    line-height: 1.8;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatShape {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- SERVICE CARD --- */
.service-card {
    background: #fff;
    border-radius: 20px;
    border: none;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.card-img-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.service-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-img {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
    text-align: center;
    background: radial-gradient(circle at 10% 20%, rgb(249, 250, 251) 0%, rgb(255, 255, 255) 90%);
}

/* --- FOOTER --- */
footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding-top: 60px;
    padding-bottom: 20px;
    margin-top: auto;
    border-top: 3px solid var(--primary-color);
}

.footer-links h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.footer-links ul li a:hover {
    color: #38bdf8;
    padding-left: 8px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.copyright-text {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 25px;
    margin-top: 40px;
    font-size: 0.9rem;
    text-align: center;
    color: #64748b;
}

/* --- RESPONSIVE & HOME BUTTON LOGIC --- */

/* Desktop Styles */
@media (min-width: 992px) {
    .search-container {
        display: block;
        flex-grow: 1;
        margin: 0 50px;
        max-width: 600px;
    }
    .custom-navbar .container {
        display: flex;
        justify-content: space-between;
    }
    .nav-icon-link {
        display: flex; /* Show icon on Desktop */
        font-size: 1.5rem;
        color: #475569;
        text-decoration: none;
        transition: color 0.3s;
    }
    .nav-icon-link:hover { color: var(--primary-color); }
}

/* Mobile & Tablet Styles */
@media (max-width: 991.98px) {
    
    /* Hide Search */
    .search-container { display: none !important; }
    
    /* Center Logo Perfectly */
    .custom-navbar .container {
        display: flex;
        justify-content: center !important;
        align-items: center;
        width: 100%;
    }
    .navbar-brand { margin: 0 !important; }

    /* --- HIDE HOME ICON ON MOBILE/TABLET --- */
    .nav-icon-link {
        display: none !important; /* Completely removed from view */
    }

    /* Banner Adjustments */
    .premium-banner {
        padding: 60px 15px;
        border-radius: 0 0 30px 30px;
    }
    .welcome-title { font-size: 2rem; }
}

/* Input Group Styles */
.search-input { border-radius: 50px 0 0 50px; border: 1px solid #e2e8f0; padding-left: 20px; }
.search-btn { border-radius: 0 50px 50px 0; padding-left: 25px; }

/* Detail Page Image */
.detail-img-wrapper { width: 100%; max-height: 500px; overflow: hidden; border-radius: 15px; margin-bottom: 25px; }
.service-detail-img { width: 100%; height: 100%; object-fit: cover; }