/* 
Theme Name: Portfolio
*/

/* ===== RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --card-bg: #f8f8f8;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --shadow: rgba(0, 0, 0, 0.1);
  --black : #000;
  --white:#fff;
}

body.dark-mode {
    --black: #fff;
    --white: #000;
  --bg-color: #121212;
  --text-color: #ffffff;
  --card-bg: #1e1e1e;
  --nav-bg: rgba(30, 30, 30, 0.95);
  --shadow: rgba(255, 255, 255, 0.05);
}

/* ===== BASE STYLES ===== */
body {
  font-family: "Jost", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}
#heading, #description {
  transform: translateY(100%);
  opacity: 0;
 
}
.container {
  top: 0;
  left: 0;
  width: 100%;
}

a {
  color: var(--text-color);
  letter-spacing: 0.1rem;
}

/* ===== TOP BAR & SOCIAL LINKS ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  background: var(--nav-bg);
  z-index: 300;
  box-shadow: 0 2px 10px var(--shadow);
}

.social-links-top {
  display: flex;
  gap: 15px;
}

.social-links-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--text-color);
  color: var(--bg-color);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-links-top a:hover {
  transform: translateY(-3px);
}

.dark-mode-toggle {
  margin-left: 0.7rem;
  background-color: #000 !important;
 color: #fff;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.dark-mode-toggle:has(.fa-sun) {
  color: #000;
  background-color: #fff !important;
}

.dark-mode-toggle:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

.site-logo {
  height: 20px;
  width: auto;
}

/* ===== MAIN SECTIONS ===== */
.section {
  min-height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 30px 20px 20px;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
  transform-origin: center center;
}

.text-container {
  max-width: 1200px;
  padding: 40px 20px 0;
}
#intro .text-container {
  padding: 0 20px;
}
/* Hide scrollbar for aesthetics */
.text-container::-webkit-scrollbar {
  width: 5px;
}

.text-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

body.dark-mode .text-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.text-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 8vw;
  font-weight: 900;
  font-family: "Dancing Script", cursive;
  line-height: 1.1;
  
}

h2 {
  font-family: "Jost", sans-serif;
  letter-spacing: 0.3rem;
  word-spacing: 0.3rem;
  font-size: 3.5vw;
  font-weight: 800;
  margin-bottom: 30px;
  text-transform: uppercase;
  color: var(--text-color);
  opacity: 0.8;
}

h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text-color);
}

p {
  font-size: 2.2vw;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 15px;
  color: var(--text-color);
  opacity: 0.8;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--text-color);
  color: var(--bg-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 50px;
  margin-top: 25px;
  transition: all 0.3s ease;
  border: 2px solid var(--text-color);
}

.btn:hover {
  background-color: var(--bg-color);
  color: var(--text-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow);
}

.btn i {
  margin-right: 10px;
}

.btnshort {
  letter-spacing: 0;
  font-size: 0.7rem;
  padding: 5px 10px;
  margin-left: 2rem;
}

.read-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  font-weight: bold;
  text-decoration: underline;
  padding: 5px 0;
}

/* ===== NAVIGATION ===== */
.nav-bar {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: var(--nav-bg);
  padding: 10px 20px;
  border-radius: 50px;
  z-index: 200;
  box-shadow: 0 5px 25px var(--shadow);
  gap: 15px;
  transition: all 0.3s ease;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 70px;
  color: var(--text-color);
  position: relative;
}
.nav-item a {
  text-decoration: none;
}

.nav-item:hover {
  color: var(--text-color);
  background: var(--bg-color);
}

.nav-item.active {
  background: var(--text-color);
  color: var(--bg-color);
}

.nav-item i {
  font-size: 0.7rem;
  margin-bottom: 5px;
}

.nav-item span {
  font-size: 0.7rem;
  font-weight: 600;
}

