
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Roboto:wght@100;300;400;500;700;900&display=swap");
.loader-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #34353b;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader {
  display: inline-block;
  width: 30px;
  height: 30px;
  position: relative;
  border: 4px solid #fff;
  animation: loader 2s infinite ease;
}
.loader-inner {
  vertical-align: top;
  display: inline-block;
  width: 100%;
  background-color: #fff;
  animation: loader-inner 2s infinite ease-in;
}

@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(180deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes loader-inner {
  0% {
    height: 0%;
  }
  25% {
    height: 0%;
  }
  50% {
    height: 100%;
  }
  75% {
    height: 100%;
  }
  100% {
    height: 0%;
  }
}
:root {
  --primary-bg: #34353b;
  --secondary-bg: #3d3e42;
  --accent-color: #fec86a;
  --text-color: #fbfbfb;
  --hover-blue: #198cff;
  --transition-time: 0.3s;
  --box-shadow: 0 10px 20px rgba(254, 200, 106, 0.2);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  padding: 0;
  margin: 0;
  font-family: "Roboto", sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
  user-select: var(--accent-color);
}
::selection {
  color: rgb(7, 0, 217);
  background: rgb(217, 166, 0);
  }

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1024px;
  margin: auto;
  z-index: 200;
  position: sticky;
  padding: 10px 20px;
  backdrop-filter: blur(5px);
  top: 0;
}

.logo img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  filter: invert(70%) sepia(96%) saturate(558%) hue-rotate(359deg)
    brightness(103%) contrast(106%);
}

.nav-links a {
  font-size: 1.1rem;
  padding: 10px 20px;
  color: var(--accent-color);
  text-decoration: none;
  transition: all var(--transition-time) ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--hover-blue);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--hover-blue);
  transition: width var(--transition-time) ease;
}

.nav-links a:hover::after {
  width: 100%;
}
#menu-bar {
  display: none;
}

section {
  min-height: 100vh;
  max-width: 1024px;
  margin: auto;
  padding: 0 5px;
}

.header {
  padding: 20px 0 0;
  background-position: 230px;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100vw;
  overflow: visible;
}

.landing {
  display: flex;
  height: 100vh;
  background-color: transparent;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 5%;
}

.landing .intro {
  display: flex;
  flex: 1 1 50%;
  min-width: 300px;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.landing .intro h3 {
  color: #fbfbfb;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
}

.landing .intro h3 span {
  color: #fec86a;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.intro button {
  height: 48px;
  width: 144px;
  margin-top: 2.5vh;
  background-color: transparent;
  border: 2px solid #fec86a;
  border-radius: 8px;
  color: #fec86a;
  font-size: clamp(14px, 1.5vw, 16px);
  transition: all ease 0.5s;
  align-self: flex-start;
}

.intro button:hover {
  background-color: #fec86a;
  color: #34353b;
}

.landing .img-box {
  flex: 1 1 40%;
  min-width: 300px;
  padding: 20px;
}

.img-box img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.socials {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  bottom: 20px;
  z-index: 5;
}

.socials a {
  text-decoration: none;
  opacity: 0;
  animation: slideInFromRight 0.5s ease-out forwards;
  animation-delay: calc(0.15s * var(--i));
}

@keyframes fadeInLine {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.socials .line {
  background-color: #fec86a;
  height: 15vh;
  width: 2.5px;
  opacity: 0;
  animation: fadeInLine 1s ease forwards;
  animation-delay: 0.2s; /* Adjust delay as needed */
}

.socials i {
  color: #fbfbfb;
  font-size: 36px;
  transition: all 0.3s ease;
}
#linkedin:hover {
  transition: 0.3s all ease;
  color: #198cff;
}
#github:hover {
  transition: 0.3s all ease;
  color: #4078c0;
}
#instagram:hover {
  transition: 0.3s all ease;
  color: #ff009a;
}
#whatsapp:hover {
  transition: 0.3s all ease;
  color: #46b953;
}

.about {
  min-height: auto !important;
  width: 100vw;
  padding: 50px 20px 90px 10px;
  text-align: justify;
}

.about h1 {
  font-size: 56px;
  font-weight: 700;
  color: #fbfbfb;
  font-family: "Libre Baskerville", serif;
}

.about .description {
  display: flex;
  align-items: start;
}

.about .description .line {
  height: 2.5px;
  width: 800px;
  background-color: #fec86a;
  margin-right: 32px;
}

.about .description p {
  color: #fbfbfb;
  font-size: 20px;
}

.about .description p span {
  color: #fec86a;
}
.skills {
  z-index: -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 5px;
}

.skills h1 {
  font-size: 56px;
  font-weight: 700;
  color: #fbfbfb;
  font-family: "Libre Baskerville", serif;
}

