/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #000;
    text-align: center;
}

header {
    background: #8B4513; /* Brown */
    color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;  
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    top: 0;
    z-index: 100; /* Ensure it stays on top of other content */
}

header {
    background: transparent;
    transition: background-color 0.3s ease; /* Smooth transition for the background */
}

.header-scrolled {
    background-color: #8B4513;}

.logo {
    display: flex;
    align-items: center;
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
}

.menu {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background: #8B4513;
    padding: 20px;
    box-sizing: border-box;
}

.menu ul {
    list-style: none;
    padding: 0;
}

.menu li {
    margin: 10px 0;
}

.menu a {
    color: #fff;
    text-decoration: none;
}

.consult-btn {
    background: #fff;
    color: #8B4513;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.hidden {
    display: none;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #000;
    border-radius: 50%;
    padding: 7px;
}

.placeholder {
    background: #D3D3D3;
    height: 320px;
    width: 100%;
    margin: 10px 0;
    border-radius: 7px;
}

.header-info{
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
}

.placeholder.small {
    height: 100px;
}

.placeholder.testimonial {
    height: 100px;
    width: 50%;
}

.hero {
    position: relative;
    text-align: center;
    color: #fff;
}

.hero-bg {
    background: url('./images/background.jpg') no-repeat center/cover;
    height: 700px !important;
    position: relative;
}

/* Dark overlay */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)); /* Gradient for depth */
    z-index: 1;
}

/* Keep content above overlay */
.hero-bg > * {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem; /* Base font size for desktop */
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 20px;
}


.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%; /* Prevent text from touching edges on small screens */
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
}

/* .hero h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
} */


.portfolio-btn{
    background: #121212;
    color: #fff;
    border: none;
    padding: 10px 40px;
    font-size: 18px;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: background-color 0.3s ease;
}

.portfolio-btn:hover {
    background-color: #333;
}

.recent-works {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
}

.works-done {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0 50px;
}

.project .placeholder {
    width: 100%;
}

.work-btn {
    background: #8B4513;
    color: #fff;
    border: none;
    padding: 10px 40px;
    font-size: 18px;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
}

footer {
    background: #8B4513;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin: 10px 0;
}

.footer-section a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 10px;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

/* Mobile First */
@media (max-width: 767px) {
    /* Keep column layouts as in screenshots */
    .products {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem; /* Smaller font size for mobile */
    }

    .hero-content p {
        font-size: 1rem; /* Adjust paragraph font size for mobile */
    }
}

/* Desktop View */
@media (min-width: 768px) {
    header {
        padding: 20px;
    }

    .menu-icon {
        display: none;
    }

    .menu {
        position: static;
        display: flex !important;
        width: auto;
        background: none;
        padding: 0;
    }

    .menu ul {
        display: flex;
    }

    .menu li {
        margin: 0 10px;
    }

    .consult-btn {
        display: none; /* Assume desktop has it elsewhere */
    }

    .hero-bg {
        height: 500px;
    }

    /* Removed conflicting .recent-works and .placeholder styles to allow grid to control layout */

    .articles {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .products {
        grid-template-columns: repeat(4, 1fr);
    }

    .tree-diagram {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .branch {
        display: flex;
        justify-content: space-around;
        width: 80%;
    }

    .node {
        background: #8B4513;
        color: #fff;
        padding: 10px;
        margin: 10px;
        text-align: center;
    }

    .top {
        margin-bottom: 20px;
    }
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-item {
    min-width: 100%;
    scroll-snap-align: center;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border: 1px solid #8B4513;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #fff;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    text-decoration: none;
    font-size: 30px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.project {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.project.in-view {
    opacity: 1;
}

.project:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 2;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 130%; /* Aspect Ratio */
    overflow: hidden;
}

.project-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project:hover .project-image-wrapper img {
    transform: scale(1.15);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    padding: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    transition: background 0.4s ease;
}

.project:hover .project-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.1) 100%);
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.project:hover .project-info h3 {
    transform: translateY(-2px);
}

.project-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-desc {
    font-size: 0.85rem;
    color: #ddd;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-out;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
}

.project:hover .project-desc {
    margin-top: 8px;
    max-height: 100px;
    opacity: 1;
}

.project-action {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.project-action::before {
    content: "View Project";
    font-size: 0.9rem;
    font-weight: 600;
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.4s ease;
}

.project-action i {
    transition: transform 0.4s ease;
}

.project:hover .project-action {
    background: #fff;
    color: #121212;
    transform: scale(1.05);
    border-color: #fff;
    width: 160px;
}

.project:hover .project-action::before {
    max-width: 100px;
    opacity: 1;
    margin-right: 10px;
}

.project:hover .project-action i {
    transform: rotate(-45deg);
}

/* Stats Section */
.stats-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.stat-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: #8B4513;
    margin: 0;
    font-weight: 700;
}

.stat-item p {
    font-size: 1rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Newsletter Section */
.newsletter {
    /* background: #dad6d6; */
    color: #121212;
    padding: 80px 20px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px;
    min-width: 200px;
}

.newsletter-form button {
    padding: 15px 30px;
    background: #8B4513;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #a05218;
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #f9f9f9;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: #8B4513;
}

.service-icon {
    font-size: 3rem;
    color: #8B4513;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #121212;
}

.service-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Professional Testimonial Card */
.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 650px;
    text-align: center;
    position: relative;
    margin: 20px auto;
    border: 1px solid #f0f0f0;
}

.quote-icon {
    font-size: 2.5rem;
    color: #8B4513;
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 15px;
}

.review-text {
    font-size: 1.15rem;
    font-style: italic;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.client-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #8B4513;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.client-details h4 {
    margin: 0;
    font-size: 1rem;
    color: #121212;
    font-weight: 700;
}

.client-details span {
    font-size: 0.85rem;
    color: #777;
}

/* Insights & Inspirations Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.insight-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    text-align: left;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.insight-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #ddd;
}

.insight-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insight-card:hover .insight-img-wrapper img {
    transform: scale(1.05);
}

.insight-body {
    padding: 25px;
}

.insight-body h3 {
    font-size: 1.25rem;
    margin: 10px 0;
    color: #121212;
}

.read-link {
    color: #8B4513;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 90px; /* Positioned above the WhatsApp button */
    right: 30px;
    width: 45px;
    height: 45px;
    background: #8B4513;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: #121212;
    transform: translateY(-5px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.modal-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-form button {
    padding: 12px;
    background: #8B4513;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.modal-form button:hover {
    background: #121212;
}

/* Cart Icon in Header */
.cart-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    background: #fff;
    color: #8B4513;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #121212;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-toast.show {
    opacity: 1;
    visibility: visible;
    bottom: 40px;
}

/* Shop Card Updates */
.product-image {
    position: relative;
    overflow: hidden;
}

.quick-view-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px !important;
    height: 30px;
    border-radius: 20%;
    background: #fff;
    color: #8B4513;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.15); */
    z-index: 5;
}

.quick-view-btn::before {
    content: "Quick View";
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background-color: #121212;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: #8B4513;
    border: none;
    color: #fff;
}

.quick-view-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.qty-btn {
    background: #fff;
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    font-size: 1.2rem;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qty-btn:hover {
    background-color: #f9f9f9;
    color: #8B4513;
}

.qty-input {
    width: 40px;
    height: 35px;
    text-align: center;
    border: none;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    font-weight: 600;
    color: #121212;
    -moz-appearance: textfield;
    background: #fff;
    padding: 0;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@keyframes qty-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #8B4513; }
    100% { transform: scale(1); }
}

.qty-anim {
    animation: qty-pop 0.3s ease;
}
