:root {
    --primary: rgb(18, 8, 56);
    --secondary: #ed1127;
    --bg: #ffffff;
    --font: 'Poppins', sans-serif;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: #333;
    scroll-behavior: smooth;
}

/* Header & Logo Animation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: transparent;
    z-index: 1000;
    transition: all 0.5s ease;
}

header.scrolled {
    background: var(--bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0 !important;
}

#logo {
    width: 150px;
    transition: all 0.5s ease;
}

header.scrolled #logo {
    width: 90px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(18, 8, 56, 0.7)), url('../images/banner.jpg') center/cover no-repeat;
    height: 100vh;
    padding-top: 8rem;
}

.hero h1 {
    margin-top: 100px;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

/* Scrollable Services */
.services-scroll::-webkit-scrollbar {
    height: 8px;
}

.services-scroll::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

.services-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Footer */
footer {
    background-color: var(--primary);
}

/* Fade-in animation */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease;
}

section {
    opacity: 0;
    transform: translateY(30px);
}

/* Scroll Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    text-align: center;
    animation: fadeInUp 1.5s ease-in-out;
}

.grow-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    animation: pulseText 2s infinite;
}

.scroll-down .arrow {
    font-size: 2rem;
    color: #fff;
    animation: bounceBlink 1.5s infinite;
    cursor: pointer;
}

/* Animations */
@keyframes bounceBlink {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: 0.5;
        transform: translateY(10px);
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SERVICES SECTION */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    width: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.service-card:hover img {
    filter: brightness(60%);
    transform: scale(1.05);
}

/* Overlay for description */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 8, 56, 0.75);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-container:hover .overlay {
    opacity: 1;
}

/* Title below the image */
.card-title {
    background: rgb(18, 8, 56);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    padding: 0.8rem;
    margin: 0;
    border-top: 3px solid #ed1127;
}

/* Responsive */
@media (max-width: 768px) {
    .service-card {
        width: 90%;
    }

    .image-container {
        height: 200px;
    }

    .card-title {
        font-size: 1rem;
    }
}