@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ========================= Global Styles ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* ========================= Header ========================= */
header {
    width: 100%;
    background: #fff;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo img {
    width: 140px;
    height: 80px;
}

/* Menu */
.menu-wrapper {
    display: flex;
}

.menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.menu li a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 16px;
    padding: 5px 0;
    transition: 0.3s;
}

.menu li a.active {
    color: #ff6b35;
}

.menu li a:hover {
    color: black;
}

/* User Icons */
.desktop-user {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    right: 30px;
}

.desktop-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* Desktop logout dropdown */
#user-dropdown-desktop {
    display: none;
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #f1ecec;
    border-radius: 8px;
    padding: 10px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}


#user-dropdown-desktop.show {
    display: block;
}

#desktop-username {
    font-size: 14px;
}

#logout-button-desktop {
    background: none;
    display: block;
    width: 100%;
    padding: 10px;
    color: gray;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* Mobile User */
.mobile-user-item {
    display: none;
}

#user-icon-mobile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

#logout-button-mobile {
    background: none;
    display: none;
    color: gray;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

/* ========================= Hero Section ========================= */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 1;
    animation: fadeInUp 1.5s ease-in-out;
    max-width: 90%;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-content .btn {
    display: inline-block;
    padding: 16px 36px;
    background: #ff6b35;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-content .btn:hover {
    background: #e85a2a;
    transform: translateY(-3px);
}

/* ========================= Footer ========================= */
footer {
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    color: #2c3e50;
    padding: 60px 20px 30px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.footer-info,
.footer-links,
.connect {
    flex: 1 1 250px;
}

.footer-info h3,
.footer-links h3,
.connect h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-info p,
.footer-links a {
    font-size: 15px;
    color: #2c3e50;
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links a {
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b35;
    transform: translateX(5px);
}

.connect {
    text-align: center;
}

.social-icons {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-left: 0;
    margin-top: 15px;
}

.social-icons li a {
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #2c3e50;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons li a:hover {
    background-color: #ff6b35;
    color: #fff;
    transform: scale(1.15) rotate(5deg);
}

.footer-bottom {
    margin-top: 50px;
    font-size: 14px;
    color: #555;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    text-align: center;
}

/* ========================= FadeInUp ========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================= Modal ========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 40px;
    width: 80%;
    text-align: center;
    border-radius: 10px;
}

#logout-button {
    display: none;
    position: fixed;
    right: 20px;
    top: 70px;
    background-color: #ff4c4c;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

/* ---------------- Search Section ---------------- */
#search {
    position: relative;
    z-index: 2;
    padding: 120px 5% 80px 5%;
    background: #f7f9fc;
    text-align: center;
}

#search h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 60px;
}

#search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 10px auto;
    font-family: 'Segoe UI', Arial, sans-serif;
    user-select: none;
    flex: 0 0 auto;
    margin: 0;
}

.custom-dropdown-selected {
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 15px;
    color: #333;
}

.custom-dropdown-selected:hover {
    border-color: #ff6600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-dropdown-selected::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
    transition: transform 0.3s ease;
}

.custom-dropdown-options.show+.custom-dropdown-selected::after,
.custom-dropdown-selected.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-dropdown-options {
    display: none;
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 5px;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    list-style: none;
    padding: 0;
    overflow: hidden;
    animation: fadeIn 0.25s ease-in-out;
}

.custom-dropdown-options.show {
    display: block;
}

.custom-dropdown-options li {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease;
}

.custom-dropdown-options li:hover {
    background: #f9f9f9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button */
#search-form button {
    padding: 16px 20px;
    border-radius: 10px;
    background: #ff6b35;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
    margin: 0;
    width: 100%;
    max-width: 280px;
    flex: 0 0 auto;
    margin: 0;
}

#search-form button:hover {
    background: #e65c2d;
}

/* ---------------- Listings Section ---------------- */
#listings {
    position: relative;
    background: #f7f9fc;
    overflow: hidden;
    padding: 120px 5% 100px 5%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

#listings h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ff6b35;
    margin-top: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

#listings video#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#listings .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

#listings-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

/* ---------------- Listing Cards ---------------- */
.listing {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 300px;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.listing img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.listing h3 {
    color: #333;
    font-size: 22px;
    margin: 15px 0 10px 0;
}

.listing p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.more-info-btn {
    margin: 10px 0 20px 0;
    padding: 12px 16px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    width: 80%;
}

.more-info-btn:hover {
    background: #e65c2c;
}

/* ---------------- About Section ---------------- */
.about-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 50px auto;
    text-align: center;
}

