* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #faf7f2;
    margin: 0;
    height: 100%;
    padding: 0px;
    overflow-x: hidden;
}

header {
    font-family: Arial, sans-serif;
}

nav {
    background-color: #F5EBDC;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .5);
    z-index: 1000;

}

nav img {
    height: 25px;
    margin-right: 280px;

}

nav a {
    color: black;
    text-decoration: none;
    margin: 10px;
    padding-right: 10px;
    padding-left: 10px;
}

nav a:hover {
    border-radius: 5px;
    padding: 8px 15px;
    transition: .5s;
    font-size: 17px;
    color: rebeccapurple;
}

#mainimg {
    background-image: url('img/main3.jpg');
    background-position: center;
    background-size: cover;
    height: 600px;
    width: 100vw;
}

.betweenSpeach h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    font-family: 'Merriweather', serif;
    font-size: 30px;
}

.betweenSpeach h4 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    font-family: 'Merriweather', serif;
    font-size: 15px;

}

.betweenSpeach a {
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Merriweather', serif;
    font-size: 15px;

}

.c {
    text-align: center;
}

.service {
    display: inline-block;
    text-align: center;
    margin: 50px;
    padding-top: 20px;

}

.service img {
    width: 650px;
    border-radius: 5px;
}

.service h3 {
    font-family: 'Merriweather', serif;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 23px;
}

.service a {
    font-family: 'Merriweather', serif;
    color: black;
    font-size: 12px;

}


.EditingClip video {
    width: 70%;
    display: block;
    margin: auto;
    padding-top: 30px;
    padding-bottom: 20px;
}

.Subscription {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 70px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.subscard {
    position: relative;
    width: 150px;
    height: 150px;
    overflow: hidden;
    text-align: center;
}

.subscard img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.subscard span {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subscard:hover img {
    transform: scale(1.1);
}

.subscard:hover span {
    opacity: 1;
}


.End {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #F5EBDC;
    padding: 50px;
    margin: 24px clamp(16px, 4vw, 48px);

}

.End img {
    height: 30px;
}

.End h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    font-family: 'Merriweather', serif;
    font-size: 30px;
}

.End h4 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    font-family: 'Merriweather', serif;
    font-size: 15px;
}

footer {
    background-color: #F5EBDC;
    font-family: 'Merriweather', serif;
    padding: 50px 30px 20px;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: start;
    gap: 200px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: black;
    font-size: 18px;
}

.footer-listen {
    max-width: 190px;
}

.footer-listen h2 {
    margin-bottom: 20px;
}

.footer-email {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-email input,
.footer-email textarea {
    width: 250px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
}


.footer-email .send-btn {
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: gray;
    color: #fff;
}

.footer-email .send-btn:hover {
    background: #333;
    color: #fff;
}


.up {
    position: absolute;
    bottom: 365px;
    right: 60px;
    background: #fff;
    border: 1px;
    padding: 25px;
    border-radius: 6px;
}

.up:hover {
    background: #333;
    color: #fff;
}

.footer-bottom {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-social a {
    color: black;
}

.footer-social i {
    font-size: 25px;
}

.footer-span {
    position: absolute;
    display: flex;
    left: 150px;
}

.sign-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 150px;
    padding: 20px;
    gap: 50px;
    flex-wrap: wrap;
    font-family: 'Merriweather', serif;
}

.sign-box {
    width: 500px;
}

.sign-box h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.sign-box h3 {
    font-size: 15px;
    margin-bottom: 20px;
}

.sign-form {
    display: flex;
    flex-direction: column;
}

.sign-form input {
    padding: 5px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-size: 14px;
}

.sign-btn {
    padding: 10px;
    border: none;
    width: 100%;
    background-color: gray;
    transition: 0.3s;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 20px;
}

.sign-btn:hover {
    background: #333;
}

.sign-btn a {
    text-decoration: none;
    color: white;
}

.sign-box h5 {
    font-size: 15px;
    text-align: center;
    margin-top: 15px;
}

.sign-box h4 {
    font-size: 15px;
    margin-top: 20px;
    text-align: center;
}

.sign-box h4 a {
    color: #000;
    font-weight: bold;
}


.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 150px;
    padding: 20px;
    gap: 50px;
    flex-wrap: wrap;
    font-family: 'Merriweather', serif;
}