.submenu-toggle {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: 5px;
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.submenu-toggle.rotate {
  transform: rotate(180deg);
}

/* Submenu base style */
.sub-menu {
  position: absolute;
  bottom: 100%; /* appear above the parent item */
  left: -60px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px); /* start slightly lower, so it slides up */
  min-width: 200px;
  background: var(--nav-bg);
  border-radius: 10px;
  z-index: 999;
  transition: all 0.3s ease;
  pointer-events: none;
  overflow: hidden;
}

/* Show submenu smoothly when hovered */
#menu-item-39:hover > .sub-menu,
#menu-item-25:hover > .sub-menu,
#menu-item-39 .sub-menu:hover,
#menu-item-25 .sub-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* moves up smoothly */
  pointer-events: auto;
}

/* Submenu link styles */
.sub-menu a {
  display: block;
  padding: 10px 15px;
  color: var(--text-color);
  text-decoration: none;
  transition: background 0.3s ease;
}

.sub-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== HAMBURGER MENU ===== */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== SKILLS SECTION ===== */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
}

.skill-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 10px;
  width: 140px;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
  text-align: center;
}

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

.skill-card i {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.big-skill-box {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 5px 15px var(--shadow);
}

.big-skill-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-color);
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text-color);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.skill-tag {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 55px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.project-card img {
  width: 100%;
  height: 20vh;
}
.project-card {
  background: var(--card-bg);
  border-radius: 12px;
  text-align: left;
 
  transition: transform 0.3s ease;
 
  transition: all 0.3s ease;
}
.project-card:hover{
transform: translateY(-5px);
  box-shadow: 8px 8px 0 #000;
}

.project-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.project-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text-color);
}

.project-card p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-color);
  opacity: 0.8;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tech-tag {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-container {
  width: 100%;
  
}

.experience-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 5px 15px var(--shadow);
  margin-bottom: 20px;
}

.experience-item h3 {
  color: var(--text-color);
  margin-bottom: 10px;
}

.company {
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 10px;
  display: block;
}

.date {
  font-style: italic;
  margin-bottom: 15px;
  display: block;
  color: var(--text-color);
  opacity: 0.7;
}

.experience-item p {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.8;
}

/* ===== CONTACT SECTION ===== */
.contact-info {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--text-color);
  color: var(--bg-color);
  border-radius: 50%;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* ===== SECTION STATES ===== */
.active {
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
  z-index: 10;
}

.next {
  transform: scale(1.8);
  opacity: 0;
  filter: blur(10px);
  z-index: 9;
}

.previous {
  transform: scale(0.5);
  opacity: 0;
  filter: blur(5px);
  z-index: 8;
}

/* ===== STATS SECTION ===== */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.8;
}

/* ===== BIO SECTION ===== */
.bio-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  flex-direction: column;
}

.bio-text {
  text-align: center;
}

.bio-text p {
  font-size: 1.2rem;
  line-height: 1.2;
}

.achievements-list p {
  font-size: 1.1rem;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 3px 10px var(--shadow);
}

