@media screen and (max-width: 768px) {
    .slide-caption {
        /* hide in-image caption on mobile; the caption is shown above the slider by JS */
        display: none !important;
        font-size: 7px !important;
        padding: 1px 3px !important;
        bottom: 0px !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(30px) !important;
        max-width: 80vw !important;
    }
}
 
/* Global styles to prevent horizontal overflow */
html {
    overflow-x: hidden;
    box-sizing: border-box;
}
body {
    overflow-x: hidden;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}
/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
/* --- Product Card Custom Style --- */
.product-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    width: 350px;
    padding: 24px 0 0 0;
    margin-bottom: 32px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.product-image {
    flex: 0 0 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.product-image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}
/* --- Product Image Custom Style --- */
.product-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    margin-bottom: 0;
    position: relative;
}
.product-image img {
    max-width: 80%;
    max-height: 140px;
    object-fit: contain;
    margin: auto;
}
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* --- Product Info Custom Style --- */
.product-info {
    width: 100%;
    padding: 24px 24px 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}
/* --- Product Container Custom Style --- */
.product-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 1.2rem;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 6px 24px rgba(220,53,69,0.12), 0 2px 8px rgba(0,0,0,0.10);
}

.product-image {
    flex: 0 0 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.product-image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-btn {
    margin-top: 1.2rem;
    padding: 0.7rem 1.4rem;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.product-btn:hover {
    background: #c82333;
}

/* Global styles to prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

body {
    transition: all 0.3s ease-in-out;
}
.image-scaled {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transform: scale(1.4);
}
/* --- Hero Section Styles --- */
.hero-section {
    width: 100%;
    background: #fafafa;
    padding: 0;
}

/* About page hero background (Wellington C. Soong block) */
.about-hero {
    background-color: #0d381c; /* deep green */
}

/* Scoped home hero layout */
.home-hero {
    background: linear-gradient(135deg, #000000 0%, #0f9b0f 100%);
}

.home-hero .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;

}
.home-hero .hero-text {
    flex: 1;
    color: #ffffff;
}

.home-hero .hero-text h1 {
    color: #ffffff;
    margin: 0 0 16px;
}

.home-hero .hero-text p {
    color: #ffffff;
    /* add breathing room between the intro paragraph and the feature boxes */
    margin-bottom: 20px;
}

/* Hero features: initials inside rounded boxes (no sharp edges) */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 14px; /* rounded but not circular to avoid sharp edges */
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.feature-text h3 {
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 1.05rem;
}

.feature-text p {
    margin: 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

@media (min-width: 900px) {
    .hero-features { flex-direction: column; }
}

@media (max-width: 768px) {
    .feature-initial {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 1rem;
    }
    .hero-features { gap: 12px; }
}

/* Feature boxes: put the whole title+desc inside a rounded inset box */
.feature-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 6px 8px; /* smaller padding */
    border-radius: 8px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.18), 0 3px 8px rgba(0,0,0,0.10);
    transition: transform 0.12s ease;
}

.feature-box h3 {
    margin: 0 0 3px 0;
    color: #ffffff;
    font-size: 0.92rem; /* slightly smaller */
    font-weight: 700;
}

.feature-box p {
    margin: 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem; /* slightly smaller */
    line-height: 1.2;
}

@media (max-width: 768px) {
    .feature-box {
        padding: 6px 8px;
        border-radius: 8px;
    }
    .feature-box h3 { font-size: 0.88rem; }
    .feature-box p { font-size: 0.8rem; }
}

/* Enforce two-line format: title on first line, description below */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.feature-box {
    display: flex; /* make boxes equal height by using flex */
    flex-direction: column;
    justify-content: center; /* vertically center content */
    align-items: flex-start;
    text-align: left;
    width: 100%; /* fluid width, capped by parent container */
    max-width: 720px;
    min-height: 40px; /* compact minimum height */
    margin: 0 auto; /* center the box within its container */
    box-sizing: border-box;
}

/* Stronger selector to override earlier .hero-features .feature {display:flex;} */
.hero-features .feature.feature-box {
    display: flex;
    width: 100%;
    max-width: 720px;
    min-height: 40px;
    box-sizing: border-box;
}

.hero-features { align-items: center; }

.hero-features { align-items: stretch; }

.feature-box h3 {
    display: block;
    white-space: normal; /* allow wrapping so titles fit within fixed box */
    overflow: visible;
    text-overflow: clip;
}

.feature-box p {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 520px) {
    .feature-box {
        width: 100%;
        max-width: 100%;
        min-height: auto;
    }
    .feature-box h3 {
        white-space: normal; /* allow wrapping on very small screens */
    }
}

@media (max-width: 768px) {
    .feature-box, .hero-features .feature.feature-box {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
    }
}

.home-hero .hero-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.home-hero .hero-logo img {
    width: 500px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .home-hero .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        /* reduce top padding on mobile so content sits higher in the viewport */
        padding: 40px 20px;
        /* slight negative margin to visually lift the block without overlapping header */
        margin-top: -12px;
    }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;

}
.contact-form-section {
    background-color: #4b674b;
    color: #ffffff;
    padding: 50px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}
