
:root {
  --primary-color: #002f6c;
  --primary-dark: #001d44;
  --primary-light: #004a9f;
  --accent-color: #3498db;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-white);
  overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}
.feature-card i{
    color: white;
    padding-top: 15px;
    font-size: 30px;
}
.loader {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: white;
  font-size: 1.2rem;
  margin-top: 20px;
  font-weight: 500;
}

/* Scroll to Top Button */
#scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 47, 108, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

#scroll-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 47, 108, 0.5);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 100px 0 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.4rem;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.6;
}

.cost-comparison-badge {
  display: inline-block;
  background: rgba(231, 76, 60, 0.9);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-custom-primary {
  background: #e74c3c;
  color: white;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-custom-primary:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
  color: white;
}

.btn-custom-outline {
  background: transparent;
  color: white;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid white;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-custom-outline:hover {
  background: white;
  color: var(--primary-color);
}

/* Stats Section */
.stats-section {
  background: var(--primary-color);
  color: white;
  padding: 60px 0;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: #e74c3c;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Content Sections */
.content-section {
  padding: 80px 0;
}

.content-section.bg-light {
  background: var(--bg-light);
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Cost Comparison Table */
.comparison-table {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  margin: 40px 0;
}

.comparison-table table {
  width: 100%;
  margin: 0;
}

.comparison-table th {
  background: var(--primary-color);
  color: white;
  padding: 20px;
  font-weight: 600;
  font-size: 1.1rem;
}

.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.05rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .category-label {
  font-weight: 600;
  color: var(--primary-color);
}

.comparison-table .build-cost {
  color: var(--danger-color);
  font-weight: 600;
}

.comparison-table .buy-cost {
  color: var(--success-color);
  font-weight: 600;
}

.comparison-table .total-row {
  background: var(--bg-light);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Feature Cards */
.feature-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-top: 4px solid var(--primary-color);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.05rem;
}

.feature-card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.feature-card li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--text-light);
  line-height: 1.7;
}

.feature-card li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-size: 1.2rem;
}

/* Alert Boxes */
.alert-custom {
  padding: 30px;
  border-radius: 12px;
  margin: 30px 0;
  border-left: 5px solid;
}

.alert-danger-custom {
  background: #fee;
  border-color: var(--danger-color);
  color: #721c24;
}

.alert-success-custom {
  background: #d4edda;
  border-color: var(--success-color);
  color: #155724;
}

.alert-warning-custom {
  background: #fff3cd;
  border-color: var(--warning-color);
  color: #856404;
}

.alert-custom h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.alert-custom p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

/* Two Column Content */
.two-column-content h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.two-column-content h4 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin: 30px 0 15px 0;
  font-weight: 600;
}

.two-column-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.two-column-content ul {
  list-style: none;
  margin-top: 20px;
  padding-left: 0;
}

.two-column-content li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

.two-column-content li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-size: 1.3rem;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 50px;
  border-radius: 15px;
  margin: 40px 0;
  box-shadow: var(--shadow-hover);
}

.highlight-box h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.highlight-box p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 0;
  opacity: 0.95;
}

/* Process Steps */
.process-step {
  position: relative;
  padding: 40px 30px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  height: 100%;
  transition: all 0.3s;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.process-step h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.process-step p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* CTA Section */
.cta-section {
  background: var(--primary-color);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
  }
  
  .cost-comparison-badge {
    font-size: 1.1rem;
    padding: 12px 25px;
  }
  
  .content-section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .btn-custom-primary, .btn-custom-outline {
    display: block;
    margin: 10px 0;
  }
  
  #scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .comparison-table {
    overflow-x: auto;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  
  .stat-item h3 {
    font-size: 2.5rem;
  }
  
  .highlight-box {
    padding: 30px 20px;
  }
  
  .highlight-box h3 {
    font-size: 1.6rem;
  }
  
  .highlight-box p {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .stat-item h3 {
    font-size: 2rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
}

/* Utility Classes */
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }
.text-bold { font-weight: 700; }
