/* Reveryware AI - Component Styles */

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: var(--space-lg);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header .subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* Service Cards */
.service-card {
  background: var(--background-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(29, 52, 120, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(29, 52, 120, 0.1);
  border-color: rgba(29, 52, 120, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover h3 {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.service-card:hover .service-features {
  transform: translateY(-2px);
}

.service-card h3 {
  transition: all 0.3s ease;
}

.service-card .service-features {
  transition: all 0.3s ease;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--background-white);
  font-size: var(--font-size-2xl);
  font-weight: 600;
}

.service-card h3 {
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-xl);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
  text-align: left;
}

.service-features li {
  padding: var(--space-sm) 0;
  color: var(--text-light);
  position: relative;
  padding-left: var(--space-lg);
}

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

/* Team Cards */
.team-card {
  background: var(--background-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-base);
  transition: all var(--transition-base);
}

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

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background-white);
  font-size: var(--font-size-2xl);
  font-weight: 600;
}

.team-card h4 {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.team-role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.team-bio {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

/* Case Study Cards */
.case-study-card {
  background: var(--background-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
  transition: all var(--transition-base);
  border: 1px solid #e2e8f0;
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-study-image {
  width: 100%;
  height: 350px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background-white);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.case-study-content {
  padding: var(--space-xl);
}

.case-study-client {
  color: var(--primary-color);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.case-study-card h3 {
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.case-study-summary {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color);
}

.metric-label {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Feature Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
}

.feature-list li {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 600;
  font-size: var(--font-size-lg);
}

/* Microsoft Highlight Badge */
.microsoft-highlight {
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: linear-gradient(135deg, #0078D4, #106ebe);
    border-radius: var(--radius-md);
    color: white;
}

.microsoft-badge {
    margin-bottom: var(--space-sm);
}

.badge-text {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.microsoft-description {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    opacity: 0.95;
}

/* Blog Cards */
.blog-card {
  background: var(--background-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
  transition: all var(--transition-base);
}

/* Homepage Latest Insights specific styles */
#insights .blog-card {
  display: flex;
  flex-direction: column;
}

#insights .blog-image {
  flex-shrink: 0;
  overflow: hidden;
  display: block;
  line-height: 0;
}

#insights .blog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

#insights .blog-content {
  flex-grow: 1;
}

#insights .blog-meta {
  gap: var(--space-xs);
  font-size: var(--font-size-xs);
}

#insights .blog-category {
  font-size: var(--font-size-xs);
  padding: var(--space-xs) var(--space-sm);
  white-space: nowrap;
}

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

.blog-image {
  width: 100%;
  height: 160px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background-white);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.blog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: var(--space-xl);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--text-light);
}

.blog-category {
  background: var(--gradient-primary);
  color: var(--background-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.blog-card h3 {
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  line-height: 1.4;
  font-size: var(--font-size-lg);
}

.blog-excerpt {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-sm);
}

.blog-read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Testimonials */
.testimonial {
  background: var(--background-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-base);
  text-align: center;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  font-size: var(--font-size-4xl);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1;
}

.testimonial-text {
  font-size: var(--font-size-lg);
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: var(--space-xl);
  padding-top: var(--space-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background-white);
  font-weight: 600;
}

.testimonial-info h5 {
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-base);
}

.testimonial-role {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

/* Process Steps */
.process-steps {
  display: grid;
  gap: var(--space-xl);
  margin: var(--space-4xl) 0;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.process-step:last-child::after {
  display: none;
}

@media (max-width: 767px) {
  .process-step::after {
    display: none;
  }
}

.process-number {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--background-white);
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.process-step h4 {
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.process-step p {
  color: var(--text-light);
}

/* Statistics */
.stats {
  display: grid;
  gap: var(--space-xl);
  text-align: center;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.stat {
  padding: var(--space-lg);
}

.stat-number {
  display: block;
  font-size: var(--font-size-4xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.stat-label {
  color: var(--text-light);
  font-size: var(--font-size-lg);
  font-weight: 500;
}

/* Technology Stack */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.tech-item {
  background: var(--background-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.tech-item:hover::before {
  opacity: 1;
}

.tech-item:hover .tech-name {
  transform: scale(1.05);
}

.tech-name {
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.tech-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--background-white);
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.tech-name {
  color: var(--text-dark);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

/* Contact Form */
.contact-form {
  background: var(--background-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
  background-color: var(--background-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: #e53e3e;
  font-size: var(--font-size-sm);
  margin-top: var(--space-sm);
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
  border-color: #e53e3e;
}

.form-success {
  background: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.form-message {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.form-message.alert-success {
  background-color: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
}

.form-message.alert-error {
  background-color: #fee2e2;
  border: 1px solid #dc2626;
  color: #991b1b;
}

.required-indicator {
  color: #dc2626;
  font-weight: 600;
}

.contact-form {
  position: relative;
}

.btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: var(--space-sm);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-base);
}

.breadcrumb-item {
  color: var(--text-light);
}

.breadcrumb-item:not(:last-child)::after {
  content: '>';
  margin-left: var(--space-sm);
  color: var(--border-light);
}

.breadcrumb-item:last-child {
  color: var(--text-dark);
  font-weight: 600;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-2xl) 0;
}

.pagination-btn {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-light);
  background: var(--background-white);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination-btn:hover,
.pagination-btn.active {
  background: var(--primary-color);
  color: var(--background-white);
  border-color: var(--primary-color);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.tag {
  background: var(--background-light);
  color: var(--text-dark);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--primary-color);
  color: var(--background-white);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: var(--space-lg) auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Prose Styles for Blog Content */
.prose {
  max-width: none;
  color: var(--text-dark);
  line-height: 1.7;
}

.prose p {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-lg);
  color: var(--text-light);
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: var(--text-dark);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.prose h1 { font-size: var(--font-size-4xl); }
.prose h2 { font-size: var(--font-size-3xl); }
.prose h3 { font-size: var(--font-size-2xl); }
.prose h4 { font-size: var(--font-size-xl); }
.prose h5 { font-size: var(--font-size-lg); }
.prose h6 { font-size: var(--font-size-base); }

.prose ul, .prose ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.prose li {
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-base);
  color: var(--text-light);
}

.prose blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--text-light);
}

.prose code {
  background-color: var(--background-light);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--text-dark);
}

.prose pre {
  background-color: var(--background-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose a {
  color: var(--primary-color);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--secondary-color);
}

/* Alert Messages */
.alert {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.alert-info {
  background: #ebf8ff;
  border: 1px solid #90cdf4;
  color: #2a4365;
}

.alert-success {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #22543d;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #f6d55c;
  color: #744210;
}

.alert-error {
  background: #fed7d7;
  border: 1px solid #feb2b2;
  color: #742a2a;
}