/* ============================================
   Component Styles
   ============================================ */

/* Navigation with Glassmorphism */
.navbar {
  position: fixed;
  top: var(--spacing-md);
  left: 0;
  right: 0;
  margin: 0 var(--spacing-lg);
  z-index: var(--z-sticky);
  background: var(--glass-white);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  padding: var(--spacing-md) 0;
  border-radius: var(--radius-full);
  transition: margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: margin;
  transform: translateZ(0); /* Force hardware acceleration */
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 40px;
  width: auto;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  will-change: transform;
  transform: translateZ(0);
}

.navbar-logo:hover {
  transform: scale(1.1);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
}

/* Language Toggle - Glassmorphism */
.language-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-full);
  background: var(--gradient-glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.language-toggle-button {
  border: none;
  background: transparent;
  color: var(--color-text-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.language-toggle-button:hover {
  background: rgba(206, 141, 37, 0.12);
  transform: translateY(-1px);
}

.language-toggle-button[aria-pressed="true"],
.language-toggle-button.is-active-lang {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-toggle span {
  opacity: 0.6;
  font-size: var(--font-size-xs);
}

.navbar-link {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  will-change: color, background-color;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%) translateZ(0);
  will-change: width;
}

.navbar-link:hover {
  color: var(--color-primary);
  background: rgba(206, 141, 37, 0.1);
}

.navbar-link:hover::after {
  width: 80%;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  color: var(--color-text-primary);
}

/* Hero Section with Modern Glass Effect */
.hero {
  position: relative;
  padding: var(--spacing-4xl) 0;
  padding-bottom: var(--spacing-5xl);
  overflow: hidden;
  background: var(--gradient-hero);
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 50%, rgba(206, 141, 37, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(140, 85, 12, 0.3) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg) translateZ(0); }
  33% { transform: translate(30px, -30px) rotate(120deg) translateZ(0); }
  66% { transform: translate(-30px, 30px) rotate(240deg) translateZ(0); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  padding-bottom: var(--spacing-3xl);
  overflow: visible;
}

.hero-logo-wrapper {
  margin-bottom: var(--spacing-3xl);
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: var(--spacing-xl) 0;
  position: relative;
  will-change: transform, opacity;
}

.hero-logo-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(26, 15, 0, 0.6) 0%, rgba(26, 15, 0, 0.3) 50%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.hero-logo {
  height: auto;
  width: min(100%, 550px);
  max-width: 550px;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-base);
  position: relative;
  z-index: 1;
}

.hero-logo:hover {
  transform: scale(1.03);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xl);
  margin-top: 0;
  padding-bottom: 0.2em;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
  overflow: visible;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
  margin-bottom: var(--spacing-2xl);
  opacity: 0.98;
  line-height: 1.6;
  color: var(--color-text-primary-dark);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.2s both;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  margin-top: var(--spacing-2xl);
}

.hero-cta .btn {
  min-width: 180px;
  padding: 1rem 2.5rem;
  font-size: var(--font-size-lg);
  box-shadow: 
    0 8px 25px 0 rgba(206, 141, 37, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.hero-cta .btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 12px 35px 0 rgba(206, 141, 37, 0.5),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
}

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

/* Value Proposition Section */
.value-prop {
  background: var(--color-bg-secondary);
  position: relative;
}

.value-prop::before {
  content: none;
}

.value-prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.value-prop-card {
  text-align: center;
  padding: var(--spacing-xl);
}

.value-prop-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--spacing-lg);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow:
    0 8px 32px 0 rgba(206, 141, 37, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  transform: translateZ(0);
}

.value-prop-icon img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
  z-index: 1;
  position: relative;
}

.value-prop-card:hover .value-prop-icon {
  transform: scale(1.1) rotate(5deg);
}

.value-prop-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.value-prop-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

.value-prop-text {
  color: var(--color-text-secondary);
}

/* Benefits Section */
.benefits {
  padding: var(--section-padding);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.benefit-card {
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.benefit-card:hover::before {
  left: 100%;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-primary);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--spacing-lg);
  font-size: 1.75rem;
  color: var(--color-primary);
}

.benefit-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
  line-height: 1.3;
}

.benefit-text {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  flex-grow: 1;
}

/* Metrics Section with Glass Effect */
.metrics {
  background: var(--gradient-primary);
  color: white;
  padding: var(--section-padding);
  position: relative;
}

.metrics::before {
  content: none;
}

.metrics::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  z-index: -1;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  text-align: center;
}

.metric-value {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

/* Footer with Glass Effect */
.footer {
  background: #1f1202;
  color: var(--color-text-primary-dark);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  position: relative;
  border-top: 1px solid var(--color-border-dark);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(206, 141, 37, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(140, 85, 12, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--color-text-secondary-dark);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: var(--color-text-secondary-dark);
  font-size: var(--font-size-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.footer-logo {
  height: 60px;
  width: auto;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.footer-logo:hover {
  opacity: 1;
}

/* Brand Logo Section - Dark Background for Contrast */
.brand-logo-section {
  position: relative;
  background: #1f1202;
  overflow: hidden;
}

.brand-logo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(26, 15, 0, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(26, 15, 0, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.brand-logo-wrapper {
  position: relative;
  z-index: 1;
  padding: var(--spacing-xl) 0;
}

/* Forms with Glass Effect */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  box-shadow: none;
  font-family: var(--font-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
  opacity: 0.7;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-bg-primary);
  box-shadow: 0 0 0 4px rgba(206, 141, 37, 0.15);
  transform: translateY(-1px);
}

.form-input:hover:not(:focus),
.form-textarea:hover:not(:focus),
.form-select:hover:not(:focus) {
  border-color: var(--color-primary-light);
  background: var(--color-bg-primary);
}

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

.form-error {
  color: var(--color-error);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
}

.form-success {
  background-color: var(--color-success);
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
}

/* Case Study Cards with Glass Effect */
.case-study-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.case-study-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-primary);
}

.case-study-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gradient-primary);
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-content {
  padding: var(--spacing-xl);
  background: transparent;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-study-tag {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--color-bg-secondary);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-md);
}

.case-study-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-sm);
  flex-grow: 1;
}

.case-study-metrics {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.case-study-metric {
  display: flex;
  flex-direction: column;
}

.case-study-metric-value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.case-study-metric-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

/* ROI Calculator with Glass Effect */
.roi-calculator {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-2xl);
  margin: var(--spacing-2xl) 0;
}

.roi-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.roi-results {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  box-shadow: var(--shadow-inner);
}

.roi-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.roi-result-item:last-child {
  border-bottom: none;
}

.roi-result-label {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.roi-result-value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    padding: var(--spacing-sm) var(--container-padding);
  }
  
  .navbar-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    flex-direction: column;
    padding: var(--spacing-xl);
    box-shadow: 
      0 8px 32px 0 rgba(31, 38, 135, 0.2),
      inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: var(--z-fixed);
  }
  
  .navbar-menu.active {
    transform: translateX(0);
  }
  
  .navbar-toggle {
    display: block;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
  }
  
  .navbar-toggle:hover {
    background: rgba(206, 141, 37, 0.1);
  }
  
  .navbar-logo {
    height: 32px;
  }
  
  .hero-logo {
    width: min(100%, 350px);
    max-width: 350px;
  }
  
  .hero-logo-wrapper {
    margin-bottom: var(--spacing-2xl);
  }
  
  .footer-logo {
    height: 50px;
  }
  
  .navbar-link {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xs);
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: var(--spacing-md);
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: var(--spacing-xl);
  }
  
  .hero-cta {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .hero-cta .btn {
    width: 100%;
    min-width: auto;
  }
}

