/* CryptoTherm - Exact Website Styling */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* CryptoTherm Color Palette */
  --primary-blue: #1a56db;
  --secondary-blue: #0ea5e9;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --light-text: #f8fafc;
  --gray-text: #94a3b8;
  --gray-400: #9ca3af;
  --accent-orange: #f97316;
  --accent-yellow: #fbbf24;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--light-text);
  background-color: var(--darker-bg);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Navigation */
nav {
  transition: background-color 0.3s ease;
}

.nav-link {
  color: var(--gray-400);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--light-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-cta {
  background: var(--primary-blue);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-link-cta:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 86, 219, 0.3);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(26, 86, 219, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--light-text);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-text);
  max-width: 900px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--accent-orange);
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Section Titles */
.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--light-text);
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--gray-text);
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

/* Solutions Section */
.solutions-section {
  background: var(--dark-bg);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.solution-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-blue);
  box-shadow: 0 20px 40px rgba(26, 86, 219, 0.2);
}

.solution-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.solution-card:hover .solution-image {
  transform: scale(1.05);
}

.solution-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.5rem 1.5rem 1rem;
  color: var(--light-text);
}

.solution-description {
  color: var(--gray-text);
  line-height: 1.7;
  padding: 0 1.5rem 1.5rem;
  font-size: 1rem;
}

/* Video Section */
.video-section {
  background: var(--gray-900);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
}

/* Manufacturing Section */
.manufacturing-section {
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.manufacturing-description {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--gray-text);
}

.manufacturing-description strong {
  color: var(--light-text);
  font-weight: 700;
}

/* Flare Gas CTA Section */
.flare-section {
  position: relative;
  overflow: hidden;
}

.flare-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.flare-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.flare-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--light-text);
}

.flare-tagline {
  font-size: 1.5rem;
  color: var(--accent-yellow);
  font-weight: 600;
  margin-bottom: 2rem;
  font-style: italic;
}

.flare-description {
  max-width: 850px;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--gray-text);
}

.flare-cta-btn {
  display: inline-block;
  background: white;
  color: var(--accent-orange);
  padding: 1rem 3rem;
  border-radius: 0.625rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.flare-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
  background: var(--light-text);
}

/* Products Section */
.products-section {
  background: var(--dark-bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-orange);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.2);
}

.product-image-container {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 1.5rem 1.5rem 1rem;
  color: var(--light-text);
}

.product-description {
  color: var(--gray-text);
  line-height: 1.7;
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
}

.shop-all-btn {
  display: inline-block;
  background: transparent;
  color: var(--primary-blue);
  padding: 0.875rem 2.5rem;
  border: 2px solid var(--primary-blue);
  border-radius: 0.625rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  transition: all 0.3s ease;
}

.shop-all-btn:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 86, 219, 0.3);
}

/* About Section */
.about-section {
  background: var(--gray-900);
}

.about-subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 1rem 0 1.5rem;
}

.about-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-text);
}

.partners-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.partners-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.partner-logo {
  height: 60px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  filter: brightness(0) invert(1);
}

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

/* Final CTA Section */
.final-cta-section {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  position: relative;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(26, 86, 219, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--light-text);
}

.final-cta-description {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--gray-text);
  font-size: 1.125rem;
  line-height: 1.8;
}

.final-cta-btn {
  display: inline-block;
  background: var(--primary-blue);
  color: white;
  padding: 1rem 3rem;
  border-radius: 0.625rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(26, 86, 219, 0.3);
}

.final-cta-btn:hover {
  background: var(--secondary-blue);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(26, 86, 219, 0.4);
}

.admin-link {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.admin-link:hover {
  color: var(--light-text);
}

/* Footer */
.footer {
  background: var(--darker-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0;
}

.footer p {
  color: var(--gray-400);
  font-size: 0.875rem;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scroll Animation Classes */
.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .solutions-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .solutions-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .flare-title {
    font-size: 2.5rem;
  }

  .flare-tagline {
    font-size: 1.25rem;
  }

  .final-cta-title {
    font-size: 2rem;
  }

  .partners-logos {
    gap: 2rem;
  }

  .partner-logo {
    height: 50px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .flare-title {
    font-size: 2rem;
  }

  .solution-image,
  .product-image-container {
    height: 200px;
  }
}