.contact-info {
    flex-basis: 350px;
    flex-grow: 1;
    text-align: left;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
    position: relative;
    left: 40px;
    top: 120px;
    color: #fff;
    font-weight: bold;
}
.contact-info h3,
.contact-info p,
.contact-info p strong {
    color: #fff;
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.contact-info h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.contact-info p strong {
    display: block;
    font-size: 1em;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}
.contact-form-container {
    flex-basis: 450px;
    flex-grow: 1;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}
.contact-form-container h4 {
    color: #333333;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 500;
}
.form-group {
    margin-bottom: 15px;
}
.form-row {
    display: flex;
    gap: 15px;
}
.form-row .form-group {
    flex: 1;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddddd;
        width: 100%;
        margin: 0;
        transform: none;
    font-size: 1em;
    box-sizing: border-box;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaaaaa;
}
.submit-button {
    width: 100%;
    padding: 15px;
    background-color: #1a73e8;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.submit-button:hover {
    background-color: #155bb5;
}
.footer {
    background-color: #385138;
    color: #a0a0a0;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid #4b674b;
}
@media (max-width: 768px) {
    .contact-form-section {
        flex-direction: column;
        align-items: center;
    }
    .form-row {
        flex-direction: column;
    }
    .contact-info {
        left: 0;
        top: 0;
        padding: 12px 8px;
        border-radius: 8px;
    }
}
/* --- Projects Page Legacy Section Title Style --- */
.legacy-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
/* --- Projects Page Custom Heading Styles --- */
.projects-header {
    margin: 40px auto 0 auto;
    text-align: center;
}
.projects-title {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 2px;
}
.projects-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.5;
}
/* --- Projects Page Styles (moved from projects.html) --- */
body.projects-page {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #313e2f; /* Dark green background for projects page */
    color: #d1e2d4;
    display: flex;
    flex-direction: column;
}

.projects-image-container {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.projects-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.legacy-section {
    padding: 40px 0;
}

.legacy-section h2 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
}


.project-slider {
    position: relative;
    max-width: 80%;
    margin: 40px auto;
    height: 60vh;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #313e2f 0%, #2b352a 100%);
}

@media (max-width: 768px) {
    .project-slider {
        height: 50vh;
        margin: 20px auto;
        border-radius: 8px;
    }
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slides-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: calc(100% * 9);
    height: 100%;
}

