/* General Resets & Typography */
:root {
    --primary-color: #007aff; /* Apple Blue */
    --primary-light: #e6f2ff; /* Light blue for secondary buttons */
    --text-color: #1d1d1f; /* Dark almost black for body text */
    --light-text-color: #6a6a6a; /* Lighter grey for secondary text */
    --background-light: #f5f5f7; /* Very light grey for backgrounds */
    --background-white: #ffffff;
    --border-color: #e0e0e0;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005bb5;
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-color);
}

.logo .logo-x {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 17px;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    text-align: center;
    padding: 60px 20px;
    overflow: hidden;
    color: white;
}

.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--background-white);
    border: none;
}

.btn-primary:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--background-white);
    transform: translateY(-2px);
}


/* Additional Sections */
.section-padded {
    padding: 80px 0;
    text-align: center;
}

.section-padded h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-color);
}
.section-padded .section-description {
    font-size: 20px;
    color: var(--light-text-color);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* Products Page styles */
.products-hero-section h1 {
    font-size: 48px;
    font-weight: 700;
}
.products-description {
    background-color: var(--background-light);
}
.product-description-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
}
.product-description-content img {
    flex: 1;
    min-width: 300px;
    height: auto;
    border-radius: 12px;
}
.product-description-content div {
    flex: 1.5;
    min-width: 300px;
}
.product-description-content h2 {
    margin-bottom: 15px;
    text-align: left;
}
.product-description-content p {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-color);
}
.product-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    background-color: var(--background-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    text-align: left;
}
.product-item:last-child {
    margin-bottom: 0;
}
.product-item-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
}
.product-item-content {
    flex: 2;
    min-width: 300px;
}
.product-item-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
.product-item-content p {
    margin-bottom: 15px;
}
.product-tag {
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.mt-20 {
    margin-top: 20px;
}
.assembly-showcase-section {
    background-color: var(--background-light); /* Light background for separation */
}

.assembly-showcase-section h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.assembly-showcase-section .section-description {
    font-size: 20px;
    color: var(--light-text-color);
    max-width: 700px;
    margin: 0 auto 40px auto; /* Center text and add space below */
}

.assembly-video-container {
    max-width: 800px; /* Control the max width of the video */
    margin: 0 auto; /* Center the video container */
    border-radius: 12px; /* Soft rounded corners */
    overflow: hidden; /* Ensures corners apply to video */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Prominent shadow for depth */
}

.assembly-video-container video {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below video */
}

/* Contact form section */
.form-section {
    background-color: var(--background-light);
    position: relative; /* Needed for overlay positioning */
    overflow: hidden; /* Ensures overlay doesn't spill */
    z-index: 1; /* Ensures content is above background image */
}

.contact-background-image {
    background-image: url('images/contact-background.jpg'); /* Your image path */
    background-size: cover;
    background-position: center;
    color: white; /* Change text color for readability on dark background */
}

.contact-background-image h2,
.contact-background-image .section-description,
.contact-background-image .contact-details p {
    color: white; /* Ensure headings and descriptions are white */
    position: relative;
    z-index: 2;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.form-section .container {
    position: relative; /* Ensure form content is above overlay */
    z-index: 2;
}

.form-section form {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for form */
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
}
label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 16px;
}
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}
textarea {
    resize: vertical;
}
.form-submit-btn {
    width: 100%;
    font-size: 18px;
    padding: 15px;
}

/* Footer */
.main-footer {
    background-color: var(--background-light);
    padding: 30px 0;
    text-align: center;
    font-size: 15px;
    color: var(--light-text-color);
    border-top: 1px solid var(--border-color);
}

.main-footer .logo-x {
    color: var(--primary-color);
}
.contact-details {
    margin-top: -30px;
    margin-bottom: 40px;
    color: white;
}
.contact-details p {
    color: white !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 44px;
    }
    .hero-content p {
        font-size: 20px;
    }
    .section-padded {
        padding: 60px 0;
    }
    .section-padded h2 {
        font-size: 30px;
    }
    .section-padded .section-description {
        font-size: 18px;
    }
    form {
        padding: 20px;
    }
    .product-description-content {
        text-align: center;
    }
    .product-item {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 34px;
    }
    .hero-content p {
        font-size: 18px;
    }
    .btn {
        font-size: 16px;
        padding: 10px 24px;
    }
    .section-padded h2 {
        font-size: 26px;
    }
    .section-padded .section-description {
        font-size: 16px;
    }
}