/*Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900family=Poppins:wght@200;300;400;500;600;700;800&display=swap');

/* Variable */
:root{
    --main-color: #54372a;
    --second-color: #EBCC90;
    --third-color: #ff5100;
    --text-color: #060413;
    --fourth-color: #969696;
    --container-color: #f8e4be;
    --bg-color: #f9f6f2;
    --text-alter-color: #e6d4c3;
    --font-family-2: 'Roboto', sans-serif;
    --poppins-font: 'Poppins', sans-serif;
    --box-shadow: rgb(0 0 2 / 35%) 0px 20px 30px 0.10px;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding-top: 3rem;
    font-family: var(--font-family-2);
    box-sizing: border-box;
}

html{
    overflow-x: hidden;
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
}
html::-webkit-scrollbar{
    width: 0.8rem;
}
html::-webkit-scrollbar-track{
    background-color: transparent;
}
html::-webkit-scrollbar-thumb{
    background-color: var(--text-color);
    border-radius: 1rem;
}
body{
    color: var(--text-color);
    background: var(--bg-color);

}
a{
    text-decoration: none;
    color: white;
}
img{
    width: 100%;
}

.container{
    max-width: 1060px;
    margin: auto;
    width: 100%;
}
header{
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    z-index: 100;
    transform: scale(0.9);
}
.nav-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #36566c;
    padding: 20px 30px;
    border-radius: 2rem;
    box-shadow: 2px 3px 6px 0 #706f6f;
}
.logo{
    height: 45px;
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.navbar {
    display: flex;
    align-items: right;
    column-gap: 1.5rem;
}

.navbar .nav-link::after{
    content: '';
    width: 0%;
    height: 2px;
    background: var(--second-color);
    display: block;
    margin: auto;
    transition: 0.5s;
}

.navbar .nav-link:hover::after{
    width: 100%;
}
.nav-link{
    color: #fff;
    font-family: var(--poppins-font);
    font-size: 1rem;
    transition: 0.4s all cubic-bezier(0.080, 0.83, 0.170, 1);
}
.nav-link:hover{
    color: var(--second-color);
    transition: 1s all cubic-bezier(0.080, 0.83, 0.170, 1);
}

.home{
    min-height: 800px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 5rem;  
    margin-left: 200px; 
}
.home-text h1{
    font-size: 40px;
    font-weight: 800;
    color: var(--main-color);
    margin-left: 70px;
    margin-bottom: 30px;
}
.home-text p{
    font-size: 20px;
    font-family: var(--poppins-font);
    margin-left: 70px;
    margin-bottom: 30px;
}
.home-img{
    max-width: 560px;
    width: 100%;
    padding-left: 100px;
    transform: scale(1);
    margin-top: 100px;
}

.btn{
    margin: auto;
    max-width: 180px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
    border-radius: 2rem;
    background: #758694;
    transform: scale(0.9);
}
.btn span{
    font-family: var(--poppins-font);
    color: var(--bg-color);
    text-transform: uppercase;    
}

.btn:hover{
    box-shadow: 0 0 10px 0 #333;
    background-image:linear-gradient(315deg, #405D72 0%, #758694 100%);
    transition:ease-in-out 0.3s;
    transform: translate(20px) scale(1);
}
.btn .bx{
    font-size: 20px;
    background: #405D72;
    color: var(--bg-color);
    padding: 5px;
    border-radius: 50%;
    transform: rotate(90deg);
}

.heading-services{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}
.heading-services h2{
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-family-2);
}
.heading-services h2 span{
    color: var(--main-color);
    text-shadow: 2px 2px 2px rgba(181, 155, 124, 1.9);
}
section{
    padding: 1px 0 1px;
}
#services{
    padding-bottom: 200px;
    padding-top: 100px;
}
.service-content{
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(160px));
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
}
.ser-box{
    background: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    border-radius: 2rem;
    margin: 5px;
}
.ser-box:hover{
    background: var(--third-color);
}
.ser-box img{
    transform: scale(0.6);
}
.ser-box img:hover{
    transform: translateY(1px) scale(0.9);
    transition: 0.5s all cubic-bezier(0.080, 0.83, 0.170, 1);
}
.ser-box p{
    font-size: 20px;
    font-family: var(--poppins-font);
    color: #fff;
}
.heading h2{
    margin-top: 40px;
    font-size: 35px;
}
.heading p{
    max-width: 480px;
    height: 90px;
    width: 100%;
    font-size: 18px;
    font-family: var(--poppins-font);
    margin-top: 1rem;
}

.section {
    padding: 2em;
    text-align: center;
  }
  .category-grid {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    justify-content: center;
  }
  .category-card {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 8px;
    width: 200px;
    text-align: center;
  }
  .category-card img {
    width: 100%;
    border-radius: 8px;
  }
  button {
    margin-top: 1em;
    padding: 0.5em 1em;
    background-color: #a5643b;
    color: white;
    border: none;
    cursor: pointer;
  }
  button:hover {
    background-color: #b27d58;
  }

  /* for categories */
  .section {
    padding: 2em;
    text-align: center;
  }
  .category-grid {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    justify-content: center;
  }
  .category-card {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 8px;
    width: 250px;
    text-align: center;
  }
  .category-card img {
    width: 100%;
    border-radius: 8px;
  }
  button {
    margin-top: 1em;
    padding: 0.5em 1em;
    background-color: #36566c;
    color: white;
    border: none;
    cursor: pointer;
  }
  button:hover {
    background-color: #758694;
  }

  /* Set consistent styling for the section and grid */
/* Basic styling for the section */
.section {
    padding: 2em;
    text-align: center;
  }
  
  .featured-grid {
    display: flex;
    gap: 2em;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .laptop-card {
    background-color: var(--bg-color);
    box-shadow: 3px 3px 5px #6e6e6e;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 200px; /* Set a fixed width */
    height: 300px; /* Set a fixed height */
    padding: 10px;
    
  }

  .laptop-card img {
    width: 100%; /* Ensures the image takes the full width of its container */
    height: auto; /* Maintains aspect ratio */
    max-height: 150px; /* Adjust to desired image height */
    object-fit: contain; /* Scales the image to fit within the container without distortion */
}

  
  /* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal img {
    max-width: 100%; /* Ensures it doesn’t exceed the modal width */
    max-height: 80vh; /* Keeps the height manageable on smaller screens */
    width: auto; /* Maintains aspect ratio */
    height: auto; /* Maintains aspect ratio */
    margin: 0 auto; /* Centers the image in the modal */
    display: block; /* Removes any extra space around the image */
}


.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #000;
}

/* Mobile Styles */
@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
    }

    .nav-link {
        display: block;
        margin-bottom: 2px;
        margin-top: 5px;
    }

    .category-card, .laptop-card {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }

    .home {
        grid-template-columns: 1fr;
        text-align: left;
        margin-left: 0;
        margin-top: 200px;
    }

    .home-img {
        padding-left: 0;
        margin-top: 0;
    }

    .btn {
        margin: auto;
        max-width: 180px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        column-gap: 0.5rem;
        border-radius: 2rem;
        background: #758694;
        transform: scale(0.9);
    }

    .home-text h1{
        font-size: 38px;
        text-align: center;
        font-weight: 800;
        color: var(--main-color);
        margin-left: 15px;
        margin-bottom: 30px;
    }
    .home-text p{
        text-align: center;
        font-size: 20px;
        font-family: var(--poppins-font);
        margin-left: 15px;
        margin-bottom: 30px;
    }
}


