/* ============================================
   Custom Styles for Enhanced Design
   ============================================ */

/* === Global Background === */
body {
  background-color: #f5f7fa !important;
  background-image: 
    linear-gradient(90deg, rgba(200, 200, 220, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(200, 200, 220, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.page-content {
  background: transparent;
}

.wrapper {
  background: transparent;
}

/* === Hero Section === */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 100px 0 120px;
  margin: -20px -20px 60px -20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-cta {
  display: inline-flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: white;
  color: #4f46e5;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background: white;
  color: #4f46e5;
}

/* === Post Cards === */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 35px;
  margin: 40px 0 60px 0;
  padding: 0;
}

.post-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
  border-color: #818cf8;
}

.post-card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px 20px;
  color: white;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.post-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.post-card-icon {
  font-size: 3rem;
  opacity: 0.95;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.post-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 12px;
}

.post-meta i {
  color: #4f46e5;
}

.post-link {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.post-link:hover {
  color: #4f46e5;
  text-decoration: none;
}

.post-excerpt {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: auto;
}

/* === Enhanced Header === */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 4px solid #4f46e5;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-title-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.75rem;
}

.page-link {
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.page-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4f46e5;
  transition: width 0.3s ease;
}

.page-link:hover::after {
  width: 100%;
}

/* === Enhanced Footer === */
.site-footer {
  background: #1e293b;
  color: #cbd5e1;
  border-top: none;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.site-footer h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-col-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #818cf8;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  text-align: center;
  font-size: 0.875rem;
}

.social-media-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-media-list a {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.social-media-list a:hover {
  color: #818cf8;
  transform: translateX(5px);
}

.social-media-list i {
  font-size: 1.25rem;
  width: 25px;
}

/* === Content Sections === */
.section-header {
  text-align: center;
  margin: 0 0 50px 0;
  padding: 40px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
}

/* === Enhanced Post Content === */
.post-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 0;
  border-bottom: 2px solid #e2e8f0;
}

.post-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  line-height: 1.2;
}

.post-header .post-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.post-header .post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
}

.post-content h2 {
  color: #1e293b;
  font-weight: 600;
  margin-top: 50px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.post-content h3 {
  color: #334155;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
}

.post-content a {
  color: #4f46e5;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.post-content a:hover {
  border-bottom-color: #4f46e5;
}

.post-content code {
  background: #f1f5f9;
  color: #ec4899;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
}

.post-content pre {
  background: #f8fafc;
  color: #1e293b;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 25px 0;
  border: 1px solid #e2e8f0;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border: none;
}

.post-content blockquote {
  border-left: 4px solid #4f46e5;
  background: #f8fafc;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  font-style: normal;
}

.post-content img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 30px 0;
}

/* === Post Navigation === */
.post-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e2e8f0;
}

.post-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-nav-link:hover {
  background: white;
  border-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.post-nav-link i {
  font-size: 1.5rem;
  color: #4f46e5;
}

.post-nav-link div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.post-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 600;
}

.post-nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.post-nav-next {
  justify-content: flex-end;
  text-align: right;
}

/* === About Page === */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

/* === Professional About Page === */
.about-professional {
  max-width: 1200px;
  margin: 0 auto;
}

.about-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 40px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.about-hero-content {
  position: relative;
  z-index: 1;
}

.profile-image-placeholder {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.2);
  border: 4px solid white;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  backdrop-filter: blur(10px);
}

.professional-name {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.professional-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  opacity: 0.95;
  font-weight: 500;
}

.professional-company {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.professional-company i {
  margin-right: 8px;
}

.professional-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.social-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-icon:hover {
  background: white;
  color: #4f46e5;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.professional-summary {
  background: white;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 40px;
  border-left: 5px solid #4f46e5;
}

.summary-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
  margin: 0;
}

.section-title-pro {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.title-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Competencies Grid */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.competency-item {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
}

.competency-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.15);
  border-color: #818cf8;
}

.competency-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.competency-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
}

.competency-item p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Expertise Section */
.expertise-section {
  background: white;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.expertise-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

.expertise-column h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.expertise-column h4 i {
  color: #4f46e5;
  font-size: 1.25rem;
}

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

.expertise-list li {
  padding: 12px 0;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  padding-left: 25px;
}

.expertise-list li:last-child {
  border-bottom: none;
}

.expertise-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #4f46e5;
  font-weight: bold;
}

/* Mission Section */
.mission-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  padding: 50px;
  border-radius: 16px;
  margin-bottom: 40px;
  border: 2px solid #e2e8f0;
}

.mission-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.mission-card {
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.mission-card:hover {
  transform: translateY(-5px);
  border-color: #4f46e5;
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.2);
}

.mission-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.mission-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 15px;
}

.mission-card p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Contact Section */
.contact-section {
  background: white;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.contact-intro {
  font-size: 1.125rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: white;
  border-color: #4f46e5;
  transform: translateX(5px);
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.15);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  flex-shrink: 0;
}

.contact-icon.linkedin {
  background: #0077b5;
}

.contact-icon.github {
  background: #333;
}

.contact-icon.email {
  background: #4f46e5;
}

.contact-details {
  flex-grow: 1;
}

.contact-details h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 5px 0;
}

.contact-details p {
  color: #64748b;
  margin: 0;
  font-size: 0.9rem;
}

.contact-card > .fa-arrow-right {
  color: #cbd5e1;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.contact-card:hover > .fa-arrow-right {
  color: #4f46e5;
  transform: translateX(5px);
}

/* Responsive About Page */
@media (max-width: 768px) {
  .about-hero {
    padding: 60px 20px;
  }
  
  .professional-name {
    font-size: 2.25rem;
  }
  
  .professional-title {
    font-size: 1.25rem;
  }
  
  .professional-summary,
  .expertise-section,
  .mission-section,
  .contact-section {
    padding: 30px 20px;
  }
  
  .section-title-pro {
    font-size: 1.5rem;
  }
  
  .competencies-grid,
  .expertise-columns,
  .mission-content,
  .contact-methods {
    grid-template-columns: 1fr;
  }
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .post-list {
    grid-template-columns: 1fr;
  }
  
  .post-title {
    font-size: 2.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .footer-col-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .post-navigation {
    grid-template-columns: 1fr;
  }
  
  .post-nav-next {
    justify-content: flex-start;
    text-align: left;
  }
  
  .about-section {
    padding: 25px;
  }
  
  .contact-links {
    flex-direction: column;
  }
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }

/* === Utility Classes === */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 40px;
}

.mb-4 {
  margin-bottom: 40px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: #818cf8;
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === Pagination === */
.pager {
  margin: 60px 0 40px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li {
  display: inline-block;
}

.pagination a {
  display: inline-block;
  padding: 12px 24px;
  background: white;
  color: #4f46e5;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.current-page {
  padding: 12px 24px;
  background: #4f46e5;
  color: white;
  border-radius: 8px;
  font-weight: 600;
}

.pager-edge {
  color: #cbd5e1;
  font-size: 1.5rem;
}

/* === Home Page Specific === */
.home {
  min-height: calc(100vh - 400px);
}

.home .wrapper {
  max-width: 1400px;
}