.about-section h2 {
    font-size: 40px;
    color: #ff6b35;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.about-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ff6b35;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* About Cards */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.about-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 22px;
    color: #ff6b35;
    margin-bottom: 12px;
}

.about-card p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* ---------------- Business Stats ---------------- */
.business-stats {
    max-width: 1200px;
    margin: 50px auto;
    text-align: center;
}

.business-stats h2 {
    font-size: 36px;
    color: #ff6b35;
    margin-bottom: 40px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.stat-card i {
    color: #ff6b35;
    margin-bottom: 12px;
}

.stat-card h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 16px;
    color: #555;
}

/* Close button */
.close {
    position: absolute;
    top: 8px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

/* Button inside modal */
#confirm-purchase {
    background-color: #4b4d4b;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#confirm-purchase:hover {
    background-color: #7b7e7b;
}

.modal-content p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
}

/* ================= Contact Section ================= */
#contact-sales {
    max-width: 1200px;
    margin: 50px auto;
    text-align: center;
    padding: 40px 20px;
}

#contact-sales h2 {
    font-size: 36px;
    color: #ff6b35;
    margin-bottom: 40px;
    font-weight: 700;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.sales-manager {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sales-manager:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.sales-manager img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.sales-manager ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    color: #333;
}

.sales-manager ul li {
    margin-bottom: 8px;
}

/* ================= Contact Form ================= */
#form {
    background: linear-gradient(135deg, #636261 50%, #8B4513 50%);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 35%;
    margin: 20px auto;
    width: 100%;
}

#form h2 {
    text-align: center;
    font-size: 26x;
    color: #fff;
    margin-bottom: 20px;
    font-weight: bold;
}

#form label {
    font-weight: bold;
    color: white;
    display: block;
    margin-bottom: 5px;
}

#form input[type="text"],
#form input[type="email"],
#form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#form textarea {
    height: 150px;
}

#form button[type="submit"] {
    display: block;
    width: 50%;
    margin: 0 auto;
    background-color: white;
    color: black;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#form button[type="submit"]:hover {
    background-color: #8B4513;
}

.show {
    display: block !important;
}

.hide {
    display: none !important;
}

/* ========================= Responsive ========================= */
@media (max-width: 768px) {
    .menu-wrapper {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        background: #fff;
        flex-direction: column;
        transition: 0.3s;
    }

    .menu-wrapper.active {
        left: 0;
    }

    .menu {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .desktop-user {
        display: none;
    }

    .mobile-user-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }

    #logout-button-mobile {
        display: inline-block;
    }

    .hamburger {
        display: flex;
    }

    /*Hero*/
    #hero {
        height: 70vh;
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-content .btn {
        padding: 12px 28px;
        font-size: 1rem;
    }

    /*Footer*/
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }

    .footer-info,
    .footer-links,
    .connect {
        flex: unset;
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-links a {
        display: inline-block;
        margin-bottom: 8px;
    }

    .social-icons {
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }

    .footer-bottom {
        font-size: 13px;
        margin-top: 30px;
    }

    /*Search*/
    #search {
        padding: 100px 5% 60px 5%;
    }

    #listings {
        padding: 100px 5% 80px 5%;
    }

    .listing {
        width: 90%;
    }

    /* About Section */
    .about-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .about-card img {
        width: 60px;
        height: 60px;
    }

    .about-card h3 {
        font-size: 20px;
    }

    .about-card p {
        font-size: 14px;
    }

    /* Business Stats */
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .stat-card h3 {
        font-size: 20px;
    }

    .stat-card p {
        font-size: 14px;
    }

    /* Contact Section */
    .contact-details {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    /* Contact Form */
    #form {
        max-width: 90%;
        padding: 20px;
    }

    #form h2 {
        font-size: 20px;
    }

    #form button[type="submit"] {
        width: 100%;
        padding: 12px 0;
    }

    /* Modal */
    .modal-content {
        width: 90%;
        padding: 20px;
    }

    /* Table & Listing Details */
    .listing-details .details table td:last-child {
        padding-left: 10px;
    }

    .images {
        flex-direction: column;
        gap: 10px;
    }

    .image {
        flex: 1 1 100%;
    }
}