@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: #03045E;
  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: #271033;
  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;
}


/* Blog Post Styles */
.blog-post {
  padding: 60px;
  max-width: 850px;
  margin: 80px auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease-in-out;
}

.post-header {
  text-align: center;
  margin-bottom: 30px;
}

.post-category {
  font-size: 0.8em;
  font-weight: 600;
  color: #4A90E2;
  background-color: #e8f0fe;
  display: inline-block;
  padding: 6px 15px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.post-title {
  font-size: 3em;
  font-weight: bold;
  color: #2C3E50;
  line-height: 1.2;
}

.post-subtitle {
  font-size: 1.1em;
  color: #7f8c8d;
  margin-bottom: 30px;
  line-height: 1.6;
}

.post-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease-in-out;
}

.post-image img:hover {
  transform: scale(1.03);
  transition: transform 0.5s ease-in-out;
}

.post-content h2 {
  font-size: 1.9em;
  font-weight: 700;
  color: #2C3E50;
  margin-top: 30px;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.post-content h2:hover {
  color: #4A90E2;
}

.post-content p {
  font-size: 1.1em;
  line-height: 1.9;
  color: #555;
  margin-bottom: 20px;
}

/* Smooth Hover Effects */
.blog-post:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
  transition: all 0.4s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-post {
    padding: 30px;
  }

  .post-title {
    font-size: 2em;
  }

  .post-content h2 {
    font-size: 1.5em;
  }
}



/* Author Card Glowing Effect */
@property --rotate {
  syntax: "<angle>";
  initial-value: 132deg;
  inherits: false;
}

:root {
  --card-height: 350px;
  --card-width: 300px;
}

.author-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0; /* Reduced padding */
  margin: 10px auto 10px auto; /* Close to blog post */
  max-width: 850px; /* Same width as blog post */
}

.card {
  background: #3c67e3; /* Dark background */
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding: 30px;
  transition: all 0.4s ease-in-out;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Glowing Border Only */
.card::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(45deg, #5ddcff, #3c67e3, #4e00c2);
  z-index: -1;
  filter: blur(10px);
  animation: borderSpin 4s linear infinite;
  opacity: 1;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(25, 28, 41, 0.95);
  z-index: -1;
  backdrop-filter: blur(20px);
}

/* Glowing Border Effect */
.card.glow::before,
.card.glow::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  background: linear-gradient(var(--rotate), #5ddcff, #3c67e3 43%, #4e00c2);
  z-index: -1;
  animation: spin 8s linear infinite;
}

.card.glow::after {
  filter: blur(50px);
  opacity: 0.10;
}

@keyframes spin {
  0% { --rotate: 0deg; }
  100% { --rotate: 360deg; }
}



/* Author Card Content */
.author-content {
  color: #fff;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #5ddcff;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.author-name {
  font-size: 1.8em;
  font-weight: 700;
  color: #5ddcff;
  margin-bottom: 10px;
}

.author-description {
  font-size: 1em;
  color: #c7c7c7;
  line-height: 1.5;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .author-card {
    padding: 30px 20px;
  }
  .card {
    --card-height: 300px;
    --card-width: 250px;
  }
  .author-name {
    font-size: 1.5em;
  }
  .author-description {
    font-size: 0.9em;
  }
}






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;
}
