@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Noto+Sans+KR:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    color: #fff;
    background: linear-gradient(42deg, #3e5151, #decba4);
    font-family: "Merriweather", serif;
    margin: 0;
    padding-bottom: 30px;
    height: 100%;
    margin-bottom: 30px;
}

/* Navbar Styling */
.navbar {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: black;
}

.navbar .logo {
    flex: 1;
    margin-left: 20px;
}

.navbar .logo-image {
    height: 80px;
    width: 120px;
}

.navbar .nav-links {
    display: flex;
    margin-right: 20px;
    gap: 20px;
}

.navbar .nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.navbar .nav-link:hover {
    color: #ad1010;
    text-decoration: underline;
}

/* Services Section Styling */
.services-section {
    text-align: center;
    padding: 50px 20px;
}

.services-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: capitalize;
    position: relative;
}

.services-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ad1010;
    margin: 10px auto 0;
    border-radius: 5px;
}

.services-container {
    display: flex;
    justify-content: center; /* Center the cards */
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Service Card Styling */
.service-card {
    border-radius: 20px;
    width: 300px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card.hardware {
    background-color: #f9f2f2;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.822);
}

.service-card.server {
    background-color: #f2f9f2;
    box-shadow: 0 4px 10px rgba(0, 255, 0, 0.822);
}

.service-card.biometric {
    background-color: #f2f2f9;
    box-shadow: 0 4px 10px rgba(0, 0, 255, 0.822);
}

.service-card.network {
    background-color: #f9f9f2;
    box-shadow: 0 4px 10px rgba(255, 255, 0, 0.822);
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(177, 15, 9, 0.692);
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}
.service-card:hover::before {
    opacity: 1; 
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.87);
}
/* Service Card Content Styling */
.service-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1b1b1b;
}

.service-card p {
    margin-bottom: 10px;
    font-size: 0.85em;
    color: #272626;
}

.service-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.service-button {
    background-color: #ad1010;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    display: block;
    margin: 0 auto;
    width: fit-content;
    transition: background-color 0.3s;
}

.service-button:hover {
    background-color: #520505;
}

/* Footer Styling */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

footer p {
    font-size: 1.2rem;
}

footer .social-links {
    margin-right: 10px;
    display: flex;
}

.social-links a {
    margin-left: 10px;
}

footer .social-links img {
    max-width: 25px;
    opacity: 0.8;
    transition: 0.3s;
}








@media (max-width: 768px) {
    .navbar {
        flex-direction: row; 
        height: auto;
        padding: 5px;
    }
    .navbar .nav-links .nav-link{
        font-size: 18px;
    }
    .navbar .nav-links {
        flex-direction: row; 
        margin-right: 5px;
        gap: 8px; 
    }

    .services-section h2 {
        font-size: 1.8rem; 
    }
    .service-card {
        width: 45%; 
    }
    footer {
        flex-direction: column;
        align-items: center;
    }
    footer p{
        font-size: 1rem;
    }
    footer .social-links{
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: row; 
        height: auto;
        padding: 5px;
    }
    .navbar .nav-links .nav-link{
        font-size: 18px;
    }
    .navbar .nav-links {
        flex-direction: row; 
        margin-right: 5px;
        gap: 8px; 
    }

    .services-section h2 {
        font-size: 1.8rem; 
    }
    .service-card {
        width: 90%; 
    }
    footer {
        flex-direction: column; 
        align-items: center;
    }
    footer p{
        font-size: 1rem;
    }
    footer .social-links{
        margin-left: auto;
    }
}