.slide {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(43, 53, 42, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px 25px;
    border-radius: 10px;
    max-width: 350px;
    z-index: 5;
    animation: fadeInUp 0.5s ease-out;
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-text h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.slide-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(49, 62, 47, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider-arrow:hover {
    background: rgba(89, 182, 89, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.left {
    left: 20px;
}

.slider-arrow.right {
    right: 20px;
}

@media (max-width: 768px) {
    .slider-arrow {
        padding: 12px 16px;
        font-size: 20px;
    }
    
    .slider-arrow.left {
        left: 10px;
    }
    
    .slider-arrow.right {
        right: 10px;
    }
    
    .slide-text {
        bottom: 20px;
        left: 20px;
        padding: 15px 20px;
        max-width: 280px;
    }
    
    .slide-text h3 {
        font-size: 22px;
    }
    
    .slide-text p {
        font-size: 14px;
    }
}

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.dot.active,
.dot:hover {
    background: #59b659;
    transform: scale(1.2);
    border-color: #59b659;
}

@media (max-width: 768px) {
    .dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
}

.footer-cta {
    background-color: #0F3F08;
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.footer-cta h2 {
    font-size: 1.5em;
    margin: 0;
}

.footer-cta p {
    margin: 10px 0 20px;
    font-size: 0.9em;
}

.contact-button.projects {
    background-color: #59b659;
    color: #2b352a;
    border: none;
    padding: 15px 30px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-button.projects:hover {
    background-color: #72d972;
}

.footer-copyright {
    background-color: #1e261e;
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 0.8em;
    color: #a4b4a5;
}
/* --- Services Page Styles (moved from services.html) --- */
body.services-page {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    color: #333;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.services-header {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 50px;
    color: #000;
}

.service-card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    text-align: left;
    border: 1px solid #ddd;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-right: 25px;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    margin-bottom: 5px;
}

.service-card p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    color: #555;
}

.contact-section {
    background-color: #0F3F08;
    color: #fff;
    padding: 50px 20px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-top: 50px;
}

.contact-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 10px;
}

.contact-section p {
    font-size: 1rem;
    margin: 0 0 20px;
}

.contact-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #45a049;
}

.footer {
    background-color: #004d40;
    color: #fff;
    width: 100%;
    padding: 15px;
    text-align: center;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .services-header {
        font-size: 2.5rem;
    }

    .service-card {
        flex-direction: column;
        text-align: center;
    }

    .service-icon {
        margin: 0 0 15px 0;
    }

    .contact-section h2 {
        font-size: 1.5rem;
    }
}
/* --- Combined CSS from index.html, about.html, and products.html --- */
body {
    font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    color: #333;
    line-height: 1.6;
    background: #fff !important;
    box-sizing: border-box;
}

/* --- Header Section --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.navbar-container {
    max-width: 940px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0;
    justify-content: flex-start;
    width: 100%;
}

/* Reorder elements for correct layout */
.navbar-logo { order: 1; }
.navbar-logo-secondary { order: 2; }
.navbar-toggle-label { order: 3; }
.navbar { order: 4; }

.navbar-logo img {
    height: 58px;
    width: auto;
    min-width: 120px;
    min-height: 58px;
    max-width: none;
    object-fit: contain;
    margin-right: 47px;
}
.navbar-logo {
    margin-left: -25px;
}
.navbar-logo-secondary img {
    height: 70px;
    width: auto;
    min-width: 120px;
    min-height: 70px;
    max-width: none;
    object-fit: contain;
}
.navbar-logo-secondary {
    margin-left: -50px;
}

@media (max-width: 768px) {
    .navbar-logo-secondary img {
        height: 41px !important;
        min-width: 80px !important;
        min-height: 41px !important;
    }
}
.navbar-logo-secondary { display: block; }
.navbar { flex: 1; }

.navbar-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;

}

.navbar-list > li { position: relative; }

.navbar-list > li > a {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0.2px;
}

/* Force consistent navbar font across pages (overrides page-level fonts) */
.navbar,
.navbar-list > li > a {
    font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
}

.navbar-list > li > a:hover { color: #007bff; }

/* Ensure navbar visuals are immune to page-level resets (e.g., Tailwind preflight) */
.navbar a { text-decoration: none; }
.navbar img { display: block; }

.navbar-dropdown-list {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 180px;
    z-index: 100;
    top: 100%;
    left: 0;
}

.navbar-dropdown:hover > .navbar-dropdown-list,
.navbar-more:hover > .navbar-dropdown-list {
    display: block;
}

.navbar-dropdown-list li a {
    display: block;
    padding: 10px 18px;
    color: #000;
    text-decoration: none;
    font-weight: 400;
}

.navbar-dropdown-list li a:hover { background: #f0f0f0; }

/* --- Hero Section (index.html) --- */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 60px 40px 40px 40px;
    background: #f0f0f0;
    gap: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

@media (min-width: 768px) {
    .hero {
        padding: 80px 50px;
    }
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
}

.hero-left {
    flex: 1;
    max-width: 500px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .hero-left {
        margin-top: 20px;
    }
}

.hero-left h1 {
    font-size: 3em;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-left .hero-subheading {
    font-size: 1.15em;
    color: #111;
    font-weight: 700;
    text-align: left;
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.25;
}
@media (max-width: 899px) {
    .hero-left h1,
    .hero-left .hero-subheading {
        text-align: center;
    }
}

.hero-left p {
    font-size: 1.1em;
    color: #666;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-right img {
    width: 320px;
    max-width: 100%;
    height: auto;
    display: block;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

/* --- Main Content Section (index.html) --- */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    background-color: #fff;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .content {
        flex-direction: row;
        align-items: flex-start;
        gap: 50px;
    }
}

.content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.content-button {
    background-color: #f0f0f0;
    padding: 20px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.content-button:hover {
    background-color: #b6f5c2;
}

.content-right {
    flex: 1;
    color: #666;
}

.content-right p span {
    font-weight: 700;
    color: #333;
}

/* --- Call-to-Action Section (index.html) --- */
.call-to-action {
    background-color: #0f3f08;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
}

.call-to-action h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.call-to-action p {
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-button {
    background-color: #2ecc71;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #27ae60;
}

/* --- Footer Section (index.html) --- */
footer {
    background-color: #121212;
    color: #fff;
    text-align: center;
    padding: 2px;
    font-size: 0.8em;
}

/* --- Hero Section (about.html) --- */
.hero-section {
    background-color: #0f3f08;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 40px;
    }
}

.profile-pic-container {
    flex-shrink: 0;
    width: 160px;
    height: 220px;
    border: 5px solid #007bff;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff0;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Subtle floating / pulse for profile picture on wide screens */
@keyframes floatProfile {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

.profile-pic:hover {
    animation: floatProfile 3.8s ease-in-out infinite;
    transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
    .profile-pic:hover { animation: none !important; }
}

.hero-text {
    flex-grow: 1;
    color: #fff;
}

.hero-text h1,
.hero-text h2,
.hero-text p {
    color: #fff;
}

.hero-text h1 {
    margin: 0 0 5px;
    font-size: 2.5em;
}

.hero-text h2 {
    margin: 0 0 20px;
    font-size: 1.2em;
    font-weight: 400;
    font-style: italic;
}

.hero-text p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.5;
}

/* Our Vision Section - Middle White Block (about.html) */
.vision-section {
    background-color: #fff;
    color: #000;
    text-align: center;
}

.vision-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.vision-section p {
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

/* Logo Section - Black Divider (about.html) */
.logo-section {
    background-color: #000;
    text-align: center;
    padding: 50px 20px 40px 20px;
}

.logo-section img {
    max-width: 600px;
    width: 100%;
    height: auto;
}

/* Why Electro-Systems Section - Bottom Gray Block (about.html) */
.why-section {
    text-align: center;
    padding: 40px;
}

.why-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.why-section p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Footer - Bottom Black Bar (about.html) */
.footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.8em;
}

/* --- Products Page Styles (moved from products.html) --- */
.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
    text-align: center;
}

.header {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.subheader {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.section-container {
    width: 100%;
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    justify-items: center;
    align-items: center;
}

.logo-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #d1d1d1;
    background: transparent;
    box-shadow: none;
    transition: transform 0.2s ease-in-out;
    max-width: 250px;
    text-decoration: none;
    color: #000;
}

.logo-box:hover {
    transform: translateY(-5px);
}

.logo {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.logo-firepro {
    border: 2px solid #d11a2d;
    background: transparent;
    padding: 10px;
}

.logo-firepro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transform: scale(1.1);
}

.logo-telefire {
    border: 2px solid #d11a2d;
    background: transparent;
    padding: 10px;
}

.logo-schneider {
    border: 2px solid #4cd137;
    background: transparent;
    padding: 10px;
}

.logo-schneider img {
    width: 180px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
}

.logo-delta {
    border: 2px solid #000;
    background: transparent;
    padding: 10px;
}

.logo-delta img {
    width: 180px;
    height: 80px;
    object-fit: contain;
    border-radius: 0;
    transform: scale(1.1);
}

.logo-kele {
    border-radius: 20px;
}

.logo-kele img {
    border-radius: 20px;
}

.peripherals-box {
    border: 2px solid #d1d1d1;
    background: transparent;
    width: 100%;
    max-width: 250px;
    height: 80px;
    border-radius: 12px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease-in-out;
    text-decoration: none;
    color: #000;
}

.peripherals-box:hover {
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.contact-button {
    background-color: #4cd137;
    color: #fff;
    padding: 12px 40px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #3aa62b;
}

.copyright {
    width: 100%;
    background-color: #008000;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.8rem;
    text-align: center;
    box-sizing: border-box;
}

/* Products page - improved mobile typography and spacing */
@media (max-width: 768px) {
    /* Main content tighter padding on tablets/small laptops */
    .main-content {
        padding: 24px 14px;
        max-width: 100%;
    }

    /* Page title and subtitle scale down for mobile to avoid wrapping */
    .header {
        font-size: 1.9rem; /* ~30px */
        margin-bottom: 8px;
        padding: 0 6px;
        line-height: 1.12;
    }

    .subheader {
        font-size: 1rem;
        margin-bottom: 22px;
        padding: 0 6px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    /* Make logos grid more compact and readable on narrow screens */
    .logos-grid {
        gap: 12px;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        align-items: center;
    }

    .logo-box {
        height: 72px;
        padding: 8px;
        max-width: 220px;
        border-radius: 10px;
    }

    .logo {
        max-width: 85%;
        max-height: 64px;
        object-fit: contain;
    }
}

@media (max-width: 600px) {
    /* Further tighten for phones */
    .main-content {
        padding: 18px 12px;
    }

    .header {
        font-size: 1.7rem; /* ~27px */
    }

    .subheader {
        font-size: 0.98rem;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .logos-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .logo-box {
        height: 68px;
        padding: 8px 10px;
        max-width: 260px;
    }

    .logo {
        max-height: 60px;
    }

    /* Mobile button optimization */
    .contact-button,
    .contact-button.projects,
    .product-btn,
    .submit-button,
    .content-button {
        font-size: 0.9rem;
        padding: 10px 16px;
        min-height: 40px;
    }

    /* Call-to-action section mobile text */
    .call-to-action h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .call-to-action p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    /* Form and input mobile sizing */
    .form-input,
    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        padding: 10px;
    }

    /* Service card mobile text */
    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    /* Small phones */
    .header {
        font-size: 1.45rem; /* ~23px */
    }

    .subheader {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.05rem;
    }

    .logo-box {
        height: 60px;
        padding: 6px 8px;
        max-width: 220px;
    }

    .logo {
        max-height: 48px;
    }

    /* Extra small phone button optimization */
    .contact-button,
    .contact-button.projects,
    .product-btn,
    .submit-button,
    .content-button {
        font-size: 0.85rem;
        padding: 9px 14px;
        min-height: 38px;
    }

    /* Small phone form inputs */
    .form-input,
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 10px;
    }

    /* Call-to-action section extra small phone */
    .call-to-action h2 {
        font-size: 1.2rem;
    }

    .call-to-action p {
        font-size: 0.85rem;
    }
}

/* Removed page-specific navbar overrides for Services/Projects/Contact to use global navbar */

/* --- Responsive Navbar --- */
.navbar-toggle {
    display: none;
   
}
.navbar-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 10px; /* Add space between toggle and next element */
    background: transparent; /* remove visible box */
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.navbar-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.4s;
}

/* Hamburger to X animation */
.navbar-toggle:checked ~ .navbar-toggle-label span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.navbar-toggle:checked ~ .navbar-toggle-label span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle:checked ~ .navbar-toggle-label span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 940px) {
    .navbar-container {
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .navbar-toggle-label {
        order: 99;
        margin-left: auto;
        margin-right: 0;
    }
    .navbar-logo, .navbar-logo-secondary {
        order: 1;
    }
    .navbar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .navbar-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 78px; /* height of the header */
        left: 0;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .navbar-list li {
        width: 100%;
        text-align: center;
    }

    .navbar-list li a {
        padding: 15px;
    }

    .navbar-container .navbar-toggle:checked ~ .navbar .navbar-list {
        display: flex;
    }

    .navbar-toggle-label {
        display: block;
        order: 99;
        margin-left: auto;
        margin-right: 10px;
        flex-shrink: 0;
        position: relative;
        z-index: 1001;
        background: transparent; /* remove visible rounded box */
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 6px; /* keep tappable area but smaller */
    }
    
    .navbar-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-right: 10px;
        padding-left: 0;
        width: 100%;
        position: relative;
    }

    .navbar-logo {
        margin-left: -50px; /* Move logo further to the left near the edge */
        margin-right: 5px; /* Reduce space between logos */
        flex-shrink: 0;
    }

    /* Mobile slide-over drawer styles */
    .mobile-drawer {
        position: fixed;
        inset: 0;
        z-index: 2000;
        display: none;
        pointer-events: none;
    }

    .mobile-drawer.open {
        display: block;
        pointer-events: auto;
    }

    .mobile-drawer-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.45);
        backdrop-filter: blur(2px);
    }

    .mobile-drawer-panel {
        position: absolute;
        right: 50%;
        transform: translateX(50%);
        top: 20px;
        width: 320px;
        max-width: calc(100% - 40px);
        height: calc(100% - 40px);
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.25);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        pointer-events: auto;
        animation: drawerIn 260ms ease-out;
    }

    @keyframes drawerIn {
        from { transform: translateX(50%) translateY(8px); opacity: 0; }
        to   { transform: translateX(50%) translateY(0); opacity: 1; }
    }

    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
        background: #fff;
    }

    .mobile-drawer-status { font-weight: 700; color: #374151; font-size: 0.95rem; }
    .mobile-drawer-status .dot-open { display:inline-block; width:8px; height:8px; background:#10b981; border-radius:50%; margin-right:8px; vertical-align:middle; }
    .mobile-drawer-phone { color: #059669; margin-left:8px; font-weight:700; }

    .mobile-drawer-close { background: transparent; border: none; font-size: 20px; cursor: pointer; color: #6b7280; }

    .mobile-drawer-nav { padding: 12px 0; overflow-y: auto; }
    .mobile-drawer-nav ul { list-style: none; margin: 0; padding: 0; }
    .mobile-drawer-nav li { border-bottom: 1px solid #f3f4f6; }
    .mobile-drawer-nav a, .mobile-drawer-nav .submenu-toggle { display: block; padding: 14px 18px; color: #111827; text-decoration: none; font-weight: 700; text-align: left; background: transparent; width:100%; border:0; }
    .mobile-drawer-nav a:hover, .mobile-drawer-nav .submenu-toggle:hover { background: #f9fafb; }

    .mobile-drawer-nav .has-children .submenu { display: none; background: #fff; }
    .mobile-drawer-nav .has-children.open .submenu { display: block; }
    .mobile-drawer-nav .submenu li a { font-weight: 400; padding-left: 32px; }
    .mobile-drawer-nav .toggle-icon { float: right; }

    /* Parent row: link + toggle sit inline and match the height of other links */
    .parent-row { display:flex; align-items:center; justify-content:space-between; }
    .parent-link { display:block; padding: 14px 18px; color: #111827; text-decoration: none; font-weight:700; flex:1; }
    .parent-row .submenu-toggle { padding: 14px 18px; width:48px; text-align:center; background:transparent; border:0; }

    /* Remove square border and default outline from toggle button; keep visible focus for keyboard users */
    .mobile-drawer-nav .submenu-toggle,
    .parent-row .submenu-toggle {
        background: transparent;
        border: none;
        outline: none;
        box-shadow: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        font-weight: 700;
        cursor: pointer;
    }

    .mobile-drawer-nav .submenu-toggle:focus,
    .parent-row .submenu-toggle:focus {
        outline: none;
    }

    /* Provide an accessible focus-visible ring for keyboard users */
    .mobile-drawer-nav .submenu-toggle:focus-visible,
    .parent-row .submenu-toggle:focus-visible {
        box-shadow: 0 0 0 4px rgba(5,150,105,0.12);
    }

    /* Make hamburger lines more visible on mobile */
    .navbar-toggle-label span { background-color: #111827; }
}

/* --- General Responsive Styles (mobile improvements) --- */
@media (max-width: 768px) {
    /* layout stacking */
    .hero-content, .content {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .hero-left, .content-left, .content-right {
        width: 100%;
    }

    /* Typography scaling for better mobile fit */
    html { font-size: 15px; }

    /* Primary hero titles and headings */
    .home-hero .hero-text h1,
    .hero-left h1,
    .hero-text h1 {
        font-size: 1.9rem !important; /* ~30px */
        line-height: 1.15;
        margin-bottom: 12px;
        padding: 0 10px;
    }

    /* Body / paragraph text */
    .home-hero .hero-text p,
    .hero-left p,
    .hero-text p,
    .content-right p,
    .call-to-action p {
        font-size: 0.95rem !important;
        line-height: 1.35;
        padding: 0 12px;
        margin: 0 auto;
        max-width: 96%;
    }

    /* Hero / logo sizing */
    .home-hero .hero-logo img,
    .hero-right img {
        width: 220px;
        max-width: 60%;
        height: auto;
        margin: 0 auto;
    }
    /* On mobile, show the logo before the text for a cleaner stacked layout */
    .home-hero .hero-content {
        display: flex;
        flex-direction: column;
        /* center everything inside the hero on mobile */
        text-align: center;
        align-items: center;
          /* nudge the hero content upward on mobile so the visual feels tighter
              and the logo/text sit noticeably higher on the viewport */
        
        transition: transform 360ms cubic-bezier(.2,.9,.25,1);
    }

    .home-hero .hero-logo {
        order: -1; /* place logo before text */
        margin-bottom: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .home-hero .hero-text {
        order: 0;
    }

    /* slightly less vertical gap on mobile to keep layout compact */
    .home-hero .hero-text p {
        margin-bottom: 16px;
    }

    /* Center text and feature boxes inside the home-hero on mobile */
    .home-hero .hero-text {
        text-align: center;
        width: 100%;
        display: block;
    }

    .home-hero .hero-features,
    .home-hero .hero-features .feature-box {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Ensure logo image is centered and doesn't float left */
    .home-hero .hero-logo img {
        margin: 0 auto;
        display: block;
    }

    /* Buttons and action items */
    .content-button {
        font-size: 1rem;
        padding: 12px 14px;
    }

    .contact-button,
    .contact-button.projects,
    .product-btn,
    .submit-button {
        font-size: 1rem;
        padding: 12px 20px;
    }

    /* Prevent buttons and CTAs from being pushed around when text wraps/resizes */
    .content-left, .content-right, .hero-content, .call-to-action {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .content-button,
    .contact-button,
    .contact-button.projects,
    .product-btn,
    .submit-button {
        flex-shrink: 0; /* don't let text reflow shrink the button */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px; /* maintain tappable area */
        box-sizing: border-box;
        margin: 6px 0;
    }

    /* Prevent navbar links from wrapping and shifting layout */
    .navbar-list > li > a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Keep hero area tall enough so text resizing doesn't push buttons out */
    .home-hero .hero-content,
    .hero-content {
        align-items: center;
        justify-content: center;
        min-height: 200px;
    }

    /* Navbar tweaks so labels don't wrap or overflow */
    .navbar-list > li > a {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    /* Reduce logo offsets so text doesn't get pushed off-screen */
    .navbar-logo {
        margin-left: -10px;
    }

    .navbar-logo img { height: 48px; }
    .navbar-logo-secondary img { height: 44px !important; }

    /* Projects grid / logos become single column */
    .projects-grid, .logos-grid {
        grid-template-columns: 1fr;
    }

    /* Spacing for legacy/section blocks */
    .vision-section, .why-section {
        padding: 28px 16px;
    }

    .logo-section img {
        max-width: 85%;
    }

    .footer-cta h2 {
        font-size: 1.25em;
    }

    /* Contact form placement: remove absolute offsets that break mobile layout */
    .contact-info {
        left: 0;
        top: 0;
        position: static;
        padding: 12px 14px;
        border-radius: 8px;
        margin: 0 0 12px 0;
        width: 100%;
    }

    .contact-form-container {
        padding: 18px;
        width: 96%;
        box-sizing: border-box;
    }

    /* Footer and copyright font sizing */
    footer, .footer, .footer-copyright {
        font-size: 0.9rem;
        padding: 12px;
    }

    /* Slide text / captions should be centered and constrained */
    .slide-text, .slide-caption {
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 18px !important;
        max-width: 92vw !important;
        padding: 12px 14px !important;
    }

    /* Modal adjustments */
    .modal-content-container {
        max-width: 100%;
        padding: 10px;
        border-radius: 12px;
    }

    /* Improve tappable areas on mobile */
    .navbar-toggle-label {
        padding: 8px;
    }

    /* Minor fixes for small phones */
    @media (max-width: 420px) {
        .home-hero .hero-text h1,
        .hero-text h1 {
            font-size: 1.6rem !important; /* ~25px */
        }

        .home-hero .hero-logo img,
        .hero-right img {
            width: 180px;
            max-width: 55%;
        }

        .navbar-logo img { height: 44px; }
    }

    /* On very small phones reduce the upward nudge so elements don't overlap header */
    @media (max-width: 420px) {
        .home-hero .hero-content {
            transform: translateY(-36px);
            min-height: 200px; /* increase safe vertical space after shifting */
        }
    }

    /* About page specific mobile tweaks: tighten typography and spacing so content fits better */
    @media (max-width: 768px) {
        /* Reduce overall hero padding so text doesn't get pushed off screen */
        .about-hero {
            padding: 18px 12px;
        }

        .about-hero .hero-content {
            gap: 12px;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        /* Make profile picture smaller on mobile and reduce border thickness */
        .about-hero .profile-pic-container {
            width: 120px;
            height: 160px;
            border-radius: 10px;
            border-width: 3px;
            margin-bottom: 10px;
        }

        .about-hero .profile-pic {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Scale down headings and body text for a comfortable mobile reading width */
        .about-hero .hero-text h1 {
            font-size: 1.4rem !important; /* ~22px */
            margin: 0 0 6px 0;
            line-height: 1.12;
            text-align: center;
            padding: 0 6px;
        }

        .about-hero .hero-text h2 {
            font-size: 1rem !important; /* ~16px */
            margin: 0 0 8px 0;
            text-align: center;
            font-weight: 500;
        }

        .about-hero .hero-text p {
            font-size: 0.95rem !important;
            line-height: 1.4;
            max-width: 92%;
            margin: 0 auto;
            text-align: center;
            padding: 0 6px;
        }
    }

    /* Extra small phone overrides */
    @media (max-width: 420px) {
        .about-hero .profile-pic-container {
            width: 96px;
            height: 128px;
            border-width: 2px;
        }
        .about-hero .hero-text h1 {
            font-size: 1.2rem !important; /* ~19px */
        }
        .about-hero .hero-text h2 {
            font-size: 0.95rem !important;
        }
        .about-hero .hero-text p {
            font-size: 0.9rem !important;
        }
    }
}

/* Carousel styles */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    justify-content: flex-start; /* Changed to flex-start for precise alignment */
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: marquee-animation 40s linear infinite; /* Moderate animation speed */
}

.marquee-track img {
    height: 100px;
    width: auto;
}

@keyframes marquee-animation {
    from {
        transform: translateX(0);
    }
    to {
        /* This is the key change */
        transform: translateX(calc(-50% - 1rem));
    }
}

/* Tailwind-like utility classes for carousel */
.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.text-center {
    text-align: center;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.italic {
    font-style: italic;
}

.font-bold {
    font-weight: 700;
}

.mb-8 {
    margin-bottom: 2rem;
}

.playfair-display {
    font-family: 'Playfair Display', serif;
}

/* --- Mobile Full-Screen Menu Styles --- */
@media (max-width: 768px) {
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-nav .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        height: 70px;
    }

    .mobile-nav .logo {
        font-size: 28px;
        font-weight: 700;
        background: linear-gradient(135deg, #00f5ff 0%, #a200ff 100%);
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

/* --- Page reveal / entrance animations --- */
@keyframes fadeUp { 
    from { opacity: 0; transform: translateY(12px) scale(0.995); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes subtleScale {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    will-change: opacity, transform;
    transition: opacity 420ms cubic-bezier(.2,.9,.25,1), transform 420ms cubic-bezier(.2,.9,.25,1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: fadeUp 420ms cubic-bezier(.2,.9,.25,1) both;
}

.reveal-scale { opacity: 0; transform: scale(.98); }
.reveal-scale.is-visible { animation: subtleScale 420ms both; opacity: 1; transform: none; }

/* Stagger helpers */
.reveal-stagger > * { opacity: 0; transform: translateY(12px); }
.reveal-stagger.is-visible > * { animation: fadeUp 380ms both; }
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 180ms; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-scale, .reveal-stagger > * { transition: none !important; animation: none !important; transform: none !important; opacity: 1 !important; }
}

/* --- Desktop-only animations and hover states --- */
@media (min-width: 769px) {
    /* gentle floating effect for hero logo on desktop */
    @keyframes floatY {
        0% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
        100% { transform: translateY(0); }
    }

    .home-hero .hero-logo img {
        transition: transform 420ms ease, box-shadow 300ms ease;
    }

    .home-hero .hero-logo:hover img {
        animation: floatY 4s ease-in-out infinite;
        transform-origin: center;
    }

    /* Make CTAs subtly scale on hover for desktop only */
    .content-button, .contact-button, .product-btn, .submit-button {
        transition: transform 200ms cubic-bezier(.2,.9,.25,1), box-shadow 200ms ease;
    }

    .content-button:hover, .contact-button:hover, .product-btn:hover, .submit-button:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    /* Make reveal animations slightly more pronounced on wide screens */
    .reveal.is-visible { animation-duration: 480ms; }
    .reveal-scale.is-visible { animation-duration: 480ms; }

    /* Lift hero content slightly on desktop (website view) so it sits higher visually */
    .home-hero .hero-content {
        /* much stronger lift on desktop */
        padding-top: 40px; /* reduced from 100px */
        transform: translateY(-40px); /* stronger lift */
        transition: padding 320ms cubic-bezier(.2,.9,.25,1), transform 320ms cubic-bezier(.2,.9,.25,1);
    }
}

@media (prefers-reduced-motion: reduce) {
    @media (min-width: 769px) {
        .home-hero .hero-logo:hover img { animation: none !important; }
        .content-button:hover, .contact-button:hover, .product-btn:hover, .submit-button:hover { transform: none !important; box-shadow: none !important; }
    }
}

/* Enhanced Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.show {
    opacity: 1;
}

/* Enhanced Modal Content Container */
.modal-content-container {
    background: linear-gradient(135deg, #fff 80%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(220, 53, 69, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 56rem; /* 896px */
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.modal-overlay.show .modal-content-container {
    transform: scale(1);
}

/* Modal Header */
.modal-header {
    background-color: #374151; /* gray-700 */
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #dc2626; /* red-600 */
}

.modal-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Enhanced Close Button */
.modal-close-btn {
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.modal-close-btn:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

.modal-close-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Enhanced Modal Body */
.modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 120px); /* Account for header */
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Modal Content Styling */
.modal-body h3 {
    margin-top: 0;
    color: #1f2937;
}

.modal-body p {
    line-height: 1.6;
    color: #4b5563;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* Body Scroll Lock Classes */
body.modal-open,
body.no-scroll {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

html.modal-open {
    overflow: hidden !important;
}

/* Legacy Modal Support */
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Existing Modal Classes for Backward Compatibility */
.modal-body-scroll {
    max-height: 80vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.hidden-modal-data {
    display: none !important;
}

.modal-content-style {
    background: linear-gradient(135deg, #fff 80%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(220, 53, 69, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .modal-content-container {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-title {
        font-size: 1.125rem;
    }
    
    .modal-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(95vh - 100px);
    }
    
    /* Improve mobile scrolling */
    .modal-body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent zoom on iOS */
    .modal-body input,
    .modal-body select,
    .modal-body textarea {
        font-size: 16px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modal-overlay {
        background-color: rgba(0, 0, 0, 0.9);
    }
    
    .modal-content-container {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .modal-overlay,
    .modal-content-container,
    .modal-close-btn {
        transition: none;
    }
}

/* Focus management */
.modal-overlay:focus {
    outline: none;
}

.modal-content-container:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Slider Container */
.slider-container {
    position: relative;
    max-width: 739px;
    height: 415px;
    margin: auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Slides */
.slider {
    display: flex;
	height: 100%;
}

.slide {
    min-width: 100%;
	height: 100%;
    box-sizing: border-box;
    display: none; /* Hide all slides by default */
    position: relative;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    margin: 15px;
    border-radius: 5px;
    font-size: 18px;
}

.slide.active {
    display: block; /* Show active slide */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

/* Prev/Next Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}



/* Dots */
.dots-container {
    display: block;
    width: -moz-fit-content;
    width: fit-content; /* shrink to the width of the dots */
    max-width: 220px; /* keep it narrower than the slider/image for better balance */
    text-align: center;
    padding: 4px 8px; /* compact padding */
    margin: 8px auto; /* center it */
}

.dot {
    cursor: pointer;
    height: 10px; /* smaller dot */
    width: 10px;  /* smaller dot */
    margin: 0 3px; /* slightly tighter spacing */
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

.slider {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    display: block;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.dots-container {
    display: block;
    width: -moz-fit-content;
    width: fit-content; /* shrink to the width of the dots */
    max-width: 220px; /* keep it narrower than the slider/image for better balance */
    text-align: center;
    padding: 4px 8px; /* compact padding */
    margin: 8px auto; /* center it */
}

.dot {
    cursor: pointer;
    height: 10px; /* smaller dot */
    width: 10px;  /* smaller dot */
    margin: 0 3px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}