body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    overflow-x: hidden;
}

.services-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
}

.services-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

.services-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.service {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.service a {
    display: inline-block;
    padding: 10px 25px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service a:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.3);
}

/* Dark Mode Styles */
.dark-mode {
    background-color: #1a1a1a;
    color: #fff;
}

.dark-mode .navbar,
.dark-mode .footer,
.dark-mode .top {
    background: linear-gradient(to right, #1a1a1a, #2c3e50);
}

.dark-mode .service {
    background: #2c3e50;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.dark-mode .service h2,
.dark-mode .services-header h1 {
    color: #fff;
}

.dark-mode .service p,
.dark-mode .services-header p {
    color: #ecf0f1;
}

/* Responsive Styles */
@media (max-width: 1080px) {
    /* Mobile Navigation will be handled by main.css */
    .services-container {
        margin: 40px auto;
        padding: 0 15px;
    }

    .services-header {
        margin-bottom: 30px;
    }

    .services-header h1 {
        font-size: 1.8rem;
    }

    .services-header h1::after {
        width: 60px;
        bottom: -10px;
    }

    .services-header p {
        font-size: 1rem;
        padding: 0 15px;
        max-width: 600px;
    }

    .services {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px 0;
    }

    .service {
        padding: 20px;
        margin: 0 15px;
    }

    .service h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .service p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .service a {
        width: 100%;
        text-align: center;
        padding: 12px 25px;
        font-size: 0.95rem;
        border-radius: 5px;
    }
}

@media (max-width: 768px) {
    /* Fix service box padding and margins */
    .service {
        padding: 20px;
        margin: 0;
        box-sizing: border-box;
        width: 100%;
    }
    
    /* Fix button overflow */
    .service a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    /* Ensure service container has proper width */
    .services {
        padding: 10px 0;
        width: 100%;
    }
    
    /* Remove any fixed widths that might cause overflow */
    .services-container {
        width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
}

@media (min-width: 769px) and (max-width: 1080px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .service {
        margin: 0;
    }

    .service a {
        width: auto;
    }

    .services-header h1 {
        font-size: 2rem;
    }
}

@media (min-width: 770px) and (max-width: 1080px) {
    .services-container {
        margin: 60px auto;
        padding: 0 25px;
    }

    .services-header {
        margin-bottom: 50px;
    }

    .services-header h1 {
        font-size: 2.2rem;
    }

    .services-header h1::after {
        width: 70px;
        bottom: -12px;
    }

    .services-header p {
        font-size: 1rem;
        max-width: 600px;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 15px 0;
    }

    .service {
        padding: 25px;
    }

    .service h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .service p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .service a {
        padding: 8px 22px;
        font-size: 0.95rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .services-container {
        margin: 30px auto;
    }

    .services-header h1 {
        font-size: 1.6rem;
    }

    .service {
        padding: 15px;
        margin: 0;
    }
    
    .service a {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}