/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1e1e2e;
    color: #f0f0f0;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #5dade2;
    animation: fadeInDown 1.2s ease-in-out;
    transition: color 0.3s ease;
}

header p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #a3a3c2;
    transition: color 0.3s ease;
}

/* Header Hover Effects */
header h1:hover {
    color: #48c9b0;
}

header p:hover {
    color: #5dade2;
}

/* Service Cards */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-card {
    background: #2c2c3b;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    padding: 20px;
    width: 280px;
    text-align: center;
    transition: transform 0.6s ease, box-shadow 0.6s ease, background 0.6s ease;
    animation: fadeInUp 1s ease forwards;
    position: relative;
}

.service-card:hover {
    transform: translateY(-15px) rotateY(15deg); /* Flip and move up */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    background: #34344d;
}

/* Add a subtle 3D effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: -1;
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: scale(1.1); /* Creates an enlarging background effect */
}

/* Icon Styles */
.icon {
    font-size: 3rem;
    color: #5dade2;
    margin-bottom: 15px;
    transition: transform 0.4s ease, color 0.4s ease;
}

.service-card:hover .icon {
    color: #48c9b0;
    transform: scale(1.2); /* Slight icon scaling on hover */
}

/* Text Styles */
h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #f0f0f0;
    transition: color 0.4s ease;
}

p {
    font-size: 1rem;
    color: #b0b0c7;
    transition: color 0.4s ease;
}

.service-card:hover h2 {
    color: #5dade2;
}

.service-card:hover p {
    color: #eaeaea;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 10px;
    background-color: #2c2c3b;
    color: white;
    font-size: 0.9rem;
}

/* Button Styling (optional for future buttons) */
button {
    background-color: #5dade2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

button:hover {
    background-color: #48c9b0;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add subtle hover effects for links */
a {
    color: #5dade2;
    text-decoration: none;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

a:hover {
    color: #48c9b0;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .services {
        flex-direction: column;
        align-items: center;
    }
}
