:root {
    --primary-color: #0066ff;
    --secondary-color: #0044cc;
    --accent-color: #ff6600;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --hover-transform: translateY(-5px);
}

body {
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
    color: var(--text-color);
}

/* Section Styles */
.services-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--light-bg);
    overflow: hidden;
}

/* Section Header */
.section-title {
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-divider {
    height: 4px;
    width: 60px;
    background: var(--primary-color);
    position: relative;
}

.section-divider::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    width: 12px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-divider::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    width: 12px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Card Styles */
.service-card {
    border-radius: 15px;
    transition: all 0.4s var(--transition-timing);
    background: white;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transform: translateY(30px);
    /* Đảm bảo thẻ hiển thị trước khi animation */
    opacity: 1;
}

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

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    transition: all 0.4s var(--transition-timing);
    transform: translateY(0) scale(1);
    opacity: 1;
}

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

.card-title {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 1rem;
    position: relative;
    transform: translateY(0);
    opacity: 1;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s var(--transition-timing);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    opacity: 1;
}

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

.btn-outline-primary i {
    transition: transform 0.3s var(--transition-timing);
}

.btn-outline-primary:hover i {
    transform: translateX(5px);
}

/* List Styles */
.list-unstyled li {
    transition: all 0.3s var(--transition-timing);
    opacity: 1;
    transform: translateX(0);
}

.list-unstyled li:hover {
    transform: translateX(5px);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Floating Background Elements */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(
        45deg,
        rgba(0, 102, 255, 0.1),
        rgba(0, 68, 204, 0.05)
    );
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    right: -50px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 10%;
}

/* Media Queries */
@media (max-width: 992px) {
    .service-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .services-section {
        padding: 60px 0;
    }
}

/* Animation States */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation for staggered entrance */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

/* Animation for continuous floating */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

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