/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
body {
    min-height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: 'Poppins', sans-serif;
}

/* Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background-color: white;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo img {
    height: 35px;
    cursor: pointer;
}

.nav__links {
    list-style: none;
    display: flex;
}

.nav__links li {
    padding: 0 20px;
}

.nav__links a {
    font-weight: 500;
    color: #686868;
    text-decoration: none;
    transition: color 0.3s;
}
.nav__links a:hover{
    color:#222;
}

.cta {
    padding: 7px 25px;
    background-color:   #00bcd4;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.menu {
    display: none;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 0;
    overflow: hidden;
    z-index: 1005;
    background-color: rgba(255, 255, 255, 0.205);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    transition: width 0.5s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 40px;
}

.sidebar.active {
    width: 250px;
}

.sidebar__content {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar a {
    width: 100%;
    padding: 10px 0;
    font-size: 18px;
    color: black;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar .close {
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s, transform 0.3s;
}

.sidebar a:hover {
    color: black;
}

.sidebar .close.visible {
    opacity: 1;
    transform: scale(1);
}

#new-cart {
    padding-left: 3px;
}

.contact-bar {
    background-color: #f0f0f0;
    padding: 5px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 5px;
}

.contact-bar p {
    margin: 0;
    font-size: 1em;
    color: #333;
}

.contact-bar svg {
    vertical-align: middle;
    margin-right: 8px;
}

.contact-bar .contact-item {
    display: flex;
    align-items: center;
}

.contact-bar .contact-item svg {
    fill: #333;
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    background-color: #222;
    color: white;
    padding: 40px 10%;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
}

.footer h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.footer p {
    font-size: 1em;
    line-height: 1.5;
}

.footer-left, .footer-center, .footer-right {
    flex: 1 1 300px;
    max-width: 300px;
}

.footer .social-icons {
    display: flex;
    gap: 10px;
}

.footer .social-icons a img {
    width: 30px;
    height: 30px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    border-top: 1px solid #444;
    padding-top: 10px;
}

.sidebar .close.rotating {
    animation: rotate 0.5s ease-in-out;
}

@media (max-width: 850px) {
    .nav__links, .cta {
        display: none;
    }
    .menu {
        display: inline-block;
    }
    header {
        padding: 20px 10%;
    }
    .content-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .content-image {
        display: none;
    }
    .content-image-mobile {
        display: flex;
        margin: 20px auto;
        align-items: center;
        justify-content: center;
        width: 80%;
        max-width: 80%;
    }
    .content-image-mobile img {
        max-width: 80%;
        min-width: 250px;
    }
    .content-text {
        max-width: 65%;
    }
    
}

@media (max-width: 400px) {
    .sidebar.active {
        width: 100%;
    }
    .content-text {
        max-width: 96%;
    }
}

header.hidden {
    top: 40px;
    position: absolute;
}

header.fixed {
    position: fixed;
    top: 0;
    left: 0;
}       
.offer-card {
    width: 400px;
    height: 500px;
    perspective: 800px;
}
  
.offer-card:hover > .card {
    cursor: pointer;
    transform: rotateY(180deg);
}
  
.card {
    height: 100%;
    width: 100%;
    position: relative;
    transition: transform 1500ms;
    transform-style: preserve-3d;
}
  
.front,
.back {
    height: 100%;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 15px 5px rgba(50, 50, 50, 0.15);
    position: absolute;
    backface-visibility: hidden;
    padding: 20px;
    text-align: center;
    transition: background-color 300ms ease;
}

.front {
    background-color: #fff;
}

.back {
    background-color: #00bcd4;
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.front img {
    max-width: 310px;
    border-radius: 10px;
    margin-top: 20px;
}

.cards-container {
    margin: 150px auto 100px auto;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cards-container h1 {
    margin:0 0 70px 0;
    font-size: 36px;
    color: #333;
}

.container-items {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.front h1, .back h1 {
    font-size: 24px;
    margin: 15px 0;
}

.front p, .back p {
    font-size: 16px;
    color: #666;
}

.back a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    border: 2px solid #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 300ms ease, color 300ms ease;
}
.back p {
    color: #fff;
}
.back a:hover {
    background-color: #fff;
    color: #333;
}
.content-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 10%;
    background: linear-gradient(163deg, #00bcd4 0%, rgba(255, 255, 255, 1) 90%);
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 85px;
}

.content-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:rgb(27,67,244);stop-opacity:1" /><stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:1" /></linearGradient></defs><path d="M0,0 C150,200 350,0 500,100 L500,0 L0,0 Z" fill="url(%23grad1)"/><path d="M500,100 C650,200 850,0 1000,100 L1000,0 L500,0 Z" fill="url(%23grad1)"/></svg>') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.content-text {
    max-width: 50%;
    z-index: 1;
}

.content-text h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.content-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.content-buttons {
    display: flex;
    gap: 20px;
}

.content-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.primary-btn {
    background-color: #00bcd4; /* Unified background color */
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.4); /* Unified background color */
}

.content-image {
    max-width: 45%;
    z-index: 1;
}

.content-image img {
    width: 100%;
    height: auto;
}

.content-image-mobile {
    display: none;
    max-width: 100%;
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}
.footer-center p a{
    color: #fff;
}
.contact-item p a {
    color:#222;
}