/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #fff;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #222;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 60px; /* Adjust size as needed */
    border-radius: 50px;
    margin-left: 20px;
}
.logo-text {
    font-size: 25px;
    font-weight: bold;
    display: inline-block;
    color: white;
    margin-left: 10px;
}
.logo-text span {
    display: inline-block;
    transition: text-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, color 0.3s ease-in-out;
}
.logo-text span:hover {
    color: #ffcc00; /* Glowing color */
    text-shadow: 0 0 10px #ffcc00, 0 0 20px #ff9900, 0 0 30px #ff6600;
    transform: scale(0.7); /* Zoom-out effect */
}

/* Adjust the nav-links to move left */
.nav-links {
    display: flex;
    gap: 20px;
    margin-left: 0;
    margin-right: 100px;
}
.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    transition: 0.3s;
    position: relative;
}
.nav-links a:hover {
    background-color: #FFA500;
    color: #000;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.6);
}
/* Contact Button Styling */
.nav-links a:last-child {
    background: linear-gradient(45deg, #ff7e00, #ffcc00);
    color: #222;
    font-weight: bold;
    border-radius: 15px;
    padding: 10px 20px;
    transition: 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.6);
}
.nav-links a:last-child:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.8);
}

/* Category buttons */
.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px auto;
    max-width: 90%;
    text-align: center;
}
.category-btn {
    background: #222;
    color: white;
    border: 2px solid orange;
    padding: 14px 22px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 8px;
}
.category-btn:hover, .category-btn.active {
    background: orange;
    color: black;
    transform: scale(1.1);
    box-shadow: 0px 0px 18px orange;
}

/* Design Gallery */
#designGallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 40px;
    justify-content: center;
    align-items: start;
}

/* Design Box */
.design-item {
    position: relative;
    width: 320px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.design-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}
/* Design Name */
.design-name {
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: white;
    padding: 10px;
    border-radius: 0 0 15px 15px;
}
/* Hover effect */
.design-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 15px orange;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}
.modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
}
.modal-box {
    position: relative;
    display: flex;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 15px;
    max-width: 1400px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.4);
    animation: zoomIn 0.3s ease-in-out;
}

/* Left: Image */
.modal-image {
    flex: 2.2;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}
.modal-image img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}
/* Watermark inside modal */
.modal-image .watermark {
    position: absolute;
    bottom: 12px;
    right: 15px;
    font-size: 16px;
    font-weight: bold;
    color: rgba(255,255,255,0.75);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    user-select: none;
    pointer-events: none;
}

/* Right: Info */
:root {
    --close-size: 40px;
    --close-offset: 16px;
}
.modal-info {
    flex: 1;
    padding: 25px;
    padding-top: calc(25px + var(--close-size) + 10px);
    color: #fff;
    border-left: 2px solid orange;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 90vh;
}
.modal-info h2 {
    color: orange;
    font-size: 24px;
    margin-bottom: 8px;
}
.modal-info p {
    font-size: 16px;
    line-height: 1.5;
}
.modal-info .detail {
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 6px;
}

/* Contact Button */
.contact-btn {
    display: inline-block;
    padding: 12px 18px;
    background: orange;
    color: #000;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    margin-top: 20px;
    text-decoration: none;
    transition: all 0.3s;
}
.contact-btn:hover {
    background: #ffb700;
    transform: scale(1.05);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: var(--close-offset);
    right: var(--close-offset);
    font-size: 24px;
    font-weight: 700;
    background: rgba(255,165,0,0.95);
    border: none;
    border-radius: 50%;
    width: var(--close-size);
    height: var(--close-size);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    z-index: 2;
}
.close-btn:hover {
    background: orange;
    transform: scale(1.08);
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes zoomIn {
    from {transform: scale(0.85);}
    to {transform: scale(1);}
}

/* Responsive: Stack for Mobile */
@media (max-width: 768px) {
    :root {
        --close-size: 34px;
        --close-offset: 12px;
    }
    .modal-box {
        flex-direction: column;
        max-height: 95vh;
    }
    .modal-image img {
        max-height: 50vh;
    }
    .modal-info {
        border-left: none;
        border-top: 2px solid orange;
        padding: 20px;
        padding-top: calc(20px + var(--close-size) + 10px);
    }
}
