* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-image: url('images/uploadcloud3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Increased overlay to 70% black for better text contrast */
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
}

h1 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700; 
    font-family: 'Roboto', sans-serif;
}
.subtitle {
    /* Pure white text without shadows */
    color: #ffffff;
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 400; 
    font-family: 'Roboto', sans-serif;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.service-box {
    background-color: rgba(45, 45, 45, 0.8);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.service-number {
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: bold;
}

.service-box:hover {
    background-color: rgba(65, 65, 65, 0.9);
    transform: translateY(-5px);
}

.service-name {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #e0e0ff;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: #ffffff;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .services-grid {
        /* On tablets, show 2 or 3 columns depending on width */
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    h1 {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Fluid font size */
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .service-name {
        font-size: 1.5rem;
    }
}

/* Portrait mode for phones */
@media (max-width: 500px) {
    .container {
        padding: 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr; /* Stack cards into a single column */
        gap: 15px;
    }
    
    .service-box {
        padding: 20px 10px;
        min-height: 120px;
    }
    
    .service-name {
        font-size: 1.3rem;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    h1 {
        font-size: 2rem;
        padding: 20px 0 10px;
    }
    
    .subtitle {
        padding: 0 10px;
    }
}