/* =====================================================
   AL SALEEM SPC - COMPLETE WORKING VERSION
   Perfect Carousel + All Animations Working
   Date: February 2, 2026
===================================================== */

:root {
    --primary-color: #A83030;
    --secondary-color: #8B2828;
    --dark-color: #2C2C2C;
    --light-color: #F8F9FA;
    --white: #FFFFFF;
    --gray: #6C757D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* =====================================================
   CUSTOM SCROLL ANIMATIONS CSS
===================================================== */

/* Elements start invisible and positioned */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When animated (JavaScript adds .animate class) */
.fade-up.animate,
.fade-in.animate,
.zoom-in.animate,
.slide-left.animate,
.slide-right.animate {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Animation delays */
.animate-delay-100 { transition-delay: 0.1s; }
.animate-delay-200 { transition-delay: 0.2s; }
.animate-delay-300 { transition-delay: 0.3s; }
.animate-delay-400 { transition-delay: 0.4s; }
.animate-delay-500 { transition-delay: 0.5s; }

/* =====================================================
   CAROUSEL - PERFECT FADE TRANSITIONS
===================================================== */

/* Hero section container */
.hero-section {
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    height: 90vh !important;
    min-height: 600px;
    background-color: #2C2C2C;
}

/* Carousel container */
.carousel {
    margin: 0 !important;
    padding: 0 !important;
    height: 90vh !important;
    min-height: 600px;
}

/* Carousel inner wrapper */
.carousel-inner {
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    min-height: 600px;
    background-color: #2C2C2C;
}

/* ALL carousel items - position absolute for overlap */
.carousel-item {
    height: 100vh !important;
    min-height: 600px;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    display: block !important;
}

/* Carousel fade transitions */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out !important;
    z-index: 0;
}

/* Active slide */
.carousel-fade .carousel-item.active {
    opacity: 1 !important;
    z-index: 1;
    position: relative !important;
}

/* Incoming slide */
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1 !important;
    z-index: 2;
    transition: opacity 0.8s ease-in-out !important;
}

/* Outgoing slide */
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0 !important;
    z-index: 1;
    transition: opacity 0.8s ease-in-out !important;
}

/* Background images */
.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

/* Caption positioning */
.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 15px;
}

.carousel-caption-custom h1 {
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    font-weight: 700;
}

.carousel-caption-custom p {
    font-size: 1.5rem;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 15;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    margin-bottom: 30px;
    z-index: 15;
}

/* Mobile responsive carousel */
@media (max-width: 768px) {
    .hero-section,
    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 70vh !important;
        min-height: 500px;
    }

    .carousel-caption-custom h1 {
        font-size: 2rem;
    }

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

@media (max-width: 576px) {
    .hero-section,
    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 60vh !important;
        min-height: 400px;
    }

    .carousel-caption-custom h1 {
        font-size: 1.5rem;
    }

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

/* =====================================================
   TOP BAR
===================================================== */
.top-bar {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--primary-color);
}

.top-bar i {
    color: var(--primary-color);
    margin-right: 5px;
}

@media (max-width: 768px) {
    .top-bar {
        padding: 8px 0;
        font-size: 12px;
    }

    .top-bar-right {
        display: none !important;
    }
}

/* =====================================================
   NAVIGATION
===================================================== */
.navbar {
    padding: 5px 0 !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white) !important;
    margin: 0 !important;
}

.navbar.scrolled {
    padding: 5px 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
    height: 90px;
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 80px !important;
}

.navbar .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 15px !important;
    margin: 0 5px;
    transition: color 0.3s ease;
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 50%;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 2px !important;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(168, 48, 48, 0.25);
}

.dropdown-item.active {
	background-color: var(--primary-color);
	
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        margin-top: 15px;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar .nav-link::after {
        width: 0 !important;
    }

    .navbar .nav-link:hover::after,
    .navbar .nav-link.active::after {
        width: 30% !important;
        left: 15px;
        transform: none;
    }

    .dropdown-menu {
        box-shadow: none;
        padding-left: 20px;
        position: static !important;
        background-color: #f8f9fa;
        border-radius: 8px;
    }
}

