/* Existing body and section styles remain */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.logo {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
}

header,
.nav-bar,
#nav-menu {
    position: relative;
    z-index: 1000;
}

/* Default: Desktop styles */
#nav-menu {
    display: flex;
    gap: 20px;
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: none;
}


.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
}

.nav-links a:hover {
    color: #fff;
}

/* Hide hamburger on desktop */
/* Stylish Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    /* slightly bigger */
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2500;
}

/* Bars visible with brand color */
.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: #ff7a2d;
    /* ORANGE for visibility */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Add hover glow */
.hamburger:hover .bar {
    box-shadow: 0 0 6px rgba(255, 122, 45, 0.8);
}


/* Transform into X when active */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

#ftr {
    font-size: x-small;
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 350px;
    /* adjust for desktop */
    margin: 0 auto 2rem auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Fade slides */
.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    /* 25% opacity for dark effect */
}

.hero-slider .slide.active {
    opacity: 1;
}

/* Overlay text styling */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.slider-overlay h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.6);
    max-width: 80%;
}

/* Contact Page */
.contact-page {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;
}

.contact-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form button {
    background-color: #d9721e;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #8b3f00;
}

.contact-info {
    text-align: left;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.whatsapp-btn {
    display: inline-block;
    margin: 1rem auto 0 auto;
    /* centers it with auto left/right margin */
    padding: 10px 15px;
    background-color: #25d366;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #1da851;
}

.map-container {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    font-size: 1.8rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hover Effect */
.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1da851;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.floating-whatsapp {
    animation: pulse 2s infinite;
}

/* Managing Director Section */
.md-section {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 1rem;
    text-align: center;
}

.md-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: #d9721e;
    color: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-text-stroke-color: #000000;
}

.md-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.md-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid black;

}

.md-info h2 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
}

.md-info .md-title {
    font-style: italic;
    color: #000000;
    margin-bottom: 1rem;
}


.md-info blockquote {
    font-size: 1.1rem;
    color: var(--primary-orange);
    font-style: italic;
    border-left: 4px solid var(--primary-orange);
    padding-left: 10px;
    margin: 0;
}

/* Certificates Section */
.certificates-section {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 1rem;
    text-align: center;
}

.certificates-section h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.certificates-section p {
    color: #555;
    margin-bottom: 2rem;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.certificate-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.certificate-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.certificate-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Lightbox Overlay */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .md-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .md-photo {
        width: 140px;
        height: 140px;
    }
}


/* Mobile Layout */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }
}

.contact-info {
    background-color: #d9721e;
    border-radius: 20px;
    color: black;
    border: 5px solid white;
}

.cnt-det {
    color: White;
    outline: black;
}

.pdf-container {
    position: relative;
    width: 210px;
    /* A4 width */
    height: calc(210px * 1.414);
    /* A4 aspect ratio (portrait) */
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
    background: white;
    transition: transform 0.3s ease;
}

.pdf-container:hover {
    transform: scale(1.03);
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    font-size: 14px;
    padding: 5px 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.pdf-container:hover .overlay {
    opacity: 1;
}

/* Responsive text size for mobile */
@media (max-width: 768px) {
    .hero-slider {
        height: 220px;
        /* smaller height for mobile */
    }

    .slider-overlay h1 {
        font-size: 1.3rem;
    }
}


/* Show only on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}


.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-name {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.service-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
}

.service-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(25%);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.service-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.service-overlay p {
    max-width: 700px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.has-submenu {
    display: flex;
    flex-direction: column;
}

.submenu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    text-align: left;
    padding: 8px 0;
    cursor: pointer;
}

reryt .submenu a {
    color: #ff7a2d;
    font-size: 0.95rem;
    text-decoration: none;
}

.submenu a:hover {
    text-decoration: underline;
}

/* Style Services toggle like normal nav links */
.submenu-toggle {
    display: block;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;

}

.submenu-toggle:hover {
    color: #ff7a2d;
}

.submenu-links {
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

.submenu-links:hover {
    background-color: #fff;
    text-decoration: none;
}

/* Dropdown submenu style */

.submenu {
    position: absolute;
    /* key fix: removes from normal flow */
    top: 100%;
    /* directly under Services ▾ */
    left: -100%;
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    padding: 10px;
    border-radius: 8px;
    min-width: 200px;
    /* prevents jumping width */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    /* ensure it stays above everything */
}



.submenu a {
    color: #fff;
    padding: 5px 0;
    text-decoration: none;
    font-size: 0.95rem;
}

.submenu a:hover {
    color: #ff7a2d;
}

/* Active dropdown */
.submenu.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* consistent spacing between items */
}

/* Make sure Services toggle behaves like a link */
.has-submenu {
    position: relative;
    display: flex;
    align-items: center;
}

.submenu-toggle {
    display: inline-block;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    /* remove button-like padding */
    background: none;
    border: none;
}


/* Small fade animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .service-overlay h2 {
        font-size: 1.8rem;
    }

    .service-overlay p {
        font-size: 1rem;
        padding: 0 10px;
    }
}


@media (max-width: 768px) {
    .company-name {
        display: none;
    }
}

/* Show only on mobile */

/* Desktop hover dropdown */
@media (min-width: 769px) {
    .has-submenu:hover .submenu {
        display: flex;
    }
}


@media (max-width: 768px) {
    header {
        background: rgba(0, 0, 0, 0.7);
        /* dark backdrop on mobile */
        backdrop-filter: blur(6px);
    }
}


@media (max-width: 768px) {
    #nav-menu {
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        flex-direction: column;
        padding: 10px;
        border-radius: 0 0 12px 12px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 2000;
    }

    .submenu {
        right: 5%;
    }

    #nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}