:root {
    --primary-color: #0d6efd;
    --dark-color: #121212;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    color: #333;
}

/* Navbar */
.navbar {
    transition: 0.4s;
    padding: 15px 0;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0 10px;
    position: relative;
    z-index: 2;
}

.nav-link.active {
    color: #0d6efd !important;
}

/* Footer Adjustments */
.fb-frame-footer {
    max-width: 340px;
    margin: 0 auto;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: #0d6efd;
    padding-left: 5px;
}

.main-nav {
    background: rgba(0, 0, 0, 0.4);
    /* Dark opacity */
    backdrop-filter: blur(10px);
    /* Background blur */
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.5s ease;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrolled State */
.main-nav.scrolled {
    background: #121212 !important;
    /* Solid dark */
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: none;
}

/* Fix Hero Padding */
.hero-section {
    margin-top: 0;
    /* Slider start from the top */
}

/* WhatsApp Button animation */
.btn-success {
    transition: 0.3s;
    background-color: #25D366;
    border: none;
}

.btn-success:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

/* Hero Section */
.hero-section .carousel-item {
    height: 90vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

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

/* Titles */
.section-title {
    position: relative;
    font-weight: 700;
    padding-bottom: 15px;
}

.title-line {
    width: 50px;
    height: 3px;
    background: #0d6efd;
}

/* Cards & Icons */
.icon-box {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: 0.3s;
}

.service-card {
    transition: 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--primary-color);
    color: white;
}

.service-card:hover .icon-box {
    background: white;
    color: var(--primary-color);
}

/* Portfolio Overlay */
.portfolio-item img {
    transition: 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
}

.bullet-point {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

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

    .hero-section .carousel-item {
        height: 70vh;
    }
}

/* Floating Buttons Base Style */
.floating-btn {
    position: fixed;
    bottom: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s ease;
    border: none;
    opacity: 0;
    visibility: hidden;
}

.floating-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Left WhatsApp Button */
#leftWhatsApp {
    left: 30px;
    background-color: #25D366;
    color: white;
    font-size: 24px;
}

#leftWhatsApp .btn-text {
    position: absolute;
    left: 60px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

#leftWhatsApp:hover .btn-text {
    opacity: 1;
    left: 70px;
}

/* Pulse Animation for WhatsApp */
#leftWhatsApp {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Go To Top Button (Right Side) */
#scrollTop {
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#scrollTop:hover {
    background-color: #121212;
    transform: translateY(-5px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #leftWhatsApp {
        left: 15px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }

    #scrollTop {
        right: 15px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }

    #leftWhatsApp .btn-text {
        display: none;
    }

    /* Hide text on mobile for clean look */
}
/* Preloader Background */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212; /* Dark background to match theme */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Always on top */
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-container {
    text-align: center;
}

/* Modern Spinner */
.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(13, 110, 253, 0.1);
    border-top: 5px solid #0d6efd; /* Brand Blue */
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.2);
}

.loader-text {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1.2rem;
    animation: pulse-text 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.98); }
}

/* Class to hide loader via JS */
.loader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}