/* Index Page Specific Styles & Overrides */

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: var(--spacing-xl);
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

/* Hero Gradient - Punchier & Stronger */
.hero-title .hero-name {
  font-weight: 700;
  display: inline-block; 
}

/* Hero Animations */
.hero-intro {
    display: inline-block;
    opacity: 0; /* Prevent flash */
}

.hero-name {
    opacity: 0; /* Prevent flash */
    display: inline-block;
}

.char-reveal {
    display: inline-block;
    opacity: 0; /* Hidden by default */
    will-change: transform, filter, opacity;
    animation: blurReveal 0.5s ease-out forwards;
    color: var(--text-primary);
}

/* Word wrapper to preserve natural word wrapping during animation */
.word-wrap {
    display: inline-block;
    white-space: nowrap;
}

.hero-name .char-reveal {
    /* Gradient specifically for Dert_Eater text */
    background: linear-gradient(to right, #60a5fa, #c084fc, #f472b6); 
    background-repeat: no-repeat; /* Ensure no tiling */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback/Ensure override */
}

.hero-anim-item {
    opacity: 0; /* Hidden by default */
    will-change: transform, filter, opacity;
    /* Animation applied by JS */
}

.hero-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
  word-break: keep-all;
}

.hero-cta-wrapper {
  margin-top: 2rem;
}

.hero-cta-btn {
  color: var(--text-tertiary);
}

/* About Section */
.about-grid {
  display: block; /* Remove grid to allow simple flow, width controlled below */
  max-width: 450px;
  margin: 0 auto;
}

/* Contact Section */
#contact h2 {
  text-align: left;
  max-width: 900px;
  margin: 0 auto var(--spacing-md) auto;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}


/* Contact Form Container */
.contact-form {
  background: var(--bg-secondary);
  padding: var(--spacing-md);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.project-card-visual--photos {
  background: url('/assets/photos/background.svg') center/cover no-repeat;
  /* background-color: #5a4e8a; */
}

.project-card-visual--photos .icon {
  width: 3rem;
  height: 3rem;
  color: white;
}

/* Split Layout */
.content-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
}

.content-split-layout section {
    padding: 0; /* Remove default section padding when nested */
}

/* Allow children to fill grid cell */
.content-split-layout .about-grid,
.content-split-layout .project-card,
.content-split-layout .container { 
    max-width: none; 
}

@media (max-width: 768px) {
  .content-split-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 640px) {
    .social-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
  .hero-title {
    font-size: 3rem; /* Smaller font for mobile */
  }

  .hero-subtitle {
     font-size: 1.25rem;
  }

  .contact-form {
    padding: 1rem;
    border-radius: 12px; /* Slightly smaller radius */
  }
}