/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Header Styling */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Container for Layout */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
}

/* Logo Styling */
.logo img {
    width: 120px;
}

/* Navigation Menu */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
}

/* Hover Effect for Navigation Links */
.navbar a::after {
    content: '';
    width: 0;
    height: 2px;
    background: #007BFF;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styling */
.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: '\25BC';
    margin-left: 5px;
    font-size: 0.7em;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
    min-width: 250px;
}

.dropdown:hover > .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
}

.dropdown-menu li {
    padding: 10px 20px;
    white-space: nowrap;
}

.dropdown-menu li a {
    color: #333;
    display: block;
}

.dropdown-menu li a:hover {
    background: #f1f1f1;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    display: flex;
    width: 700%;
    animation: slide 20s infinite;
}

.hero-slide {
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
}

/* Our History Section */
.history {
    display: block;
    background: #f9f9f9;
    padding: 80px 20px;
    align-items: center;
    text-align: center;
}

.history h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
}

.history p {
    align-items: center;
    font-size: 1.1rem;
    color: #555;
    margin: 0;
    line-height: 1.8;
    padding-right: 100px;
    padding-left: 100px;
}


/* Keyframes for Slider Animation */
@keyframes slide {
    0% { transform: translateX(0); }
    14% { transform: translateX(0); }
    15% { transform: translateX(-100vw); }
    29% { transform: translateX(-100vw); }
    30% { transform: translateX(-200vw); }
    44% { transform: translateX(-200vw); }
    45% { transform: translateX(-300vw); }
    59% { transform: translateX(-300vw); }
    60% { transform: translateX(-400vw); }
    74% { transform: translateX(-400vw); }
    75% { transform: translateX(-500vw); }
    89% { transform: translateX(-500vw); }
    90% { transform: translateX(-600vw); }
    100% { transform: translateX(-600vw); }
}

/* Responsive Styling for Mobile */
@media (max-width: 768px) {
    .container {
        padding: 10px 20px;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #333;
    }

    .nav-list {
        display: none !important;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 60px;
        right: 20px;
        width: 250px;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-list.active {
        display: flex !important;
    }

    .nav-list li {
        padding: 8px 10px;
        text-align: center;
        margin: 0;
    }

    .dropdown > a::after {
        display: inline-block;
        margin-left: 5px;
    }

    .dropdown-menu {
        display: none;
        position: relative;
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s, opacity 0.3s ease-in-out;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        box-shadow: none;
        margin: 0;
        height: 0;
        overflow: hidden;
        min-width: 250px;
    }

    .dropdown > a {
        cursor: pointer;
    }

    .dropdown.open .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        height: auto;
    }

    .dropdown-menu li {
        padding: 5px 10px;
        margin: 0;
        white-space: nowrap;
    }

    .dropdown-menu li a {
        padding: 5px 10px;
    }

    .hero {
        height: 70vh;
    }

    .hero-slide {
        height: 70vh;
    }

    .history {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .history h2 {
        font-size: 2rem;
        margin-bottom: 10px;
        padding: 10px 20px;
        box-shadow: none;
        background: transparent;
    }

    .history p {
        font-size: 1rem;
        padding: 0 20px;
        margin-top: 0;
    }

    .history::before, .history::after {
        height: 90px;
        clip-path: ellipse(75% 50px at 50%);
    }
}

/* Message from Chairman Section */
.chairman-message {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 80px 20px;
    text-align: left;
}

.chairman-message .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.chairman-photo img {
    width: 100%;
    max-width: 900px; /* change here 400px to 900px */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.chairman-text h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.chairman-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Responsive Styling for Chairman Section */
@media (max-width: 768px) {
    .chairman-message .container {
        flex-direction: column;
        text-align: center;
    }

    .chairman-photo img {
        max-width: 300px;
        margin-bottom: 20px;
    }

    .chairman-text h2 {
        font-size: 1.5rem;
    }

    .chairman-text p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* Industry Verticals Section */
.industry-verticals {
    background: #f9f9f9;
    padding: 30px 20px;
    text-align: center;
}

.industry-verticals h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.industry-item {
    background: #007BFF;
    color: white;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.industry-item:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Showcase Section */
.showcase {
    padding: 50px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-content {
    display: none;
    font-size: 1.2rem;
    color: #555;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
}

.showcase-content.active {
    display: block;
}

/* Default Background Image */
.showcase.default-background {
    background-image: url('assets/images/pharmaceuticals.jpg');
}

/* Background Images for Each Industry */
.showcase#pharmaceuticals {
    background-image: url('assets/images/pharmaceuticals.jpg');
}

.showcase#textiles {
    background-image: url('assets/images/textiles.jpg');
}

.showcase#real-estate {
    background-image: url('assets/images/real-estate.jpg');
}

.showcase#it {
    background-image: url('assets/images/it.jpg');
}

.showcase#media {
    background-image: url('assets/images/media.jpg');
}

.showcase#electronics {
    background-image: url('assets/images/electronics.jpg');
}

/* Responsive Styling */
@media (max-width: 768px) {
    .industry-verticals h2 {
        font-size: 1.8rem;
        color: #333;
        margin-bottom: 30px;
    }

    .industry-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .industry-item {
        background: #007BFF;
        color: white;
        padding: 8px;
        border-radius: 10px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .showcase {
        padding: 20px;
        height: 300px;
        background-size: cover;
    }

    .showcase-content {
        font-size: 1rem;
        padding: 15px;
    }
}

/* Footer Section */
.footer {
    background: #333;
    color: #fff;
    padding: 40px 20px;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #007BFF;
}

.footer-column p, .footer-column a {
    color: #ccc;
    line-height: 1.8;
    text-decoration: none;
}

.footer-column a:hover {
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 20px;
    }

    .footer-column iframe {
        height: 200px;
    }
}

/* Know Us Page Styling */

/* About Us Section */
.about-us, .chairman-message, .board-directors, .leadership-team, .gallery {
    background: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
}

.about-us h2, .chairman-message h2, .board-directors h2, .leadership-team h2, .gallery h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.about-us p, .chairman-message p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Board of Directors & Leadership Team */
.directors-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.director-card, .team-member {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.director-card img, .team-member img {
    width: 100%;
    border-radius: 15%;
    margin-bottom: 15px;
}

.director-card h3, .team-member h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Career Page Styling */

/* Life at Dhali Group Section */
.life-dhali, .career-gallery, .career-opportunities {
    background: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
}

.life-dhali h2, .career-gallery h2, .career-opportunities h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.life-dhali p, .career-opportunities p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Career Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Job Listings */
.job-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.job-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.job-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.job-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.apply-btn {
    background: #007BFF;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.apply-btn:hover {
    background: #0056b3;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .job-listings {
        grid-template-columns: 1fr;
    }
}

/* Contact Us Page */
.contact-section {
    background: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form .input-group {
    margin-bottom: 15px;
    text-align: left;
}

.contact-form label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    background: #007BFF;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.submit-btn:hover {
    background: #0056b3;
}

/* Contact Map */
.contact-map {
    flex: 1;
}

.contact-map iframe {
    width: 100%;
    border-radius: 10px;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form, .contact-map {
        width: 100%;
    }
}
