/* Enhanced custom styles for SmartDATA Landing Page */

/* Base styles and smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  line-height: 1.6;
}

/* Modern container with better padding on mobile */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Enhanced header styling */
header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

header img {
  transition: transform 0.3s ease;
}

header img:hover {
  transform: scale(1.05);
}

/* Hero section enhancements */
#hero {
  background-image: linear-gradient(135deg, #0D448C 0%, #1a56a5 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
  z-index: 0;
}

#hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

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

/* Section styling */
section {
  padding: 5rem 0;
  position: relative;
}

section h2 {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #077835;
  border-radius: 3px;
}

/* Card enhancements */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

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

.dark .card {
  background: #1f2937;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Step cards in How It Works section */
.step-card {
  position: relative;
  z-index: 1;
}

.step-card .step-number {
  background: linear-gradient(135deg, #0D448C 0%, #1a56a5 100%);
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(13, 68, 140, 0.3);
}

/* Benefits styling */
.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.benefit-item svg {
  color: #077835;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Comparison table enhancements */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table th {
  background-color: #f3f4f6;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) {
  background-color: #f9fafb;
}

.dark .comparison-table th {
  background-color: #374151;
  border-bottom: 1px solid #4b5563;
}

.dark .comparison-table td {
  border-bottom: 1px solid #4b5563;
}

.dark .comparison-table tr:nth-child(even) {
  background-color: #1f2937;
}

/* CTA section enhancements */
#contact {
  background-image: linear-gradient(135deg, #0D448C 0%, #1a56a5 100%);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
  z-index: 0;
}

#contact .container {
  position: relative;
  z-index: 1;
}

/* Button enhancements */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: #077835;
  color: white;
}

.btn-primary:hover {
  background-color: #056125;
}

.btn-secondary {
  background-color: white;
  color: #0D448C;
}

.btn-secondary:hover {
  background-color: #f3f4f6;
}

/* Footer enhancements */
footer {
  background-color: #1a202c;
  color: white;
  padding: 3rem 0;
}

footer img {
  height: 40px;
  margin-bottom: 1rem;
}

footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

footer .social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Animation for elements when they come into view */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Dark mode specific styles */
.dark body {
  background-color: #111827;
  color: #f3f4f6;
}

.dark .card {
  background-color: #1f2937;
}

.dark .btn-secondary {
  background-color: #374151;
  color: white;
}

.dark .btn-secondary:hover {
  background-color: #4b5563;
}