/* =========================================
   HERO PARALLAX
   ========================================= */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
/* -----------------------------------------
   Background image
   ----------------------------------------- */

.hero-background {
    position: absolute;
    /*
       Start slightly larger than the screen.
       This allows the image to move/zoom
       without exposing empty areas.
    */
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.05);
    will-change: transform;
}
/* -----------------------------------------
   Dark overlay
   ----------------------------------------- */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.30),
            rgba(0, 0, 0, 0.45)
        );
    z-index: 1;
}
 
/* -----------------------------------------
   Hero text
   ----------------------------------------- */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    will-change: transform, opacity;
    transform: translateY(0);
    opacity: 1;
}
/* Main heading */
.hero h1 {
    font-weight: 700;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.75),
        0 1px 3px rgba(0, 0, 0, 0.8);
}
/* Subtitle */
.hero p {
    font-size: 1.4rem;

    text-shadow:
        0 2px 7px rgba(0, 0, 0, 0.8);
}
/* -----------------------------------------
   Button
   ----------------------------------------- */
.hero .btn {
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.hero .btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.45);
}
/* -----------------------------------------
   Scroll indicator
   ----------------------------------------- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.85;
    animation: scrollBounce 2s infinite;
}
.scroll-indicator span {
    display: block;
    margin-bottom: 8px;
}
.scroll-indicator i {
    font-size: 1.2rem;
}
/* -----------------------------------------
   Scroll animation
   ----------------------------------------- */
@keyframes scrollBounce {

    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 8px);
    }
}
/* -----------------------------------------
   Mobile
   ----------------------------------------- */
@media (max-width: 768px) {
    .hero {
        min-height: 550px;
    }
    .hero h1 {
        font-size: 2.6rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .scroll-indicator {
        bottom: 20px;
    }
}
/* =========================================
   SERVICES
   ========================================= */

.services-section {
    background: #ffffff;
}
.services-intro {
    max-width: 750px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
}
/* -----------------------------------------
   Service Card
   ----------------------------------------- */
.service-card {
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.18);
}
/* -----------------------------------------
   Service Image
   ----------------------------------------- */
.service-image {
    height: 240px;
    overflow: hidden;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.6s ease,
        filter 0.4s ease;
}
/* Zoom image when mouse is over card */
.service-card:hover .service-image img {
    transform: scale(1.08);
}
/* -----------------------------------------
   Service Content
   ----------------------------------------- */
.service-content {
    padding: 24px;
}
.service-content h3 {
    font-size: 1.35rem;
    font-weight: 600;

    margin-bottom: 12px;

    transition:
        filter 0.3s ease,
        opacity 0.3s ease;
}
/*
   Slightly change the brightness of
   the service name when hovering.
*/
.service-card:hover .service-content h3 {
    filter: brightness(0.75);
}
.service-content p {
    color: #666;

    line-height: 1.6;

    margin-bottom: 0;
}
/* -----------------------------------------
   Mobile
   ----------------------------------------- */
@media (max-width: 767px) {
    .service-image {
        height: 220px;
    }
    .services-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

/* =========================================================
   FEATURES CINEMATIC PARALLAX
   ========================================================= */

.features-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    color: white;
}


/* ---------------------------------------------------------
   Background
   --------------------------------------------------------- */

.features-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/features-background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /*
       THIS creates the effect you are describing.
       The image stays attached to the viewport while
       the Features section scrolls over it.
    */
    background-attachment: fixed;
    z-index: 0;
}
/* ---------------------------------------------------------
   Light transparent overlay
     90deg,
            rgba(0, 0, 0, 0.20),
            rgba(0, 0, 0, 0.08),
            rgba(0, 0, 0, 0.20)
   --------------------------------------------------------- */
.features-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.30),
            rgba(0, 0, 0, 0.45)
        );
    z-index: 1;
}
/* ---------------------------------------------------------
   Content
   --------------------------------------------------------- */
.features-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 25px 0;
}
/* ---------------------------------------------------------
   Heading
   --------------------------------------------------------- */
.features-heading h2 {
    color: white;
    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.65);
}

.features-intro {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow:
        0 2px 6px rgba(0,0,0,0.65);
}
/* ---------------------------------------------------------
   Feature cards
   --------------------------------------------------------- */
.feature-card {
    position: relative;
    height: 100%;
    padding: 35px 28px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    /* Animation initial state */
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity .8s ease,
        transform .8s ease,
        background .35s ease,
        box-shadow .35s ease;
}
.features-visible .feature-card {
    opacity: 1;
    transform: translateY(0);
}
.feature-card:hover {
    transform: translateY(-8px);
    background:
        rgba(255,255,255,0.24);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.28);
}

/* ---------------------------------------------------------
   Icons
   --------------------------------------------------------- */

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffc107;
    color: #222;
    font-size: 1.7rem;
    box-shadow:
        0 6px 18px rgba(0,0,0,0.25);
    transition:
        transform .35s ease;
}
.feature-card:hover .feature-icon {
    transform:
        scale(1.12)
        rotate(-5deg);
}
/* ---------------------------------------------------------
   Text
   --------------------------------------------------------- */
.feature-card h3 {

    margin-bottom: 14px;

    color: white;

    font-size: 1.35rem;

    font-weight: 600;

    text-shadow:
        0 2px 5px rgba(0,0,0,0.55);
}
.feature-card p {

    margin: 0;

    color:
        rgba(255,255,255,0.95);

    line-height: 1.6;

    text-shadow:
        0 1px 4px rgba(0,0,0,0.55);
}
/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .features-section {
        min-height: auto;
    }

    .features-content {
        padding: 65px 0;
    }

    .features-heading h2 {
        font-size: 2.2rem;
    }

    /*
       Fixed backgrounds can behave poorly on iOS/mobile.
       Use normal cover positioning instead.
    */
    .features-background {
        background-attachment: scroll;
    }
}
/* =========================================================
   FEATURES REVEAL
   ========================================================= */

/*.features-heading {

    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}
*/        
/* Stagger cards */

.features-visible .col-md-4:nth-child(1) .feature-card {
    transition-delay: .15s;
}

.features-visible .col-md-4:nth-child(2) .feature-card {
    transition-delay: .30s;
}

.features-visible .col-md-4:nth-child(3) .feature-card {
    transition-delay: .45s;
}