/* ==========================================================================
   Home Page Specific Styles
   ========================================================================== */

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-unit-xl) var(--spacing-unit-md);
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 0.1em; 
    color: var(--color-text-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-top: -1.2em;
    text-shadow: 0 2px 8px rgba(127,83,172,0.07);
}

.hero-tagline-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* UPDATED to reflect inline style: margin-top:-0.5em; margin-bottom:2.2rem; and keeping horizontal margins 0 */
  margin: 2em 0em 2.2rem 0; 
  position: relative;
  min-height: 60px;
}

.hero-tagline {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.1em;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 auto;
  max-width: 100vw;
  margin-top: -0.2em; /* Pull tagline closer to name */
}

.hero-tagline span {
  display: inline-block;
  padding: 0.55em 1.3em;
  font-size: 1.08em;
  font-weight: 600;
  border-radius: 2em;
  box-shadow: 0 2px 8px 0 rgba(127,83,172,0.07);
  border: 1.5px solid var(--color-primary-accent, #7f53ac);
  background: #f8f6fd;
  color: var(--color-primary-accent, #7f53ac);
  letter-spacing: 0.01em;
  text-align: center;
  margin: 0;
  animation: taglineFadeIn 1.2s cubic-bezier(0.4,0,0.2,1) both;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.hero-tagline span:first-child {
    background: linear-gradient(90deg, #e9e6ff 0%, #f5f3ff 100%);
    color: #5c50a0;
    border: 1.5px solid #c9c2f5;
}

.hero-tagline span:nth-child(2) {
    background: linear-gradient(90deg, #e0f2ff 0%, #ebf8ff 100%);
    color: #2577c2;
    border: 1.5px solid #b3dfff;
    animation-delay: 0.2s;
}

.hero-tagline span:nth-child(3) {
    background: linear-gradient(90deg, #fff0e6 0%, #fff7f0 100%);
    color: #ff6f00;
    border: 1.5px solid #ffd6b3;
    animation-delay: 0.4s;
}

.hero-tagline::after {
  display: none;
}

@keyframes taglineFadeIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Featured Projects Section */
.featured-projects-preview {
    padding: var(--spacing-unit-xl) 0;
    max-width: 1200px;
    margin: 0 auto;
}

.project-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-unit-lg);
}

.project-preview-card {
    background: var(--color-background-content);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.card-image-container {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
}

.card-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-preview-card:hover .card-image-container img {
    transform: scale(1.05);
}

.card-content-container {
    padding: var(--spacing-unit-lg);
}

.project-category {
    color: var(--color-primary-accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-unit-xs);
}

.card-content-container h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-unit-sm);
    color: var(--color-text-primary);
}

.card-content-container p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-unit-md);
    line-height: 1.6;
}

.card-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-link {
    color: var(--color-primary-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--color-primary-accent-dark);
}

.small-link {
    font-size: 0.9rem;
    margin-right: var(--spacing-unit-md);
}

/* My Approach Section */
.my-approach-section {
    padding: var(--spacing-unit-xl) 0;
    text-align: center;
}

.approach-items-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-unit-lg);
    margin-top: var(--spacing-unit-lg);
}

.approach-item {
    background: var(--color-background-content);
    padding: var(--spacing-unit-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.approach-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-unit-md);
}

.approach-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.approach-item h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-unit-sm);
    color: var(--color-text-primary);
}

.approach-item p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Brief About Preview */
.brief-about-preview {
    text-align: center;
    padding: var(--spacing-unit-xl) 0;
    max-width: 800px;
    margin: 0 auto;
}

.brief-about-preview p {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: var(--spacing-unit-md) 0;
}

.text-link-arrow {
    color: var(--color-primary-accent);
    text-decoration: none;
    font-weight: 500;
    margin-left: var(--spacing-unit-xs);
    transition: color 0.3s ease;
}

.text-link-arrow:hover {
    color: var(--color-primary-accent-dark);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .hero-content {
    padding-top: 1.5rem;
  }
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
  }
  .hero-tagline-wrapper {
    margin-bottom: 1.3rem;
  }
  .hero-tagline {
    flex-direction: column;
    gap: 0.6em;
  }
  .hero-tagline span {
    font-size: 1em;
    width: 100%;
    min-width: 0;
    max-width: 98vw;
  }
}