:root {
    --transition-speed: 0.3s;
    --border-radius: 12px;

    --bg-section: rgba(78, 115, 223, 0.05);
    --bg-card: #ffffff;
    --text-heading: #333333;
    --text-paragraph: #555555;
    --text-title: #333333;
    --text-description: #555555;
    --accent-primary: #4e73df;
    --accent-secondary: #1cc88a;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.1);
    --card-border: 4px solid #4e73df;
    --icon-bg: rgba(78, 115, 223, 0.1);
    --divider-color: rgba(78, 115, 223, 0.3);
    --btn-bg: #4e73df;
    --btn-hover: #375bc8;
    --btn-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
    --btn-shadow-hover: 0 8px 20px rgba(78, 115, 223, 0.4);
}

body.dark_theme {
    --bg-section: rgba(78, 115, 223, 0.1);
    --bg-card: #1e1e30;
    --text-heading: #f0f0f0;
    --text-paragraph: #b0b0b0;
    --text-title: #f0f0f0;
    --text-description: #b0b0b0;
    --accent-primary: #5e83ef;
    --accent-secondary: #2cd89a;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.3);
    --card-border: 4px solid #5e83ef;
    --icon-bg: rgba(94, 131, 239, 0.2);
    --divider-color: rgba(94, 131, 239, 0.3);
    --btn-bg: #5e83ef;
    --btn-hover: #4a6ad0;
    --btn-shadow: 0 4px 15px rgba(94, 131, 239, 0.3);
    --btn-shadow-hover: 0 8px 20px rgba(94, 131, 239, 0.4);
}

.header1 {
    padding: 5rem 0;
    background: var(--bg-section);
    border-radius: 0 0 10px 10px;
    transition: background var(--transition-speed) ease;
}

.header1 h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: var(--text-heading);
    transition: color var(--transition-speed) ease;
}

.header1 h1:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    bottom: -10px;
    left: 0;
    transition: background var(--transition-speed) ease;
}

.header1 p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-paragraph);
    transition: color var(--transition-speed) ease;
}

.services-section {
    margin-top: 4rem;
    position: relative;
    padding-top: 2rem;
}

.services-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--divider-color), transparent);
    transition: background var(--transition-speed) ease;
}

.services-section h3 {
    font-weight: 600;
    color: var(--text-heading);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
    transition: color var(--transition-speed) ease;
}

.services-section h3:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background: var(--accent-secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    transition: background var(--transition-speed) ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 2rem;
}

.service-card {
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: var(--bg-card);
    box-shadow: var(--card-shadow);
    border-left: var(--card-border);
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.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:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.service-icon {
    font-size: 2rem;
    margin-right: 20px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--icon-bg);
    border-radius: 50%;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-content {
    flex: 1;
}

.service-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-title);
    font-size: 1.1rem;
    transition: color var(--transition-speed) ease;
}

.service-description {
    color: var(--text-description);
    line-height: 1.6;
    transition: color var(--transition-speed) ease;
}

.header1 .btn-primary {
    background: var(--btn-bg);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--btn-shadow);
    color: #ffffff;
}

.header1 .btn-primary:hover {
    background: var(--btn-hover);
    transform: translateY(-3px);
    box-shadow: var(--btn-shadow-hover);
}

@media (min-width: 768px) {
    .header1 .container {
        margin-top: 100px;
    }
}

@media (max-width: 992px) {
    .header1 {
        padding: 4rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}