/* Sark Global Advisors - Enhanced Custom Styles */
/* Theme colors from logo with modern enhancements */
:root {
    --primary-navy: #2C3E50;
    --primary-red: #C0392B;
    --primary-light-blue: #5DADE2;
    --accent-blue: #3498DB;
    --white: #FFFFFF;
    --light-gray: #ECF0F1;
    --dark-gray: #34495E;
    --gradient-primary: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%);
    --gradient-accent: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
}

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

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

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    background: #ffffff !important;
}

.navbar-brand .logo {
    height: 110px;
    width: auto;
    filter: brightness(1.1) contrast(1.2);
}

.nav-link {
    color: var(--primary-navy) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

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

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.dropdown-item {
    color: var(--primary-navy);
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: var(--primary-light-blue);
    color: var(--white);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-navy));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 57, 43, 0.3);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-navy);
    color: var(--white);
}

/* Hero Section */
.hero-carousel {
    position: relative;
    height: 600px;
}

.carousel-item {
    height: 600px;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
}

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

.carousel-caption-custom h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.carousel-caption-custom .lead {
    font-size: 1.3rem;
    color: var(--white);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}

.welcome-text {
    color: aqua;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    position: relative;
    display: block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-light-blue));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
    padding: 80px 0 60px;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-light-blue);
}

.breadcrumb-item.active {
    color: var(--white);
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.2);
    border-color: var(--primary-light-blue);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h4 {
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card p {
    text-align: center;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(192, 57, 43, 0.2);
    border-color: var(--primary-red);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-navy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1rem;
    font-size: 1.8rem;
    color: var(--white);
}

.service-card h4 {
    color: var(--primary-navy);
    font-weight: 700;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.service-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--dark-gray);
    text-align: center;
}

.read-more {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    padding: 0 1.5rem 1.5rem;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-navy);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
    padding: 60px 0;
}

.cta-section h2 {
    color: var(--white);
    font-weight: 700;
}

.cta-section .lead {
    color: var(--primary-light-blue);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid #E0E0E0;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-light-blue);
    box-shadow: 0 0 0 0.2rem rgba(93, 173, 226, 0.25);
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer h4 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

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

.footer-links a:hover {
    color: var(--primary-light-blue);
    padding-left: 5px;
}

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

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

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-navy));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(192, 57, 43, 0.4);
}

