/* FILE: css/style.css */
/* Custom styling for Sharp Services */

/* Color Theme Variables */
:root {
    --primary-red: #bd141a;
    --primary-light: #fff;
    --gradient-primary: linear-gradient(135deg, #bd141a, #ffffff);
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    color: #333;
}

/* ANIMATED HEADING STYLES */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #4a4a4a !important;
    position: relative;
    display: inline-block;
    text-align: center;
}

h1::after,
h2::after,
h3::after,
h4::after,
h5::after,
h6::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(189, 20, 26, 0.4), rgba(214, 58, 63, 0.4));
    border-radius: 2px;
}

/* Hide underline for elements with data-no-underline attribute */
[data-no-underline]::after {
    display: none !important;
}

/* Animated underline on page load */
@keyframes slideUnderline {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

h1::after {
    animation: slideUnderline 1s ease forwards;
}

h2::after {
    animation: slideUnderline 0.8s ease forwards 0.1s;
}

h3::after {
    animation: slideUnderline 0.8s ease forwards 0.15s;
}

/* Animated underline on hover */
h1:hover::after,
h2:hover::after,
h3:hover::after,
h4:hover::after,
h5:hover::after,
h6:hover::after {
    animation: gradientFlow 2s linear infinite;
    display: block !important;
}

/* Card headings turn white on hover */
.card h3:hover,
.card h5:hover {
    color: white !important;
}

/* CTA section heading stays white on hover with animated underline */
.cta-section h2 {
    color: white !important;
}

.cta-section h2::after {
    display: none !important;
}

.cta-section h2:hover::after {
    display: block !important;
}

@keyframes gradientFlow {
    0% {
        background: linear-gradient(90deg, #bd141a, #d63a3f);
        box-shadow: 0 0 10px rgba(189, 20, 26, 0.5);
    }

    50% {
        background: linear-gradient(90deg, #d63a3f, #bd141a);
        box-shadow: 0 0 15px rgba(189, 20, 26, 0.8);
    }

    100% {
        background: linear-gradient(90deg, #bd141a, #d63a3f);
        box-shadow: 0 0 10px rgba(189, 20, 26, 0.5);
    }
}

/* Override Bootstrap primary color */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled).active {
    background-color: #bd141a;
    border-color: #bd141a;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #9d0f13;
    border-color: #9d0f13;
}

.btn-outline-primary {
    color: #bd141a;
    border-color: #bd141a;
}

.btn-outline-primary:hover {
    background-color: #bd141a;
    border-color: #bd141a;
    color: white;
}

.text-primary {
    color: #bd141a !important;
}

.bg-primary {
    background-color: #bd141a !important;
}

/* Navbar Styling */
.navbar {
    /* background: linear-gradient(90deg, #bd141a, #d63a3f) !important; */
    background: linear-gradient(90deg, #bd141a, #6c0509) !important;
    box-shadow: 0 2px 8px rgba(189, 20, 26, 0.2);
}

.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand .tagline {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 8px;
    border-radius: 4px;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.25);
    border-bottom: 3px solid white;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.tagline {
    font-size: 0.8rem;
    font-weight: 400;
}

/* carousel overlay */
.carousel-item {
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* subtle overlay */
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 30%;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption .btn {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* service cards hover effect */
.service-card,
.card.shadow-sm {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.card.shadow-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, #bd141a, #000);
}

/* floating buttons */
.float-whatsapp,
.float-scroll-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 30px;
    background-color: #25d366;
    /* whatsapp green */
    color: white;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(189, 20, 26, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.float-whatsapp {
    left: 30px;
    background-color: #25d366;
}

.float-scroll-top {
    right: 30px;
    background-color: #bd141a;
}

.float-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

.float-scroll-top:hover {
    background-color: #9d0f13;
}

/* footer links */
footer a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .float-whatsapp,
    .float-scroll-top {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Bootstrap icon spacing */
.fas,
.fab {
    line-height: 1;
}

/* MARQUEE SECTION */
.marquee-section {
    background: white;
    color: #bd141a;
    padding: 12px 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(189, 20, 26, 0.3);
    position: relative;
    z-index: 1000;
}

.marquee-text {
    display: flex;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    font-weight: 600;
    font-size: 1rem;
}

.marquee-text span {
    margin-right: 50px;
    display: inline-block;
    color: #bd141a;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.marquee-text:hover {
    animation-play-state: paused;
}

/* GRADIENT BORDER CARD WITH 3D EFFECT */
.gradient-card {
    position: relative;
    border: none;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
}

.gradient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #bd141a, #d63a3f, #bd141a);
    border-radius: 12px;
    padding: 3px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gradient-card:hover::before {
    opacity: 1;
    animation: gradientShift 2s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background: linear-gradient(135deg, #bd141a, #d63a3f, #bd141a);
    }

    50% {
        background: linear-gradient(135deg, #d63a3f, #bd141a, #d63a3f);
    }
}

.gradient-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(189, 20, 26, 0.3), 0 0 20px rgba(189, 20, 26, 0.2);
}

.gradient-card:hover h5,
.gradient-card:hover p,
.gradient-card:hover .text-secondary {
    color: white !important;
}

.gradient-card:hover i {
    color: white !important;
}

.gradient-card .card-img-top {
    border-radius: 0;
}

.gradient-card .card-body {
    position: relative;
    z-index: 1;
}

/* Hide underlines on card titles */
.gradient-card h5::after,
.gradient-card h3::after,
.gradient-card h4::after,
.card h5::after,
.card h3::after,
.card h4::after,
.card h2::after,
.card-title::after,
.card-text h5::after,
.card-text h3::after,
.card-text h4::after {
    display: none !important;
}

/* HIGHLIGHTED SECTION */
.highlighted-section {
    background: linear-gradient(135deg, rgba(189, 20, 26, 0.05), rgba(189, 20, 26, 0.1));
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(189, 20, 26, 0.12);
    margin: 20px 0;
}

.highlighted-section h3 {
    color: #bd141a;
    font-weight: 700;
}

/* STATS SECTION */
.stats-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(189, 20, 26, 0.2);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #bd141a;
    margin-bottom: 10px;
}

.stats-label {
    color: #666;
    font-weight: 500;
}

/* CONTACT FORM SECTION */
.contact-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(189, 20, 26, 0.08), rgba(189, 20, 26, 0.15));
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(189, 20, 26, 0.15);
}

.contact-form .form-control {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #bd141a;
    box-shadow: 0 0 0 0.2rem rgba(189, 20, 26, 0.25);
}

.contact-form .form-label {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.contact-form .btn-submit {
    background: linear-gradient(90deg, #bd141a, #d63a3f);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(189, 20, 26, 0.4);
    background: linear-gradient(90deg, #d63a3f, #bd141a);
}

/* MAP SECTION */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(189, 20, 26, 0.15);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FOOTER GRADIENT */
footer {
    /* background: linear-gradient(135deg, #bd141a, #9d0f13) !important; */
    background: linear-gradient(90deg, #bd141a, #6c0509) !important;
    position: relative;
}

footer .bg-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
}

footer h5,
footer h6 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 15px;
}

/* WHY CHOOSE US SECTION */
.why-choose-card {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(189, 20, 26, 0.2);
    border: 2px solid #bd141a;
}

.why-choose-card i {
    color: #bd141a;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.why-choose-card:hover i {
    font-size: 1.2em;
    color: #d63a3f;
}

/* FEATURED SERVICES */
.featured-service {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #bd141a;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.featured-service:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(189, 20, 26, 0.2);
}

.featured-service i {
    color: #bd141a;
    font-size: 2rem;
    margin-right: 20px;
}

.featured-service h5 {
    color: #333;
    margin-bottom: 5px;
}

.featured-service p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form {
        padding: 30px 20px;
    }

    .marquee-text {
        font-size: 0.85rem;
    }

    .marquee-text span {
        margin-right: 30px;
    }

    .stats-number {
        font-size: 2rem;
    }

    .map-container {
        height: 300px;
    }
}
