/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  background-color: hsl(270, 20%, 96%);
  position: relative;
  overflow-x: hidden;
}

/* Background Gradient */
.background-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, hsl(293, 100%, 63%) 0%, hsl(264, 100%, 61%) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  z-index: -1;
}

/* Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content */
.main-content {
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
  max-width: 1200px;
}

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  height: 570px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* Phone Header */
.phone-header {
  background: linear-gradient(135deg, hsl(264, 100%, 61%) 0%, hsl(293, 100%, 63%) 100%);
  color: white;
  padding: 20px 15px 15px;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 25px;
  background: white;
  border-radius: 0 0 15px 15px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: hsl(276, 100%, 81%);
}

.user-status {
  font-size: 12px;
  color: hsl(276, 100%, 81%);
  opacity: 0.8;
}

.menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
}

/* Chat Container */
.chat-container {
  padding: 15px;
  background: hsl(270, 20%, 96%);
  height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Messages */
.message {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.message.received {
  align-self: flex-start;
  background: white;
  color: hsl(276, 55%, 52%);
  border-bottom-left-radius: 5px;
}

.message.sent {
  align-self: flex-end;
  background: white;
  color: hsl(270, 7%, 64%);
  border-bottom-right-radius: 5px;
}

/* Dog Images */
.dog-images {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.dog-images img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
}

/* Pricing Options */
.pricing-options {
  background: linear-gradient(135deg, hsl(293, 100%, 63%) 0%, hsl(264, 100%, 61%) 100%);
  color: white;
  padding: 15px;
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.radio-btn {
  width: 16px;
  height: 16px;
  border: 2px solid hsl(289, 100%, 72%);
  border-radius: 50%;
  position: relative;
}

.radio-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0;
}

.pricing-option:first-child .radio-btn::after {
  opacity: 1;
}

.duration {
  flex: 1;
  font-size: 14px;
}

.price {
  font-weight: 700;
  font-size: 16px;
}

/* Message Input */
.message-input {
  padding: 15px;
  background: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-field {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 15px;
  border-radius: 25px;
  background: hsl(270, 20%, 96%);
  color: hsl(271, 36%, 24%);
  font-size: 14px;
}

.input-field::placeholder {
  color: hsl(206, 6%, 79%);
}

.send-btn {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: hsl(271, 36%, 24%);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.send-btn:hover {
  transform: scale(1.1);
}

/* Content Section */
.content-section {
  flex: 1;
  max-width: 450px;
  color: hsl(271, 36%, 24%);
}

.main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.1;
}

.description {
  font-size: 18px;
  line-height: 1.6;
  color: hsl(270, 7%, 64%);
}

/* Attribution */
.attribution {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  text-align: center;
  color: hsl(271, 36%, 24%);
}

.attribution a {
  color: hsl(228, 45%, 44%);
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-content {
    gap: 40px;
  }
  
  .main-title {
    font-size: 36px;
  }
  
  .description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    gap: 60px;
    padding: 40px 0;
  }
  
  .phone-mockup {
    width: 260px;
    height: 540px;
  }
  
  .main-title {
    font-size: 32px;
    text-align: center;
  }
  
  .description {
    text-align: center;
  }
  
  .background-gradient {
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 85%);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .phone-mockup {
    width: 240px;
    height: 520px;
  }
  
  .main-title {
    font-size: 28px;
  }
  
  .description {
    font-size: 15px;
  }
}

/* Animation for initial load */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-mockup {
  animation: slideIn 0.8s ease-out;
}

.content-section {
  animation: slideIn 0.8s ease-out 0.2s both;
}

/* Interactive Features */
.message-time {
  font-size: 10px;
  color: hsl(270, 7%, 64%);
  opacity: 0.7;
  margin-top: 4px;
  display: block;
}

.typing-indicator {
  background: white !important;
  padding: 12px 15px !important;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: hsl(270, 7%, 64%);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Interactive Radio Buttons */
.radio-btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-btn:hover {
  transform: scale(1.1);
}

.radio-btn.active {
  background: white !important;
}

.radio-btn.active::after {
  opacity: 1 !important;
}

/* Message Hover Effects */
.message {
  transition: all 0.3s ease;
  cursor: pointer;
}

.message:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Send Button Animation */
.send-btn {
  transition: all 0.3s ease;
}

.send-btn:hover {
  transform: scale(1.1);
  background: hsl(293, 100%, 63%) !important;
}

/* Menu Button Animation */
.menu-btn {
  transition: all 0.3s ease;
}

.menu-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

/* Input Field Focus */
.input-field:focus {
  background: white;
  box-shadow: 0 0 0 2px hsl(293, 100%, 63%);
}

/* Pricing Options Hover */
.pricing-option {
  transition: all 0.3s ease;
  cursor: pointer;
}

.pricing-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 -12px;
}

/* New Message Animation */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message {
  animation: messageSlideIn 0.3s ease-out;
}