/* ===== LOADER ===== */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.name-loader {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.letter-box {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  background-color: var(--bg-color);
 color: var(--text-color);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.space {
  width: 15px;
}

.loader-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  opacity: 0;
}

.progress-bar {
  width: 250px;
  height: 2px;
  background-color: #e0e0e0;
  overflow: hidden;
  border-radius: 2px;
}

.progress {
  height: 100%;
  width: 0%;
  background-color: #000000;
  transition: width 0.4s ease;
}

/* ===== BLOG SECTIONS ===== */
.blog-categories-section {
  padding: 3rem 0;
  border-bottom: 2px solid #000;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.category-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.5rem;
  border: 2px solid #000;
background-color: var(--bg-color);
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0 #000;
}

.category-card:hover {
 background-color: var(--black);
 color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.category-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.post-count {
  background-color: var(--bg-color);
 color: var(--text-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.category-card:hover .post-count {
background-color: var(--bg-color);
  color: var(--text-color);
}

/* Latest Blogs Section */

.category-blogs-section {
  padding: 3rem 0;
}

.blogs-container,
.category-blogs-section {
  max-width: 1200px;
  margin: 0 auto;
}

.blogs-grid,
.category-posts-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card,
.category-post-card {
  border: 2px solid #000;
  padding: 2rem;
background-color: var(--bg-color);
  transition: all 0.3s ease;
  position: relative;
}

.blog-card:hover,
.category-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 #000;
}

.blog-title,
.post-title {
  margin-bottom: 1rem;
}

.blog-title a,
.post-title a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.blog-title a {
  font-size: 1.4rem;
}

.post-title a {
  font-size: 1.6rem;
}

.blog-title a:hover,
.post-title a:hover {
  text-decoration: underline;
}

.blog-date,
.post-date {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.post-date {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.section-title,
.section-main-title {
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
      margin-top: 1rem;

}

.section-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #000;
}

.section-main-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.section-main-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: #000;
}

.post-excerpt {
  margin-bottom: 2rem;
  line-height: 1.7;
  color: #333;
}

.read-more-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border: 2px solid #000;
background-color: var(--white);
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more-btn:hover {
  background: var(--black);
 color: var(--white);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #000;
}

.pagination-wrapper,
.category-pagination {
  padding: 2rem 0;
  border-top: 1px solid #ddd;
}

.category-pagination {
  border-top: 1px solid #eee;
}

.wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wp-pagenavi a,
.wp-pagenavi span {
  padding: 0.8rem 1.2rem;
  border: 2px solid #000;
  text-decoration: none;
  color: var(--white);
background-color: var(--black);
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 45px;
  text-align: center;
}

.wp-pagenavi a:hover,
.wp-pagenavi span.current {
  background: var(--white);
 color: var(--black);
  transform: translateY(-2px);
}

.no-posts-message,
.no-posts-container {
  text-align: center;
  border: 2px dashed #ddd;
  margin: 2rem 0;
}
.pagination {
  margin-top: 2rem;
}
.no-posts-message {
  padding: 3rem;
  font-size: 1.2rem;
  color: #666;
}

.no-posts-container {
  padding: 4rem 2rem;
}

.no-posts-text {
  font-size: 1.2rem;
  color: #666;
}

/* ===== POST DETAIL SECTION ===== */
.post-detail-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #000;
}

.post-main-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.post-main-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #000;
}

.post-content-wrapper {
background-color: var(--bg-color);
  border: 2px solid #000;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 8px 8px 0 #000;
}

.post-featured-image {
  margin-bottom: 2.5rem;
  text-align: center;
}

.featured-img {
  max-width: 100%;
  height: auto;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
}

.post-title-detailed {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.post-content {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 2.5rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.post-content blockquote {
  border-left: 4px solid #000;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  background: #f9f9f9;
  padding: 1.5rem;
  border: 1px solid #ddd;
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-meta-detailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--bg-color);
  border: 2px solid #000;
  margin-top: 2rem;
}

.author-info,
.date-info {
  text-align: center;
}

.meta-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  color: #666;
}

.author-name,
.publish-date {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
}

.comments-section {
background-color: var(--bg-color);
  border: 2px solid #000;
  padding: 2.5rem;
  box-shadow: 8px 8px 0 #000;
}

.comments-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #000;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment {
  border: 1px solid #ddd;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: #f8f8f8;
}

.comment-meta {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.comment-author {
  font-weight: 700;
  color: var(--text-color);
}

.comment-metadata {
  font-size: 0.9rem;
  color: #666;
}

.comment-content {
  line-height: 1.6;
}

.comment-respond {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #000;
}

.comment-reply-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.comment-form {
  display: grid;
  gap: 1rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #000;
background-color: var(--bg-color);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  box-shadow: 4px 4px 0 #000;
  transform: translate(-2px, -2px);
}

.comment-form .submit {
  background: #000;
 color: var(--text-color);
  border: 2px solid #000;
  padding: 1rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  justify-self: start;
}

.comment-form .submit:hover {
background-color: var(--bg-color);
  color: var(--text-color);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #000;
}

/* ===== LATEST POSTS SECTION ===== */
.latest-posts-section {
  border-top: 2px solid #000;
}

.section-subtitle {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #000;
}

.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.latest-post-card {
  border: 2px solid #000;
background-color: var(--bg-color);
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0 #000;
  overflow: hidden;
}

.latest-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 #000;
}

