/* DeepMiner Website Styles */

/* ===== GLOBAL STYLES ===== */
:root {
  --primary-color: #006ef2; /* Brand color: R:0, G:110, B:242 */
  --primary-dark: #0055b8;
  --primary-light: #4a9aff;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-gray: #666666;
  --bg-light: #ffffff;
  --bg-gray: #f5f7fa;
  --bg-dark: #1a1a1a;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-lg) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-light);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: var(--spacing-xs);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: var(--spacing-md);
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
}

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

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-dark);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: calc(var(--spacing-xl) + 40px) 0 var(--spacing-lg);
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('../images/data-flow-bg-enhanced.svg');
  background-size: 1600px 560px;
  background-position: center center;
  opacity: .5;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-gray);
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

/* ===== ARCHITECTURE SECTION ===== */
.architecture {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-light);
}

.architecture-layers {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.arch-layer {
  background-color: var(--bg-gray);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.arch-layer:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.arch-layer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.arch-layer-title {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.arch-layer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.arch-model {
  flex: 1;
  min-width: 250px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm);
  box-shadow: var(--box-shadow);
}

.arch-model-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
}

.arch-model-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* ===== VALUE PROPOSITION SECTION ===== */
.value-props {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-gray);
}

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

.value-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.value-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.value-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* ===== CASE STUDIES SECTION ===== */
.case-studies {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-light);
}

.case-carousel {
  position: relative;
  margin-top: var(--spacing-lg);
}

.case-slide {
  background-color: var(--bg-gray);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--box-shadow);
  display: none;
}

.case-slide.active {
  display: block;
}

.case-header {
  margin-bottom: var(--spacing-sm);
}

.case-title {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.case-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.case-section {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm);
}

.case-section-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
}

.case-nav {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-md);
}

.case-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-gray);
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.case-dot.active {
  background-color: var(--primary-color);
}

/* ===== ENTERPRISE VERSION SECTION ===== */
.enterprise {
  padding: var(--spacing-xl) 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.enterprise-title {
  color: var(--text-light);
}

.enterprise-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.enterprise-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.enterprise-feature {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  transition: var(--transition);
}

.enterprise-feature:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.enterprise-feature-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-light);
}

.enterprise-feature-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== FOOTER ===== */
.footer {
  padding: var(--spacing-lg) 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}



.footer-container {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
}

.footer-info {
  max-width: 244px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.footer-logo img {
  height: 30px;
  margin-right: var(--spacing-xs);
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-md);
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
}

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

.footer-link {
  margin-bottom: var(--spacing-xs);
}

.footer-link a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

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

.footer-bottom {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ===== MODEL PAGES COMMON STYLES ===== */
.model-hero {
  padding: calc(var(--spacing-xl) + 80px) 0 var(--spacing-lg);
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
  position: relative;
  overflow: hidden;
}

.model-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: 1600px 560px;
  background-position: center center;
  opacity: .5;
  z-index: 0;
}

/* Model specific backgrounds */
.fa-hero::before {
  background-image: url('../images/fa-bg.svg');
  background-size: 1600px 560px;
}

.mano-hero::before {
  background-image: url('../images/mano-bg.svg');
  background-size: 1600px 560px;
}

.cito-hero::before {
  background-image: url('../images/cito-bg.svg');
  background-size: 1600px 560px;
}

.vertical-hero::before {
  background-image: url('../images/vertical-bg.svg');
  background-size: 1600px 560px;
}

.contact-hero::before {
  background-image: url('../images/data-flow-bg-enhanced.svg');
  background-size: 1600px 560px;
}

.model-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.model-section {
  padding: var(--spacing-lg) 0;
}

.model-section:nth-child(even) {
  background-color: var(--bg-gray);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.model-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.model-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.model-card-title {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.model-card-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.model-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin: var(--spacing-md) 0;
}

.model-chart {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--box-shadow);
  margin: var(--spacing-md) 0;
}

.model-chart-title {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.model-cta {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  position: relative;
  padding-right: 15px;
}

.dropdown-toggle::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-dark);
  transition: var(--transition);
}

.dropdown:hover .dropdown-toggle::after {
  border-top-color: var(--primary-color);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-light);
  min-width: 180px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: rgba(0, 110, 242, 0.1);
  color: var(--primary-color);
}

/* Responsive dropdown adjustments */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    background-color: rgba(0, 0, 0, 0.03);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 0;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-toggle::after {
    right: 10px;
  }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .case-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: var(--spacing-sm) 0;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-item {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    display: block;
    padding: var(--spacing-xs) 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  .value-cards, .enterprise-features {
    grid-template-columns: 1fr;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}