:root {
    --primary: #0044cc;
    --success: #28a745;
    --dark: #333;
    --light: #f4f4f4;
}

/* Forces all scrolling on the website to be smooth */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: var(--light);
}


/* HEADER */

header {
    background: linear-gradient(135deg, #0033aa 0%, #0044cc 100%);
    color: white;
    padding: 15px 5%; /* Increased padding to make the blue bar properly proportioned */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.logo {
    display: flex;
    align-items: center; /* Centers items securely without baseline stretching */
    gap: 10px;
}

/* Locks the header logo size so it never breaks the layout */
.header-logo {
    height: 60px; /* Adjust this slightly if you want it bigger or smaller */
    width: auto;
    object-fit: contain;
}

.logo h1 {
    cursor: pointer;
    margin: 0;
    line-height: 1; /* Strips out the browser's default invisible spacing */
}

/* Styles the word 'Automation' so it looks intentional */
.logo-sub {
    font-size: 1.2rem;
    color: cyan;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* NAVIGATION */

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.95rem;
}

nav a:hover {
    color: cyan;
}


/* DROPDOWN */

/* This creates a solid, invisible hit-box extending 15px below the button */

/* DROPDOWN CONTAINER */
.dropdown {
    position: relative; /* THIS IS CRITICAL. DO NOT DELETE THIS. */
}

/* INVISIBLE HOVER BRIDGE */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

/* THE MENU BOX */
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    animation: fadeIn 0.2s ease-in-out;
    z-index: 2000; /* Forces it to render above everything else */
}

.dropbtn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropbtn:hover {
    background: white;
    color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
    color: var(--dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap; /* THIS IS THE CRITICAL FIX */
    transition: background 0.3s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Dark mode support for the links */
body.dark-mode .dropdown-content a {
    color: #000000;
}
body.dark-mode .dropdown-content a:hover {
    background-color: #333;
    color: cyan;
}


/* PRODUCT GRID */

.product-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 25px;

    padding: 40px 5%;

}


/* PRODUCT CARD */

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    text-align: center; /* This centers the H3, P, and Price */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Add this to ensure the button looks clean when centered */
.card button {
    background: var(--success);
    color: white;
    border: none;
    padding: 12px;
    width: 90%; /* Slightly narrower than the card for better look */
    margin: 10px auto 0 auto; /* Centers the button horizontally */
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}   

/* Add to Style.css */
.price-disclaimer {
    background: rgba(0, 255, 255, 0.1); /* Light cyan tint */
    border: 1px solid cyan;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.price-disclaimer em {
    font-style: normal;
    font-weight: bold;
    color: cyan;
}


/* ✅ FULL SIZE IMAGE FIX */

.media-container {

    width: 100%;

    height: 250px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(212, 208, 215, 0.671);

    border-radius: 10px;

    overflow: hidden;

    margin-bottom: 10px;

}


/* IMAGE FULL SIZE */

.media-container img {

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

}


/* VIDEO FULL SIZE */

.media-container video {

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

}



/* PRICE */

.price {

    font-size: 18px;

    font-weight: bold;

    color: var(--dark);

}


/* BUTTON */

.card button {

    background: var(--success);

    color: white;

    border: none;

    padding: 10px;

    width: 100%;

    border-radius: 5px;

    cursor: pointer;

}


/* HERO SECTION */

.home-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)); /* This is a true, premium dark grey. No muddy images. */
    color: white;
    padding: 30px 20px 80px 20px; 
    text-align: center; /* Wrote this once, not twice */
    position: relative; 
    overflow: hidden;   
    z-index: 1;
}

/* --- MASSIVE HERO WATERMARK --- */
.home-hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 90%; 
    height: 90%;
    background: url('assets/FTA_PNG.png') center center no-repeat;
    background-size: contain;
    opacity: 0.20; /* Bumped to 12% so it actually shows up cleanly against the dark grey */
    z-index: -1; 
    pointer-events: none; 
} /* Notice: NO SEMICOLON HERE */

/* Dark mode adjustment */
body.dark-mode .home-hero::before {
    opacity: 0.05; /* Slightly fainter in dark mode so it doesn't glare */
}

.brand-big {
    font-size: 50px;
    margin-bottom: 5px; /* Pulls the tagline up */
}

.tagline {
    font-size: 22px;
    color: cyan;
    margin-top: 0; /* Strips the default browser spacing */
    margin-bottom: 20px;
}

