/* Basic styling for the service page */
body {
    font-family: 'Poppins', sans-serif; /* Using a more modern font */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.7; /* Increased line height for better readability */
    color: #4a4a4a; /* Softer black for text */
    background-color: #f8f8f8; /* Light background for overall page */
}

main {
    padding: 0;
    max-width: none;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Increased horizontal padding */
}

#service-hero {
    height: 500px; /* Increased height for a more impactful hero */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden; /* Ensure content stays within bounds */
}

#service-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
}

#service-hero h1 {
    font-size: 4.5em; /* Larger hero title */
    font-weight: 700; /* Bolder font weight */
    z-index: 10;
    margin-bottom: 15px;
    letter-spacing: -1px; /* Tighter letter spacing */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Subtle text shadow */
}

#service-hero p {
    font-size: 1.8em;
    font-weight: 300;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    margin-bottom: 80px; /* More space below section titles */
    font-size: 3.2em; /* Larger section titles */
    color: #2c3e50; /* Darker, more professional color */
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #d4af37; /* Gold accent line */
    border-radius: 2px;
}

.service-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid */
    gap: 30px; /* Increased gap */
    padding: 40px 0;
}

.service-icon-item {
    height: 180px; /* Fixed height for the cards */
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* More rounded corners */
    transition: all 0.4s ease, background-size 0.4s ease, background-position 0.4s ease; /* Slower transition, include background properties */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* More prominent shadow */
    position: relative; /* Needed for absolute positioning of overlay and text */
    overflow: hidden; /* Ensure background image stays within bounds */
    background-size: cover; /* Ensure background image covers the area */
    background-position: center; /* Center the background image */
}

.service-icon-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px) scale(1.05); /* More pronounced hover effect with zoom */
    border-color: #d4af37; /* Gold border on hover */
    background-size: 120%; /* More aggressive zoom effect on hover */
    background-position: bottom right; /* Shift focus to bottom right on hover */
}

.service-icon-item .absolute {
    transition: opacity 0.4s ease; /* Smooth transition for overlay opacity */
    background-color: rgba(0, 0, 0, 0.5); /* Initial overlay color */
    display: flex; /* Ensure flex properties are applied */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.service-icon-item:hover .absolute {
    opacity: 0; /* Overlay disappears on hover */
}

.service-icon-item p {
    font-size: 1.15em; /* Slightly larger text */
    font-weight: 600;
    color: #fff; /* White text for better contrast on dark overlay */
    margin: 0;
    z-index: 2; /* Ensure text is above the overlay */
    position: absolute; /* Position text independently */
    bottom: 15px; /* Initial position */
    right: 15px; /* Initial position */
    transition: bottom 0.4s ease, right 0.4s ease, opacity 0.4s ease; /* Smooth transition for text movement and opacity */
    opacity: 1; /* Ensure text is visible initially */
    text-align: right; /* Align text to the right */
}

.service-icon-item:hover p {
    bottom: 15px; /* Final position on hover */
    right: 15px; /* Final position on hover */
    opacity: 1; /* Ensure text remains visible on hover */
}

.service-detail-section {
    background-color: #ffffff; /* White background for detail sections */
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Stronger shadow */
    overflow: hidden;
    margin-bottom: 100px; /* More space between sections */
    display: flex;
    align-items: center;
}

.service-detail-section:nth-child(odd) {
    flex-direction: row;
}

.service-detail-section:nth-child(even) {
    flex-direction: row-reverse;
}

.service-detail-section .p-4 {
    padding: 50px; /* Increased padding */
}

.service-detail-section img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 400px; /* Max height for images */
    object-fit: cover;
}

.service-detail-section h3 {
    font-size: 2.5em; /* Larger detail titles */
    font-weight: 700;
    margin-bottom: 25px;
    color: #2c3e50;
}

.service-detail-section p {
    font-size: 1.15em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.service-detail-section a {
    color: #d4af37;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
}

.service-detail-section a:hover {
    color: #b8860b;
    transform: translateX(5px);
}

/* Ready to Get Started section */
.ready-to-start-section {
    background-color: #f0f0f0; /* Lighter background */
    padding: 80px 40px; /* More padding */
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    margin-top: 60px;
    margin-bottom: 80px;
}

.ready-to-start-section h2 {
    font-size: 3em;
    margin-bottom: 30px;
    color: #2c3e50;
}

.ready-to-start-section p {
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #666;
}

.ready-to-start-section .flex {
    gap: 25px; /* Increased gap between buttons */
}

.ready-to-start-section a {
    padding: 15px 35px; /* Larger buttons */
    border-radius: 30px; /* More rounded buttons */
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.bg-primary-gold {
    background-color: #d4af37;
}

.hover\:bg-secondary-gold:hover {
    background-color: #b8860b;
}

.bg-gray-700 {
    background-color: #5a6a7a; /* Slightly lighter gray */
}

.hover\:bg-gray-900:hover {
    background-color: #34495e; /* Darker gray on hover */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #service-hero {
        height: 400px;
    }
    #service-hero h1 {
        font-size: 3.5em;
    }
    #service-hero p {
        font-size: 1.5em;
    }
    h2 {
        font-size: 2.8em;
        margin-bottom: 60px;
    }
    .service-detail-section {
        flex-direction: column;
    }
    .service-detail-section:nth-child(odd),
    .service-detail-section:nth-child(even) {
        flex-direction: column;
    }
    .service-detail-section .lg\:w-1\/2 {
        width: 100%;
    }
    .service-detail-section .p-4 {
        padding: 30px;
    }
    .service-icon-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    .service-icon-item img {
        width: 70px;
        height: 70px;
    }
    .ready-to-start-section h2 {
        font-size: 2.5em;
    }
    .ready-to-start-section p {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    #service-hero {
        height: 350px;
    }
    #service-hero h1 {
        font-size: 2.8em;
    }
    #service-hero p {
        font-size: 1.2em;
    }
    h2 {
        font-size: 2.2em;
        margin-bottom: 40px;
    }
    .service-detail-section h3 {
        font-size: 2em;
    }
    .service-detail-section p {
        font-size: 1em;
    }
    .service-icon-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }
    .service-icon-item img {
        width: 50px;
        height: 50px;
    }
    .ready-to-start-section h2 {
        font-size: 2em;
    }
    .ready-to-start-section p {
        font-size: 1em;
    }
    .ready-to-start-section .flex {
        flex-direction: column;
        gap: 15px;
    }
    .ready-to-start-section a {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #service-hero {
        height: 300px;
    }
    #service-hero h1 {
        font-size: 2.2em;
    }
    #service-hero p {
        font-size: 1em;
    }
    h2 {
        font-size: 1.8em;
    }
    .service-detail-section h3 {
        font-size: 1.6em;
    }
    .service-detail-section .p-4 {
        padding: 20px;
    }
    .service-icon-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}
