/* Reset margin and padding */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow-x: hidden;
}

/* Light mode styling */
body.light-mode {
    background-color: #ffffff;
    color: #000000;
}

/* Dark mode styling */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

/* Navbar styling */
.navbar {
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: #fff;
    height: 70px;
}

/* Logo styling */
.logo img {
    height: 100px;
    position: absolute;
    top: 0px;
}

/*  switch styling */
.containerHeader {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    top: 0px;
}

.shopping_cart > a > img {
    width: 40px;
    margin-top: 15px;
    margin-right: 25px;
}

.toggle {
    position: relative;
    height: 50px;
    display: inline-block;
    width: 3.5em;
    height: 2em;
    margin-right: 20px;
}

.slider {
    position: absolute;
    cursor: pointer;
    border: 1px solid #e2e0e0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    transition: 0.5s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    border-radius: 50%;
    left: 10%;
    bottom: 15%;
    box-shadow: inset 8px -4px 0px 0px #000000;
    background: #ffffff;
    transition: 0.5s;
}
input:checked + .slider {
    background-color: #000000;
}

input:checked + .slider:before {
    transform: translateX(100%);
    box-shadow: inset 15px -4px 0px 15px #ffffff;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Hero section styling */
.hero-section {
    background: url("../img/background.image.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    filter: brightness(80%);
}

/* Hero section overlay */
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Hero content styling */
.hero-content {
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero-content a {
    text-decoration: none;
    color: #000;
}

.hero-content a:hover {
    cursor: pointer;
    text-decoration: underline;
}

/* Browse button styling */
.browse-btn {
    background-color: #ffd700;
    color: #000;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.browse-btn:hover {
    background-color: #ffcc00;
    transform: scale(1.05);
}

/* Dark mode adjustments */
body.dark-mode .navbar {
    background-color: #333;
    color: #fff;
}

body.dark-mode .browse-btn {
    background-color: #444;
    color: #ffd700;
}

body.dark-mode .card {
    background-color: rgb(71, 71, 71);
}

body.dark-mode .filter > .filterOptions {
    background-color: rgb(71, 71, 71);
}

body.dark-mode .filterTitle {
    border-bottom: 4px solid rgb(255, 255, 255);
}

body.dark-mode .shoppingPage {
    background-color: rgb(27, 27, 27);
}

.homeMade {
    background-color: #f9f9f9;
}

/* How it works section styling */
.how-it-works {
    padding: 50px 0;
    text-align: center;
    background-color: #f9f9f9;
}

.how-it-works h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #555;
}

.how-it-works h3 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #ff6600;
    font-weight: bold;
}

.parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    margin-left: 10%;
}

.step {
    flex: 1;
    padding: 20px;
    max-width: 300px;
    text-align: center;
}

.second-image,
.third-image {
    width: 100px;
    height: 70px;
}

.first-image {
    height: 80px;
    width: 90px;
}

.step p:first-child {
    font-weight: bold;
    color: #000;
}

.step p:last-child {
    color: #777;
}

/* Dark mode adjustments for the 'How it works' section */
body.dark-mode .how-it-works {
    background-color: #1e1e1e;
}

body.dark-mode .how-it-works h2,
body.dark-mode .how-it-works h3 {
    color: #ddd;
}

body.dark-mode .step p {
    color: #ddd;
}

body.dark-mode .step p:last-child {
    color: #bbb;
}

body.dark-mode .step p:first-child {
    color: #fff;
}

/* Footer Styling */
footer {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: left;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1;
    margin: 0 10px;
}

.footer-section h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #777;
}

.footer-section ul li a:hover {
    color: #000;
}