/* CUSTOM PROJECT HIGHLIGHT IN HERO SECTION */
.custom-project-highlight {
    background: rgba(40, 167, 69, 0.15); /* Light green tint to match success color */
    border: 1px solid var(--success);
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    margin: 5px 0 25px 0; /* Keeps it tight with the disclaimer but pushes the button down */
    font-size: 1.05rem; /* Noticeably larger than the 0.9rem disclaimer */
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.custom-project-highlight strong {
    color: var(--success);
    font-size: 1.1rem;
}

.cta-btn {

    padding: 12px 25px;

    background: cyan;

    border: none;

    cursor: pointer;

}


/* ABOUT */

.home-about {

    background: white;

    padding: 60px;

}


/* FEATURED */

.home-featured {

    padding: 40px;

}


/* MINI CARD */
/* Replace your existing .mini-card and .mini-media styles */
.mini-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    text-align: center; /* Centers text and button */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mini-card:hover {
    transform: translateY(-5px);
}

.mini-media {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 208, 215, 0.3); /* Softer background */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.mini-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mini-card h4 {
    margin: 10px 0 5px 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.mini-card p {
    font-weight: bold;
    color: var(--dark);
    margin: 5px 0;
}

/* Make the mini-card button consistent */
.mini-card button {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
}

/* Update this in Style.css */
.mini-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px; /* Increased gap for shadows */
    padding: 20px 5%;
}

/* Replace or update your search-container styles */
.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 2px 5px; /* Creates a pill-shaped container */
}

.search-container input {
    padding: 7px 12px; 
    width: 100%; /* Allows it to shrink on phones */
    max-width: 260px; /* Stops it from getting too big on desktops */
    border: none;
    outline: none;
    background: transparent;
}

.search-container button {
    background: var(--success);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
    margin-right: 2px;
}

.search-container button:hover {
    background: #218838; /* Darker green on hover */
    transform: scale(1.05);
}


/* WHATSAPP FLOAT */
/* --- THE WHATSAPP FLOAT FIX --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366; /* True WhatsApp brand green */
    color: white;
    padding: 12px 20px;
    border-radius: 50px; /* Makes it a clean pill shape */
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Adds a drop shadow so it pops off the screen */
    z-index: 9999 !important; /* Forces it to the absolute top layer of the website */
    display: flex;
    align-items: center;
    gap: 8px;
}

/* MODAL */

.modal {

    display: none;

    position: fixed;

    width: 100%;

    height: 100%;

    background: rgba(0,0,0,0.6);

}

/* The Background Overlay */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* Dim the background */
    backdrop-filter: blur(5px); /* Professional blur effect */
}

/* The Box in the Middle (Upgraded for dynamic sizing) */
.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    
    /* Absolute Centering Logic */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Containment so it never breaks off screen */
    max-height: 85vh; /* Prevents it from being taller than the screen */
    overflow-y: auto; /* Adds a scrollbar ONLY if the screen is too small */
    
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

/* Contact Link Styling */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-item {
    text-decoration: none;
    color: #333;
    padding: 12px;
    border-radius: 8px;
    background: #f4f4f4;
    font-weight: bold;
    transition: 0.3s;
    display: block;
}

