* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding:1rem 8rem;
    color: #333;
} */

.card1 {
    display: flex;
    padding: 1rem 8rem;
    /* flex-direction: column; */
    /* justify-content:space-between; */
    gap: 100px;
    /* max-width:1200px; */
    align-items: center;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #333;
    /* Or any color you want */
    cursor: pointer;
    z-index: 10;
}

.card-image {
    width: 500px;
    /* border-right:1px solid #1d3557; */
}

.card-image img {
    width: 100%;
    max-width: 250px;
    align-items: center;
    margin: 1rem 0;
    /* max-height: 500px; */
    object-fit: contain;
    /* background: #f0f0f0; */
    display: flex;
    margin: auto;
}

.card-content {
    padding: 20px;
}

.card-content h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price {
    font-size: 22px;
    color: #e63946;
    font-weight: bold;
}

.latest-price {
    color: #1d3557;
    font-size: 14px;
    text-decoration: none;
}

.actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.callback-btn {
    background: #1d3557;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.brochure {
    color: #e63946;
    text-decoration: none;
    align-self: center;
    font-weight: bold;
}

.details h3,
.features h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #457b9d;
}

.details ul {
    list-style: none;
    padding: 0;
}

.details li {
    margin-bottom: 8px;
    font-size: 14px;
}

.features p {
    background: #f1f1f1;
    padding: 12px;
    border-left: 4px solid #a8dadc;
    font-size: 14px;
    border-radius: 4px;
}

.card1 .sec-title__tagline {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 13px 0;
    top: -100px;
}

/* Modal */
/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Modal Box */
.modal-content {
    background: white;
    margin: 3rem auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 22px;
    color: #1d3557;
}

/* Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.modal-content label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.submit-btn {
    background: #1d3557;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.submit-btn:hover {
    background: #2a4a73;
}


/* Responsive Design */
@media (max-width: 768px) {
    .card {
        flex-direction: column;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .actions {
        flex-direction: column;
    }
}

/* custom alert css */
.custom-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* z-index: 1000; */
}

.custom-alert-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.custom-alert-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.custom-alert-content button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.custom-alert-content button:hover {
    background-color: #0056b3;
}





/* Custom Alert Overlay */
.custom-alert {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

/* Alert Box */
.custom-alert-content {
    background-color: #fff;
    /* margin: 3rem auto; */
    top: 120px;
    padding: 30px 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Message Text */
#customAlertMessage {
    font-size: 16px;
    margin-bottom: 20px;
}

/* OK Button */
.custom-alert-content button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-alert-content button:hover {
    background-color: #0056b3;
}

/* Close Button (X) */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

/* Animation */



/* For tablets and below */
@media (max-width: 1024px) {
    .card1 {
        flex-direction: column;
        gap: 50px;
        padding: 1rem 4rem;
    }

    .card-image {
        width: 100%;
        text-align: center;
    }

    .card-image img {
        max-width: 250px;
    }

    .card-content {
        padding: 15px;
    }
}

/* For mobile screens */
@media (max-width: 768px) {
    .card1 {
        padding: 1rem 2rem;
        gap: 30px;
    }

    .price-row,
    .actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .close-btn {
        font-size: 1.8rem;
        top: 8px;
        right: 8px;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }

    .custom-alert-content {
        width: 95%;
        padding: 20px 15px;
        top: 150px;
    }

    .submit-btn,
    .custom-alert-content button {
        width: 100%;
    }
}

/* For very small screens (<=480px) */
@media (max-width: 480px) {
    .card1 {
        padding: 1rem;
    }

    .card-image img {
        max-width: 200px;
    }

    .card-content h1 {
        font-size: 20px;
    }

    .price {
        font-size: 18px;
    }

    .submit-btn,
    .custom-alert-content button {
        font-size: 16px;
    }

    .modal-content {
        padding: 15px;
    }
}
/* Base state */
.card-image img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  border-radius: 12px; /* smooth edges */
}

/* Hover effect */
.card-image img:hover {
  transform: scale(1.1) rotate3d(1, 1, 0, 8deg);

  animation: hoverPulse 1.2s ease-in-out infinite;
}

/* Keyframes for pulse effect */
@keyframes hoverPulse {
  0%   { transform: scale(1.1) rotate3d(1, 1, 0, 8deg); }
  50%  { transform: scale(1.15) rotate3d(1, 1, 0, -8deg); }
  100% { transform: scale(1.1) rotate3d(1, 1, 0, 8deg); }
}
