/* Hero Sections */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(29, 53, 87, 0.8), rgba(29, 53, 87, 0.6));
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 var(--spacing-md);
}

.hero-section h1 {
  color: white;
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section p {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* About Section */
.about-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.about-text-content {
  padding: var(--spacing-lg);
}

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

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

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

/* Services Grid */
.services-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.service-card-item {
  background: var(--bg-card);
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card-item:nth-child(1) { animation-delay: 0.1s; }
.service-card-item:nth-child(2) { animation-delay: 0.2s; }
.service-card-item:nth-child(3) { animation-delay: 0.3s; }
.service-card-item:nth-child(4) { animation-delay: 0.4s; }
.service-card-item:nth-child(5) { animation-delay: 0.5s; }
.service-card-item:nth-child(6) { animation-delay: 0.6s; }

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

.service-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(145deg, var(--accent), var(--accent-hover));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-soft);
}

.service-card-icon svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.service-card-item h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
}

.service-card-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.service-card-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: var(--spacing-md);
}

/* Archive Grid */
.archive-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.archive-card-item {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.archive-card-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.archive-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.archive-card-content {
  padding: var(--spacing-lg);
}

.archive-card-item h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
}

.archive-card-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Timeline Component */
.timeline-wrapper {
  position: relative;
  padding: var(--spacing-xl) 0;
}

.timeline-slider {
  background: var(--bg-card);
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--spacing-xl);
}

.timeline-track {
  position: relative;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  margin: var(--spacing-md) 0;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

.timeline-markers {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-md);
}

.timeline-marker {
  position: relative;
  background: var(--bg-card);
  border: 3px solid var(--accent);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.timeline-marker.active {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: var(--shadow-hover);
}

.timeline-marker:hover {
  transform: scale(1.2);
}

.timeline-content {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: var(--spacing-md);
  margin-top: var(--spacing-md);
  box-shadow: var(--shadow-inset);
}

/* Interactive Map */
.interactive-map-wrapper {
  background: var(--bg-card);
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-soft);
  margin: var(--spacing-xl) 0;
}

.map-container {
  position: relative;
  min-height: 400px;
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-inset);
}

.map-region {
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-region:hover {
  fill: var(--accent-hover);
  filter: drop-shadow(0 0 8px rgba(141, 153, 174, 0.4));
}

.map-tooltip {
  position: absolute;
  background: var(--primary);
  color: white;
  padding: var(--spacing-sm);
  border-radius: 8px;
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.map-tooltip.show {
  opacity: 1;
}

/* Contact Form Section */
.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.contact-info-panel {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
  padding: var(--spacing-xl);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.contact-info-panel h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-lg);
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.contact-detail-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, var(--accent), var(--accent-hover));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.contact-detail-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Team Section */
.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.team-member-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-member-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.team-member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-md) auto;
  border: 4px solid var(--accent);
  box-shadow: var(--shadow-soft);
}

.team-member-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
}

.team-member-role {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  font-size: 0.95rem;
}

/* Page Title Bar */
.page-title-bar {
  background: linear-gradient(135deg, rgba(29, 53, 87, 0.9), rgba(29, 53, 87, 0.7)),
              url('images/hero1-modern-office-technology_orig.jpg') center/cover;
  padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl) 0;
  text-align: center;
  color: white;
  position: relative;
  background-attachment: fixed;
}

.page-title-bar h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb-area {
  margin-top: var(--spacing-md);
}

.breadcrumb-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-nav li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.breadcrumb-nav li:not(:last-child)::after {
  content: '›';
  color: rgba(255, 255, 255, 0.6);
  font-weight: bold;
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: white;
}

/* Document of the Month */
.featured-document-section {
  background: var(--bg-secondary);
  padding: var(--spacing-2xl) 0;
  position: relative;
  overflow: hidden;
}

.featured-document-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.document-preview {
  background: var(--bg-card);
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.document-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--mortar);
  box-shadow: var(--shadow-soft);
}

.document-caption {
  background: var(--primary);
  color: white;
  padding: var(--spacing-sm);
  border-radius: 0 0 12px 12px;
  margin-top: -3px;
  font-size: 0.9rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .about-content-wrapper,
  .contact-form-wrapper,
  .featured-document-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .services-grid-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navigation-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(248, 249, 250, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-md);
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow-soft);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .navigation-menu.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navigation-menu li {
    width: 100%;
  }
  
  .navigation-menu li a {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: var(--spacing-sm);
  }
  
  .header-contact-info {
    display: none;
  }
  
  .hero-section {
    min-height: 80vh;
    background-attachment: scroll;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .page-title-bar {
    padding: calc(70px + var(--spacing-lg)) 0 var(--spacing-lg) 0;
    background-attachment: scroll;
  }
  
  .page-title-bar h1 {
    font-size: 2.5rem;
  }
  
  .services-grid-wrapper,
  .archive-grid-wrapper {
    grid-template-columns: 1fr;
  }
  
  .timeline-markers {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }
  
  .cookie-alert-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }
  
  .cookie-alert-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .page-title-bar h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .section-padding {
    padding: var(--spacing-xl) 0;
  }
  
  .team-members-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content-wrapper {
    grid-template-columns: 1fr;
  }
}