/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212; /* Matte Black background */
    color: #f9f9f9;
    line-height: 1.6;
}

/* Header Section */
header {
    background-color: #121212; /* Matte Black header */
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Navigation Bar */
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header nav .logo img {
    height: 50px; /* Adjust logo size */
}

header nav ul {
    list-style: none;
    display: flex;
    margin-left: auto;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #9b4dca; /* Violet hover effect */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: #1e1e1e; /* Dark background for contrast */
}

.hero h1 {
    font-size: 3em;
    color: #9b4dca; /* Violet text for emphasis */
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    color: #f9f9f9;
    margin-bottom: 30px;
}

/* Call to Action Button */
.hero .cta-button {
    background-color: #9b4dca; /* Violet button */
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
}

.hero .cta-button:hover {
    background-color: #7b3e99; /* Darker violet on hover */
}

/* Services Section */
.services {
    padding: 50px 20px;
    background-color: #1e1e1e;
    text-align: center;
}

.services h2 {
    font-size: 2.5em;
    color: #9b4dca;
    margin-bottom: 40px;
}

/* Service Categories */
.service-category {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #222;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Service Category Title */
.service-category h3 {
    font-size: 1.8em;
    color: #9b4dca;
    margin-bottom: 20px;
}

/* Service Items */
.service-item {
    background-color: #333;
    margin: 15px 0;
    padding: 15px;
    border-radius: 5px;
}

.service-item h4 {
    font-size: 1.3em;
    color: #f9f9f9;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1em;
    color: #f9f9f9;
}

/* Photo Gallery Section */
.photo-gallery {
    padding: 50px 20px;
    background-color: #1e1e1e; /* Dark background */
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
    padding: 0 20px;
}

.gallery-item {
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Footer Section */
footer {
    background-color: #121212;
    color: white;
    text-align: center;
    padding: 20px;
}

footer a {
    color: #9b4dca;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-item {
        margin: 10px 0; /* Less margin for medium screens */
    }

    .services h2 {
        font-size: 2.2em; /* Adjust main title size for tablets */
    }

    .service-category {
        padding: 15px;
    }

    .gallery-container {
        grid-template-columns: 1fr 1fr; /* 2 items per row for medium screens */
    }
}

@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    header nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .services-preview {
        flex-direction: column; /* Stack the items vertically */
        align-items: center;
    }

    .service-preview-item {
        width: 80%; /* Make each service card take up 80% of the width on mobile */
        margin-bottom: 25px; /* Space between stacked items */
    }

    .services h2 {
        font-size: 1.8em;
    }

    .service-category {
        padding: 10px;
    }

    .service-item {
        margin: 10px 0; /* Space between items */
    }

    .cta-button {
        font-size: 1em;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr; /* 1 item per row on small screens */
    }
}

/* Services Section */
.services-container {
    display: flex;
    justify-content: center; /* Center the cards horizontally */
    align-items: center; /* Keep them centered vertically but you can adjust with translateY */
    height: 100vh;
    flex-direction: row;
    transform: translateY(0px); /* Push everything upwards */
}


.card {
    height: 250px;
    width: 190px;
    background-image: linear-gradient(to top, #7c0c93, #640d7a, #500160, #330147, #26052e);
    box-shadow: rgba(0, 0, 0, 0.24) -20px 30px 10px;
    transform-style: preserve-3d;
    transform: perspective(400px) rotateX(60deg) rotateZ(-30deg);
    border-radius: 10px;
    overflow: hidden; /* Ensure the image fits nicely inside */
    transition: transform 2s;
    position: relative; /* Allows absolute positioning of the image */
    margin: 0 10px; /* Add spacing between cards */
}

.card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the entire card */
    border-radius: 10px;
    position: absolute; /* Makes sure it fills the entire card */
    top: 0;
    left: 0;
}

.card:hover {
    transform: rotateY(19deg);
}

/* Positioning the cards */
.center-card {
    order: 0; /* Center card should stay in the middle */
}

.left-card {
    order: -1; /* Push left cards to the left side */
}

.right-card {
    order: 1; /* Push right cards to the right side */
}
