/* --- Global Configuration Reset Rules --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* --- Top Visual Business Bar Layout --- */
.top-bar {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 8px 8%;
    font-size: 13px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* --- Header Component Navigation Grid Layout --- */
header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #2563eb;
}

/* --- Document Wrapper Architecture Rules --- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

hr {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 50px 0;
}

/* --- Hero Banner Dynamic Box Positioning Rules --- */
#home {
    padding: 120px 40px;
    text-align: center;
    border-radius: 12px;
    margin-top: 20px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 800px;
}

#home h1 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

#home p {
    font-size: 19px;
    margin-bottom: 35px;
    color: #e2e8f0;
}

.cta-btn, .btn-submit {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    padding: 14px 35px;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover, .btn-submit:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

/* --- Structural Content Formatting Sections --- */
#about {
    padding: 60px 0 20px 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#about h2, #services h2, #gallery h2 {
    font-size: 32px;
    color: #0f172a;
    margin-bottom: 30px;
    text-align: center;
}

/* --- Layout Grid Processing Engines (CSS Grids) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.1);
}

.service-img-box {
    position:relative;
    width: 100%;
    height: 250px;
    background-color: #cbd5e1;
}

/* Creates a dark tint block behind the text inside the image card */
.service-img-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

/* Ensures the text pops over the tint layer */
.service-card h3, .service-card p {
    position: relative;
    z-index: 2;
}

.service-card h3 {
    padding: 20px 20px 10px 20px;
    color: #0f172a;
    font-size: 20px;
}

.service-card p {
    padding: 0 20px 20px 20px;
    color: #64748b;
    font-size: 15px;
}

/* --- Static Bottom Media Photo Grid Section --- */
.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-top: -20px;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* --- Dynamic Slideshow Layering Architecture System --- */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* --- Client Lead Data Request Block --- */
#contact {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    max-width: 600px;
    margin: 0 auto;
}

.form-group { margin-bottom: 20px; }

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
    font-size: 14px;
}

input[type="text"], input[type="tel"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 16px;
    background-color: #f8fafc;
}

input:focus, select:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
}

.btn-submit { width: 100%; }

/* --- Multi-Column Corporate Footer Base Layout --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 40px 20px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid #334155;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-info h3, .footer-socials h4 {
    color: #ffffff;
    margin-bottom: 5px;
}

.footer-socials a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-socials a:hover { color: #ffffff; }
.copyright { text-align: center; font-size: 13px; }

/* --- Floating Communication Action UI Anchor --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: transform 0.2s, background-color 0.2s;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
}

/* --- Adaptive Device Layout Engines (Media Query) --- */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; }
    nav ul li { margin: 0 10px; }
    .top-bar-container { flex-direction: column; align-items: center; gap: 5px; }
    #home h1 { font-size: 32px; }
    .whatsapp-float { bottom: 20px; right: 20px; padding: 10px 16px; font-size: 14px; }
}