/* Main Content Spacing */
.site-content {
  margin-top: 80px;
}

/* Hero Sections */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(27, 38, 59, 0.7), rgba(27, 38, 59, 0.5)), url('images/hero1-modern-office-technology_orig.jpg') center/cover;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-btn-primary {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
}

.hero-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(193, 18, 31, 0.3);
}

.hero-btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-3px);
  color: white;
}

/* Interactive Cathedral Cross-Section */
.cathedral-section {
  padding: 6rem 0;
  background: var(--bg-card);
  overflow: hidden;
}

.cathedral-cross-section {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  height: 400px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 400"><path d="M100 350 L100 100 L200 50 L800 50 L900 100 L900 350 M200 50 L200 300 M800 50 L800 300 M300 300 L700 300 M400 100 L600 100" stroke="%23778DA9" stroke-width="3" fill="none"/><text x="150" y="200" font-size="14" fill="%231B263B">Nave</text><text x="500" y="80" font-size="14" fill="%231B263B">Clerestory</text><text x="350" y="200" font-size="14" fill="%231B263B">Triforium</text><text x="500" y="320" font-size="14" fill="%231B263B">Pier</text></svg>') center/contain no-repeat;
}

.cathedral-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.cathedral-label {
  position: absolute;
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
  font-size: 0.9rem;
  color: var(--text-primary);
  max-width: 200px;
}

.cathedral-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.cathedral-label.clerestory {
  top: 15%;
  left: 45%;
}

.cathedral-label.triforium {
  top: 40%;
  left: 25%;
}

.cathedral-label.pier {
  top: 70%;
  right: 30%;
}

.cathedral-label.nave {
  top: 45%;
  left: 10%;
}

/* Timeline Styles */
.timeline-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

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

.timeline-item {
  display: flex;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.timeline-content {
  flex: 1;
  padding: 0 2rem;
}

.timeline-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
  position: relative;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-card::before {
  right: -2rem;
}

.timeline-item:nth-child(even) .timeline-card::before {
  left: -2rem;
}

.timeline-date {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

/* Geometry Interactive Section */
.geometry-explorer {
  padding: 4rem 0;
  background: var(--bg-card);
  text-align: center;
}

.arch-simulator {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
}

.arch-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.control-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.control-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  min-width: 100px;
}

.control-slider {
  flex: 1;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.control-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

.control-value {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 40px;
}

.arch-display {
  height: 300px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><path d="M50 250 Q200 50 350 250" stroke="%23778DA9" stroke-width="4" fill="none"/><line x1="50" y1="250" x2="350" y2="250" stroke="%231B263B" stroke-width="2"/></svg>') center/contain no-repeat;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

/* Cathedral Comparison Table */
.comparison-table-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.table-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-button {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  font-weight: 500;
}

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

.comparison-table {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--bg-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table tr:hover {
  background: var(--bg-secondary);
}

/* Stained Glass Light Simulator */
.glass-simulator {
  padding: 4rem 0;
  background: var(--bg-card);
  text-align: center;
}

.glass-panel-container {
  max-width: 600px;
  margin: 3rem auto;
  position: relative;
}

.glass-panel {
  width: 100%;
  height: 400px;
  background: linear-gradient(45deg, #C1121F 0%, #778DA9 50%, #415A77 100%);
  border-radius: 8px;
  box-shadow: var(--shadow-heavy);
  transition: filter 0.8s ease;
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path d="M200 50 L350 200 L200 350 L50 200 Z" stroke="white" stroke-width="3" fill="none" opacity="0.3"/><circle cx="200" cy="200" r="80" stroke="white" stroke-width="2" fill="none" opacity="0.4"/></svg>') center/contain no-repeat;
}

.glass-panel.candlelight {
  filter: sepia(0.8) saturate(1.5) brightness(0.7) contrast(1.2);
}

.lighting-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.light-toggle {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  font-weight: 600;
}

.light-toggle:hover,
.light-toggle.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* About Section with Images */
.about-content-wrapper {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-grid:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.about-grid:nth-child(even) .about-text {
  order: 2;
}

.about-grid:nth-child(even) .about-image {
  order: 1;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

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

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

.service-card-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.service-card-image {
  height: 250px;
  overflow: hidden;
}

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

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

.service-card-content {
  padding: 2rem;
}

.service-card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-card-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-card-features li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.service-card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Team Section */
.team-section {
  padding: 6rem 0;
  background: var(--bg-card);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Testimonials */
.testimonial-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.client-testimonial {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  position: relative;
}

.client-testimonial::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-family: var(--font-heading);
  opacity: 0.3;
}

.testimonial-content {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 2rem;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.testimonial-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Contact Page Specific */
.contact-hero {
  padding: 4rem 0;
  background: var(--bg-secondary);
  text-align: center;
}

.contact-content-section {
  padding: 4rem 0;
  background: var(--bg-card);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-section {
  padding: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.contact-details h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .timeline-line {
    left: 2rem;
  }
  
  .timeline-item {
    flex-direction: row !important;
    padding-left: 4rem;
  }
  
  .timeline-content {
    padding: 0;
  }
  
  .timeline-card::before {
    left: -3rem !important;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-grid:nth-child(even) .about-text,
  .about-grid:nth-child(even) .about-image {
    order: initial;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .cathedral-labels {
    display: none;
  }
  
  .table-filters {
    justify-content: flex-start;
  }
  
  .lighting-controls {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding: 2rem 0;
  }
  
  .section-padding-large {
    padding: 3rem 0;
  }
  
  .content-card,
  .feature-card {
    padding: 1.5rem;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
}