/* =======================================
   BASE STYLES
   ======================================= */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    height: 100%;
    margin: 1em 0 60px 0;
    line-height: 1.6;
    color: #333;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

/* =======================================
   PLACEHOLDER IMAGES & ICONS
   ======================================= */
.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

/* =======================================
   BUTTONS
   ======================================= */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #084298;
    }

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

/* =======================================
   HERO SECTION
   ======================================= */
.hero-section {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.55);
}

.hero-overlay {
    background-color: rgba(0,0,0,0.5);
    max-width: 600px;
    text-align: center;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

    .hero-overlay h1,
    .hero-overlay p {
        color: #fff;
    }

/* =======================================
   FEATURES SECTION
   ======================================= */
.marketing img {
    object-fit: cover;
}

.gallery-card {
    border: 4px solid #fff;
    background: #fafafa;
    transition: transform 0.35s, box-shadow 0.35s;
    cursor: pointer;
}

.tilt-left {
    transform: rotate(-2deg);
}

.tilt-right {
    transform: rotate(2deg);
}

.gallery-card:hover {
    transform: rotate(0) scale(1.07);
    z-index: 2;
}

.gallery-img, .gallery-thumb, .gallery-video {
    object-fit: cover;
    width: 100%;
    height: 220px;
}

.thumb-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 4px;
}

/* =======================================
   MODAL STYLES
   ======================================= */
.modal-body {
    background: #000;
}

.modal-fade {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

    .modal-fade.show {
        opacity: 1;
    }

.modal-nav {
    font-size: 2rem;
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

    .modal-nav:hover {
        background: rgba(0,0,0,0.6);
    }

#modalIndicators span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    margin: 2px;
}

    #modalIndicators span.active {
        background: #333;
    }

.max-caption-height {
    max-height: 150px;
    overflow-y: auto;
}

/* =======================================
   FEATURETTES & PARALLAX
   ======================================= */
.featurette-heading span.text-muted {
    font-weight: 400;
    font-style: italic;
}

.featurette p.lead {
    font-size: 1.05rem;
    line-height: 1.6;
}

.parallax {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 3rem 0;
    border-radius: .5rem;
    overflow: hidden;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.bg-overlay {
    background-color: rgba(0,0,0,.5);
    border-radius: .5rem;
    padding: 1rem;
}

/* =======================================
   FADE-IN SECTIONS
   ======================================= */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

    .fade-section.show {
        opacity: 1;
        transform: translateY(0);
    }

/* =======================================
   MEDIA QUERIES
   ======================================= */
@media(max-width:767.98px) {
    .featurette {
        text-align: center !important;
    }

        .featurette .col-md-7 {
            order: unset !important;
            margin-bottom: 1.5rem;
        }

    .parallax {
        background-attachment: scroll !important;
    }
}

/*================= Changes =======================*/

/* Hero Section */
.hero {
    background: url("https://images.pexels.com/photos/245208/pexels-photo-245208.jpeg") no-repeat center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -1.5rem;
}

    .hero .overlay {
        background: rgba(0,0,0,0.55);
        padding: 2rem;
        border-radius: 12px;
    }

    .hero h1 {
        font-size: 3rem;
        color: #fff;
        margin-bottom: 1rem;
    }

    .hero p {
        color: #eee;
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
    }

/* Sections */
section {
    padding: 6rem 2rem;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-sub {
    color: #777;
    margin-bottom: 2rem;
}

/* Before & After */
.before-after {
    background: #fafafa;
}

.comparison-container {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
}

.comparison {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

    .comparison .img {
        width: 100%;
        display: block;
    }

    .comparison .img-top {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        clip-path: inset(0 50% 0 0);
    }

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin-top: 1rem;
    background: transparent;
    cursor: pointer;
}

    .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #f1c40f;
        border: 2px solid #000;
        cursor: pointer;
    }

    .slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #f1c40f;
        border: 2px solid #000;
        cursor: pointer;
    }

/* Types */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

    .product-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        transition: transform 0.4s;
    }

    .product-card h3 {
        padding: 1rem;
        font-size: 1.1rem;
        font-weight: 500;
    }

    .product-card:hover {
        transform: translateY(-10px);
    }

        .product-card:hover img {
            transform: scale(1.1);
        }

/* Why Us */
.why {
    background: url("https://images.pexels.com/photos/245208/pexels-photo-245208.jpeg") no-repeat center/cover;
    background-attachment: fixed;
    color: #fff;
}

.why-content {
    max-width: 700px;
    margin: auto;
    background: rgba(0,0,0,0.6);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

/* Contact */
.contact form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
    gap: 1rem;
}

.contact input, .contact textarea {
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.contact button {
    border: none;
}

.form-message {
    margin-top: 1rem;
    font-weight: 600;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

    .fade-in.delay-1 {
        animation-delay: 0.4s;
    }

    .fade-in.delay-2 {
        animation-delay: 0.8s;
    }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .fade-up.delay-1 {
        transition-delay: 0.3s;
    }

    .fade-up.delay-2 {
        transition-delay: 0.6s;
    }

    .fade-up.delay-3 {
        transition-delay: 0.9s;
    }

/* Adjust spacing for the marketing section */
.marketing {
    padding-top: 3rem !important;
    padding-bottom: 3rem;
}
