/* Custom variables to match your theme */
:root {
    --primary: #ff69b4;
    --primary-dark: #ff1493;
}

/* Override Bootstrap's primary color */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    position: relative;
    overflow: hidden;
    color: white;
    padding: 120px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1562322140-8baeececf3df?w=1600&auto=format&fit=crop&q=60') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stats {
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat-item {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

.btn-outline-light:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 auto;
        margin-bottom: 1.5rem;
    }
}

/* Service icons */
.card i {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Navigation hover effect */
.nav-link:hover {
    color: var(--primary) !important;
}

/* Social links hover effect */
footer a:hover {
    color: var(--primary) !important;
}

/* Service Card Animations */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Service Icon Animation */
.card i {
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.2);
}

/* Optional: Add animation on page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services .card {
    animation: fadeInUp 0.6s ease backwards;
}

/* Stagger the animations for multiple cards */
.services .col-md-4:nth-child(1) .card { animation-delay: 0.1s; }
.services .col-md-4:nth-child(2) .card { animation-delay: 0.3s; }
.services .col-md-4:nth-child(3) .card { animation-delay: 0.5s; }

/* Add this new style for service card images */
.card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Services Section Background */
.services {
    background: linear-gradient(135deg, 
        rgba(255, 240, 248, 0.8) 0%,
        rgba(255, 245, 250, 0.7) 50%,
        rgba(255, 240, 248, 0.8) 100%
    );
    position: relative;
    overflow: hidden;
}

/* Optional: Add a subtle pattern overlay */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 105, 180, 0.03) 0%, 
        transparent 70%
    );
    pointer-events: none;
}

/* Ensure cards stand out against the gradient */
.services .card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

/* Modern Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.brand-text {
    color: #333;
}

.brand-dot {
    color: var(--primary);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Optional: Add active state for current page */
.nav-link.active::after {
    transform: scaleX(1);
}

/* Add this JavaScript to handle navbar scroll effect */
<script>
document.addEventListener('DOMContentLoaded', function() {
    const navbar = document.querySelector('.navbar');
    
    window.addEventListener('scroll', function() {
        if (window.scrollY > 50) {
            navbar.classList.add('scrolled');
        } else {
            navbar.classList.remove('scrolled');
        }
    });
});
</script>

/* Offcanvas Styles */
.offcanvas {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.offcanvas-header {
    padding: 1.5rem;
}

.offcanvas-body {
    padding: 1rem 1.5rem;
}

.offcanvas .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.offcanvas .nav-link::after {
    display: none; /* Remove underline animation in mobile menu */
}

/* Animate offcanvas items */
.offcanvas .nav-item {
    opacity: 0;
    transform: translateX(20px);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger animation for nav items */
.offcanvas .nav-item:nth-child(1) { animation-delay: 0.1s; }
.offcanvas .nav-item:nth-child(2) { animation-delay: 0.2s; }
.offcanvas .nav-item:nth-child(3) { animation-delay: 0.3s; }
.offcanvas .nav-item:nth-child(4) { animation-delay: 0.4s; }
.offcanvas .nav-item:nth-child(5) { animation-delay: 0.5s; }

/* Adjust button in mobile view */
@media (max-width: 991.98px) {
    .offcanvas {
        width: 300px;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .offcanvas .btn-primary {
        margin-top: 1rem;
    }
}

/* Keep desktop menu visible on larger screens */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex !important;
        flex-direction: row;
        align-items: center;
    }
    
    .nav-link {
        border-bottom: none !important;
    }
    
    .nav-link::after {
        display: block !important; /* Restore underline animation */
    }
}