.login-box {
    width: 500px;
}

.login-box h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.login-box h3 {
    font-size: 15px;
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;

}

.login-form input {
    padding: 5px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-size: 14px;
}

.login-btn {
    padding: 10px;
    border: none;
    width: 100%;
    background-color: gray;
    transition: 0.3s;
    border-radius: 6px;
    margin-bottom: 20px;
    margin-top: 20px;
    text-align: center;
    color: white;

}


.login-btn:hover {
    background: #333;
}

.login-box h5 {
    font-size: 15px;
    text-align: center;
    margin-top: 15px;
}

.login-box h4 {
    font-size: 15px;
    margin-top: 20px;
    text-align: center;
}

.login-box h4 a {
    color: #000;
    font-weight: bold;
}

.login-options {
    display: flex;
    justify-content: space-between;
}

.product-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 70px;
    margin: 180px 50px 50px;
    flex-wrap: wrap;
}

.product-img img {
    width: 350px;
    height: 300px;
    object-fit: fill;
    border-radius: 5px;
}

.product-options {
    max-width: 400px;
}

.product-options h2 {
    font-size: 28px;
    font-family: 'Merriweather', serif;
    margin-bottom: 10px;
}

.product-options h4 {
    font-size: 15px;
    font-family: 'Merriweather', serif;
    margin-bottom: 15px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-btn {
    padding: 10px 20px;
    background: gray;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.product-btn:hover {
    background: #222;
}

.other-product {
    margin: 50px;
    margin-bottom: 40px;
}

.other-product {
    font-size: 20px;
    margin-bottom: 40px;
}

.product-list {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-top: 40px;
}


.product {
    transition: transform 0.3s ease;
    text-align: center;
}

.product:hover {
    transform: scale(1.1);
}

.product img {
    width: 200px;
    height: 200px;
    background: #ddd;
    border-radius: 5px;
    object-fit: fill;
}

.product img {
    transition: .3s;
}

.product h5 {
    margin-top: 10px;
    font-size: 14px;
    font-family: 'Merriweather', serif;
}

.line {
    margin: 24px clamp(20px, 10vw, 60px);

}


.subscription-container {
    margin-top: 150px;
    text-align: center;
    font-family: 'Merriweather', serif;
}

.subscription-container h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.subscription-container h4 {
    font-size: 14px;
    margin-bottom: 40px;
}

.subscription-options {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.subscription-card {
    text-align: center;
    width: 180px;
}

.subscription-card img {
    width: 100%;
    height: 150px;
    border-radius: 5px;
    object-fit: cover;
}

.subscription-card h4 {
    margin-top: 10px;
    font-size: 14px;
}

.order-container {
    margin-top: 150px;
    padding: 20px;
    font-family: 'Merriweather', serif;
    text-align: center;
}

.order-container h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.order-container h4 {
    font-size: 14px;
    color: #555;
    margin-bottom: 40px;
}

.service-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    margin-top: 50px;
}

.service-card {
    width: 180px;
    text-align: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.service-card:hover {
    transform: scale(1.05);
    background: #f1f1f1;
}

.service-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.service-card h4 {
    font-size: 14px;
    margin-top: 5px;
}

.form-section {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-bottom: 100px;
}

.form-section h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.form-section h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.form-section label {
    display: block;
    font-weight: bold;
    margin: 10px 0 5px;
}

.form-section input,
.form-section select,
.form-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    outline: none;
    transition: 0.2s;
}

.form-section input:focus,
.form-section textarea:focus,
.form-section select:focus {
    border-color: #333;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: gray;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.form-buttons button:hover {
    background: #222;
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    nav {
        padding: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    nav a {
        margin: 5px;
        padding: 5px;
    }

    #mainimg {
        height: 300px;
    }

    .betweenSpeach h2 {
        font-size: 24px;
        margin-top: 30px;
    }

    .betweenSpeach h4 {
        font-size: 13px;
        margin: 10px;
    }

    .c {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .service {
        margin: 20px;
    }

    .service img {
        width: 90%;
        max-width: 400px;
    }

    .EditingClip video {
        width: 90%;
    }

    .Subscription {
        gap: 30px;
        margin-top: 40px;
    }

    .subscard {
        width: 120px;
        height: 120px;
    }

    .subscard span {
        font-size: 12px;
    }

    .End {
        padding: 30px;
    }

    .End h2 {
        font-size: 24px;
    }

    .End h4 {
        font-size: 13px;
    }

    footer {
        padding: 30px 15px;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-listen {
        text-align: center;
        max-width: 100%;
    }

    .footer-email {
        align-items: center;
    }

    .footer-email input,
    .footer-email textarea {
        width: 80%;
    }

    .up {
        bottom: 20px;
        right: 20px;
        padding: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-span {
        position: static;
        left: auto;
        margin-top: 10px;
    }

    .sign-container,
    .login-container,
    .product-container,
    .subscription-container,
    .order-container {
        margin-top: 100px;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .sign-box,
    .login-box,
    .product-img,
    .product-options,
    .subscription-card,
    .service-card {
        width: 90%;
        max-width: 400px;
    }

    .sign-form,
    .login-form {
        width: 100%;
    }

    .product-img img {
        width: 100%;
        height: auto;
    }

    .service-options {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .form-section {
        padding: 20px;
        width: 90%;
    }
}

/* Media Query for Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    nav {
        padding: 20px;
    }

    nav img {
        margin-right: 150px;
    }

    #mainimg {
        height: 450px;
    }

    .betweenSpeach h2 {
        font-size: 28px;
    }

    .c {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .service {
        margin: 30px;
    }

    .service img {
        width: 400px;
    }

    .EditingClip video {
        width: 80%;
    }

    .Subscription {
        gap: 50px;
        margin-top: 50px;
    }

    .subscard {
        width: 130px;
        height: 130px;
    }

    .footer-container {
        gap: 100px;
    }

    .footer-email input,
    .footer-email textarea {
        width: 200px;
    }

    .up {
        bottom: 300px;
        right: 40px;
    }

    .footer-bottom {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .footer-span {
        position: static;
        left: auto;
        margin-top: 10px;
    }

    .sign-container,
    .login-container,
    .product-container {
        margin-top: 120px;
        gap: 50px;
    }

    .product-options {
        max-width: 350px;
    }

    .service-options {
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-card {
        width: 200px;
    }

    .form-section {
        width: 80%;
        max-width: 500px;
    }
}

.cart-container {
    margin: 150px auto 50px;
    max-width: 800px;
    padding: 20px;
    font-family: 'Merriweather', serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cart-container h2 {
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
}

.cart-item img {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
}

.cart-details {
    flex: 1;
}

.cart-details h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.cart-details p {
    margin: 5px 0;
}

.cart-details input {
    width: 60px;
    padding: 5px;
    margin-left: 5px;
    text-align: center;
}

.price {
    font-weight: bold;
    color: #333;
}

.remove-btn {
    background: #d9534f;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.remove-btn:hover {
    background: #c9302c;
}

.cart-checkout {
    margin-top: 20px;
}

.cart-checkout label {
    display: block;
    margin-bottom: 15px;
}

.cart-summary {
    text-align: right;
}

.cart-summary p {
    margin: 5px 0;
}

.cart-summary .note {
    font-size: 12px;
    color: #777;
}

.checkout-btn {
    margin-top: 15px;
    background: gray;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.checkout-btn:hover {
    background: #333;
}