.contact-item span { display: block; font-size: 0.8rem; color: #777; }

/* Brand Colors on Hover */
.wa:hover { background: #25D366; color: white; }
.ig:hover { background: #E1306C; color: white; }
.em:hover { background: #0044cc; color: white; }

/* Replace the previous .category-header block with this */
.category-header {
    text-align: center;
    padding: 15px 20px 10px 20px; /* Reduced top padding from 40px to 15px to shift it up */
    margin-top: 0; 
}

.category-header h2 {
    font-size: 2.8rem; /* Slightly larger */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin: 0 auto 15px auto; /* Removed top margin to keep it high */
    display: inline-block; /* Required for the underline to fit the text width */
    position: relative;
    padding-bottom: 10px;
}

.sort-bar {
    display: flex;
    justify-content: center; /* Centers the sort dropdown under the title */
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* New styling for the Sort dropdown */
.sort-bar select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid var(--primary);
    background-color: white;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    outline: none;
}

.sort-bar select:hover {
    border-color: var(--success);
}

/* The Underline Effect */
.category-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%; /* Centers a shorter underline */
    width: 70%;
    height: 4px;
    background: var(--success); /* Uses your existing green color */
    border-radius: 2px;
}

.sort-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    font-weight: bold;
}

/* Attentive View All Section */
.view-all-container {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.view-all-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 68, 204, 0.3);
}

.view-all-btn:hover {
    background: #003399;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 68, 204, 0.4);
}

/* Floating Go to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px; /* Positioned above the WhatsApp button */
    right: 20px;
    background: var(--dark);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: 0.3s;
    z-index: 999;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.back-to-top:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Dark Mode Support */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .card, 
body.dark-mode .mini-card,
body.dark-mode .home-about,
body.dark-mode .modal-content,
body.dark-mode .view-all-container {
    background-color: #1e1e1e;
    color: #ffffff;
    border-color: #333;
}

body.dark-mode .price {
    color: cyan;
}

body.dark-mode .contact-item {
    background: #2a2a2a;
    color: white;
}

/* --- PRODUCT MEDIA SLIDER --- */
.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.active-media {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hidden-media {
    display: none;
}

.slider-controls {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 5px;
    box-sizing: border-box;
    pointer-events: none; /* Allows clicking the image behind the container */
}

/* Overriding the global .card button rules */
.card .media-container .slider-controls button {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.card .media-container .slider-controls button:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* SMART WHATSAPP TOOLTIP */
.wa-tooltip {
    position: fixed;
    bottom: 80px; /* Sits exactly above your floating button */
    right: 20px;
    background: white;
    width: 250px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-left: 4px solid var(--success);
    z-index: 999;
    /* Hidden state */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Gives it a slight pop/bounce effect */
}

/* Active state triggered by JS */
.wa-tooltip.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.close-tooltip {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    line-height: 1;
}

.close-tooltip:hover {
    color: red;
}

/* Dark mode support for the tooltip */
body.dark-mode .wa-tooltip {
    background: #1e1e1e;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
body.dark-mode .wa-tooltip div[style*="color: #555;"] {
    color: #ccc !important;
}

/* --- SITE FOOTER --- */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 40px 5% 20px 5%;
    margin-top: 50px;
    color: var(--dark);
}

.footer-top {
    display: flex;
    flex-wrap: wrap; /* This ensures it breaks nicely on mobile phones */
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand {
    flex: 2;
    min-width: 250px;
}

/* The space reserved for your logo */
.footer-logo-placeholder {
    width: 180px;
    height: 60px;
    background: #f4f4f4;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    border-radius: 5px;
}

.footer-links {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--success);
    transform: translateX(5px); /* Smooth sliding effect on hover */
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    font-weight: 500;
}

/* Dark Mode Support for Footer */
body.dark-mode .site-footer {
    background: #1a1a1a;
    border-top-color: #333;
    color: #eee;
}
body.dark-mode .footer-bottom { border-top-color: #333; color: #aaa; }
body.dark-mode .footer-links a { color: #bbb; }
body.dark-mode .footer-links a:hover { color: cyan; }
body.dark-mode .footer-logo-placeholder { background: #222; border-color: #444; }

/* --- INQUIRY FORM STYLES --- */
.inquiry-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--dark);
    font-size: 0.9rem;
}

.inquiry-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Forces padding to stay inside the box */
    font-family: inherit;
    font-size: 0.95rem;
}

.inquiry-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Dark mode inputs */
body.dark-mode .inquiry-label { color: #eee; }
body.dark-mode .inquiry-input { 
    background: #2a2a2a; 
    color: white; 
    border-color: #555; 
}
body.dark-mode .inquiry-input:focus { border-color: cyan; }
body.dark-mode #inquiryProjectName { border-bottom-color: #333; }

/* Locks manual resizing and hides scrollbar for auto-expansion */
textarea.inquiry-input {
    resize: none; 
    overflow: hidden; 
    min-height: 80px; /* Gives it a solid starting size */
}

/* --- WHATSAPP REDIRECT DISCLAIMER --- */
.whatsapp-disclaimer {
    background: rgba(37, 211, 102, 0.1);
    border-left: 4px solid #25D366;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--dark); /* Dark text for light mode */
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
}

/* Dark Mode Override */
body.dark-mode .whatsapp-disclaimer {
    background: rgba(37, 211, 102, 0.15); /* Slightly brighter background to stand out against dark grey */
    color: #e0e0e0; /* High contrast light text for readability */
}

/* --- TRUST SECTION (WHY CHOOSE US) --- */
.trust-section {
    background: var(--light);
    border-top: 1px solid #ddd;
}

.trust-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 25px;
    text-align: left;
}

.trust-card {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.trust-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--dark);
}

.trust-card p {
    font-size: 0.95rem;
    color: var(--dark);
    margin: 0;
}

/* --- DARK MODE OVERRIDES FOR TRUST SECTION --- */
body.dark-mode .trust-section {
    background: #1a1a1a;
    border-top-color: #333;
}

body.dark-mode .trust-card {
    background: #2a2a2a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

body.dark-mode .trust-card h3,
body.dark-mode .trust-card p {
    color: #eee; /* High contrast light text */
}

/* --- BRAND-SPECIFIC HOVER STATES --- */

/* Fix the sloppy missing hover effect for the phone number in Light Mode */
.contact-item.ph:hover {
    background-color: #cead4a; /* Professional light grey */
    border-color: #cbd5e1;
}

/* --- DARK MODE BRAND OVERRIDES --- */

/* WhatsApp - Dark Green */
body.dark-mode .contact-item.wa:hover {
    background-color: #075E54 !important; 
    border-color: #25D366 !important;
    color: #fff !important;
}

/* Phone - Deep Slate Grey */
body.dark-mode .contact-item.ph:hover {
    background-color: #cead4a !important;
    border-color: #94a3b8 !important;
    color: #fff !important;
}

/* Email - Deep Blue */
body.dark-mode .contact-item.em:hover {
    background-color: #1e3a8a !important; 
    border-color: #3b82f6 !important;
    color: #fff !important;
}

/* Instagram - Deep Magenta/Pink */
body.dark-mode .contact-item.ig:hover {
    background-color: #831843 !important; 
    border-color: #ec4899 !important;
    color: #fff !important;
}

/* Ensure any span text inside the buttons stays white on hover in dark mode */
body.dark-mode .contact-item:hover span {
    color: #fff !important;
}

/* --- DELIVERABLES SECTION (WHAT'S INCLUDED) --- */
.deliverables-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.deliverable-card {
    background: var(--light);
    padding: 25px 20px;
    border-radius: 8px;
    flex: 1;
    min-width: 220px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deliverable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.del-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.deliverable-card h4 {
    margin: 0 0 10px 0;
    color: var(--dark);
    font-size: 1.15rem;
}

.deliverable-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.deliverable-card em {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--success);
    font-weight: bold;
}

/* --- DARK MODE FOR DELIVERABLES --- */
body.dark-mode .deliverables-section { 
    background: #121212 !important; 
}

body.dark-mode .deliverable-card { 
    background: #1e1e1e; 
    border-color: #333; 
}

body.dark-mode .deliverable-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: cyan;
}

body.dark-mode .deliverable-card h4 { 
    color: #eee; 
}

body.dark-mode .deliverable-card p { 
    color: #aaa; 
}

/* --- ABOUT SECTION DARK MODE OVERRIDE --- */
/* Forces the paragraph text to turn light grey, but leaves the h2 title completely alone */
body.dark-mode #about-us-section p {
    color: #e0e0e0 !important; 
}

/* --- HERO WATERMARK DARK MODE OVERRIDE --- */
/* Bumps the opacity up so the logo doesn't vanish into the dark background */
body.dark-mode .home-hero::before {
    opacity: 0.25 !important; 
}

/* --- MOBILE HEADER FIX --- */
/* This code only activates on screens smaller than 768px (Phones and small tablets) */
/* --- CLEAN MOBILE ARCHITECTURE --- */
@media (max-width: 768px) {
    /* 1. Kills horizontal scrolling permanently */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* 2. Stacks the header neatly */
    header {
        flex-direction: column;
        padding: 15px 10px;
        align-items: center;
    }

    /* 3. Forces the logo text to shrink and center */
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .logo h1 {
        font-size: 1.8rem; /* Shrinks FUTURETECH */
    }
    
    .logo-sub {
        display: block; /* Forces AUTOMATION to drop to the next line */
        font-size: 1rem;
        margin-top: -5px;
    }

    /* 4. Wraps the navigation buttons so they don't go off-screen */
    header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 15px;
        width: 100%;
    }

    /* 5. Keeps the Dark Mode icon aligned */
    #themeToggle {
        margin-left: 0;
    }
}
