/* Page-specific styles with new design system */

.page-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  padding: var(--space-4) 0;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 245, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-header .brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.page-header .brand:hover {
  transform: scale(1.05);
}

.page-header .brand-logo {
  width: 56px;
  height: 42px;
  filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.3));
}

.page-header .brand-name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-white);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-text-white), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: var(--font-size-5xl);
  color: var(--color-text-white);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  background: linear-gradient(135deg, var(--color-text-white), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.page-content {
  padding: var(--space-20) 0;
  min-height: 60vh;
  background: linear-gradient(135deg, var(--color-bg-white) 0%, var(--color-bg-light) 100%);
  position: relative;
}

.page-content::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='%23FF6B35' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-block {
  margin-bottom: var(--space-12);
  background: var(--color-bg-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.page-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.page-block:last-child {
  margin-bottom: 0;
}

.page-block h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-4);
  color: var(--color-text-dark);
  font-weight: var(--font-weight-extrabold);
  font-family: var(--font-family-display);
  letter-spacing: -0.025em;
  position: relative;
}

.page-block h2::after {
  content: '';
  position: absolute;
  bottom: -var(--space-2);
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
}

.page-block p {
  font-size: var(--font-size-lg);
  color: var(--color-text-body);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

.page-block p:last-child {
  margin-bottom: 0;
}

.page-block ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.page-block ul li {
  font-size: var(--font-size-lg);
  color: var(--color-text-body);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2);
}

.page-block ul li:last-child {
  margin-bottom: 0;
}

.page-block ul li strong {
  color: var(--color-text-dark);
  font-weight: var(--font-weight-semibold);
}
.page-empty {
  text-align: center;
  padding: var(--space-20) 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-xl);
  background: var(--color-bg-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  border: 2px dashed var(--color-border);
  position: relative;
  z-index: 1;
}

.page-empty::before {
  content: '🚧';
  display: block;
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

/* Responsive adjustments for pages */
@media (max-width: 768px) {
  .page-hero {
    padding: var(--space-12) 0;
  }

  .page-hero h1 {
    font-size: var(--font-size-3xl);
  }

  .page-content {
    padding: var(--space-12) 0;
  }

  .page-block {
    padding: var(--space-6);
    margin-bottom: var(--space-8);
  }

  .page-block h2 {
    font-size: var(--font-size-2xl);
  }

  .page-block p {
    font-size: var(--font-size-base);
  }

  .page-empty {
    padding: var(--space-12) 0;
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: var(--font-size-2xl);
  }

  .page-block {
    padding: var(--space-4);
  }

  .page-block h2 {
    font-size: var(--font-size-xl);
  }
}

/* About page specific styles */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.content-with-image.reverse {
  direction: rtl;
}

.content-with-image.reverse > * {
  direction: ltr;
}

.content-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.content-image {
  position: relative;
}

.about-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.about-photo:hover {
  transform: scale(1.02);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.mission-item {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.mission-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mission-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-50);
  border-radius: var(--radius-full);
}

.mission-item h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
  color: var(--color-text-dark);
}

.mission-item p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.tech-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.tech-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-50);
  border-radius: var(--radius-lg);
}

.tech-item h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text-dark);
}

.tech-item p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.achievement-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}

.achievement-icon {
  font-size: var(--font-size-3xl);
  flex-shrink: 0;
}

.achievement-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
  color: var(--color-text-dark);
}

.achievement-content p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.responsibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.responsibility-item {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.responsibility-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.responsibility-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 245, 255, 0.1);
  border-radius: var(--radius-full);
}

.responsibility-item h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
  color: var(--color-text-dark);
}

.responsibility-item p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

.future-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.timeline-date {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
  flex-shrink: 0;
  width: 80px;
}

.timeline-content h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
  color: var(--color-text-dark);
}

.timeline-content p {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Responsive adjustments for about page */
@media (max-width: 768px) {
  .content-with-image {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .content-with-image.reverse {
    direction: ltr;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-item {
    flex-direction: column;
    text-align: center;
  }

  .responsibility-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  .timeline-date {
    width: auto;
  }
}