/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f7fa;
}

/* TOP BAR */
.top-bar {
    background: #0a3d62;
    color: #fff;
    padding: 10px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar button {
    background: #1dd1a1;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}
/* SLIDER ARROWS */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.7);
}

/* SLIDER DOTS */
.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 5px;
    display: inline-block;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #ffa502;
}

/* NAVBAR */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo img {
    height: 50px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* ===================== */
/* SLIDER */
/* ===================== */

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.slide:nth-child(1) {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('images/slider1.jpg') center/cover;
}
.slide:nth-child(2) {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('images/slider2.JPG') center/cover;
}
.slide:nth-child(3) {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('images/slider3.JPG') center/cover;
}

.slide.active { display: flex; }

.slide h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.slide p { margin-bottom: 15px; }

.slide button {
    padding: 12px 25px;
    background: #ffa502;
    border: none;
    border-radius: 5px;
}

/* ===================== */
/* FEATURES */
/* ===================== */

.features-section {
    padding: 80px 80px;
    text-align: center;
}

.features-header {
    max-width: 700px;
    margin: auto;
    margin-bottom: 50px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.box {
    width: 320px;
    padding: 40px;
    border-radius: 12px;
    color: white;
}

.red { background: #ff4757; }
.orange { background: #ffa502; }
.green { background: #2ed573; }

/* ===================== */
/* ABOUT */
/* ===================== */

.about {
    display: flex;
    gap: 50px;
    padding: 70px 60px;
    background: #fff;
}

.about-img img {
    width: 320px;
    height: 380px;
    border-radius: 15px;
}

.about-content { max-width: 500px; }

/* ===================== */
/* SERVICES */
/* ===================== */

/* SERVICES SECTION - REFERENCE STYLE */
/* SERVICES SECTION */
.services {
    padding: 80px 40px;
    background: #f0f7ff; /* Plain white background for cards to pop */
    text-align: center;
}

.services h2 {
    font-size: 34px;
    color: #0a3d62;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.services p {
    color: #666;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns exactly like your image */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Styling */
.service-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.service-card img {
    width: 100%;
    height: 250px; /* Sab images ka size barabar karne ke liye */
    object-fit: cover; /* Images stretch nahi hongi */
    display: block;
}

/* Solid Background Title */
.service-title {
    background: #b31d1d; /* Solid dark red from your image */
    color: #ffffff;
    padding: 15px 10px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-transform: capitalize;
}

/* Hover Effect */
.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover .service-title {
    background: #0a3d62; /* Hover pe color change (optional) */
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablets pe 2 columns */
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr; /* Mobile pe 1 column */
    }
    .services {
        padding: 40px 20px;
    }
}

/* ===================== */
/* CONTACT */
/* ===================== */

.contact {
    padding: 80px 60px;
    background: #fff;
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: center; /* Ye text ko map ke bilkul center mein le ayega vertically */
    max-width: 1200px;
    margin: 0 auto;
}

.contact-map {
    flex: 1; /* Map ko equal space dega */
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info {
    flex: 1; /* Text section ko space dega */
    padding: 20px;
}

.contact-info h2 {
    font-size: 34px;
    color: #0a3d62;
    margin-bottom: 30px;
}

.info-box {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-box h4 {
    color: #0a3d62;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    padding-left: 2px; /* Thoda gap icon ke niche se align karne ke liye */
}

/* ===================== */
/* HIGHLIGHT (CEO) */
/* ===================== */

.highlight-section {
    padding: 60px 80px; /* FIXED GAP */
    background: #fff;
}

.highlight-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

/* TEXT */
.highlight-content h5 {
    color: #1dd1a1;
    font-size: 14px;
    margin-bottom: 10px;
}

.highlight-content h2 {
    font-size: 34px;
    color: #0a3d62;
}

.highlight-content h4 {
    color: #555;
    margin: 10px 0;
}

.highlight-content p {
    color: #666;
    margin: 20px 0;
    line-height: 1.7;
}

/* SKILLS TAGS */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills span {
    padding: 8px 15px;
    border-radius: 50px;
    background: #eef3f7;
    font-size: 13px;
}

/* IMAGES */
.highlight-images {
    display: flex;
    gap: 15px;
}

.img-big {
    width: 260px;
    height: 320px;
    border-radius: 10px;
}

.img-small-group img {
    width: 200px;
    height: 150px;
    border-radius: 10px;
}

/* ===================== */
/* FOOTER */
/* ===================== */

footer {
    background: #0a3d62;
    color: white;
    text-align: center;
    padding: 20px;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media(max-width: 768px) {

    header { padding: 15px 20px; }

    .features,
    .highlight-container,
    .contact-container,
    .about {
        flex-direction: column;
        text-align: center;
    }

    .box { width: 90%; }

}

/* GALLERY SECTION WITH NEW BACKGROUND */
.gallery {
    padding: 100px 60px;
    background: #f0f7ff; /* Soft light blue background for better contrast */
    text-align: center;
}

.gallery h2 {
    font-size: 34px;
    color: #0a3d62;
    margin-bottom: 40px;
}

/* VIEW ALL BUTTON DESIGN */
.view-all-container {
    margin-top: 50px;
}

.view-all-btn {
    background: #ffa502; /* Match your slider/hover color */
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px; /* Modern pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 165, 2, 0.3);
}

.view-all-btn:hover {
    background: #0a3d62; /* Changes to dark blue on hover */
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(10, 61, 98, 0.2);
}

/* Grid & Items (As defined before) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns */
    grid-auto-rows: 250px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    background: #eee; /* Loading placeholder */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Image pichkay gi nahi */
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Mobile responsive */
@media(max-width: 800px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Top Bar Responsive */
@media(max-width: 768px) {
    .top-bar {
        padding: 10px 20px; /* Side padding kam kar di */
        flex-direction: column; /* Items ko upar neechy kar diya */
        gap: 10px;
        text-align: center;
    }
    
    .top-bar .contact-info {
        font-size: 13px; /* Font thoda chota mobile ke liye */
    }
}

/* Header/Navbar Responsive */
@media(max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column; /* Logo upar aur menu neechy */
        gap: 15px;
    }

    nav {
        display: flex;
        flex-wrap: wrap; /* Agar links zyada hain to wo dusri line mein aa jayenge */
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin-left: 0; /* Purana margin khatam */
        font-size: 14px;
        padding: 5px 10px;
        background: #f0f4f8; /* Links ko buttons jaisa look de diya mobile pe */
        border-radius: 5px;
    }
    
    .logo img {
        height: 40px; /* Logo ka size thoda chota */
    }
}

@media(max-width: 768px) {
    /* CEO Section Container adjustment */
    .highlight-container {
        flex-direction: column-reverse; /* Images ko text ke neechy ya upar adjust karne ke liye */
        text-align: center;
        gap: 30px;
    }

    /* Text section full width */
    .highlight-content {
        max-width: 100%;
    }

    /* Images Container adjustment */
    .highlight-images {
        flex-direction: column; /* Images ko aik ke neechy aik stack karega */
        align-items: center;
        width: 100%;
    }

    /* Big Image adjustment */
    .img-big {
        width: 100% !important; /* Mobile screen ki poori width le lega */
        max-width: 320px; /* Lekin boht bari na ho jaye */
        height: auto; /* Aspect ratio kharab nahi hoga */
        margin: 0 auto;
    }

    /* Small Images Group adjustment */
    .img-small-group {
        display: flex;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .img-small-group img {
        width: 48%; /* Do images side-by-side */
        height: 120px; /* Height thodi kam mobile ke liye */
        object-fit: cover; /* Image stretch nahi hogi */
    }
}