/* Carousel Controls - Fix Arrow Visibility */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(44, 62, 80, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(192, 57, 43, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 100%;
    filter: brightness(0) invert(1);
}

/* Mobile Menu Enhancement - Modern & Clean Design */
.navbar-toggler {
    border: none;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler:hover {
    background-color: rgba(44, 62, 80, 0.1);
}

.navbar-toggler-icon {
    width: 26px;
    height: 26px;
    transition: all 0.3s ease;
}

/* Animated Hamburger Icon */
.navbar-toggler.active {
    background-color: transparent;
}

.navbar-toggler.active .navbar-toggler-icon {
    transform: rotate(90deg);
}

/* Mobile Menu Collapse Animation */
.navbar-collapse {
    transition: all 0.4s ease-in-out;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.show {
    display: block;
    opacity: 1;
}

@media (max-width: 991px) {
    .navbar {
        position: relative;
        z-index: 1050;
    }
    
    .navbar-collapse {
        background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
        padding: 0;
        margin-top: 20px;
        border-radius: 18px;
        box-shadow: 0 10px 40px rgba(44, 62, 80, 0.15);
        border: none;
        overflow: hidden;
        position: relative;
        z-index: 1051;
    }
    
    .navbar-collapse::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-light-blue) 50%, var(--primary-navy) 100%);
    }
    
    /* Remove all underlines and borders from mobile menu */
    .navbar-collapse *,
    .navbar-collapse a,
    .navbar-collapse .nav-link,
    .navbar-collapse .dropdown-item,
    .navbar-collapse .nav-item {
        text-decoration: none !important;
        border: 0 !important;
        border-bottom: 0 !important;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        box-shadow: none !important;
        outline: 0 !important;
    }
    
    .navbar-collapse a:hover,
    .navbar-collapse a:focus,
    .navbar-collapse a:active,
    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link:focus,
    .navbar-collapse .nav-link:active,
    .navbar-collapse .nav-link.active {
        text-decoration: none !important;
        outline: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        text-underline-offset: 0 !important;
        -webkit-text-decoration: none !important;
        -moz-text-decoration: none !important;
    }
    
    .navbar-nav {
        padding: 20px 16px;
        animation: slideDown 0.3s ease;
        background: transparent;
    }
    
    .nav-item {
        margin: 4px 0;
        position: relative;
        border: 0 !important;
    }
    
    .nav-link {
        color: #2c3e50 !important;
        padding: 14px 18px !important;
        margin: 0 !important;
        border-radius: 10px;
        transition: all 0.3s ease;
        display: block;
        font-weight: 500;
        font-size: 15px;
        position: relative;
        background: transparent;
        text-decoration: none !important;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        -webkit-text-decoration: none !important;
        text-decoration-line: none !important;
        text-decoration-style: none !important;
    }
    
    /* Icon dot before menu items */
    .nav-link::before {
        content: '';
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
        background: var(--primary-light-blue);
        border-radius: 50%;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(93, 173, 226, 0.1) !important;
        color: var(--primary-red) !important;
        padding-left: 36px !important;
        text-decoration: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    
    .nav-link:hover::before,
    .nav-link.active::before {
        opacity: 1;
        background: var(--primary-red);
    }
    
    .nav-link:active {
        transform: scale(0.98);
        text-decoration: none !important;
        border: 0 !important;
    }
    
    .nav-link:focus {
        text-decoration: none !important;
        border: 0 !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    /* Dropdown Styling */
    .dropdown-toggle::after {
        margin-left: auto;
        transition: transform 0.3s ease;
    }
    
    .dropdown-toggle.show::after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        background: rgba(248, 249, 250, 0.95);
        border: 0 !important;
        margin: 6px 0 6px 18px;
        border-radius: 10px;
        padding: 6px;
        box-shadow: none;
    }
    
    .dropdown-item {
        padding: 12px 16px;
        border-radius: 8px;
        margin: 2px 0;
        color: #555;
        font-size: 14px;
        transition: all 0.3s ease;
        position: relative;
        padding-left: 32px;
        text-decoration: none !important;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        -webkit-text-decoration: none !important;
    }
    
    /* Dot indicator for dropdown items */
    .dropdown-item::before {
        content: '';
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background: var(--primary-light-blue);
        border-radius: 50%;
        opacity: 0.6;
        transition: all 0.3s ease;
    }
    
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.9);
        color: var(--primary-red);
        text-decoration: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    
    .dropdown-item:hover::before {
        opacity: 1;
        background: var(--primary-red);
    }
    
    .dropdown-item:active,
    .dropdown-item:focus {
        transform: scale(0.98);
        text-decoration: none !important;
        border: 0 !important;
        outline: none !important;
    }
    
    /* Remove dividers - cleaner look */
    
    /* Add ripple effect on tap */
    @keyframes ripple {
        0% {
            transform: scale(0);
            opacity: 0.5;
        }
        100% {
            transform: scale(2);
            opacity: 0;
        }
    }
    
    /* Smooth scrollbar for dropdown if needed */
    .dropdown-menu {
        max-height: 300px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-light-blue) transparent;
    }
    
    .dropdown-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .dropdown-menu::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .dropdown-menu::-webkit-scrollbar-thumb {
        background: var(--primary-light-blue);
        border-radius: 4px;
    }
    
    /* Add subtle pulse to active menu item */
    .nav-link.active {
        animation: subtlePulse 2s ease-in-out infinite;
    }
    
    /* Force remove all possible borders and lines */
    .navbar-collapse .nav-item,
    .navbar-collapse .nav-item *,
    .navbar-collapse .dropdown-menu,
    .navbar-collapse .dropdown-menu * {
        border: 0 !important;
        border-bottom: 0 !important;
        text-decoration: none !important;
    }
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(93, 173, 226, 0);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(93, 173, 226, 0.1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-caption-custom h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

/* Service List */
.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 10px 0;
    color: var(--dark-gray);
}

