/* Home Page Specific Styles - Professional Personal Website Design */

/* Hero Section - Clean and Impactful */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  position: relative;
  max-width: 900px;
}

.hero-greeting {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-name {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: #3498db;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 700px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-keyword {
  background: rgba(52, 152, 219, 0.2);
  border: 1px solid rgba(52, 152, 219, 0.4);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.hero-keyword:hover {
  background: rgba(52, 152, 219, 0.4);
  transform: translateY(-2px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  color: white;
}

.hero-btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  color: white;
}

/* Quick Stats Section */
.quick-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #3498db;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Featured Section */
.featured-section {
  padding: 5rem 5%;
  background: var(--bg-color);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50px;
  background: linear-gradient(90deg, #3498db, #e74c3c);
  border-radius: 2px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  gap: 0.75rem;
  color: var(--accent-color);
}

/* Featured Cards Grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.featured-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.featured-card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.25rem;
}

.featured-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.featured-card-meta {
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-card-description {
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.featured-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.featured-card-link:hover {
  gap: 0.75rem;
  color: var(--accent-color);
}

/* About Preview Section */
.about-preview {
  padding: 5rem 5%;
  background: linear-gradient(180deg, var(--bg-color) 0%, rgba(52, 152, 219, 0.05) 100%);
}

.about-preview-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.about-preview-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.expertise-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.expertise-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  padding: 0.6rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  color: var(--text-color);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.expertise-badge i {
  color: var(--primary-color);
}

.expertise-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .hero-name {
    font-size: 2.8rem;
  }
  
  .hero-title {
    font-size: 1.3rem;
  }
  
  .quick-stats {
    gap: 2rem;
  }
  
  .about-preview-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    padding: 3rem 1.5rem;
  }
  
  .hero-name {
    font-size: 2.2rem;
  }
  
  .hero-title {
    font-size: 1.1rem;
  }
  
  .hero-tagline {
    font-size: 1rem;
  }
  
  .hero-keywords {
    gap: 0.5rem;
  }
  
  .hero-keyword {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }
  
  .hero-btn {
    justify-content: center;
    width: 100%;
  }
  
  .quick-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .stat-item {
    min-width: 80px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}

/* ===== Blog Section: Section Subtitle ===== */
.section-subtitle {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-top: 0.4rem;
  margin-bottom: 0;
  flex-basis: 100%;
}

/* ===== Blog Category Filter Bar ===== */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.blog-filter-btn {
  background: var(--card-bg);
  border: 1px solid rgba(52, 152, 219, 0.3);
  color: var(--text-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* ===== Blog Cards Grid ===== */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* ===== Individual Blog Card ===== */
.blog-card {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  border-color: var(--primary-color);
}

/* Thumbnail area (gradient + icon acts as image placeholder) */
.blog-card-thumb-link {
  display: block;
  text-decoration: none;
}

.blog-card-thumbnail {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
}

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

/* Card body */
.blog-card-body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-category {
  display: inline-block;
  background: rgba(52, 152, 219, 0.12);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  margin-bottom: 0.65rem;
  align-self: flex-start;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.blog-card-desc {
  font-size: 0.88rem;
  color: var(--text-color);
  opacity: 0.78;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.blog-card-link {
  align-self: flex-start;
  font-size: 0.88rem;
}

/* Hide filtered-out cards */
.blog-card.hidden {
  display: none;
}

/* ===== Responsive: Blog Cards ===== */
@media (max-width: 768px) {
  .blog-cards-grid {
    grid-template-columns: 1fr;
  }

  .blog-filter-bar {
    gap: 0.4rem;
  }

  .blog-filter-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .blog-card-thumbnail {
    height: 130px;
    font-size: 2.5rem;
  }
}
