/* Base Styles */
html, body {
    margin: 0;
    padding: 0;
    background: url("https://portugaltextile.com/landing-static/assets/imgs/3.webp") no-repeat center center fixed;
    background-size: cover;
    scroll-behavior: smooth;
}

/* Typography */
.h1-title, .h2-title-sub {
    font-family: "Helvetica", sans-serif;
    font-size: 46px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.5;
}

.h2-title {
    font-family: "Helvetica", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    margin: 10px 0;
}

.h2-title-sub {
    font-size: 36px;
}

.std-para {
    font-family: "Inter", sans-serif;
    line-height: 1.5;
    font-size: 16px;
    color: black;
    margin: 10px 0;
}

/* Header */
.header-1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    z-index: 5;
    box-sizing: border-box;
}

.logo {
    height: 50px;
}

/* Main Layout */
.main-section {
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 80px;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

.main-inner {
    flex: 1;
    max-width: 600px;
    padding: 30px;
}

/* Form Styles */
.form-container {
    flex: 1;
    max-width: 500px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    box-sizing: border-box;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Inter", sans-serif;
    box-sizing: border-box;
}

/* Button Styles */
.btn {
    padding: 15px 30px;
    border-radius: 360px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
    border: none;
}

.btn-color {
    background-image: linear-gradient(300deg, #E4A644 0%, #C14ADC 100%);
    color: white;
    border: none;
}

.btn-no-color {
    background: transparent;
    border: 1px solid black;
    color: black;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Features Section */
.feature-card {
    padding: 30px;
    border-radius: 20px;
    border: 1px solid black;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 30px;
}

/* Testimonials */
.testimonials-section {
    padding: 50px;
}

.testemunho {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.profile {
    width: 200px;
    border-radius: 360px;
    margin-bottom: 20px;
}

/* Materials Section */
.sustainable-materials {
    padding: 4rem 2rem;
    background: transparent;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.material-block {
    background: transparent;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #E4A644;
    transition: transform 0.3s ease, background-image 0.3s ease;
    text-align: center;
}

.material-block:hover {
    transform: translateY(-5px);
    background-image: linear-gradient(300deg, #E4A644 0%, #C14ADC 100%);
    color: white;
}

.material-block:hover .material-description,
.material-block:hover .material-title,
.material-block:hover .metric {
    color: white;
}

/* Footer */
footer {
    background: white;
    padding: 50px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

/* Responsive Design */
@media only screen and (max-width: 1024px) {
    .main-section {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .main-inner {
        padding: 20px;
        max-width: 100%;
    }

    .form-container {
        width: 100%;
        max-width: none;
        margin: 20px auto;
        box-sizing: border-box;
    }

    .h1-title {
        font-size: 36px;
    }

    .h2-title-sub {
        font-size: 28px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
.about-section {
        flex-direction:column;
    }
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    .main-section {
        padding: 20px 10px;
        margin-top: 60px;
        
    }
 
    


    .form-container {
        margin: 20px 10px;
        width: calc(100% - 20px);
        padding: 20px;
    }

    .main-inner {
        width: 100%;
        padding: 20px 10px;
    }
    
       
   .about-image{
       width: 100% !important;
        
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        margin: 10px;
    }

    .side {
        flex-direction: column;
    }

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

    .logo {
        height: 40px;
    }
}

/* Form Message Styles */
.form-message {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    display: none;
    font-family: 'Inter', sans-serif;
}

.form-message.error {
    background: linear-gradient(to right, rgba(228, 166, 68, 0.1), rgba(193, 74, 220, 0.1));
    border: 1px solid #E4A644;
    color: #E4A644;
}

.form-message.success {
    background: linear-gradient(to right, rgba(228, 166, 68, 0.1), rgba(193, 74, 220, 0.1));
    border: 1px solid #C14ADC;
    color: #C14ADC;
}