.service-list i {
    color: var(--primary-light-blue);
    margin-right: 10px;
}

/* Service Highlight */
.service-highlight {
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.1), rgba(52, 152, 219, 0.1));
    border-left: 4px solid var(--primary-red);
}

.service-highlight h4 {
    color: var(--primary-navy);
    font-weight: 700;
}

/* Process Steps */
.process-step {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    height: 100%;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Sidebar */
.service-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

.service-links li {
    margin-bottom: 0.5rem;
}

.service-links a {
    display: block;
    padding: 12px 15px;
    color: var(--primary-navy);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-links a:hover,
.service-links a.active {
    background: linear-gradient(135deg, var(--primary-light-blue), var(--accent-blue));
    color: var(--white);
    padding-left: 20px;
}

/* Testimonial Card */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.testimonial-content {
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.testimonial-author h5 {
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: var(--primary-red);
    font-size: 0.9rem;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.blog-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-meta span {
    margin-right: 15px;
}

.blog-content h4 {
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Accordion */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.accordion-button {
    background-color: var(--light-gray);
    color: var(--primary-navy);
    font-weight: 600;
    padding: 1.2rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
    color: var(--white);
}

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

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-light-blue), var(--accent-blue));
    border-radius: 15px;
    color: var(--white);
}

.cta-box h3 {
    color: var(--white);
    font-weight: 700;
}

/* ========================================
   ADVANCED MODERN ENHANCEMENTS
   Inspired by muscataudit.com
   ======================================== */

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
    color: var(--white);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Enhanced Navigation with Scroll Effect */
.navbar.scrolled {
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand .logo {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover .logo {
    transform: scale(1.08) rotate(2deg);
}

/* Advanced Nav Link Animations */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

/* Dropdown Menu with Slide Animation */
.dropdown-menu {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient-accent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.dropdown-item:hover::before {
    transform: translateX(0);
}

/* Hero Section Advanced Animations */
.carousel-item {
    animation: zoomIn 1.5s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.carousel-bg {
    transition: transform 8s ease;
}

.carousel-item.active .carousel-bg {
    transform: scale(1.1);
}

.carousel-caption-custom h1 {
    animation: fadeInUp 1s ease 0.3s both;
}

.carousel-caption-custom .lead {
    animation: fadeInUp 1s ease 0.6s both;
}

.carousel-caption-custom .btn {
    animation: fadeInUp 1s ease 0.9s both;
}

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

/* Enhanced Button Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.4);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Feature Cards with Advanced Hover */
.feature-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(93, 173, 226, 0.15), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg) scale(1.15);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

/* Service Cards with 3D Transform */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 15px;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 25px 60px rgba(192, 57, 43, 0.25);
}

.service-card:hover::after {
    opacity: 0.05;
}

.service-icon {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 10px 30px rgba(192, 57, 43, 0.4);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(52, 152, 219, 0);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-light-blue), var(--primary-red));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Section Title Enhancement */
.section-title {
    animation: titleReveal 1s ease;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Info Box Hover */
.contact-info-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-info-box:hover::before {
    transform: scaleX(1);
}

.contact-info-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-info-box i {
    font-size: 3rem;
    color: var(--primary-light-blue);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.contact-info-box:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-red);
}

.contact-info-box h5 {
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info-box p,
.contact-info-box a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-box a:hover {
    color: var(--primary-red);
}

/* Scroll to Top Enhancement */
.scroll-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    50% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.scroll-top:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 35px rgba(192, 57, 43, 0.5);
}

/* Social Links Enhancement */
.social-links a {
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-red);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: -1;
}

.social-links a:hover::before {
    width: 100%;
    height: 100%;
}

/* Page Header with Animated Background */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(93, 173, 226, 0.3) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Blog Card Advanced Hover */
.blog-card {
    position: relative;
    overflow: hidden;
}

.blog-image {
    overflow: hidden;
    position: relative;
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover .blog-image::after {
    opacity: 0.3;
}

.blog-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image img {
    transform: scale(1.15) rotate(2deg);
}

/* Form Enhancement */
.form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 173, 226, 0.3);
}

/* Loading Animation */
@keyframes loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading {
    animation: loading 1s linear infinite;
}

/* Stagger Animation for Service Items */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Counter Animation */
.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    animation: countUp 2s ease;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer Loading Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* About Image Enhancement */
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.about-image:hover::before {
    opacity: 0.2;
}

.about-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
    transform: scale(1.1);
}