.latest-post-image {
  overflow: hidden;
  border-bottom: 2px solid #000;
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.latest-post-card:hover .post-thumbnail {
  transform: scale(1.05);
}

.latest-post-content {
  padding: 1.5rem;
}

.latest-post-title {
  margin-bottom: 1rem;
}

.latest-post-title a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.3s ease;
}

.latest-post-title a:hover {
  text-decoration: underline;
}

.latest-post-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.latest-post-meta {
  margin-bottom: 1.5rem;
}

.latest-post-date {
  color: #888;
  font-size: 0.9rem;
  font-weight: 500;
}

.read-more-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 2px solid #000;
background-color: var(--white);
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more-link:hover {
  background: var(--black);
 color: var(--white);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #000;
}

/* ===== LATEST PROJECTS SECTION ===== */
#latest-projects {
  padding: 1rem 0;
  border-top: 2px solid #000;
}

.project-image {
  border-bottom: 2px solid #000;
  overflow: hidden;
}

.project-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.project-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 2px solid #000;
background-color: var(--bg-color);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-link:hover {
  background: var(--black);
 color: var(--white);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #000;
}

/* ===== LATEST BLOGS GRID ===== */
#latest-blogs {
  border-top: 2px solid #000;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.blog-image {
  border-bottom: 2px solid #000;
  overflow: hidden;
}

.blog-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-thumbnail {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  margin-bottom: 1rem;
}

.blog-title a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.3s ease;
}

.blog-title a:hover {
  text-decoration: underline;
}

.blog-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.blog-meta {
  margin-bottom: 1.5rem;
}

.blog-date {
  color: #888;
  font-size: 0.9rem;
  font-weight: 500;
}

.view-all-container {
  text-align: center;
  margin-top: 3rem;
}

.view-all-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 2px solid #000;
  background: var(--black);
 color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.view-all-btn:hover {
background-color: var(--bg-color);
  color: var(--text-color);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #000;
}

/* ===== CATEGORIES SECTION ===== */
#categories {
  padding: 4rem 0;
  border-top: 2px solid #000;
  margin-bottom: 2rem;
}

