/* General Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif; /* Or 'Open Sans', 'Lato' for a modern feel */
    overflow-x: hidden;
    color: #333333; /* Darker text for good contrast on white */
    line-height: 1.6;
    background-color: #FFFFFF; /* Overall page background remains White */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.highlight {
    color: #00CED1; /* Teal/Cyan for "Work for You" */
    font-weight: bold;
}

.highlight-blue {
    color: #00CED1; /* Teal/Cyan for "Advantage" */
    font-weight: bold;
}

.section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 10px;
    position: relative;
    color: #FF8C00; /* Orange for section titles on white background */
}

.section-title .arrow-down {
    font-size: 0.8em;
    vertical-align: middle;
    margin-left: 10px;
}

/* --- Top Bar --- */
.top-bar {
    background-color: #282828; /* Retaining dark background for top bar */
    color: #FFF;
    padding: 10px 0;
    font-size: 0.9em;
}

.top-bar .top-content {
    display: flex;
    justify-content: flex-end; /* Align to right like example */
    gap: 30px;
}

.top-bar .top-content span i {
    margin-right: 8px;
    color: #FF8C00; /* Orange icon */
}

/* --- Main Header / Navigation --- */
#main-header {
    background-color: #FFFFFF; /* White header */
    color: #333333;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 99;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #FF8C00; /* MallikDev logo in orange */
}

#main-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

#main-header nav ul li .nav-link {
    font-weight: bold;
    color: #333333;
    padding: 5px 0;
    transition: color 0.3s ease;
    position: relative;
}

/* Default state: underline is hidden (width: 0) */
#main-header nav ul li .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0; /* This is crucial for default hidden state */
    height: 2px;
    background-color: #FF8C00;
    transition: width 0.3s ease;
}

/* Hover and Active state: underline appears (width: 100%) */
#main-header nav ul li .nav-link:hover::after,
#main-header nav ul li .nav-link.active::after {
    width: 100%; /* This makes the underline appear */
}


.contact-button {
    background-color: #FF8C00; /* Orange button */
    color: #FFF;
    padding: 8px 18px;
    border-radius: 5px;
}

.contact-button:hover {
    background-color: #FFA500; /* Lighter orange on hover */
}

/* Mobile Menu Button (Hamburger) */
.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.8em;
    cursor: pointer;
    color: #333333;
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100vw;
    height: 80vh; /* Increased height to accommodate the image */
    background-image: url('assets/images/herocheck.jpg'); /* Background image from example */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFF; /* Text remains white on hero image overlay */
    flex-direction: column; /* Allows content and image to stack */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically if there's extra space */
    max-width: 900px; /* Limit content width */
    padding: 20px; /* Add some padding */
}

.hero-content h1 {
    font-size: 3.5em;
    line-height: 1.2;
    margin-bottom: 30px; /* Reduce margin to make space for image */
    max-width: 900px;
}

.hero-buttons {
    margin-bottom: 40px; /* Add margin below buttons for the image */
    display: flex; /* Make buttons a flex container */
    gap: 20px; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
}

.hero-buttons .btn {
    font-size: 1.1em;
    flex-shrink: 0; /* Prevent shrinking */
}

.get-quotation-btn {
    background-color: #FF8C00; /* Orange button */
    color: #FFF;
}

.get-quotation-btn:hover {
    background-color: #FFA500;
}

.contact-us-btn-hero {
    background-color: transparent;
    color: #FFF;
    border: 2px solid #FFF;
}

.contact-us-btn-hero:hover {
    background-color: #FFF;
    color: #FF8C00; /* Orange text on hover */
}

