:root {
    --primary-color: #1a2a3a;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --accent-secondary: #3498db;
    --background-light: #f5f8fa;
    --text-color: #2C3E50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 100% 50%, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0) 25%),
        radial-gradient(circle at 0% 90%, rgba(231, 76, 60, 0.05) 0%, rgba(231, 76, 60, 0) 20%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 3rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(255,255,255,0.15), transparent),
        radial-gradient(circle at 20% 50%, rgba(231,76,60,0.4) 0%, rgba(231,76,60,0) 35%);
    transform: skewX(-15deg);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 4rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    position: relative;
    animation: fadeInDown 1.2s ease;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
}

header p {
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.services {
    display: flex;
    justify-content: space-between;
    margin: 3.2rem 0;
    gap: 30px;
}

.service-box {
    background-color: white;r
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.service-box:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.18);
    z-index: 2;
}

.service-box:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-box h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    transition: color 0.3s ease;
    font-size: 1.5rem;
}

.service-box:hover h3 {
    color: var(--accent-color);
}

.service-box:nth-child(2)::before {
    background: var(--accent-secondary);
}

.service-box:nth-child(2):hover h3 {
    color: var(--accent-secondary);
}

.service-box:nth-child(3)::before {
    background: #9b59b6;
}

.service-box:nth-child(3):hover h3 {
    color: #9b59b6;
}


footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    text-align: center;
    padding: 2.2rem 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(231,76,60,0.6);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .services {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 2.8rem;
    }
    
    .contact-form {
        padding: 40px 25px;
    }
}