/* Main Page Styles */
body {
  padding-top: 80px; /* Account for fixed header */
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(26, 43, 60, 0.8), rgba(74, 144, 217, 0.6)), url('../images/hero1-modern-office-technology_orig.jpg') center/cover;
  background-attachment: fixed;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, transparent 49%, rgba(176, 196, 222, 0.1) 49%, rgba(176, 196, 222, 0.1) 51%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(176, 196, 222, 0.1) 49%, rgba(176, 196, 222, 0.1) 51%, transparent 51%);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-title {
  color: white;
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 22px;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.5;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

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

/* About Section */
.about-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about-text {
  padding-right: 2rem;
}

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

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

@media (max-width: 768px) {
  .about-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-text {
    padding-right: 0;
  }
}

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

.service-detail-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-detail-card:hover {
  transform: perspective(1000px) rotateY(3deg);
  box-shadow: var(--shadow-medium);
}

.service-card-header {
  padding: 2rem;
  background: var(--primary);
  color: white;
  text-align: center;
}

.service-card-title {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 22px;
}

.service-card-price {
  font-family: var(--font-mono);
  font-size: 16px;
  opacity: 0.9;
  color: var(--light-steel);
}

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

/* Stats Section */
.stats-section {
  background: var(--primary);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 18px;
  opacity: 0.9;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-member-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
  perspective: 1000px;
}

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

.team-member-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-member-info {
  padding: 2rem;
}

.team-member-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.team-member-role {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  margin-bottom: 1rem;
}

.team-member-bio {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-post-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.blog-post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-post-content {
  padding: 2rem;
}

.blog-post-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.blog-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
}

.blog-post-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
  background: var(--bg-secondary);
}

.contact-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

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

.contact-info-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-info-details h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.contact-info-details p {
  color: var(--text-secondary);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .contact-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-form-wrapper,
  .contact-info {
    padding: 2rem;
  }
}

/* Map Embed */
.map-wrapper {
  margin-top: 3rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.map-wrapper iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

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

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 4rem;
  color: var(--light-steel);
  line-height: 1;
  font-family: serif;
}

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

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

.testimonial-author-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--primary);
}

.testimonial-author-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Animated Elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate-on-scroll {
  opacity: 0;
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  animation: fadeInUp 0.6s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating Elements */
.floating-decoration {
  position: absolute;
  border-radius: 50%;
  background: rgba(74, 144, 217, 0.1);
  filter: blur(3px);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

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

/* Section Backgrounds */
.section-wrapper:nth-child(even) {
  background: var(--bg-secondary);
}

.section-wrapper:nth-child(odd) {
  background: var(--bg-primary);
}

/* Interactive Counter */
.live-counter {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  font-size: 48px;
  animation: pulse 2s ease-in-out infinite;
}

/* Budget Calculator */
.budget-calculator {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin-top: 2rem;
}

.budget-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: var(--light-steel);
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.budget-slider:hover {
  opacity: 1;
}

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

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

.budget-output {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(74, 144, 217, 0.1);
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  color: var(--primary);
}

/* Form Loading States */
.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Success Messages */
.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid #c3e6cb;
  margin-top: 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}