/* TimeTech Base Styles - Consolidated Common Styles */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --color-primary: #01898c;
  --color-primary-hover: #007a84;
  --color-secondary: #00b4d8;
  --color-secondary-hover: #0096c7;
  --color-text-primary: #4f4f51;
  --color-text-secondary: #727376;
  --color-text-muted: #9ea0a2;
  --color-bg-main: #f8f9fa;
  --color-bg-card: #ffffff;
  --color-bg-light: #f7fafc;
  --color-border-subtle: rgba(1, 137, 140, 0.1);
  --color-border-light: #e2e8f0;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #01898c 0%, #00b4d8 100%);
  --gradient-primary-animated: linear-gradient(135deg, #01898c 0%, #00b4d8 50%, #01898c 100%);
  --gradient-bg-light: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  
  /* Typography */
  --font-family-base: 'Poppins', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 5rem;
  
  /* Border Radius */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 15px;
  --border-radius-xl: 20px;
  --border-radius-full: 50px;
  
  /* Shadows */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(1, 137, 140, 0.1);
  --shadow-lg: 0 20px 40px rgba(1, 137, 140, 0.15);
  --shadow-xl: 0 25px 50px rgba(1, 137, 140, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s ease;
  --transition-bounce: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-main);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6,
p, span, div, a, button,
.hero-title, .hero-subtitle, 
.section-title, .section-subtitle,
.category-title, .category-description,
.product-content h3, .product-content p,
.feature-item, .feature-tag,
.btn-primary, .btn-secondary, .btn-specs, .btn-view-specs,
.modal-header h3, .cta-content h2, .cta-content p,
.article-title, .article-subtitle, .article-excerpt,
.testimonial-text, .author-info h6, .author-info p,
.quote-author, .highlight-content h4, .highlight-content p {
  font-family: var(--font-family-base) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-light);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

/* ===== COMMON LAYOUTS ===== */

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-light);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== HERO SECTIONS ===== */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/general/hero-home.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--spacing-4xl) 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(1, 137, 140, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(1, 137, 140, 0.05) 0%, transparent 50%);
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: var(--font-weight-light);
  color: white;
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: var(--font-weight-light);
  color: white;
  margin-bottom: var(--spacing-2xl);
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===== FLOATING ELEMENTS ===== */
.floating-element-1,
.floating-element-2 {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 137, 140, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.floating-element-1 {
  top: 10%;
  left: 10%;
  width: 100px;
  height: 100px;
}

.floating-element-2 {
  top: 60%;
  right: 15%;
  width: 80px;
  height: 80px;
  animation: float 8s ease-in-out infinite reverse;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-hero-primary,
.btn-hero-secondary {
  padding: var(--spacing-md) var(--spacing-2xl);
  border-radius: var(--border-radius-full);
  font-weight: var(--font-weight-light);
  font-size: 1.1rem;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary,
.btn-hero-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover,
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(1, 137, 140, 0.3);
  color: white;
}

.btn-secondary,
.btn-hero-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover,
.btn-hero-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(1, 137, 140, 0.2);
}

/* Button shimmer effect */
.btn-primary::before,
.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before,
.btn-hero-primary:hover::before {
  left: 100%;
}

/* ===== CARDS ===== */
.product-card,
.solution-card,
.article-card,
.industry-card,
.testimonial-card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-md);
}

.product-card:hover,
.solution-card:hover,
.article-card:hover,
.industry-card:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-card::before,
.solution-card::before,
.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

/* ===== FEATURE TAGS ===== */
.feature-tag {
  background: rgba(1, 137, 140, 0.1);
  color: var(--color-primary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-md);
  font-size: 0.8rem;
  font-weight: var(--font-weight-light);
  transition: all var(--transition-normal);
}

.feature-tag:hover {
  background: rgba(1, 137, 140, 0.2);
  transform: translateY(-1px);
}

/* ===== GRIDS ===== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.products-grid,
.articles-grid,
.industries-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.core-solutions {
  padding: var(--spacing-4xl) 0;
}

/* ===== CTA SECTIONS ===== */
.cta-section {
  padding: var(--spacing-4xl) 0;
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary-animated);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-light);
  margin-bottom: var(--spacing-md);
}

.cta-content p {
  font-size: 1.1rem;
  font-weight: var(--font-weight-light);
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ICONS ===== */
.industry-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  margin-bottom: var(--spacing-lg);
  transition: all var(--transition-normal);
}

.industry-card:hover .industry-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: rgba(1, 137, 140, 0.1);
  font-family: serif;
}

.testimonial-text {
  font-weight: var(--font-weight-light);
  color: var(--color-text-primary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-weight-light);
  font-size: 1.2rem;
}

.author-info h6 {
  color: var(--color-primary);
  font-weight: var(--font-weight-light);
  margin: 0;
}

.author-info p {
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-section {
    min-height: calc(100vh - 70px);
    padding-top: var(--spacing-md);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 0.875rem var(--spacing-xl);
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .products-grid,
  .solutions-grid,
  .articles-grid,
  .industries-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .cta-content h2 {
    font-size: 1.5rem;
  }
}