/* ========================================
   TEAM OF EXPERTS SECTION
   ======================================== */
.team-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%233498DB" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.team-content {
    padding: 60px;
    position: relative;
    z-index: 2;
}

.team-content .section-subtitle {
    color: var(--primary-light-blue);
}

.team-content .section-title {
    color: var(--white);
    margin-bottom: 30px;
}

.team-content .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.team-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(93, 173, 226, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light-blue);
    box-shadow: 0 10px 30px rgba(93, 173, 226, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stat-number .counter {
    display: inline-block;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light-blue);
    letter-spacing: 1px;
}

.team-img-wrapper {
    position: relative;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-img-wrapper:hover img {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.4) 0%, rgba(44, 62, 80, 0.6) 100%);
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.team-img-wrapper:hover .team-overlay {
    opacity: 0.5;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    position: relative;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    border: 2px solid transparent;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light-blue);
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #FFC107;
    font-size: 1.2rem;
    margin-right: 3px;
    animation: starPulse 2s ease-in-out infinite;
}

.testimonial-rating i:nth-child(1) { animation-delay: 0s; }
.testimonial-rating i:nth-child(2) { animation-delay: 0.1s; }
.testimonial-rating i:nth-child(3) { animation-delay: 0.2s; }
.testimonial-rating i:nth-child(4) { animation-delay: 0.3s; }
.testimonial-rating i:nth-child(5) { animation-delay: 0.4s; }

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-light-blue);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-light-blue);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-light-blue);
}

/* Hide satisfaction badge */
.satisfaction-badge {
    display: none;
}

/* Testimonials Carousel - Hide arrows */
.testimonial-control-prev,
.testimonial-control-next {
    display: none !important;
}

/* Carousel Indicators */
.carousel-indicators {
    margin-bottom: -40px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-light-blue);
    border: none;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--primary-red);
    transform: scale(1.2);
}

/* Testimonials Section Spacing */
#testimonialsCarousel {
    padding: 20px 0;
}

#testimonialsCarousel .carousel-item {
    min-height: 350px;
    padding: 20px 0;
}

/* Testimonials Responsive - 1 card on mobile */
@media (max-width: 767px) {
    #testimonialsCarousel .col-lg-6 {
        display: none;
    }
    
    #testimonialsCarousel .col-lg-6:first-child {
        display: block !important;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #testimonialsCarousel .carousel-item {
        min-height: 300px;
    }
    
    .testimonial-card {
        margin: 0 10px;
    }
}

/* Footer Enhancement */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
}

/* Testimonial Enhancement */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 120px;
    color: var(--primary-light-blue);
    opacity: 0.1;
    font-family: Georgia, serif;
    transition: all 0.4s ease;
}

.testimonial-card:hover::after {
    transform: scale(1.2) rotate(10deg);
    opacity: 0.15;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .feature-card:hover,
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .carousel-item {
        height: 500px;
    }
    
    .contact-info-box {
        margin-bottom: 20px;
    }
}



/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px; /* position above scroll-to-top button */
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 28px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* Mobile support */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 80px; /* Adjust for mobile */
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

