/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Custom properties */
:root{
    --light-color: #fff;
    --light-color-alt: #afb6cd;
    --primary-background-color: #131417;
    --secondary-background-color: #252830;
    --hover-light-color: var(--light-color);
    --hover-dark-color: var(--primary-background-color);
    --gradient-color: linear-gradient(
        115deg,#4fcf70,#fad648,#a767e5,#12bcfe,#44ce7b);
    --transparent-light-color: rgba(255,255,255,.05);
    --transparent-dark-color: rgba(0,0,0,.75);
    --font-family: 'Poppins', sans-serif;
    --font-size-xsm: 1.2rem;
    --font-size-sm: 1.6rem;
    --font-size-md: 2.4rem;
    --font-size-lg: 3rem;
    --font-size-xl: 4rem;
    --gap: 2rem;
    --margin-sm: 2rem;
    --margin-md: 3rem;
    --item-min-height-sm: 20rem;
    --item-min-height-md: 30rem;
}

/* Base styles */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: 62.5%;
}

body{
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--light-color-alt);
    background-color: var(--primary-background-color);
    letter-spacing: 1px;
    transition: background-color .25s,color .25s;
}

a{
    color: inherit;
    text-decoration: none;
}

ul{
    list-style: none;
}

img{
    max-width: 100%;
}

input,
button {
  font: inherit;
  color: inherit;
  border: none;
  background-color: transparent;
}