.socialbutton {
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(120deg, #833ab4, #fd1d1d, #fcb045);
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: 0.1s;
}

.socialbutton svg {
    color: white;
    width: 30px;
    height: 30px;
    z-index: 9;
}

.socialbutton:nth-child(2) {
    background: linear-gradient(120deg, #02ff2c, #008a12);
}

.socialbutton:nth-child(3) {
    background: rgb(69, 187, 255);
}

.socialbutton:nth-child(4) {
    background: rgb(255, 33, 33);
}

.socialbutton:nth-child(5) {
    background: rgb(122, 122, 122);
}

.socialbutton:active {
    transform: scale(0.85);
}

.socialbutton::before {
    content: "";
    position: absolute;
    width: 55px;
    height: 55px;
    background-color: #212121;
    border-radius: 50px;
    z-index: -1;
    border: 0px solid rgba(255, 255, 255, 0.411);
    transition: 0.4s;
}

.socialbutton:hover::before {
    width: 0px;
    height: 0px;
}

.socialTeam {
    display: flex;
    width: auto;
    flex-direction: row;
    padding-right: 3%;
    order: 3;
    justify-content: end;
}

.socialTeam img {
    max-width: 2.3rem;
    padding-right: 10px;
}

/* Dark mode footer adjustments */
body.dark-mode footer {
    background-color: #1e1e1e;
}

body.dark-mode .footer-section h4,
body.dark-mode .footer-section ul li a {
    color: #ddd;
}

body.dark-mode .footer-section ul li a:hover {
    color: #fff;
}

body.dark-mode .footer-socials {
    color: #bbb;
}

/* Review Section */
.reviewsHome {
    background-color: #f9f9f9;
}

.reviewForm {
    filter: brightness(95%);
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.reviewTitle {
    font-size: min(max(16px, 3.5vw), 42px);
    white-space: nowrap;
    text-align: center;
    margin-bottom: 100px;
}

.testimonials {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-bottom: 10%;
}

.testimonials-wrapper {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    margin: 0 20px;
    width: calc(100% - 80px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 290px;
    max-height: 250px;
    box-sizing: border-box;
    margin: 0 10px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff6600;
    position: absolute;
    top: 10px;
    left: 15px;
}

.testimonial-card h3 {
    text-align: center;
    position: relative;
    top: -13px;
    left: 0px;
}

.testimonial-card p {
    position: relative;
    top: -23px;
    left: 0px;
}

.testimonial-card .revStars {
    top: -23px;
    left: 0px;
}

.left-btn {
    left: 0;
}

.right-btn {
    right: 0;
}

.scroll-btn {
    --primary-color: #ffff;
    --secondary-color: #002152;
    --hover-color: #eceff2;
    --arrow-width: 10px;
    --arrow-stroke: 2px;
    box-sizing: border-box;
    border: 0;
    border-radius: 50px;
    color: var(--secondary-color);
    padding: 1em 1.8em;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-weight: bold;
}

.scroll-btn .arrow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-btn .arrow {
    margin-top: 1px;
    width: var(--arrow-width);
    background: var(--primary-color);
    height: var(--arrow-stroke);
    position: relative;
    transition: 0.2s;
}

.left-btn .arrow::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    border: solid var(--secondary-color);
    border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
    display: inline-block;
    top: -3px;
    left: 3px;
    transition: 0.2s;
    padding: 3px;
    transform: rotate(135deg);
}

.right-btn .arrow::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    border: solid var(--secondary-color);
    border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
    display: inline-block;
    top: -3px;
    left: 3px;
    transition: 0.2s;
    padding: 3px;
    transform: rotate(-45deg);
}

.scroll-btn:hover {
    background-color: var(--hover-color);
}

.scroll-btn:hover .arrow {
    background: var(--secondary-color);
}

.scroll-btn:hover .arrow:before {
    left: 0;
}

/* Dark mode for Review Section */
body.dark-mode .homeMade {
    background-color: #1e1e1e;
}

body.dark-mode .reviewTitle {
    color: #ddd;
}

body.dark-mode .review-card {
    background-color: #2e2e2e;
    color: #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .review-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .user-img {
    border-color: #ff6600;
}

body.dark-mode .revStars {
    color: #ffcc00;
}

body.dark-mode .review-text {
    color: #bbb;
}

body.dark-mode .slider-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: #000;
}

body.dark-mode .slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.containerHeader a:hover {
    transform: scale(1.1);
}

header {
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.sign a, .profile a {
    text-decoration: none;
    color: #000;
}

.signIn, .profile {
    padding: 9px 17px;
    font-size: 17px;
    border-radius: 15px;
    border: none;
    background-color: orange;
    cursor: pointer;
}

.signIn {
    margin-right: 10px;
}
.profile {
    margin-right: 10px;
}