.no-projects,
.no-blogs,
.no-categories {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  h1 {
    font-size: 8vw;
  }

  h2 {
    font-size: 4vw;
  }

  p {
    font-size: 2.8vw;
  }

  .contact-info {
    font-size: 2.2vw;
  }

  .nav-item {
    padding: 8px 12px;
    min-width: 60px;
  }

  .nav-item i {
    font-size: 1.1rem;
  }

  .nav-item span {
    font-size: 0.7rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 10vw;
  }

  h2 {
    font-size: 5vw;
    font-weight: bold;
  }

  p {
    font-size: 3.8vw;
  }

  .contact-info {
    font-size: 3.5vw;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-bar {
    bottom: 20px;
    padding: 35px 20px 15px 60px;
    width: 90%;
    max-width: 400px;
  }

  .hamburger-menu {
    display: flex;
  }

  .nav-item:not(:first-child) {
    display: none;
  }

  .nav-item:first-child {
    display: flex;
    margin-left: auto;
  }

  .nav-bar.menu-active {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
  }

  .nav-bar.menu-active .nav-item {
    display: flex;
    min-width: 60px;
    padding: 8px;
  }

  .nav-bar.menu-active .nav-item i {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }

  .nav-bar.menu-active .nav-item span {
    font-size: 0.6rem;
  }

  .top-bar {
    padding: 12px 20px;
  }

  .social-links-top a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .skill-card {
    width: 120px;
    padding: 15px;
  }

  .skill-card i {
    font-size: 2rem;
  }

  .big-skill-box {
    padding: 20px;
  }

  .stats-container {
    gap: 20px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .bio-container {
    flex-direction: column;
    text-align: center;
  }

  .bio-text p {
    font-size: 1.1rem;
  }

  .blog-categories-section,
  .latest-blogs-section,
  .category-blogs-section {
    padding: 0 1rem;
  }

  .category-card {
    padding: 1.2rem;
  }

  .blog-card,
  .category-post-card {
    padding: 1.5rem;
  }

  .blog-title a {
    font-size: 1.2rem;
  }

  .post-title a {
    font-size: 1.4rem;
  }

  .section-title,
  .section-main-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .read-more-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .wp-pagenavi a,
  .wp-pagenavi span {
    padding: 0.6rem 1rem;
    min-width: 40px;
  }

  .post-detail-section {
    padding: 1.5rem 1rem;
  }

  .post-main-title {
    font-size: 2rem;
  }

  .post-content-wrapper {
    padding: 2rem 1.5rem;
  }

  .post-title-detailed {
    font-size: 1.6rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-meta-detailed {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .comments-section {
    padding: 2rem 1.5rem;
  }

  .comments-title {
    font-size: 1.5rem;
  }

  #latest-projects,
  #latest-blogs,
  #categories {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .view-all-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .latest-posts-section {
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .section-subtitle {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .latest-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .latest-post-content {
    padding: 1.25rem;
  }

  .latest-post-title a {
    font-size: 1.2rem;
  }

  .post-thumbnail {
    height: 180px;
  }
}

@media (max-width: 480px) {
  h1 {
      margin-top: 1rem;
    font-size: 12vw;
  }
#projects .text-container{
    padding: 0 10px!important;
}
.category-blogs-section .section-main-title{
    margin-top: 5rem;
}
  h2 {
    font-size: 6vw;
    font-weight: bold;
  }

  p {
    font-size: 4.5vw;
  }

  .contact-info {
    font-size: 4.2vw;
  }
  #categories .text-container {
    display: block;
  }
  .text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  #latest-projects .text-container {
    padding: 0 20px;
  }
  .project-link {
    margin: 0.5rem 0;
  }
  .btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .nav-bar {
    gap: 5px;
    width: 95%;
    height: 50px;
    transition: height 0.5s ease, gap 0.5s ease;
  }

  .nav-bar.menu-active {
    padding-left: 2.2rem;
    height: 20vh;
    gap: 8px;
  }

  .nav-bar.menu-active .nav-item {
    min-width: 55px;
    padding: 6px;
  }

  .hamburger-menu {
    width: 25px;
    height: 20px;
    left: 15px;
  }

  .nav-item {
    padding: 5px 8px;
    min-width: 40px;
  }

  .nav-item i {
    font-size: 0.9rem;
  }

  .nav-item span {
    font-size: 0.55rem;
  }

  .top-bar {
    padding: 10px 15px;
  }

  .social-links-top {
    gap: 8px;
  }
  nav-item {
    padding: 5px 8px;
    min-width: 40px;
    opacity: 0; 
    transform: translateY(-20px); 
    transition: all 200ms ease-out;
  }

  .nav-bar.menu-active .nav-item {
    opacity: 1;
    transform: translateY(0); 
  }



  .hamburger-menu {
    width: 25px;
    height: 20px;
    left: 15px;
    cursor: pointer;
  }
  .social-links-top a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .dark-mode-toggle {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  .section {
    min-height: 100vh;
    padding: 0;
  }

  .skills-container {
    gap: 10px;
    margin: 5px 0;
  }

  .skill-card {
    width: 100px;
    padding: 12px;
  }

  .skill-card i {
    font-size: 1.4rem;
  }

  .skill-card h3 {
    font-size: 0.9rem;
  }

  .big-skill-box {
    padding: 15px;
    margin: 10px 0;
  }

  .big-skill-box h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .skill-tag {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .stats-container {
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .profile-photo {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .bio-text p {
    font-size: 1rem;
  }

  .achievements-list p {
    font-size: 1rem;
  }

  .name-loader {
    gap: 3px;
    margin-bottom: 12px;
  }

  .letter-box {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .space {
    width: 6px;
  }

  .loader-text {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .progress-bar {
    width: 160px;
  }

  .section-title,
  .section-main-title {
      margin-top: 2rem;
    font-size: 2.6rem;
  }

  .category-card {
    gap: 0.8rem;
    text-align: center;
  }

  .blog-card,
  .category-post-card {
    padding: 1rem;
  }

  .post-excerpt {
    font-size: 0.95rem;
  }

  .read-more-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
  }

  .wp-pagenavi {
    gap: 0.3rem;
  }

  .wp-pagenavi a,
  .wp-pagenavi span {
    padding: 0.5rem 0.8rem;
    min-width: 35px;
    font-size: 0.9rem;
  }

  .no-posts-container {
    padding: 3rem 1rem;
  }

  .post-detail-section {
    padding: 1rem;
  }

  .post-main-title {
    font-size: 1.8rem;
  }

  .post-content-wrapper {
    padding: 1.5rem 1rem;
  }

  .post-title-detailed {
    font-size: 1.4rem;
  }

  .post-meta-detailed {
    padding: 1rem;
  }

  .comments-section {
    padding: 1.5rem 1rem;
  }

  .comment {
    padding: 1rem;
  }

  .comment-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .comment-form .submit {
    width: 100%;
    justify-self: stretch;
  }

  #latest-projects,
  #latest-blogs,
  #categories {
    padding: 2rem 0;
  }

  .project-content,
  .blog-content {
    padding: 1.25rem;
  }

  .category-card {
    padding: 1.25rem;
  }

  .project-link,
  .read-more-btn {
    width: 100%;
    text-align: center;
  }

  .latest-posts-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
  }

  .section-subtitle {
    font-size: 1.4rem;
  }

  .latest-post-content {
    padding: 1rem;
  }

  .latest-post-title a {
    font-size: 1.1rem;
  }

  .post-thumbnail {
    height: 160px;
  }

  .read-more-link {
    width: 100%;
    margin: 0.2rem 0;
    text-align: center;
    padding: 0.8rem;
  }
}

/* ===== LARGE SCREENS ===== */
@media (min-width: 1200px) {
  .category-posts-grid {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
  }

  .post-detail-section {
    max-width: 1000px;
  }

  .post-content-wrapper {
    padding: 3rem;
  }

  .latest-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== SPECIFIC SECTION DISPLAY ===== */
#intro,
#latest-blogs,
#latest-projects,
#categories {
  display: flex;
  justify-content: center;
}

#intro {
  height: 90vh;
  align-items: center;
}

#projects .text-container {
  padding: 0 40px;
}
#categories {
  padding: 0;
}
#projectss {
  display: flex;
  justify-content: center;
  align-items: center;
}
.text-container h1 {
  text-align: center;
}

.post-content p {
  font-size: 1rem;
}
.post-content h2 {
  font-size: 2rem;
}
#projects {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-bottom: 10rem;
}
.post-excerpt p {
  font-size: 1rem;
}

.tech-tag {
  text-transform: uppercase;
}
[aria-current="page"] {
  position: relative;
}

[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 4px;
  background: rgb(4, 4, 4);

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s ease;
}

[aria-current="page"].loaded::after {
  transform: scaleX(1);
}

.sub-menu div a {
  position: relative;
  text-decoration: none;
  transition: 0.2s ease-in all;
}

.sub-menu div a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease, left 0.3s ease;
}

.sub-menu div a:hover::after {
  width: 100%;
  left: 0;
}

.sub-menu div a:hover {
  letter-spacing: 2px;
}
