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

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0 1rem 0;
  width: 100%;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
}

.pagination-btn {
  min-width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #9a9aa6;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(.disabled) {
  color: #ececf1;
}

.pagination-btn.active {
  color: #a5a7ff;
  font-weight: 500;
}

.pagination-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-prev,
.pagination-next {
  font-size: 16px;
  padding: 0 2px;
}

.pagination-ellipsis {
  color: #6e6e7a;
  font-size: 14px;
  padding: 0 0.25rem;
  user-select: none;
}

/* Pagination responsive */
@media (max-width: 768px) {
  .pagination {
    gap: 0.125rem;
    padding: 0.25rem;
  }

  .pagination-btn {
    min-width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .pagination-prev,
  .pagination-next {
    font-size: 14px;
  }
}

/* Body */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #15151a;
  color: #e8e8ec;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0px;
  width: 100%;
  background: rgba(21, 21, 26, 0.97);
  z-index: 1000;
  border-bottom: 1px solid #2d2d36;
}

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  min-height: 70px;
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  width: 48px;
  height: 48px;
}

.menu-icon {
  display: block;
  width: 30px;
  height: 2px;
  background-color: #9a9aa6;
  position: relative;
  transition: background-color 0.3s;
  margin: 0 auto;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: #9a9aa6;
  transition: transform 0.3s;
  left: 0;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

.mobile-menu-button.active .menu-icon {
  background-color: transparent;
}

.mobile-menu-button.active .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-button.active .menu-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.1rem 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.nav-links a {
  color: #9a9aa6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.nav-links a:hover {
  color: #ececf1;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem 1rem;
  }

  .mobile-menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    height: auto;
    border-bottom: 1px solid #2d2d36;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    background: #15151a;
    z-index: 1000;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
  }
}

/* Hero Section */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  z-index: 2;
  max-width: 1000px;
  padding: 1rem;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 70px;
    align-items: flex-start;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 2.5vw, 4rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #ececf1;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: #cfcfd8 !important;
  margin-bottom: 1rem;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.1rem;
  color: #cfcfd8;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  display: inline-block;
}

.btn-primary {
  background: #6366f1;
  color: white;
}

.btn-primary:hover {
  background: #5558e0;
}

.btn-secondary {
  background: transparent;
  color: #d6d6de;
  border-color: #3a3a45;
}

.btn-secondary:hover {
  border-color: #6366f1;
  color: #a5a7ff;
  background: rgba(99, 102, 241, 0.08);
}

/* My Works Section - Reduced bottom spacing */
#my-works.section {
  padding: 5rem 0 2.5rem 0;
}

/* About Section - Increased bottom spacing */
#about.section {
  padding: 3rem 0 7.5rem 0;
}

.section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #ececf1;
  font-weight: 700;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  background: url("../assets/profile-photo.jpg") center/cover no-repeat;
  border-radius: 16px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: bold;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);

  outline: 1px solid rgba(255, 255, 255, 0.1);
}
.about-content h3 {
  font-size: 1.5rem;
  color: #ececf1;
  margin-bottom: 1rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: #a6a6b0;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.skill-tag {
  background: #1f1f27;
  color: #c9c9d2;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid #2d2d36;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: #1d1d24;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #2d2d36;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border-color: rgba(99, 102, 241, 0.5);
}

/* My Works Cards - Specific Styling */
.mywork-card {
  border: 1px solid #2d2d36;
  box-shadow: none;
  background: #1d1d24;
  min-width: 100px;
  position: relative;
}

.mywork-card:hover {
  transform: translateY(-4px);
  border: 1px solid rgba(99, 102, 241, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  background: #23232b;
}

.mywork-card .card-image {
  height: 200px;
  border-bottom: 1px solid #2d2d36;
  transition: border-color 0.3s ease;
}

.mywork-card .card-content {
  padding: 2rem;
}

.mywork-card .card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ececf1 !important;
  transition: color 0.3s ease;
}

.mywork-card .card-content p {
  color: #9a9aa6;
  font-size: 1.1rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.card-image {
  height: 200px;
  background: #33333b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 3rem;
  position: relative;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(21, 21, 26, 0.88);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #a5a7ff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #ececf1;
}

.card-content p {
  color: #a6a6b0;
  margin-bottom: 1rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(99, 102, 241, 0.12);
  color: #a5a7ff;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Contact Section */
.contact {
  background: #1d1d24;
  border: 1px solid #2d2d36;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
}

.contact h2 {
  margin-bottom: 2rem;
}

.contact p {
  font-size: 1.1rem;
  color: #a6a6b0;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.contact-links a {
  color: #a5a7ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-links a:hover {
  color: #c4c6ff;
}

.contact-icon {
  width: 48px;
  height: 48px;
  transition: filter 0.3s ease;
  filter: brightness(0.9);
  flex-shrink: 0;
}

.contact-icon:hover {
  filter: brightness(1.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #2d2d36;
  color: #6e6e7a;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    gap: 1.5rem;
    font-size: 1rem;
  }

  .nav-links a {
    padding: 0.5rem 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-links {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: nowrap;
  }

  .contact {
    padding: 2rem 1rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .container {
    padding: 0 1rem;
  }
}

/* Extra mobile styles for very small screens */
@media (max-width: 480px) {
  .contact-links {
    gap: 1rem;
    flex-wrap: nowrap;
  }

  .contact {
    padding: 1.5rem 0.5rem;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
}

/* Text Accent */
.glow-text {
  font-weight: 700;
  color: #a5a7ff;
}

/* Smooth Movement Navigation Transition  */
html {
  scroll-behavior: smooth;
}

/* More Blogs Button Container */
.more-blogs-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  width: 100%;
}

.more-blogs-container .btn {
  min-width: 150px;
}

/* Section Subtitle */
.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #9a9aa6;
  margin-top: -1.5rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Developer mode: hide work-in-progress content unless Ctrl+Alt+D is active */
body:not(.developer-mode) [data-wip] {
  display: none !important;
}
