/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

/* Main container */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100vh; /* Make the container take the full height of the viewport */
  padding: 0 50px; /* Optional: Adjust horizontal padding */
  gap: 50px; /* Add gap between the left and right section */
}

/* Default (mobile-first): No background image */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9; /* A fallback background color */
}

/* Desktop: Apply the background image for screens wider than 768px */
@media screen and (min-width: 768px) {
  body {
    background-image: url('../background.jpg'); /* Path to your background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
  }
}





/* Left section */
.text-section {
  max-width: 600px;
}

.text-section h1 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: bold;
  margin-bottom: 1rem;
}

.text-section .highlight {
  color: #ff9800;
}

.text-section p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta-button {
  padding: 12px 20px;
  background-color: #ff9800;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e68a00;
}

/* Right section */
.phone-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto; /* Allow the phone section to resize based on content */
}

.phone-frame {
  width: 393px; /* Default size for Pixel 8 dimensions */
  height: 830px;
  background: #D3D3D3; /* Neutral background */
  border: 1px solid #aaa; /* Subtle border for a cleaner bezel */
  border-radius: 15px; /* Slightly rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Depth shadow */
  overflow: hidden; /* Prevents overflow of Flutter app */
  position: relative; /* Ensures accurate placement for child elements */
  display: flex; /* Centers the Flutter app within the frame */
  justify-content: center;
  align-items: center;
  margin: 0 auto; /* Centers the frame horizontally */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .phone-frame {
    width: 75%; /* Scale down width proportionally */
    height: calc(75% * 2.11); /* Maintain aspect ratio (393:830 = ~2.11) */
  }
}

@media (max-width: 768px) {
  .phone-frame {
    width: 85%; /* Use a larger percentage of the screen on smaller devices */
    height: calc(85% * 2.11); /* Maintain aspect ratio */
  }
}

@media (max-width: 576px) {
  .phone-frame {
    width: 95%; /* Almost full width for small devices */
    height: calc(95% * 2.11); /* Maintain aspect ratio */
  }
}

#flutter-app {
  width: 90%;
  height: 90%;
  background-color: #f5f5f5;
}

.text-section h1 span.highlight {
  color: #ab6033;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.text-section ul li {
  margin-bottom: 10px;
}

.cta-button {
  margin-top: 30px;
  padding: 15px 40px;
  background-color: #ab6033;
  color: white;
  font-size: 1.2rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #E55A4D;
}