i{
    font-size: var(--font-size-md);
}
/* Theme color change */
body.light-theme{
    --light-color: #3d3d3d;
    --light-color-alt: rgba(0,0,0,.6);
    --primary-background-color: #fff;
    --secondary-background-color: #f1f1f1;
    --hover-light-color: #fff;
    --transparent-dark-color: var(--secondary-background-color);
    --transparent-light-color: rgba(0,0,0,.1);
}
/* Reusable classes */
.container{
    max-width: 160rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.place-items-center{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.section:not(.featured-articles){
    padding-block: 5rem;
}

.d-grid{
    display: grid;
}

.screen-sm-hidden{
    display: none;
}
/* Header */
.header{
    background-color: var(--secondary-background-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.navbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.5rem;
}

.logo{
    font-size: var(--font-size-md);
    color: var(--light-color);
}

.menu{
    position: absolute;
    top: 8.5rem;
    right: 1.5rem;
    width: 23rem;
    padding: 1.5rem;
    background-color:var(--secondary-background-color);
    opacity: 0;
    transform: scale(0);
    transition: opacity .25s ease-in;
}

.list{
    display: flex;
    align-items: center;
    gap: var(--gap);
}

.menu > .list{
    flex-direction: column;
}

/* .list-link.current{
    color: var(--light-color);
} */

.list-link.active {
    color: white; /* Change this to your desired color */
    background-color: #333; /* Optional: Add a background color */
}

.close-menu-icon{
    display: none;
}

.btn{
    cursor: pointer;
}

.list-link:hover,
.btn:hover,
.btn:hover span{
    color: var(--light-color);
}

/* Header JavaScript Styles */
.header.activated{
    box-shadow: 0 1px .5rem var(--transparent-light-color);
}

.menu.activated{
    box-shadow: 1px 1px 1rem var(--transparent-light-color);
    opacity: 1;
    transform: scale(1);
}

.menu-toggle-icon.activated .open-menu-icon{
    display: none;
}

.menu-toggle-icon.activated .close-menu-icon{
    display: block;
}

/* New styles for the intro section */
.intro-section {
    background-color: var(--primary-background-color);
    padding: 10rem 7rem 0rem 7rem ;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.intro-header {
    font-size: 3.5rem; /* Adjust the size as needed */
    color: var(--light-color);
    margin-bottom: 1rem; /* Space between header and description */
}

.intro-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.intro-text {
    color: var(--light-color);
    max-width: 700px; 
     margin: 0 auto;
    /* width: 80%; */
    margin-bottom: 1rem;
    margin-top: 5%;
    /* text-align: center; */
}

.intro-photo img {
    width: 250px;
    height: 250px;
    border-radius: 100%;
    object-fit: cover;
    object-position: -75px center; 
}

.main-content {
    padding: 2rem;
    color: var(--light-color);
}

.recommendation-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0rem 10rem 3rem 10rem;
}

.recommendation-section .title {
    text-align: center;
    font-size: 3rem;
    width: 100%;
}
  
.category {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
  
.piece {
    position: relative;
    width: 305px;
    height: 415px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: black;
}

.piece .buttons {
    position: absolute;
    top: 50%;
    left: -3%;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    width: 102.5%;
    padding: 0 1rem;
}

.piece .buttons button {
    background-color: var(--secondary-background-color);
    color: var(--light-color);
    border: none;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.piece .buttons button:hover {
    background-color: var(--primary-background-color);
}
  
  .piece h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .piece ul {
    list-style: none;
    padding: 6;
    margin: -2px;
  }
  
  .piece ul li {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
  }
  
  .piece ul li a {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .piece ul li a:hover {
    color: #fbfaf8; /* Example hover color */
  }

  .recommendation-section2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem 10rem 5rem 10rem;
  }

  .recommendation-section2 .title {
    text-align: center;
    font-size: 3rem;
    width: 100%;
}
  
  .category2 {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }


  .piece2 {
    width: 305px;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: black;
    /* text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); */
  }
  
  .piece2 h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .piece2 ul {
    list-style: none;
    padding: 6;
    margin: 0;
  }
  
  .piece2 ul li {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
  }
  
  .piece2 ul li a {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .piece2 ul li a:hover {
    color: #fcfcfa; /* Example hover color */
  }

  .custom-calendly-badge .calendly-badge-content {
    background: linear-gradient(115deg, #4fcf70, #fad648, #a767e5, #12bcfe, #44ce7b) !important;
    color: #252830 !important; 
    padding: 0 20px !important;
}
  

/* Footer */
.footer {
    background-color: var(--secondary-background-color);
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem; /* Reduce padding */
    z-index: 1000;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center; /* Ensure text is centered */
}

.footer-container {
    gap: 1rem; /* Reduce gap between elements */
    display: flex; 
    flex-direction: column;
    align-items: center; /* Center items horizontally */
}

.company-data{
    display: flex;
    flex-direction: column;
    order: 1;
    justify-content: center;
    align-items: center;
}

.company-description {
    margin-block: 0.5rem; /* Reduce margin */
    max-width: 60%; /* Keep description width manageable */
}

.social-media {
    margin-top: 1rem;
    margin-bottom: 1rem; /* Reduce margin */
}

.copyright-notice {
    font-size: var(--font-size-xsm); /* Slightly smaller font */
    opacity: 0.8;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 1rem;
}
  
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
  
::-webkit-scrollbar-thumb {
    background: #3f4254;
}
  
::-webkit-scrollbar-thumb:hover {
    background: #2e303b;
}

@media screen and (min-width: 1024px) {
    .menu{
        position: static;
        width: initial;
        padding: initial;
        background-color: transparent;
        opacity: 1;
        transform: scale(1);
    }

    .menu > .list{
        flex-direction: row;
    }

    .screen-lg-hidden{
        display: none;
    }

    .screen-sm-hidden{
        display: block;
    }

    .sign-up-btn{
        padding: 4px;
    }

    /* Fancy button animation effect */
    .btn.fancy-border:hover::before{
        animation: animate_border .75s linear infinite
    }

    @keyframes animate_border{
        to{
            transform:translateX(-50%)
        }
    }

    .featured-articles-container{
        grid-template-columns: 1fr 40rem;
    }

    .trending-news-img-box{
        width: 10rem;
        height: 10rem;
    }

    .popular-tags-container{
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-container{
        grid-template-columns: repeat(5, 1fr);
    }

    .company-data{
        grid-column: span 2;
    }

    .company-description{
        max-width: 85%;
    }

    .copyright-notice{
        margin-top: auto;
    }

    .blog-post-data img{
        height: 40rem;
    }
}

/* @media screen and (max-width: 1024px) {
    .intro-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
        text-align: center;
    }

    .intro-header {
        order: 1;
        font-size: 2.5rem; 
        margin-bottom: 1rem;
        margin-top: 15%;
    }

    .intro-content {
        display: flex;
        flex-direction: column; 
        align-items: center;
        width: 100%;
        order: 2;
    }

    .intro-text {
        order: 3;
        width: 100%;
        margin-bottom: 1rem;
        margin-top: 5%;
    }

    .intro-photo {
        order: 4;
        width: 100%;
        text-align: center;
    }

    .intro-photo img {
        width: 100%;
        height: auto;
        max-width: 250px;
        border-radius: 70%;
        object-fit: cover;
    }

    .category, .category2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
    }

    .category .piece:nth-child(3), .category2 .piece2:nth-child(3) {
        grid-column: span 2;
        justify-self: center;
    }
}

@media screen and (max-width: 820px) {
    .intro-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
        text-align: center;
    }

    .intro-header {
        order: 1;
        font-size: 2.5rem; 
        margin-bottom: 1rem;
        margin-top: 15%;
    }

    .intro-content {
        display: flex;
        flex-direction: column; 
        align-items: center;
        width: 100%;
        order: 2;
    }

    .intro-text {
        order: 3;
        width: 100%;
        margin-bottom: 1rem;
        margin-top: 5%;
    }

    .intro-photo {
        order: 4;
        width: 100%;
        text-align: center;
    }

    .intro-photo img {
        width: 100%;
        height: auto;
        max-width: 250px;
        border-radius: 70%;
        object-fit: cover;
    }

    .category, .category2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem; 
        justify-items: center;
    }

    .category .piece:nth-child(3), .category2 .piece2:nth-child(3) {
        grid-column: span 2;
        justify-self: center;
    }
} */

@media screen and (max-width: 768px) {
    .intro-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
        text-align: justify;
    }

    .intro-header {
        order: 1;
        font-size: 2.5rem;
        margin-bottom: 0rem;
        margin-top: 15%;
    }

    .intro-content {
        display: flex;
        flex-direction: column; 
        align-items: center;
        width: 100%;
        order: 2;
    }

    .intro-text {
        order: 3;
        width: 100%;
        margin-bottom: 1rem;
        margin-top: 5%;
    }

    .intro-photo {
        order: 4;
        width: 100%;
        text-align: center;
    }

    .intro-photo img {
        width: 250px;
        height: 250px;
        border-radius: 100%;
        object-fit: cover;
        object-position: -75px center; 
    }

    
    .category, .category2 {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .piece {
        position: relative;
        width: 305px;
        height: 428px;
        background-size: cover;
        background-position: center;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        color: black;
    }

    /* .category, .category2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem; 
        justify-items: center;
    }

    .category .piece:nth-child(3), .category2 .piece2:nth-child(3) {
        grid-column: span 2;
        justify-self: center;
    } */
} 

@media screen and (max-width: 430px) {
    .intro-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
        text-align: center;
    }

    .intro-header {
        font-size: 2.5rem; 
        margin-bottom: 1rem;
        margin-top: 25%;
        order: 1;
    }

    .intro-content {
        display: flex;
        flex-direction: column; 
        align-items: center;
        width: 100%;
        order: 2;
    }

    .intro-text {
        width: 100%;
        margin-bottom: 1rem;
        margin-top: 10%;
        order: 3;
        text-align: justify;
    }

    .intro-photo {
        order: 4;
        width: 100%;
        text-align: center;
    }

    .intro-photo img {
        width: 250px;
        height: 250px;
        border-radius: 100%;
        object-fit: cover;
        object-position: -75px center; 
    }

    .category, .category2 {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .piece {
        position: relative;
        width: 305px;
        height: 428px;
        background-size: cover;
        background-position: center;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        color: black;
    }

}

/* @media screen and (max-width: 414px) {
    .intro-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
        text-align: center;
    }

    .intro-header {
        order: 1;
        font-size: 2.5rem; 
        margin-bottom: 1rem;
        margin-top: 25%;
    }

    .intro-content {
        display: flex;
        flex-direction: column; 
        align-items: center;
        width: 100%;
        order: 2;
    }

    .intro-text {
        order: 3;
        width: 100%;
        margin-bottom: 1rem;
        margin-top: 10%;
        text-align: justify;
    }

    .intro-photo {
        order: 4;
        width: 100%;
        text-align: center;
    }

    .intro-photo img {
        width: 100%;
        height: auto;
        max-width: 250px;
        border-radius: 70%;
        object-fit: cover;
    }

    .category, .category2 {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

} */


@media screen and (max-width: 390px) {
    .intro-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
        text-align: center;
    }

    .intro-header {
        order: 1;
        font-size: 2.5rem; 
        margin-bottom: 1rem;
        margin-top: 25%;
    }

    .intro-content {
        display: flex;
        flex-direction: column; 
        align-items: center;
        width: 100%;
        order: 2;
    }

    .intro-text {
        order: 3;
        width: 100%;
        margin-bottom: 1rem;
        margin-top: 10%;
    }

    .intro-photo {
        order: 4;
        width: 100%;
        text-align: center;
    }

    .intro-photo img {
        width: 250px;
        height: 250px;
        border-radius: 100%;
        object-fit: cover;
        object-position: -75px center; 
    }

    .category, .category2 {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .piece {
        position: relative;
        width: 305px;
        height: 428px;
        background-size: cover;
        background-position: center;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        color: black;
    }

}