/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-image: url("back.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-bottom: 30px; /* Reduced bottom spacing */
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0);
  transition: all 0.3s ease;
}

.navbar img {
  height: 35px;
  transition: height 0.3s ease;
}

/* Container Styles */
.container {
  margin: 60px auto 25px; /* Reduced margins */
  flex-grow: 1;
  padding: 20px 25px; /* Reduced padding */
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 80%; /* Narrower container */
  max-width: 500px; /* Reduced max-width */
}

.heading {
  font-size: 20px; /* Smaller heading */
  font-weight: 600;
  margin-bottom: 10px; /* Reduced margin */
}

.options {
  margin-bottom: 15px; /* Reduced margin */
}

.language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px; /* Reduced gap */
}

.language p {
  font-size: 15px; /* Smaller font */
  font-weight: 500;
}

.language select {
  padding: 6px 10px; /* Reduced padding */
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  flex-grow: 1;
  max-width: 220px; /* Smaller select */
}

.line {
  width: 100%;
  height: 1px;
  background-color: #ccc;
  margin: 15px 0; /* Reduced margin */
}

/* Button Styles */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #356aff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 15px; /* Reduced padding */
  font-size: 15px; /* Smaller font */
  cursor: pointer;
  width: 100%;
  margin-bottom: 12px; /* Reduced margin */
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover:not(:disabled) {
  background-color: #2856e0;
  transform: translateY(-2px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.btn ion-icon {
  font-size: 18px; /* Smaller icon */
  margin-right: 8px; /* Reduced margin */
}

/* Result Styles */
.result {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px; /* Reduced padding */
  font-size: 14px; /* Smaller font */
  min-height: 90px; /* Shorter minimum height */
  margin-bottom: 15px; /* Reduced margin */
  outline: none;
  transition: border-color 0.3s;
}

.result:focus {
  border-color: #356aff;
  box-shadow: 0 0 0 2px rgba(53, 106, 255, 0.2);
}

.result p {
  color: #777;
}

/* Social Section Styles */
.social-section {
  background-color: #fff;
  padding: 20px; /* Reduced padding */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px; /* Reduced margin */
  width: 80%; /* Narrower section */
  max-width: 500px; /* Reduced max-width */
  margin-left: auto;
  margin-right: auto;
}

.social-section h3 {
  font-size: 16px; /* Smaller heading */
  margin-bottom: 10px; /* Reduced margin */
}

.social-section p {
  font-size: 13px; /* Smaller font */
  color: #666;
  margin-bottom: 12px; /* Reduced margin */
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px; /* Reduced gap */
  flex-wrap: wrap;
}

.social-icon {
  width: 38px; /* Smaller icons */
  height: 38px; /* Smaller icons */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px; /* Smaller font */
  transition: all 0.3s ease;
  text-decoration: none;
  color: #fff;
}

.social-icon:nth-child(1) {
  background-color: #e4405f;
}

.social-icon:nth-child(2) {
  background-color: #1877f2;
}

.social-icon:nth-child(3) {
  background-color: #000;
}

.social-icon:nth-child(4) {
  background-color: #25d366;
}

.social-icon:hover {
  transform: translateY(-3px); /* Reduced hover effect */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Smaller shadow */
}

/* Footer Styles */
.footer {
  text-align: center;
  padding: 18px; /* Reduced padding */
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  width: 80%; /* Narrower footer */
  max-width: 500px; /* Reduced max-width */
  margin: 0 auto 20px; /* Reduced bottom margin */
}

.footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  z-index: -1;
  border-radius: 12px;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: 7px 14px; /* Reduced padding */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 250px;
  transition: all 0.3s ease;
  margin: 5px 8px; /* Reduced margins */
  position: relative;
  overflow: hidden;
  font-size: 14px; /* Smaller font */
}

.footer a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.5s ease;
}

.footer a:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Smaller shadow */
}

.footer a:hover::before {
  left: 100%;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .container,
  .social-section,
  .footer {
    width: 75%;
  }
}

@media (max-width: 768px) {
  .container,
  .social-section,
  .footer {
    width: 85%;
    padding: 20px;
  }
  
  .navbar {
    padding: 8px 0;
  }
  
  .navbar img {
    height: 30px;
  }
}

@media (max-width: 576px) {
  body {
    padding-bottom: 20px;
  }
  
  .container,
  .social-section,
  .footer {
    width: 90%;
    padding: 15px;
  }
  
  .navbar img {
    height: 28px;
  }
  
  .heading {
    font-size: 18px;
  }
  
  .language {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .language select {
    width: 100%;
    max-width: none;
  }
  
  .result {
    min-height: 80px;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .footer a {
    padding: 6px 12px;
    margin: 4px;
    font-size: 13px;
  }
}