/* BMK Engineered Products Website - Main Stylesheet */

:root {
    --primary-color: #3d1a4d;
    --secondary-color: #4a9fb5;
    --accent-color: #2d8a9f;
    --light-bg: #f5f7fa;
    --dark-text: #2c3e50;
    --border-color: #e0e6ed;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #ffffff;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.company-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    display: none;
}

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

nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--secondary-color);
}

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

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--secondary-color);
}

nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a2d6d 100%);
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;
}

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

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 159, 181, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent-color);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

/* ===== PRODUCTS SECTION ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f0f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--secondary-color);
}

.product-info {
    padding: 25px;
}

.product-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-specs {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.product-specs span {
    display: inline-block;
    background-color: var(--light-bg);
    padding: 4px 10px;
    border-radius: 3px;
    margin-right: 8px;
    margin-bottom: 5px;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.about-text h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-text p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    text-align: center;
    padding: 20px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 600px;
    margin: 50px auto 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(74, 159, 181, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group button {
    width: 100%;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 50px 20px 20px;
}

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

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.footer-partnership {
    width: 100%;
}

.partnership-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.partnership-text {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 0 20px;
}

.partnership-text p {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-credits {
    font-size: 12px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }

    .logo-section img {
        height: 45px;
    }

    .company-name {
        font-size: 18px;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        border-bottom: 1px solid var(--border-color);
    }

    nav a {
        display: block;
        padding: 15px 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 28px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        height: 300px;
    }

    section {
        padding: 50px 0;
    }

    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .partnership-logos {
        flex-direction: column;
        gap: 20px;
    }

    .partnership-text {
        min-width: 100%;
    }

    .partner-logo img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
    }

    nav ul {
        gap: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}
