/* Main Content Spacing */
.main-content {
  padding-top: 80px;
}

/* Hero Sections */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(13, 27, 42, 0.7), rgba(27, 38, 59, 0.8)), url('images/hero1-modern-office-technology_orig.jpg') center/cover;
  background-attachment: fixed;
}

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

.hero-content h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .paragraph-large {
  font-size: 1.25rem;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  color: rgba(241, 250, 238, 0.95);
}

.hero-cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.meridian-line-animation {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--polished-brass), transparent);
  transform: translateX(-50%);
  opacity: 0.6;
  animation: meridianGlow 3s ease-in-out infinite;
}

@keyframes meridianGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; box-shadow: 0 0 20px var(--polished-brass); }
}

/* Featured Section */
.featured-artifact-section {
  background: var(--bg-card);
  overflow: hidden;
}

.artifact-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.artifact-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.artifact-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.artifact-details h2 {
  margin-bottom: 24px;
  color: var(--text-primary);
}

.artifact-details p {
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.artifact-specs {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid var(--polished-brass);
  margin: 24px 0;
}

.artifact-specs h4 {
  color: var(--polished-brass);
  margin-bottom: 16px;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.spec-label {
  font-weight: 500;
  color: var(--text-primary);
}

.spec-value {
  color: var(--text-secondary);
}

/* Timeline Section */
.timeline-section {
  background: var(--bg-secondary);
  position: relative;
}

.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--polished-brass);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  width: calc(50% - 32px);
  position: relative;
}

.timeline-year {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  background: var(--polished-brass);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 3;
}

.timeline-content h3 {
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

/* About Section Styles */
.about-hero-section {
  background: linear-gradient(rgba(27, 38, 59, 0.8), rgba(13, 27, 42, 0.9)), url('images/about-software-developer-workspace-2_orig.jpg') center/cover;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: white;
}

.mission-section {
  background: var(--bg-card);
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mission-text h2 {
  margin-bottom: 32px;
  color: var(--text-primary);
}

.mission-text p {
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.mission-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.mission-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Services Grid */
.services-grid-section {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-feature-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.service-feature-card:hover {
  transform: translateY(-8px) perspective(1000px) rotateY(3deg);
  box-shadow: var(--shadow-heavy);
}

.service-feature-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.service-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-feature-card:hover .service-feature-image img {
  transform: scale(1.1);
}

.service-feature-content {
  padding: 32px;
}

.service-feature-content h3 {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.service-feature-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-highlights {
  list-style: none;
  margin-bottom: 24px;
}

.feature-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.feature-highlights li::before {
  content: '✓';
  color: var(--polished-brass);
  font-weight: bold;
}

/* Gallery Section */
.instruments-gallery-section {
  background: var(--bg-card);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-button {
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button.active,
.filter-button:hover {
  background: var(--polished-brass);
  color: white;
  border-color: var(--polished-brass);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item-content {
  padding: 20px;
}

.gallery-item-content h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.gallery-item-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Contact Section */
.contact-hero-section {
  background: linear-gradient(rgba(13, 27, 42, 0.7), rgba(27, 38, 59, 0.8)), url('images/banner4-modern-office-technology_orig.jpg') center/cover;
  min-height: 50vh;
  display: flex;
  align-items: center;
  color: white;
}

.contact-content-section {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.contact-info-card h3 {
  margin-bottom: 32px;
  color: var(--text-primary);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 24px;
  height: 24px;
  stroke: var(--polished-brass);
  stroke-width: 2;
  flex-shrink: 0;
}

.contact-info-text h4 {
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 1rem;
}

.contact-info-text p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* CTA Sections */
.cta-section {
  background: linear-gradient(135deg, var(--midnight-sky), var(--starlight-blue));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  margin-bottom: 24px;
  color: white;
}

.cta-content p {
  margin-bottom: 32px;
  font-size: 1.125rem;
  color: rgba(241, 250, 238, 0.9);
}

/* Interactive Elements */
.chronometer-simulator {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.chronometer-display {
  width: 200px;
  height: 200px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0f0f0, #d4d4d4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.1);
}

.chronometer-face {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.chronometer-hand {
  position: absolute;
  background: var(--polished-brass);
  transform-origin: bottom center;
  border-radius: 2px;
  transition: transform 0.5s ease;
}

.hour-hand {
  width: 4px;
  height: 40px;
  bottom: 50%;
}

.minute-hand {
  width: 2px;
  height: 60px;
  bottom: 50%;
}

.wind-button {
  background: var(--polished-brass);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wind-button:hover {
  background: var(--brass-hover);
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  
  .artifact-showcase,
  .mission-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .timeline-line {
    left: 24px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
  }
  
  .timeline-content {
    width: calc(100% - 64px);
    margin-left: 48px;
  }
  
  .timeline-year {
    left: 24px;
    transform: translateX(-50%);
  }
  
  .spec-list {
    grid-template-columns: 1fr;
  }
  
  .gallery-filters {
    gap: 8px;
  }
  
  .filter-button {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .hero-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: center;
  }
  
  .chronometer-display {
    width: 160px;
    height: 160px;
  }
  
  .chronometer-face {
    width: 120px;
    height: 120px;
  }
}