/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0d244f; /* Deep Navy Blue */
    --secondary-color: #ffffff;
    --accent-color: #f9a826; /* Industrial Gold/Orange */
    --light-gray: #f4f7fa;
    --text-color: #333333;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

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

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e89a1a;
    transform: translateY(-3px);
}


/* --- Header & Navigation --- */
.main-header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo img {
    height: 50px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* --- Hero Section (CORRECTED) --- */
.hero {
    position: relative; /* This creates the stacking context */
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0;
    overflow: hidden; /* Prevents anything from spilling out */
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* ★ FIX: Set background layer to 1 */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Overlay */
.hero-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 36, 79, 0.7); /* Dark blue overlay */
}

.hero-content {
    position: relative;
    z-index: 2; /* ★ FIX: Set content layer to 2 (higher than background) */
}

.hero-title {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 40px;
}

.cta-button-large {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 18px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button-large:hover {
    background-color: #e89a1a;
    transform: translateY(-5px);
}


/* --- Services Section --- */
.services-section {
    background-color: var(--light-gray);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-card h3 {
    padding: 20px 20px 10px 20px;
}
.service-card p {
    padding: 0 20px 25px 20px;
    font-size: 0.95rem;
}

/* --- Projects Section --- */
.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 40px;
}
.project-tag {
    display: inline-block;
    background-color: rgba(249, 168, 38, 0.1);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.project-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.project-result {
    margin-top: 25px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

/* --- Trust Section --- */
.trust-section {
    background-color: var(--light-gray);
    text-align: center;
}
.testimonial blockquote {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 20px auto;
    border: none;
    padding: 0;
}
.testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}
.partner-logos {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.partner-logos img {
    height: 45px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- About Teaser Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.section-title-left {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.about-content p {
    margin-bottom: 30px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.footer-column p, .footer-column li {
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.footer-column ul {
    list-style: none;
}
.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column a:hover {
    color: var(--accent-color);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- Portfolio / Repairs Page --- */
.portfolio-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.filter-controls {
    text-align: center;
    margin-bottom: 50px;
}

.filter-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--light-gray);
    border-color: #ccc;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-item {
    text-decoration: none;
    color: inherit;
    display: block; /* For filtering show/hide */
}

.portfolio-item-inner {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.portfolio-item-inner img {
    max-width: 80%;
    max-height: 70%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.portfolio-item-inner:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.portfolio-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 36, 79, 0.9); /* primary-color with alpha */
    color: #fff;
    padding: 15px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item-inner:hover .portfolio-item-overlay {
    transform: translateY(0);
}

.portfolio-item-overlay h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 5px 0;
}

.portfolio-item-overlay span {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* --- Brand Detail Page (brand-repairs.php) --- */
.brand-logo-header {
    max-height: 70px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Makes a dark logo white for the banner */
}

.repair-detail-section {
    padding: 80px 0;
}

.repair-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Main content is twice as wide as sidebar */
    gap: 50px;
}

.equipment-group {
    margin-bottom: 50px;
}

.equipment-group h2 {
    font-size: 2rem;
    color: var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--light-gray);
}

.repair-item-list {
    list-style: none;
    padding-left: 0;
}

.repair-item-list li {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-color);
}

.repair-item-list h3 {
    font-size: 1.2rem;
    margin: 0 0 5px 0;
}

/* Sidebar Styles */
.repair-sidebar .sidebar-widget {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    position: sticky; /* Makes the sidebar stick on scroll */
    top: 120px; /* Space from the sticky header */
}

.sidebar-widget h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.sidebar-widget p {
    margin-bottom: 25px;
}

.sidebar-widget .cta-button-large {
    display: block;
    text-align: center;
    width: 100%;
}

/* --- Placeholder for Missing Logos --- */
.logo-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    padding: 10px;
}

/*-----------start admin--------*/

/* --- Admin Dashboard --- */
.admin-dashboard-section {
    padding: 60px 0;
    background-color: var(--light- Dashboard --- */
.admin-section {
    padding: 80px 0;
}

.admin-gray);
    min-height: 80vh;
}
.admin-container {
    maxheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.admin-header h2 {
    margin: 0;
}

.logout-btn {
    background-color: #dc354
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}
5; /* Red for logout/danger */
    color: #fff;
}
.logout-btn:hover {.admin-header h1 {
    margin: 0;
}
.admin-user-info {
    
    background-color: #c82333;
}

.table-container {
    widthdisplay: flex;
    align-items: center;
    gap: 20px;
}
.admin: 100%;
    overflow-x: auto; /* Allows horizontal scrolling on small screens */
    -logout-btn {
    display: inline-block;
    background-color: #dc3545;
    color: #fff;
    padding: 8px 15px;
    textbackground: #fff;
    border: 1px solid #ddd;
    border-radius: 8px-decoration: none;
    border-radius: 5px;
    font-weight: 60;
}

table {
    width: 100%;
    border-collapse: collapse;
0;
    transition: background-color 0.3s ease;
}
.admin-logout-}

th, td {
    padding: 15px;
    text-align: left;
    border-btn:hover {
    background-color: #c82333;
}
.admin-dashboardbottom: 1px solid #ddd;
    vertical-align: top;
}

thead th {
    background-color: var(--light-gray);
    font-weight: 600;
    color:-section h2 {
    margin-bottom: 25px;
}

/* Table Styles */
.table-wrapper {
    overflow-x: auto; /* Allows horizontal scrolling on small screens */
    background: var(--primary-color);
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f1f1 #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.admin-contactsf1;
}

td a {
    color: var(--primary-color);
    font-weight-table {
    width: 100%;
    border-collapse: collapse;
}
.: 600;
}
td a:hover {
    text-decoration: underline;
}
admin-contacts-table th, 
.admin-contacts-table td {
    padding: 15```

---

### **You Are Done! Your Admin Panel is Complete.**

**How to use it:**

1px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.admin-contacts-table th {
    background-color: var(--primary-color);
    color: #.  **Go to `yourwebsite.com/admin.php`.** It will see you are not logged in and automatically redirect you to `login.php`.
2.  **Log in** with the admin credentials you created.
3.  fff;
    font-weight: 600;
}
.admin-contacts-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.adminUpon successful login, you will be redirected to the `admin.php` dashboard.
4.  The dashboard will display a-contacts-table tbody tr:hover {
    background-color: #f1f1f1;
 welcome message and a table containing all the submissions from your `contacts` database table, with the newest ones at the top}
.admin-contacts-table a {
    color: var(--primary-color);
    font-weight.
5.  Click the **"Log Out"** button to securely end your session and be returned to the login page: 500;
    text-decoration: none;
}
.admin-contacts-table a:hover.


/*-----------end admin--------*/
/*----------start login page---------------*/

---

### **Step 4: Add CSS for```css
/* --- Login Page --- */
.login-section {
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center; the Login Page**

This ensures the login form looks clean and professional.

1.  Open your **`style.css`** file.
2.  Add this CSS code to the bottom (before the responsive media queries).


    background-color: var(--light-gray);
    min-height: 60vh;
}
.login-form-container {
    max-width: 450px;
    width: ```css
/* --- Login Page --- */
.login-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}
.login-form-container {100%;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0
    max-width: 450px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    ,0,0,0.1);
}
.login-form-container h2 {
    text-align: center;
    margin-bottom: 25px;
}
.login-form-box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}
.login-form-container h2 {
    text-align: center;
    margin-bottom:container .error-message {
    text-align: center;
    margin-bottom: 20px;
    color: #dc3545;
    background-color: #f8d7da;
    padding 25px;
}
.login-form-container .error-message {
    text-align: center: 10px;
    border: 1px solid #f5c6cb;
    border-radius;
}
.login-form-container button.cta-button {
    width: 100%;
    padding: 15px;
}

/*----------login page end----------------*/
/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .project-card, .about-grid {
        grid-template-columns: 1fr;
    }
    .project-card img {
        height: 350px;
    }
    .about-image {
        order: -1; /* Puts image on top on mobile */
    }
    .contact-page-grid {
    grid-template-columns: 1fr;
    }
	.repair-detail-grid {
    grid-template-columns: 1fr;
}
}

@media (max-width: 768px) {
    .section-title, .section-title-left {
        font-size: 2rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .main-header .cta-button {
        display: none; /* Hide button, nav will be a hamburger menu */
    }
    .main-nav {
        /* In a real project, you'd add JS for a hamburger menu here */
        display: none;
    }
}

/* --- Page Header Banner --- */
.page-header-banner {
    padding: 80px 0;
    background-color: var(--primary-color);
    /* Optional: Add a subtle background image */
    /* background-image: linear-gradient(rgba(13, 36, 79, 0.8), rgba(13, 36, 79, 0.8)), url('assets/images/banner-bg.jpg'); */
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--secondary-color);
}
.page-header-banner h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.page-header-banner p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}


/* --- Contact Page Specific Styles --- */
.contact-page-section {
    padding: 80px 0;
}
.contact-page-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Form is slightly wider */
    gap: 60px;
}
.contact-form-container h2,
.contact-info-container h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.contact-form-container p {
    margin-bottom: 30px;
}
.info-block {
    margin-bottom: 30px;
}
.info-block h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.info-block p {
    line-height: 1.8;
}
.info-block a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}
.info-block a:hover {
    color: var(--accent-color);
}

/* Re-using styles from our previous attempt */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Re-using form styles */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--primary-color); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: var(--body-font); font-size: 1rem; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 2px rgba(249, 168, 38, 0.2); }
button.cta-button { width: 100%; padding: 15px; font-size: 1.1rem; border: none; cursor: pointer; }
.form-messages { text-align: center; margin-bottom: 30px; font-weight: 600; }
.success-message { color: #28a745; background-color: #d4edda; padding: 15px; border: 1px solid #c3e6cb; border-radius: 5px; }
.error-message { color: #dc3545; background-color: #f8d7da; padding: 15px; border: 1px solid #f5c6cb; border-radius: 5px; }

/* --- Security: Honeypot Spam Prevention --- */
.honeypot-field {
    position: absolute;
    left: -9999px; /* Move it way off-screen */
    opacity: 0;
}