.cards {
  display: flex;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 50px;
  gap: 2.5vh;
}

.skill-card {
  height: 150px;
  width: 150px;
  background-color: var(--secondary-bg);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 1.8vh;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.skill-card img {
  height: 75px;
  width: 75px;
  object-fit: contain;
}

.skill-card h2 {
  font-size: 24px;
  font-weight: 400;
  color: #fbfbfb;
}

.portfolio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 5px;
}

.portfolio h1 {
  font-size: 56px;
  font-weight: 700;
  color: #fbfbfb;
  font-family: "Libre Baskerville", serif;
}

.portfolio-cards {
  display: flex;
  flex-wrap: wrap;
  margin-top: 50px;
  gap: 2.5vh;
}

.portfolio-card {
  margin: auto;
  position: relative;
  height: 400px;
  width: 300px;
  background-color: var(--secondary-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--transition-time) ease;
  will-change: transform;
}

.portfolio-card:hover {
  transform: scale(1.03);
  box-shadow: var(--box-shadow);
}

.portfolio-card img {
  position:relative;
  width: 300px;
  height: 400px;
  object-fit: cover;
  object-position: top;
}

.portfolio-card .overlay {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 2.5vh;
  height: 220px;
  width: 301px;
  background-color: #34353ba2;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: all ease 0.5s;
  backdrop-filter: blur(10px) saturate(200%);
}

.portfolio-card .overlay h3 {
  color: #fbfbfb;
  font-size: 24px;
  line-height: 0.5;
}

.portfolio-card .overlay p {
  color: #fbfbfb;
  font-size: 14px;
  text-align: center;
}

.portfolio-card .overlay a {
  text-decoration: none;
  margin: 3px;
  padding: 10px 25px;
  background-color: #fec86a;
  border-radius: 8px;
  color: #34353b;
  font-size: 12px;
  transition: all ease 0.5s;
  cursor: pointer;
}

.portfolio-card img:hover ~ .overlay,
.overlay:hover {
  top: 70%;
  left: 50%;
  transform: translate(-50%, -40%);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  position: relative;
  opacity: 0;
}

.reveal.active {
  animation: fadeIn 0.8s ease forwards;
}
/* Blog Section */
.blog {
  padding: 80px 0;
  background-color: var(--primary-bg);
  text-align: center;
}

.blog h1 {
  font-size: 56px;
  font-weight: 700;
  color: var(--text-color);
  font-family: "Libre Baskerville", serif;
  position: relative;
  margin-bottom: 60px;
}

.blog h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

.blog-posts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-post {
  flex: 0 1 450px;
  background: var(--secondary-bg);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}

@media (max-width: 768px) {
  .blog-post {
    flex: 0 1 100%;
    max-width: 100%;
  }
}

.blog-post {
  background: var(--secondary-bg);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: left;
  width: 100%;
}

.blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.blog-post h2 {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.blog-post h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-color);
}

.post-date {
  color: var(--accent-color);
  font-size: 0.9rem;
  /* margin-bottom: 15px; */
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-date::before {
  content: '📅';
}

.post-excerpt {
  color: var(--text-color);
  margin-bottom: 25px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.read-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 6px;
  background: rgba(254, 200, 106, 0.1);
}

.read-more i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.read-more:hover {
  background: rgba(254, 200, 106, 0.2);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Blog Post Template Styles */
.blog-post-container {
  max-width: 800px;
  margin: 100px auto;
  padding: 0 20px;
}

.blog-post-content {
  background: var(--secondary-bg);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--box-shadow);
}

.blog-post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}


.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  color: var(--text-color);
  align-items: center;
  opacity: 0.8;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-category{
  background: var(--primary-bg);
  padding: 2px 15px;
  border-radius: 20px;
}
.post-body {
  line-height: 1.8;
  color: var(--text-color);
}

.post-body h2 {
  margin: 30px 0 15px;
  color: var(--accent-color);
}

.post-body ul,
.post-body ol,
.post-body {
  margin-left: 20px;
}
.post-body a{
  color: var(--accent-color);
}
/* Table styling consistent with existing design */

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
  color: var(--text-color);
  background-color: var(--secondary-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.table thead tr {
  background-color: var(--primary-bg);
  color: var(--accent-color);
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--accent-color);
}

.table th,
.table td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table tbody tr:hover {
  background-color: var(--primary-bg);
  cursor: default;
  transition: background-color 0.3s ease;
}

.table tbody tr:last-child td {
  border-bottom: none;
}


.social-share {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 40px 0;
}

