/* Page Layout */
.about-container {
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: rgba(30, 30, 46, 0.6);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
}

.back-btn:hover {
  color: var(--hover-color);
  transform: translateX(-5px);
  background: rgba(49, 50, 68, 0.8);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(203, 166, 247, 0.2);
}

/* Intro Section */
.intro-card {
  padding: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-color), var(--link-color));
}

.intro-content h2 {
  font-size: 3rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  
  /* 1. Solid Color Fallback (Visible if gradient fails) */
  color: #cba6f7;
  
  /* 2. Define Gradient on Background Image */
  background-image: linear-gradient(to right, #fff, #cba6f7);
  
  /* 3. Clip Background to Text */
  -webkit-background-clip: text;
  background-clip: text;
  
  /* 4. Make Text Transparent (Show Background) */
  -webkit-text-fill-color: transparent;
  
  /* Typewriter Layout */
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 4px solid #cba6f7;
  width: 0;
  
  /* Animations */
  animation: 
    typing 1s steps(8, end) 0.5s forwards,
    blink 0.75s step-end infinite;
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cdd6f4;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

/* Highlight Name Style */
.highlight-name {
  font-weight: 700;
  background-image: linear-gradient(to right, #cba6f7, #89b4fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #cba6f7; /* Fallback */
  display: inline-block; /* Ensures gradient works properly on some browsers */
}

/* Projects Grid */
.section-title {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title i {
  color: var(--accent-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  padding: 1.5rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(203, 166, 247, 0.1);
}

.project-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--link-color);
  background: rgba(137, 180, 250, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.project-card:hover .project-icon {
  background: var(--accent-color);
  color: #1e1e2e;
  transform: rotate(10deg);
}

.project-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #a6adc8;
}

.project-card:hover .project-text {
  color: #fff;
}

.project-text a {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.project-text a:hover {
  border-bottom-color: var(--accent-color);
}

/* Animations */
@keyframes typing {
  from { width: 0; }
  to { width: 9ch; }
}

@keyframes gradient-flow {
  to { background-position: 200% center; }
}

/* Responsive */
@media (max-width: 768px) {
  .intro-content h2 { font-size: 2rem; }
  .projects-grid { grid-template-columns: 1fr; }
}