/* --- 1. Root Variables & Global Setup --- */
:root {
    --primary-color: #F26522;
    --primary-color-dark: #d45115;
    --bg-color: #FFFFFF;
    --text-color: #222222;
    --text-light: #555;
    --header-height: 70px;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1.6rem; /* Default 16px */
    line-height: 1.6;
    padding-top: var(--header-height);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style-type: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- 2. Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo img {
    height: 45px; /* Adjust logo height */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: var(--primary-color-dark);
    color: #fff;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 1rem 0;
    min-width: 220px;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0.8rem 1.5rem;
}

.dropdown-menu li a {
    color: var(--text-color);
    font-size: 1.4rem;
    white-space: nowrap;
}

.dropdown-menu li:hover {
    background-color: #f4f4f4;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* --- 3. Main Content (Homepage) --- */
.hero-slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    gap: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.6rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
}

.hero-image img {
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Homepage Sections */
.page-section {
    padding: 6rem 0;
}
.page-section:nth-child(even) {
    background-color: #f9f9f9;
}

.section-title {
    font-size: 3.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.8rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Company Grid */
.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.company-card {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.1);
}

.company-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.company-card p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.company-card a {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- 3.5 Internal Page Styles --- */
.page-header {
    padding: 4rem 0;
    background-color: #f9f9f9;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    font-size: 3.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.8rem;
    color: var(--text-light);
}

.page-content {
    padding: 6rem 0;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-light);
}

.page-content h2 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #fff7f2;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

/* About Page Layout */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 4rem;
}
.about-image img {
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
}
.contact-form button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.6rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.contact-form button:hover {
    background-color: var(--primary-color-dark);
}

/* Form Status Messages */
.form-message {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    font-weight: 500;
}
.form-success {
    background-color: #e6f9ee;
    color: #008a45;
    border: 1px solid #b3e6ce;
}
.form-error {
    background-color: #fdebee;
    color: #d93030;
    border: 1px solid #f8c6c6;
}

/* --- 3.7 Company Page Layouts --- */
.company-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
}

.sidebar-widget {
    background-color: #f9f9f9;
    padding: 2.5rem;
    border-radius: 8px;
    height: fit-content; /* Makes it stick to the top */
}

.sidebar-widget h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ffeede;
}

.sidebar-widget ul {
    list-style-type: none;
    margin-left: 0;
}

.sidebar-widget ul li a {
    display: block;
    padding: 1.2rem 0;
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.sidebar-widget ul li:last-child a {
    border-bottom: none;
}

.sidebar-widget ul li a:hover,
.sidebar-widget ul li.active a {
    color: var(--primary-color);
}

.company-content .company-image {
    margin-bottom: 2rem;
}

.company-content .company-image img {
    border-radius: 8px;
    width: 100%;
    object-fit: cover;
}

/* --- 3.8 Project Page Layout --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.project-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* To contain the image */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.1); /* Use primary color for shadow */
}
.project-card-image {
    position: relative;
    width: 100%;
    height: 220px;
}
.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-card-image .status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 5px;
}
.project-card-content {
    padding: 2rem;
}
.project-card-content h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.project-card-content p {
    font-size: 1.5rem;
    color: var(--text-light);
}


/* --- 4. Footer --- */
.main-footer {
    width: 100%;
    background-color: #fff7f2; /* Very light orange background */
    color: #555; /* Dark grey text (approx 50% black) */
    border-top: 1px solid #ffeede; /* Light orange border */
    padding-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 3rem;
}

.widget {
    font-size: 1.4rem;
}

.widget h4 {
    color: var(--text-color); /* Kept as dark text for headings */
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.widget ul li {
    margin-bottom: 0.8rem;
}

.widget ul li a {
    color: #555; /* Dark grey text (approx 50% black) */
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--primary-color);
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-bottom {
    background-color: #ffeede; /* Slightly darker light orange */
    text-align: center;
    padding: 1.5rem;
    font-size: 1.2rem;
    color: #555; /* Dark grey text (approx 50% black) */
    margin-top: 2rem;
}

/* --- 5. Mobile Responsive (Media Query) --- */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    body {
        font-size: 1.5rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: left 0.3s ease;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1.5rem;
        width: 100%;
    }
    
    .nav-button {
        display: inline-block;
        margin: 1.5rem auto;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Dropdowns on Mobile */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        width: 100%;
        background-color: #f9f9ff;
        padding: 0;
    }
    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    .dropdown-menu li a {
        padding-left: 3rem;
    }

    /* Hero Section Stacked */
    .hero-slider {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 2rem;
    }
    
    .hero-image {
        order: -1; /* Move image to top */
    }

    /* Homepage Grids Stacked */
    .company-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Stacked */
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Internal Page Stacking */
    .about-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Company Page Stacking */
    .company-layout {
        grid-template-columns: 1fr;
    }
    
    /* Project Page Stacking */
    .project-grid {
        grid-template-columns: 1fr;
    }
}

