@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

section{
  padding: 100px 200px;
}

.main{
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url(images/bg.jpg)no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.main .content{
  max-width: 800px;
}

.main .content h2{
  color: #fff;
  font-size: 2em;
  font-weight: 500;
}

.main .content h2 span{
  font-size: 2.8em;
  font-weight: 600;
}

.animated-text{
  position: relative;
  height: 70px;
  overflow: hidden;
}

.animated-text h3{
  color: #26F0F1;
  font-size: 3em;
  font-weight: 700;
  line-height: 70px;
  letter-spacing: 1px;
}

.animated-text h3:nth-child(1){
  animation: text-move 10s infinite;
}

@keyframes text-move{
  0%{
    margin-top: 0;
  }
  25%{
    margin-top: -70px;
  }
  50%{
    margin-top: -140px;
  }
  75%{
    margin-top: -70px;
  }
  100%{
    margin-top: 0;
  }
}

.btn{
  color: #fff;
  background: #26F0F1;
  font-size: 1em;
  font-weight: 600;
  display: inline-block;
  padding: 10px 20px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  border-radius: 2px;
  margin-top: 30px;
  transition: 0.5s ease;
}

.btn:hover{
  background: #235bf6;
}

.media-icons{
  margin-top: 50px;
}

.media-icons a{
  color: #fff;
  font-size: 25px;
  margin-right: 30px;
}

header{
  z-index: 999;
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.5s ease;
}

header.sticky{
  background: #03045E;
  padding: 10px 200px;
}

header .brand{
  color: #fff;
  font-size: 1.8em;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

header .navigation{
  position: relative;
}

header .navigation a{
  color: #fff;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  margin-left: 30px;
}

header .navigation a:hover{
  color: #26F0F1;
}

header.sticky .navigation a:hover{
  color: #26F0F1;
}

body{
  min-height: 110vh;
}

.title{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* New cards sessions */
/* CSS for perfect fit 1080x1080 cards */
/* CSS for perfect fit 1080x1080 cards */

.page-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Dynamic grid based on screen size */
  grid-gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  justify-items: center;
}


/* Product Cards Grid */
.product-container {
  padding: 40px 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* Product Card Style */
.product-card {
  width: 240px;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Glossy Effect */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
  opacity: 0.4;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
  z-index: 2;
}

/* Image and Hover Effect */
.card-thumbnail img {
  height: 140px;
  width: 100%;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  }


/* Card Content Styling */
.card-content {
  padding: 15px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Titles and Author */
.card-title {
  font-size: 1.1em;
  font-weight: bold;
  color: #00171F;
}

.card-sub-title {
  font-size: 0.85em;
  color: #27ae60;
  margin-bottom: 10px;
}

.author {
  font-size: 0.85em;
  color: #4A001F;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Category Label */
.category {
  font-size: 0.9em;
  font-weight: bold;
  color: #2E0219;
  margin-bottom: 10px;
}

/* Reading Time */
.reading-time {
  font-size: 0.75em;
  color: #00171F;
  margin-bottom: 10px;
}


/* Meta Information */
.post-meta {
  font-size: 0.75em;
  color: #95a5a6;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

/* Hover Animations */
.product-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.18);
}


.product-card:hover::before {
  opacity: 0.6;
}

.product-card:hover .card-thumbnail img {
  transform: scale(1.07);
  opacity: 0.9;
}

/* Show Description on Hover */
.description {
  font-size: 0.85em;
  color: #7f8c8d;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Limits text to 4 lines */
  -webkit-box-orient: vertical;
  min-height: 56px; /* Ensures uniform height for descriptions */
}

/* Post Meta */
.post-meta {
  list-style: none;
  padding: 0;
  font-size: 0.85em;
  color: #95a5a6;
  display: flex;
  justify-content: space-around;
  margin: 0;
}

.post-meta li {
  display: flex;
  align-items: center;
}

.post-meta li i {
  display: none;
}

/* Hover Effects */
.product-card:hover .card-thumbnail img {
  transform: scale(1.1);
  filter: brightness(0.9);
}

.product-card:hover .description {
  display: block;
  opacity: 1;
  visibility: visible;

}
.product-card:hover {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .product-card {
    width: 180px;
    height: auto;
  }

  .card-thumbnail img {
    height: 100px;
  }
}




footer.footer {
  margin-top: auto;
  background: #000016;
  color: #fff;
  text-align: center;
  padding: 2em;
}

.footer .footer-title {
  font-size: 20px;
  font-weight: 600;
}

.footer p {
  font-size: 16px;
  margin-top: 10px;
}

.footer p a {
  color: #3a6cf4;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 1040px){
  header{
    padding: 12px 20px;
  }

  header.sticky{
    padding: 10px 20px;
  }

  header .navigation{
    display: none;
  }

  header .navigation.active{
    z-index: 888;
    position: fixed;
    background: #fff;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 5px 25px rgba(1 1 1 / 15%);
    transition: 0.3s ease;
  }

  header .navigation a{
    color: #000;
    font-size: 1.2em;
    margin: 10px;
    padding: 0 20px;
    border-radius: 20px;
  }

  header .navigation a:hover{
    background: #3a6cf4;
    color: #fff;
    transition: 0.3s ease;
  }

  .menu-btn{
    position: absolute;
    background: url(images/menu.png)no-repeat;
    background-size: 30px;
    background-position: center;
    width: 40px;
    height: 40px;
    right: 0;
    margin: 0 20px;
    cursor: pointer;
    transition: 0.3s ease;
  }

  .menu-btn.active{
    z-index: 999;
    background: url(images/close.png)no-repeat;
    background-size: 25px;
    background-position: center;
    transition: 0.3s ease;
    filter: invert(1);
  }

  section{
    padding: 80px 20px;
  }

  .main .content h2{
    font-size: 1em;
  }

  .animated-text h3{
    font-size: 2.2em;
  }

  .section-title{
    font-size: 1.8em;
  }

  .about .content{
    flex-direction: column;
  }

  .about .content .column{
    position: relative;
    width: 100%;
  }

  .about .content .col-right{
    margin-top: 40px;
  }

  .skills .content{
    flex-direction: column;
  }

  .skills .content .column{
    position: relative;
    width: 100%;
  }

  .skills .content .col-right{
    margin-top: 40px;
  }

  .contact-form{
    padding: 35px 40px;
  }
}

.scrollToTop-btn{
  z-index: 999;
  position: fixed;
  background: #3a6cf4;
  color: #fff;
  width: 45px;
  height: 45px;
  right: 0;
  bottom: 10px;
  font-size: 22px;
  text-align: center;
  line-height: 45px;
  border-radius: 3px;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
}

.scrollToTop-btn.active{
  right: 20px;
  opacity: 1;
  pointer-events: auto;
}

.reveal{
  position: relative;
  transform: translateY(50px);
  opacity: 0;
  transition: all 1.5s ease;
}

.reveal.active{
  transform: translateY(0);
  opacity: 1;
}
