/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #1a1a1a;
    --secondary-black: #2d2d2d;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #666666;
    --dark-gray: #333333;
    --accent-color: #000000;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ===========================
   Container & Layout
   =========================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 24px;
    justify-content: space-between;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-black);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-black);
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--medium-gray);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 30px 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('./images/background-tools-mobile.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
    .hero {
        background-image: url('./images/background-tools-tablet.jpg');
        background-attachment: fixed;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 12px;
    }
}

@media (min-width: 1024px) {
    .hero {
        background-image: url('./images/background-tools.jpg');
    }

    .hero-title {
        font-size: 4rem;
        letter-spacing: 16px;
    }
}

/* ===========================
   Section Headers & Dividers
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2,
.section-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.divider,
.divider-white {
    width: 80px;
    height: 2px;
    margin: 20px auto;
}

.divider {
    background-color: var(--primary-black);
}

.divider-white {
    background-color: var(--white);
}

@media (min-width: 768px) {
    .section-header h2,
    .section-header h3 {
        font-size: 2.5rem;
        letter-spacing: 6px;
    }
}

/* ===========================
   The Blue Print Section
   =========================== */
.blueprint {
    background-image: url('./images/anatomy-of-hand-and-arm-mobile.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
}

.blueprint::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
}

.blueprint .container {
    position: relative;
    z-index: 1;
}

.blueprint .section-header h2 {
    color: var(--primary-black);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

@media (min-width: 768px) {
    .blueprint {
        background-image: url('./images/anatomy-of-hand-and-arm-tablet.jpg');
        padding: 100px 0;
    }

    .content-wrapper p {
        font-size: 1.1rem;
    }
}

@media (min-width: 1024px) {
    .blueprint {
        background-image: url('./images/anatomy-of-hand-and-arm.jpg');
        padding: 120px 0;
    }
}

/* ===========================
   Product Portfolio Section
   =========================== */
.products {
    background-image: url('./images/pattern-black-mobile.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    color: var(--white);
}

.products .section-header h2 {
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.products .container {
    position: relative;
    z-index: 1;
}

.products-content-wrapper {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    border-radius: 4px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-intro {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 40px;
    color: var(--dark-gray);
}

.button-group {
    margin-bottom: 40px;
}

.button-group:last-child {
    margin-bottom: 0;
}

.button-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.industry-btn {
    background-color: var(--primary-black);
    color: var(--white);
    padding: 15px 35px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
    min-height: 50px;
    width: 100%;
    white-space: nowrap;
    border-radius: 0;
    margin-bottom: 0;
}

.industry-btn:hover,
.industry-btn.active {
    background-color: var(--white);
    color: var(--primary-black);
}

.industry-description-row {
    width: 100%;
}

.industry-content {
    max-width: 900px;
    margin: 0 auto;
    min-height: 100px;
}

.industry-panel {
    display: none;
    padding: 30px;
    background-color: rgba(245, 245, 245, 0.95);
    color: var(--dark-gray);
    border-radius: 4px;
    animation: fadeIn 0.3s ease;
    margin-top: 20px;
    border: none;
}

.industry-panel.active {
    display: block;
}

.industry-panel p {
    font-size: 1rem;
    line-height: 1.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .products {
        background-image: url('./images/pattern-black-tablet.jpg');
        padding: 100px 0;
    }

    .products-content-wrapper {
        padding: 50px 40px;
    }

    .button-row {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .industry-btn {
        flex: 1;
        max-width: none;
        padding: 15px 20px;
        font-size: 0.85rem;
    }
}

@media (min-width: 1024px) {
    .products {
        background-image: url('./images/pattern-black.jpg');
        padding: 120px 0;
    }

    .industry-btn {
        padding: 15px 25px;
        font-size: 0.9rem;
    }
}

/* ===========================
   Technologies Section
   =========================== */
.technologies {
    background-color: var(--white);
    padding: 80px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    text-align: left;
}

.tech-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.tech-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

@media (min-width: 768px) {
    .technologies {
        padding: 100px 0;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }
}

@media (min-width: 1024px) {
    .technologies {
        padding: 120px 0;
    }
}

/* ===========================
   Material Portfolio Section
   =========================== */
.material {
    background-image: url('./images/sewing-machine-mobile.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
}

.material::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.material .container {
    position: relative;
    z-index: 1;
}

.material .section-header h2 {
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 2px;
    background-color: transparent;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: rgba(0, 0, 0, 0.85);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion-header:hover {
    background-color: rgba(0, 0, 0, 0.95);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: rgba(255, 255, 255, 0.95);
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
}

.accordion-content ul {
    padding: 25px 25px 25px 45px;
    list-style: disc;
    color: var(--dark-gray);
}

.accordion-content li {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .material {
        background-image: url('./images/sewing-machine-tablet.jpg');
        padding: 100px 0;
    }

    .accordion-header {
        padding: 25px 30px;
        font-size: 1.1rem;
    }

    .accordion-content li {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .material {
        background-image: url('./images/sewing-machine.jpg');
        padding: 120px 0;
    }
}

/* ===========================
   Featured Material Section
   =========================== */
.featured-material {
    background-image: url('./images/leather-background-mobile.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
}

.featured-material::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
}

.featured-material .container {
    position: relative;
    z-index: 1;
}

.featured-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.featured-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: var(--primary-black);
}

.featured-logo {
    max-width: 300px;
    margin: 0 auto 30px;
}

.featured-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

@media (min-width: 768px) {
    .featured-material {
        background-image: url('./images/leather-background-tablet.jpg');
        padding: 100px 0;
    }

    .featured-content h2 {
        font-size: 2.5rem;
        letter-spacing: 6px;
    }

    .featured-content p {
        font-size: 1.1rem;
    }
}

@media (min-width: 1024px) {
    .featured-material {
        background-image: url('./images/leather-background.jpg');
        padding: 120px 0;
    }
}

/* ===========================
   Global Footprint Section
   =========================== */
.footprint {
    background-color: var(--white);
    padding: 80px 0;
}

.footprint-image {
    max-width: 1000px;
    margin: 0 auto;
}

.footprint-image img {
    width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .footprint {
        padding: 100px 0;
    }
}

@media (min-width: 1024px) {
    .footprint {
        padding: 120px 0;
    }
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    background-color: var(--white);
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-black);
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #ddd;
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-black);
}

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

.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
    font-size: 0.95rem;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.submit-btn {
    padding: 15px 50px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--primary-black);
    color: var(--white);
    border: 2px solid var(--primary-black);
    transition: all 0.3s ease;
    min-height: 50px;
}

.submit-btn:hover {
    background-color: var(--white);
    color: var(--primary-black);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .contact {
        padding: 100px 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1.2fr;
    }
}

@media (min-width: 1024px) {
    .contact {
        padding: 120px 0;
    }
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--dark-gray);
    padding: 60px 0 40px;
    text-align: center;
    color: var(--white);
}

.back-to-top {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    margin-bottom: 40px;
}

.back-to-top:hover {
    opacity: 0.7;
}

.arrow-up {
    font-size: 1.5rem;
}

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

.footer-logo img {
    max-width: 200px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
    text-align: center;
}

/* ===========================
   Accessibility
   =========================== */
*:focus-visible {
    outline: 2px solid var(--primary-black);
    outline-offset: 2px;
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .navbar,
    .footer,
    .back-to-top {
        display: none;
    }

    .hero {
        margin-top: 0;
    }
}
