/* Global styles */
body {
  background: url('background.png') repeat-x center center fixed;
  background-size: cover;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  animation: moveBg 60s linear infinite;
}

/* Background scrolling effect */
@keyframes moveBg {
  from { background-position: 0 0; }
  to { background-position: -100% 0; }
}

/* Header */
header {
  background: #016ecd;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}
header.scrolled {
  background: #fff;
}
header .logo {
  height: 70px;
}
header nav a {
  color: white;
  margin-left: 15px;
  font-weight: 500;
  text-decoration: none;
}
header.scrolled nav a {
  color: #0056b3;
}

/* Login Section */
.login-section {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100vh;
  padding-left: 12%;
}
.login-card {
  max-width: 420px;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 1s ease, opacity 1s ease;
}
.login-card.slide-left {
  transform: translateX(-120%);
  opacity: 0;
}
.login-card h3 {
  text-align: center;
  margin-bottom: 10px;
  color: #0056b3;
}
.tagline {
  text-align: center;
  font-size: 1.1rem;
  color: #0056b3;
  margin-bottom: 20px;
}
.google-btn {
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  width: 100%;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}
.google-btn img {
  width: 20px;
}
.signup-text {
  text-align: center;
  margin-top: 15px;
}

/* Unlock Section */
.unlock-section {
  background: #003366;
  color: white;
  padding: 100px 20px;
}
.unlock-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.unlock-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}
.stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 50px;
}
.stat h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.stat p {
  font-size: 1.1rem;
}
.dashboard-icon {
  height: 30px;
  margin-right: 10px;
}

/* ECG Section (if reused elsewhere) */
.ecg-container {
  background: #000814;
  color: #00ff88;
  text-align: center;
  padding: 40px 0;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.ecg-line {
  width: 100%;
  height: 100px;
  background: url('https://i.ibb.co/ZV0v0Dp/ecg-line.gif') repeat-x;
  background-size: contain;
}
.ecg-container h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #00ffcc;
  font-size: 2.5rem;
  font-weight: bold;
  background: rgba(0,0,0,0.6);
  padding: 10px 20px;
  border-radius: 10px;
}

/* Animated Image Section */
.animated-image-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  margin-top: 30px;
  animation: fadeIn 2s ease-in-out;
}
.animated-image {
  max-width: 100%;
  border-radius: 16px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Solutions Section */
.solutions-section {
  padding: 60px 20px;
  background: #f8f9fc;
}
.solutions-section h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.solutions-section p {
  color: #555;
  margin-bottom: 40px;
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.solution-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}
.solution-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}
.solution-card h3 {
  color: #0056b3;
  margin-bottom: 10px;
}
.solution-card p {
  font-size: 0.95rem;
  color: #444;
}

/* Footer */
footer {
  background: #f0f4f9;
  padding: 40px 0;
}
footer h5 {
  color: #0056b3;
}

/* ✅ Unlock Section Layout Update */
.unlock-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.unlock-content {
  flex: 1;
  min-width: 300px;
}

.phone-preview {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-preview .phone-image {
  max-width: 280px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