.social-share a {
  color: var(--accent-color);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.social-share a:hover {
  transform: translateY(-3px);
}
.post-paging{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(254, 200, 106, 0.1);
  transition: all 0.3s ease;
}
.disable{
  pointer-events: none;
  opacity: 60%;
}

.back-to-blog:hover {
  background: rgba(254, 200, 106, 0.2);
}

.view-all-posts {
  display: block;
  text-align: center;
  margin: 40px auto;
  max-width: 200px;
  padding: 12px 25px;
  background: var(--accent-color);
  color: var(--primary-bg);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-all-posts:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(254, 200, 106, 0.3);
}

.contact {
  text-align: center;
}

.contact h1 {
  padding-top: 75px;
  font-size: 56px;
  font-weight: 700;
  color: #fbfbfb;
  font-family: "Libre Baskerville", serif;
}
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 3rem 2rem;
  background-color: #3d3e42;
  border-radius: 20px;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border: none;
  border-bottom: 2px solid #fec86a;
  color: #fbfbfb;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(5, 3, 0, 0.309);
}

.form-group textarea {
  resize: none;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #fbfbfb;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
  top: -1.5rem;
  left: 0;
  font-size: 0.8rem;
  color: #fec86a;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: #fec86a;
  background: rgba(254, 200, 106, 0.05);
}

.submit-btn {
  background-color: transparent;
  border: 2px solid #fec86a;
  color: #fec86a;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 2rem auto 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.429);
}

.submit-btn:hover {
  background-color: #fec86a;
  color: #34353b;
  box-shadow: 1px 2px 5px rgba(233, 233, 233, 0.4);
  transform: translateY(-2px);
}

.contact-icon i {
  color: #fbfbfb;
  font-size: 36px;
  margin-top: 2rem;
}
.contact-icon a {
  text-decoration: none;
  margin: 0 0.5rem;
}
@media (max-width: 1200px) {
  .landing {
    padding: 0 2%;
  }
  
  .landing .intro {
    flex: 1 1 60%;
  }
  
  .landing .img-box {
    flex: 1 1 35%;
  }
}

@media (max-width: 900px) {
  .landing {
    flex-direction: column;
    justify-content: center;
    height: auto;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .landing .intro {
    order: 2;
    text-align: center;
    align-items: center;
    margin-bottom: 40px;
  }
  
  .landing .img-box {
    order: 1;
    margin-bottom: 40px;
    max-width: 400px;
  }
  
  .intro button {
    align-self: center;
  }
  
  .socials {
    position: static;
    order: 3;
    flex-direction: row;
    margin-top: 30px;
    gap: 20px;
  }
  
  .socials .line {
    display: none;
  }
}

@media (max-width: 570px) {
  .landing .intro h3 {
    font-size: clamp(24px, 6vw, 28px);
  }
  
  .landing .intro h3 span {
    font-size: clamp(2.2rem, 7vw, 2.6rem);
  }
  
  .intro button {
    height: 40px;
    width: 120px;
    font-size: 14px;
  }
  
  .socials i {
    font-size: 40px;
  }
  nav {
    flex-direction: row-reverse;
  }

  .nav-links {
    display: none;
    transition: 0.3s all ease;
  }

  .logo img {
    height: 36px;
    width: 36px;
  }

  #menu {
    z-index: 20;
  }

  #menu-bar {
    display: block;
    width: 30px;
    height: 30px;
    margin: 17px 0 0;
    cursor: pointer;
  }

  .bar {
    height: 4px;
    width: 100%;
    background-color: #fec86a;
    display: block;
    border-radius: 5px;
    transition: 0.3s ease;
  }

  #bar1 {
    transform: translateY(-4px);
  }

  #bar3 {
    transform: translateY(4px);
  }

  .menu-bg,
  #menu {
    top: 0;
    left: 0;
    position: absolute;
  }

  .menu-bg {
    z-index: 10;
    width: 0;
    height: 0;
    transform: translate(-100%, -80%);
    background: radial-gradient(circle, #fec86acc, #ffb22dcc);
    border-radius: 50%;
    transition: 0.3s ease;
    backdrop-filter: blur(5px);
  }

  .change {
    display: block;
  }

  .change-nav {
    text-align: center;
    top: 150px;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    display: flex;
    flex-direction: column;
    transition: 0.3s all ease;
  }

  .change-nav a {
    color: #000000;
  }

  .change .bar {
    background-color: #34353b;
  }

  .change #bar1 {
    transform: translateY(3px) rotateZ(-45deg);
  }

  .change #bar2 {
    opacity: 0;
  }

  .change #bar3 {
    transform: translateY(-5.5px) rotateZ(45deg);
  }

  .change-bg {
    width: 200vw;
    height: 200vw;
    transform: translate(-50%, -50%);
  }
}
.visits{
  text-align: center;
  margin-top: 30px;
}