/* =====================================================
   HERO SECTION - ZERO GAPS
===================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.carousel {
    margin: 0 !important;
    padding: 0 !important;
}

.carousel-inner {
    margin: 0 !important;
    padding: 0 !important;
}

.carousel-item {
    height: 550px;
    margin: 0 !important;
    padding: 0 !important;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 15px;
}

.carousel-caption-custom h1 {
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

.carousel-caption-custom p {
    font-size: 1.5rem;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 30px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 450px;
    }

    .carousel-caption-custom h1 {
        font-size: 2rem;
    }

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

/* =====================================================
   BUTTONS
===================================================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(168, 48, 48, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* =====================================================
   SECTIONS - ZERO GAPS
===================================================== */
section {
    padding: 80px 0;
    margin: 0 !important;
    background-color: var(--white);
}

section.bg-light {
    background-color: var(--light-color) !important;
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
}

.section-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 20%;
}

/* =====================================================
   SERVICE CARDS
===================================================== */
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(168, 48, 48, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-card:hover h4 {
    color: var(--primary-color);
}

.service-card p {
    color: var(--gray);
}

/* =====================================================
   MATERIAL CARDS
===================================================== */
.material-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.material-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.material-card:hover img {
    transform: scale(1.05);
}

.material-card-body {
    padding: 30px;
}

.material-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.material-card p {
    color: var(--gray);
}

.material-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(168, 48, 48, 0.2);
}

/* =====================================================
   CTA SECTION
===================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* =====================================================
   STATS SECTION
===================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--dark-color), #1a1a1a);
}

.stat-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item i {
    color: var(--primary-color);
    font-size: 3rem;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 15px 0;
    color: var(--white);
}

.counter {
    display: inline-block;
}

/* =====================================================
   ACCORDION
===================================================== */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 8px !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-button {
    background-color: var(--white);
    color: var(--dark-color);
    font-weight: 600;
    padding: 18px 20px;
    border: none;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 20px 25px;
    color: var(--gray);
    line-height: 1.8;
    background-color: #f9f9f9;
}

.accordion-flush .accordion-item {
    border-left: 3px solid var(--primary-color);
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: linear-gradient(135deg, var(--dark-color), #1a1a1a);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* =====================================================
   GO TO TOP
===================================================== */
.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(168, 48, 48, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.go-to-top.active {
    opacity: 1;
    visibility: visible;
}

.go-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168, 48, 48, 0.6);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}



/* ============================================
   DROPDOWN MENU FIX - DESKTOP ONLY
   ============================================ */

/* Apply hover effect ONLY on desktop (screens 992px and above) */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block !important;
        margin-top: 0 !important;
        top: 100% !important;
    }

    .navbar-nav .dropdown-menu {
        margin-top: 0 !important;
        padding-top: 0.5rem !important;
        transition: none !important;
    }
}

/* Mobile menu behavior (below 992px) - Keep default click behavior */
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        margin-top: 0.5rem;
        padding-top: 0;
        transition: all 0.3s ease;
    }
}



/* ============================================
   SERVICE ICON CIRCLES - MAROON WITH WHITE ICONS
   ============================================ */

.service-icon-circle {
    width: 80px;
    height: 80px;
    background-color: #A83030;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(168, 48, 48, 0.2);
    transition: all 0.3s ease;
}

.service-icon-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(168, 48, 48, 0.3);
}

.service-icon-circle i {
    color: white !important;
}

/* Also fix .service-icon class */
.service-icon {
    width: 80px;
    height: 80px;
    background-color: #A83030;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(168, 48, 48, 0.2);
    transition: all 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(168, 48, 48, 0.3);
}

.service-icon i {
    color: white !important;
}