/* New style for the hero image field */
.hero-image-field {
    max-width: 60%; /* Adjusted from 80% for better visual balance on larger screens */
    height: auto;
    border-radius: 10px; /* Slightly rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    margin-top: 40px; /* Space above the image - adjusted from 20px */
    opacity: 0; /* Start hidden for a fade-in effect */
    animation: fadeInImage 1.5s ease-out forwards 1s; /* Fade in after a delay */
    position: relative; /* Ensure it's above the overlay */
    z-index: 2;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* --- Content Sections (General) --- */
.content-section {
    padding: 80px 0; /* Top/bottom padding */
    min-height: 50vh; /* Ensure sections have some height */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #FFFFFF; /* Default to white background for all content sections */
    color: #333333; /* Default text color for light sections */
}

/* The .dark-section class is no longer explicitly changing background of sections,
   as all sections are white by default. If you want a section to be dark again,
   you'd re-apply a background-color to that specific section. */
.dark-section .section-title {
    color: #FF8C00; /* Keep orange title on white background */
}
.dark-section .highlight-blue {
    color: #00CED1; /* Still blue highlight */
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.grid-item {
    background-color: #383838; /* Changed to light black/dark grey */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Adjusted shadow for darker background */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    color: #FFFFFF; /* White text for contrast on dark background */
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item h3 {
    color: #FF8C00; /* Orange heading for items */
    font-size: 1.3em;
    margin-bottom: 15px;
}

.grid-item p {
    font-size: 0.95em;
    color: #CCC; /* Lighter text for paragraphs on dark background */
}

/* Icon items (Why Choose Us, Our Services) */
.icon-item .icon-box {
    background-color: #FF8C00; /* Orange box for icons */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2em;
    color: #FFF;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(255,140,0,0.4);
    transition: background-color 0.3s ease;
}

.icon-item:hover .icon-box {
    background-color: #FFA500;
}


/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    width: 100%;
    margin-top: 40px;
}

.portfolio-item {
    background-color: #383838; /* Changed to light black/dark grey */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Adjusted shadow for darker background */
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures all items have same height */
    color: #FFFFFF; /* White text for contrast on dark background */
}

.portfolio-item img {
    width: 100%;
    height: 200px; /* Fixed height for image */
    object-fit: cover; /* Cover the area, cropping if needed */
    border-bottom: 1px solid #444; /* Darker border for contrast */
}

.portfolio-item h3 {
    padding: 20px;
    font-size: 1.1em;
    min-height: 70px; /* Ensure consistent heading height */
    color: #FFF; /* White headings on dark background */
    margin-bottom: 10px;
}

.portfolio-item p { /* Added padding and flex-grow */
    padding: 0 20px 20px;
    color: #CCC; /* Lighter text for paragraphs on dark background */
    font-size: 0.9em;
    flex-grow: 1; /* Allows paragraph to take up available space */
}

.portfolio-item .visit-website-btn {
    background-color: #6a6a6a; /* Darker grey button for portfolio */
    color: #FFF;
    border-radius: 0; /* Square button */
    padding: 10px 0;
    width: 100%;
    border: none;
    margin-top: auto; /* Push button to bottom */
}

.portfolio-item .visit-website-btn:hover {
    background-color: #FF8C00; /* Orange on hover */
}

/* Style for disabled buttons (e.g., "Coming Soon") */
.disabled-btn {
    background-color: #888 !important; /* Grey out disabled buttons */
    cursor: not-allowed !important; /* Indicate it's not clickable */
    opacity: 0.7;
}

.disabled-btn:hover {
    background-color: #888 !important; /* Keep it grey on hover */
    color: #FFF !important; /* Ensure text remains white */
}


/* --- Contact Section --- */
.special-offer {
    background-color: #383838; /* Changed to light black/dark grey */
    border: 2px solid #FF8C00; /* Orange border for offer */
    color: #FFF; /* White text for offer content */
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    text-align: center; /* Center content in offer box */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Adjusted shadow */
}

.special-offer h3 {
    font-size: 1.8em;
    color: #FF8C00; /* Orange heading for offer title */
    margin-bottom: 10px;
}

.special-offer p {
    font-size: 1.1em;
    color: #CCC; /* Lighter text */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    width: 100%;
    max-width: 900px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    /* Added background, padding, border-radius, and shadow to make it a dark box */
    background-color: #383838; /* Light black/dark grey background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contact-form input,
.contact-form textarea {
    background-color: #444444; /* Darker input fields */
    border: 1px solid #555555;
    color: #FFF; /* White text for input */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #BBB; /* Lighter placeholder text */
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #FF8C00; /* Orange border on focus */
    box-shadow: 0 0 0 2px rgba(255,140,0,0.3);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #FFF; /* Changed to pure white for brightness */
    text-align: left; /* Align checkbox text to left */
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
    accent-color: #FF8C00; /* Style the checkbox itself */
}

.submit-btn {
    background-color: #00CED1; /* Teal/Cyan submit button */
    color: #FFF;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    width: 100%;
    border-radius: 5px;
}

.submit-btn:hover {
    background-color: #00B3B6; /* Darker teal on hover */
}

/* Loading spinner and form message styles */
.loading-spinner {
    display: none; /* Hidden by default */
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #FF8C00; /* Orange spinner */
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-message {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    display: none; /* Hidden by default */
    color: #FFF; /* White text on dark form background */
}

.form-message.success {
    background-color: #28a745; /* Green for success */
}

.form-message.error {
    background-color: #dc3545; /* Red for error */
}

.contact-details {
    text-align: left;
    /* Added background, padding, border-radius, and shadow to make it a dark box */
    background-color: #383838; /* Light black/dark grey background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: #FFF; /* Set text color for contact details section to white */
}

.contact-details h3 {
    font-size: 1.5em;
    color: #FF8C00; /* Orange heading for contact details */
    margin-bottom: 25px;
    border-bottom: 2px solid #FF8C00; /* Orange underline for address heading */
    padding-bottom: 10px;
    display: inline-block; /* Make underline only span text */
}

.contact-details p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #FFF; /* Changed to pure white for brighter text and visibility on dark background */
}

.contact-details p i {
    margin-right: 15px;
    color: #FF8C00; /* Orange icons */
    width: 25px; /* Align icons */
    text-align: center;
}


/* --- WhatsApp Float Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px; /* Adjust as needed */
    right: 30px;  /* Adjust as needed */
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    width: 60px; /* Default size for desktop */
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px; /* Icon size */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000; /* Ensure it's on top */
    text-decoration: none; /* Remove underline */
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse 2s infinite; /* Add a subtle pulse animation */
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1DA851; /* Darker green on hover */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8em;
    }
}

@media (max-width: 768px) {
    /* Top bar: still align items center, but stack if needed */
    .top-bar .top-content {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    /* Main Header Layout for Mobile */
    #main-header .header-content {
        flex-direction: row; /* Keep logo and toggle side-by-side */
        justify-content: space-between; /* Space them out */
        align-items: center;
        padding: 10px 20px;
        position: relative; /* Essential for absolute positioning of nav */
    }

    .logo {
        margin: 0; /* Remove specific margins */
        width: auto; /* Allow logo to take natural width */
    }

    /* Mobile Menu (Nav) Styling */
    #main-header nav {
        display: none; /* Hidden by default */
        position: absolute; /* Position it below the header row */
        top: 100%; /* Place it right below the header */
        left: 0;
        width: 100%; /* Take full width */
        background-color: #FFFFFF; /* White background for the dropdown */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 98; /* Below sticky header (99), above other content */
        overflow: hidden; /* Hide anything that goes outside */
    }

    #main-header nav.active {
        display: block; /* Show when 'active' class is added by JS */
    }

    #main-header nav ul {
        flex-direction: column; /* Stack nav items vertically */
        padding: 10px 0;
        margin: 0; /* Remove default ul margin */
        border-radius: 0; /* No border-radius on the nav itself for a full-width dropdown */
    }

    #main-header nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee; /* Add separators between links for clarity */
    }
    #main-header nav ul li:last-child {
        border-bottom: none; /* No border for the last item */
    }

    #main-header nav ul li .nav-link {
        display: block; /* Make links fill their width for easier tapping */
        padding: 12px 20px; /* More padding for a better touch target */
        color: #333; /* Ensure text color is readable on the white background */
    }

    #main-header nav ul li .nav-link:hover,
    #main-header nav ul li .nav-link.active {
        background-color: #f5f5f5; /* Light grey background on hover/active */
        color: #FF8C00; /* Keep orange text color */
    }

    /* Important: Ensure the mobile menu items also don't have the underline by default */
    #main-header nav ul li .nav-link::after {
        display: none; /* No underline on mobile menu items, even on hover */
    }

    /* Contact button on desktop header should be hidden on mobile */
    .contact-button {
        display: none;
    }

    /* Mobile Menu Toggle Button (Hamburger) */
    .menu-toggle {
        display: block; /* Show hamburger icon */
        /* Positioned naturally by flexbox (header-content is display: flex; justify-content: space-between) */
        font-size: 1.8em; /* Ensure icon size is good */
        color: #333333; /* Ensure icon color is visible */
    }

    /* Hero section adjustments for mobile */
    .hero-section {
        height: auto; /* Allow height to adjust on smaller screens */
        padding: 80px 0; /* Add padding for smaller screens when height is auto */
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure buttons take full width for stacking */
    }
    .hero-buttons .btn {
        width: 90%; /* Adjust button width */
        margin: 0 auto;
    }

    .hero-image-field {
        max-width: 90%; /* Larger on small screens */
    }

    .section-title {
        font-size: 2em;
    }

    .grid-3-cols {
        grid-template-columns: 1fr; /* Stack items on small screens */
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Stack contact form and details */
        gap: 30px;
    }

    .contact-details {
        text-align: center;
    }
    .contact-details h3 {
        display: block; /* Allow underline to span full width if needed */
        margin: 0 auto 25px auto;
    }

    /* Responsive adjustments for WhatsApp button */
    .whatsapp-float {
        width: 50px; /* Smaller size on mobile */
        height: 50px;
        font-size: 28px;
        bottom: 20px; /* Slightly less prominent on mobile */
        right: 20px;
    }
}

@media (max-width: 480px) {
    .top-bar .top-content {
        align-items: center;
        gap: 5px;
    }
    .hero-content h1 {
        font-size: 1.8em;
    }
}
