:root {
    --primary: #1E4BA2;
    /* Suhit Blue */
    --accent: #F15A24;
    /* Suhit Orange */
    --secondary: #2E3192;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

/* Header & Navigation */
header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.utility-nav {
    border-bottom: 1px solid #eee;
    padding: 0 5%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 40px;
    font-size: 13px;
    gap: 30px;
    color: var(--primary);
    font-weight: 600;
}

.utility-nav a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.utility-nav a:hover {
    color: var(--primary);
}

.search-container {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 10px;
    margin-left: 20px;
}

.search-container input {
    border: none;
    font-size: 12px;
    outline: none;
    width: 150px;
}

.login-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 2px 15px;
    border-radius: 3px;
    text-decoration: none;
    color: var(--text-dark);
}

.main-header {
    display: flex;
    padding: 15px 5%;
    align-items: center;
    gap: 40px;
}

.logo img {
    height: 45px;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-grow: 1;
}

.main-nav li {
    position: relative;
    padding: 10px 0;
}

.main-nav li a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.main-nav li a:hover {
    color: var(--primary);
}

.reach-us-header {
    background: var(--accent);
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 4px;
    /* Industrial style: slightly rounded but sharp */
    font-weight: 700 !important;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 10px rgba(241, 90, 36, 0.2);
    display: inline-block;
    white-space: nowrap;
}

.reach-us-header:hover {
    background: white;
    color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(241, 90, 36, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary);
    display: none;
    list-style: none;
    padding: 15px 0;
    z-index: 2000;
}

.main-nav li:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    padding: 10px 20px;
    font-weight: 400;
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.dropdown-menu li a::after {
    content: '›';
    color: #ccc;
}

.blue-line {
    height: 4px;
    background: var(--primary);
    width: 100%;
}

.btn-small {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

/* Hero Section Refinement for Readability */
.hero-container {
    position: relative;
    overflow: hidden;
}

.hero {
    height: 70vh;
    background: url('precision_engineering_hero_v2.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 30%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    text-align: left;
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 500;
}

/* Quick Bar Refinement */
.quick-bar {
    background: #1a3a7a;
    /* Darker, solid Suhit Blue for high contrast */
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.quick-item {
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-size: 13px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.quick-item:last-child {
    border-right: none;
}

.quick-item:hover {
    background: rgba(0, 0, 0, 0.1);
}

.quick-icon {
    font-size: 24px;
}

.cta-btn {
    padding: 15px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-btn:hover {
    background: #16367a;
    transform: translateY(-2px);
}

/* Section Styling */
section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media screen and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card Refinement */
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: #fdfdfd;
    padding: 10px;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.3rem;
}

.product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    min-height: 42px;
}

.product-features {
    list-style: none;
    margin-bottom: 25px;
    padding: 0;
}

.product-features li {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
}

.product-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: inline-block;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Customer Grid */
.customer-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    filter: grayscale(1);
    opacity: 0.6;
}

.customer-logo {
    width: 150px;
    height: 80px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

/* Footer SMC Style */
footer {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 60px 5% 40px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-divider {
    color: var(--border-color);
    font-size: 13px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-body {
    position: relative;
    max-width: 90%;
    max-height: 95vh;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
}

#modalCaption {
    margin-top: 20px;
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    width: 100%;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: var(--accent);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 3010;
}

.close-modal:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Contact Grid & Form Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-form-container {
    background: #ffffff;
    padding: 10px 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    background-color: #fafafa;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input::placeholder {
    color: #888888;
    opacity: 1;
}

.form-group input:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(30, 75, 162, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #A52A2A;
    flex-shrink: 0;
}

.form-checkbox label {
    cursor: pointer;
    user-select: none;
}

.subscribe-btn {
    background: #A52A2A; /* Dark Reddish/Brown */
    color: white;
    border: none;
    padding: 14px 45px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-end;
    box-shadow: 0 4px 12px rgba(165, 42, 42, 0.25);
    letter-spacing: 0.5px;
}

.subscribe-btn:hover {
    background: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(165, 42, 42, 0.35);
}

.subscribe-btn:active {
    transform: translateY(0);
}

.form-success-banner {
    display: none;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #e6f4ea;
    border-left: 5px solid #24b47e;
    border-radius: 4px;
    margin-top: 20px;
    animation: slideDown 0.3s ease-in-out;
}

.success-icon {
    width: 36px;
    height: 36px;
    background: #24b47e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.success-text h4 {
    color: #137333;
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 700;
}

.success-text p {
    color: #137333;
    font-size: 13.5px;
    margin: 0;
    line-height: 1.5;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media screen and (max-width: 991px) {
    .utility-nav {
        justify-content: center;
        gap: 15px;
        height: auto;
        padding: 5px;
        flex-wrap: wrap;
    }

    .main-header {
        justify-content: space-between;
        padding: 10px 5%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1050;
        margin: 0;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav li {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        padding: 10px 0 0 15px;
        background: #fbfbfb;
        min-width: 100%;
    }

    .main-nav li:hover .dropdown-menu {
        display: none;
    }

    .main-nav li.active .dropdown-menu {
        display: block;
    }

    .reach-us-header {
        display: none;
        /* Hide in main header, maybe show in mobile nav */
    }

    .main-nav .reach-us-header {
        display: inline-block;
        margin-top: 20px;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content {
        padding: 20px;
    }

    .quick-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    #contact .contact-details-box {
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .subscribe-btn {
        align-self: stretch;
    }
}