/* ---------------- Reset & Base ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden; /* Horizontal scroll rokne ke liye */
}

/* ---------------- Fixed Header ---------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background: #000;
    border-bottom: 1px solid #222;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img { height: 40px; width: auto; }

.logo span {
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #888;
    font-size: 16px;
    transition: 0.3s;
}

nav a:hover, nav a.active { color: #c1914b; }

/* ---------------- Fixed Banner ---------------- */
.contacttop-banner {
    width: 100%;
    background: #000;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    position: fixed;
    top: 81px; /* Header height approx */
    z-index: 999;
}

.contacttop-banner span {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    left: 100%;
    animation: scrollText 15s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-150vw); }
}

/* ---------------- Hero Section ---------------- */
.servicehero {
    margin-top: 121px; /* Offset for Header + Banner */
    height: 45vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("image/about.jpeg") no-repeat center/cover;
    display: flex;
    align-items: center;
    padding: 0 80px;
}

.servicehero-text h1 { font-size: 48px; margin-bottom: 15px; }
.servicehero-text span { color: #c1914b; font-style: italic; }
.servicehero-text p { color: #aaa; font-weight: bold; font-size: 18px; }

/* ---------------- 4-Column Grid Section ---------------- */
.service-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Laptop par 4 columns */
    gap: 30px;
    padding: 80px 100px;
    background: #0a0a0a;
}

.service-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.service-card:hover {
    border-color: #c1914b;
    transform: translateY(-10px);
    background: #222;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.service-card h5 { 
    color: #c1914b; 
    font-size: 20px; 
    margin-bottom: 12px;
    border-bottom: 1px solid #c1914b;
    display: inline-block;
    padding-bottom: 5px;
    width: fit-content;
}

.service-card p { 
    color: #888; 
    font-size: 15px; 
    line-height: 1.5;
}

/* ---------------- Footer ---------------- */
footer {
    padding: 40px 80px;
    background: #000;
    border-top: 1px solid #222;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-container p { font-size: 18px; color: #888; }
.social-links { display: flex; gap: 30px; }
.social-item {
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    transition: 0.3s;
}

/* ---------------- Responsive Configurations (Mobile & Tablet) ---------------- */

/* Tablet View */
@media (max-width: 1200px) {
    header { padding: 20px 40px; }
    .servicehero { padding: 0 40px; }
    .service-images { 
        grid-template-columns: repeat(2, 1fr); /* 2 Columns per row */
        padding: 60px 40px; 
    }
    footer { padding: 40px 40px; }
}

/* Mobile Phone View */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column; /* Logo upar, Nav niche */
        height: auto;
    }

    nav {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a { margin: 0 5px; font-size: 14px; }

    .contacttop-banner {
        top: 105px; /* Mobile header bada hota hai isliye gap badhaya */
        font-size: 16px;
    }

    .servicehero {
        margin-top: 145px;
        padding: 0 20px;
        text-align: center;
        justify-content: center;
    }

    .servicehero-text h1 { font-size: 32px; }
    .servicehero-text p { font-size: 16px; }

    .service-images { 
        grid-template-columns: 1fr; /* Single column */
        padding: 40px 20px; 
        gap: 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}