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

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #F3F8FB 40%, #F3F8FB 100%);
  background-size: 100% 100%;
  font-family: "Roboto", -apple-system, "Open Sans", "Inter", "Oxygen", sans-serif;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}



.container {
  background: none;
  padding: 2rem;
  padding-top: 0rem;
  max-width: 48vw;
  width: fit-content;
  height: 100%;
  min-width: 700px;
}

.ad-container {
  width: 728px;
  height: 90px;
  background: #ffffff;
  border: 1px solid #F3F8FB;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  color: #c3d1da;
  font-size: 14px;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  margin-bottom: 3rem;
  padding: 2rem 0;
  width: 100%;
}

.logo-container {
  margin-bottom: 0.1rem;
  opacity: 0;
  transform: translateX(-150px);
  animation: floatInFromLeft 2s ease-out forwards;
}

.logo {
  max-width: 200px;
  height: auto;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
}

.hero-title {
  font-size: 4em;
  font-weight: 300;
  height: auto;
  width: 90% !important;
  max-width: 90% !important;
  background: linear-gradient(135deg, #052B36 0%, #5398AC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  line-height: 1.2;
  text-shadow: none;
  opacity: 0;
  transform: translateX(360px);
  animation: floatInFromRight 2s ease-out forwards;
}

.hero-description {
  font-size: 1.2em;
  font-weight: 400;
  color: #7AA7B3;
  margin: 1rem 0 0 0;
  line-height: 1.6;
  width: 90% !important;
  max-width: 90% !important;
  opacity: 0;
  transform: translateX(360px);
  animation: floatInFromRight 2s ease-out forwards;
}

@keyframes floatInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatInFromRight {
  0% {
    opacity: 0;
    transform: translateX(300px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.usd-container {
  margin-bottom: 2rem;
  width: 50%;
  position: relative;
}

.input-label {
  font-size: 0.8rem;
  color: #7AA7B3;
  margin-bottom: 0.5rem;
  text-align: left;
  font-weight: 600;
  padding-left: 0.2rem;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  position: relative;
}

.flag-container {
  margin-right: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flag {
  width: 32px;
  height: auto;
}

.flag-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: #152B31;
}

.usd-input {
  flex: 1;
  text-align: right;
  border: none;
  outline: none;
  font-size: 1.5rem;
  font-weight: 500;
  font-family: Roboto, Open Sans, Oxygen, -apple-system, sans-serif;
  color: #152B31;
  background: transparent;
  padding: 0.2rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  cursor: pointer;
}

.usd-input::placeholder {
  color: #7AA7B3;
  font-weight: 400;
}

/* Hide number input spinner buttons */
.usd-input::-webkit-outer-spin-button,
.usd-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.usd-input[type=number] {
  -moz-appearance: textfield;
}

/* Clear icon styling */
.clear-icon {
  position: absolute;
  right: -3.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(60px);
  opacity: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
}

.clear-icon.show {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.clear-icon-img {
  width: 31px;
  height: 31px;
  filter: brightness(0) saturate(100%) invert(35%) sepia(15%) saturate(800%) hue-rotate(180deg) brightness(100%) contrast(60%);
  opacity: 0.3;
  transition: all 0.2s ease;
}

.clear-icon:hover .clear-icon-img {
  filter: brightness(0) saturate(100%) invert(35%) sepia(15%) saturate(800%) hue-rotate(180deg) brightness(100%) contrast(60%);
  opacity: 0.5;
}

.currencies-container {
  margin-bottom: 2rem;
  width: 100%;
}

.currencies-label {
  font-size: 0.8rem;
  color: #7AA7B3;
  margin-bottom: 0.5rem;
  text-align: left;
  font-weight: 600;
  padding-left: 0.2rem;
}

.currency-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0rem;
}

.currency-button {
  font-size: 0.8rem;
  color: #7AA7B3;
  background: white;
  border: 1px solid #DCEBEF;
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  margin-right: 0.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  text-align: center;
  min-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.currency-button:hover {
  background: #052B36;
  border-color: #052B36;
  color: #ffffff;
}

.currency-button.active {
  background: #7AA7B3;
  border-color: #7AA7B3;
  color: #ffffff;
}

.currency-button.active:hover {
  background: #052B36;
  border-color: #052B36;
}

/* Main content container with two horizontal sections */
.main-content-container {
  display: flex;
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
}

.world-currencies-section,
.phone-section {
  flex: 1;
}

/* Currency display containers */
.currency-display-container {
  margin-bottom: 0.3rem;
  width: 100%;
  max-width: 100%;
}

.currency-display-container .input-group {
  flex-direction: row;
  align-items: center;
  padding: 0.3rem 0.5rem;
}

.currency-value-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.currency-name {
  font-size: 0.7rem;
  color: #7AA7B3;
  margin-bottom: 0.1rem;
  text-align: right;
  font-weight: 600;
  line-height: 1;
}

.currency-value {
  flex: 1;
  text-align: right;
  font-size: 1.2rem;
  font-weight: 500;
  color: #152B31;
  background: transparent;
  padding: 0.1rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Responsive design for the main content container */
@media (max-width: 768px) {
  .main-content-container {
    flex-direction: column;
    gap: 1rem;
  }

  .currency-display-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.2rem;
  }

  .currency-display-container .input-group {
    padding: 0.3rem 0.5rem;
  }

  .currency-name {
    font-size: 0.75rem;
    margin-bottom: 0.1rem;
  }

  .currency-value {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .main-content-container {
    margin-top: 1rem;
  }

  .currency-display-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.3rem;
  }

  .currency-display-container .input-group {
    padding: 0.25rem 0.5rem;
  }

  .currency-name {
    font-size: 0.7rem;
    margin-bottom: 0.05rem;
  }

  .currency-value {
    font-size: 1rem;
  }

  .phone-frame {
    width: 250px;
    height: 500px;
    border-radius: 25px;
  }

  .phone-screen {
    width: 240px;
    height: 490px;
    border-radius: 20px;
  }

  .footer-navigation {
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-navigation a {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    min-width: auto;
    flex: 0 1 auto;
    text-align: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(122, 167, 179, 0.2);
  }
}

/* Last updated message */
.last-updated {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.last-updated-text {
  font-size: 0.75rem;
  color: #7AA7B3;
  font-weight: 400;
}

/* Phone frame styling */

.section-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.phone-frame {
  width: 340px;
  height: 670px;
  background: linear-gradient(130deg, #E7EAF2 0%, #0B1E4E 100%);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 20%;
  transform: translateY(-50%);
  width: 4px;
  height: 44px;
  background: linear-gradient(180deg, #D9D9D9 0%, #A8B2CC 100%);
  border-radius: 1px;
  z-index: 5;
}

.phone-frame::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 30%;
  transform: translateY(-50%);
  width: 4px;
  height: 44px;
  background: linear-gradient(180deg, #D9D9D9 0%, #A8B2CC 100%);
  border-radius: 1px;
  z-index: 5;
}

.phone-frame .power-button {
  content: '';
  position: absolute;
  right: -4px;
  top: 25%;
  transform: translateY(-50%);
  width: 4px;
  height: 44px;
  background: linear-gradient(180deg, #D9D9D9 0%, #667498 100%);
  border-radius: 2px;
  z-index: 5;
}

.phone-screen {
  width: 330px;
  height: 660px;
  background: linear-gradient(130deg, #152B31 0%, #000000 100%);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 10px;
  background: linear-gradient(180deg, #000000 0%, #152B31 100%);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
  z-index: 10;
}

.phone-ad {
  width: 300px;
  height: 250px;
  display: flex;
  position: absolute;
  top: 10%;
  align-items: center;
  justify-content: center;
  border: 1px solid #152B31;
  background: linear-gradient(130deg, #152B31 0%, #000000 100%);
}

.ad-label {
  position: absolute;
  top: calc(10% + 250px + 10px);
  left: 50%;
  transform: translateX(-50%);
  color: #7AA7B3;
  opacity: 0.3;
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  margin: 0;
  z-index: 15;
}

.ad-label-top {
  color: #7AA7B3;
  opacity: 0.3;
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  margin: 0 0 0.3rem 0;
}

/* Footer styling */
.footer {
  width: 100%;
  margin-top: 2rem;
}

.footer-content {
  width: 100%;
  padding: 1rem;
  background: none;
}

.footer-navigation {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-navigation a {
  color: #7AA7B3;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: "Roboto", -apple-system, "Open Sans", "Inter", "Oxygen", sans-serif;
  transition: all 0.2s ease;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

.footer-navigation a:hover {
  color: #052B36;
  background: rgba(122, 167, 179, 0.1);
}

.footer-content p {
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  color: #7AA7B3;
  line-height: 1.4;
  text-align: center;
}

.footer-content p:last-child {
  margin-bottom: 0;
}

#brand {
  color: #395962;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 3;
}

/* Ensure smooth transitions */
html {
  scroll-behavior: smooth;
}

/* About and Privacy Policy Page Styles */
.about-section,
.privacy-section {
  max-width: 48vw;
  width: fit-content;
  min-width: 700px;
  margin: 0 auto 3rem auto;
  background: none;
  padding: 0;
  padding-top: 0rem;
}

.about-section h2,
.privacy-section h2 {
  color: #7AA7B3;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #5398AC;
  padding-bottom: 0.5rem;
}

.about-section h3,
.privacy-section h3 {
  color: #7AA7B3;
  font-size: 1.3rem;
  font-weight: 500;
  margin: 2rem 0 1rem 0;
}

.about-section p,
.privacy-section p {
  color: #7AA7B3;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-section strong,
.privacy-section strong {
  color: #7AA7B3;
  font-weight: 600;
}

/* Responsive design for tablets and mobiles */

/* 768 px Tablet view */

@media (max-width: 768px) {
  body {
    padding-top: 10px;
  }

  .container {
    max-width: 95vw;
    min-width: auto;
    padding: 1rem;
    padding-top: 0rem;
  }

  .hero-title {
    font-size: 2.5em !important;
    line-height: 1.1;
    transform: translateX(200px);
  }

  .hero-description {
    font-size: 1em !important;
    line-height: 1.4;
    transform: translateX(200px);
    margin-top: 0.5rem;
  }

  .logo {
    max-width: 150px !important;
  }

  .logo-container {
    transform: translateX(-100px);
  }

  .usd-container {
    width: 100% !important;
    margin-top: 4rem !important;
  }

  .input-group {
    min-width: 100%;
    overflow: visible;
  }

  .usd-input {
    font-size: 1.2rem;
  }

  .currency-buttons {
    justify-content: center;
    gap: 0.5rem;
  }

  .currency-button {
    min-width: auto;
    flex: 1;
    max-width: calc(50% - 0.25rem);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .ad-container {
    width: 468px;
    height: 60px;
  }

  .clear-icon {
    position: absolute !important;
    right: 0rem !important;
    top: -3rem !important;
    transform: translateY(-60px) !important;
    opacity: 0 !important;
    z-index: 1000 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 43px !important;
    height: 43px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
  }

  .clear-icon.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .main-content-container {
    flex-direction: column;
    gap: 1rem;
  }

  .currency-display-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.2rem;
  }

  .currency-display-container .input-group {
    padding: 0.3rem 0.5rem;
  }

  .currency-name {
    font-size: 0.75rem;
    margin-bottom: 0.1rem;
  }

  .currency-value {
    font-size: 1.2rem;
  }

  .footer-navigation {
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-navigation a {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    min-width: auto;
    flex: 0 1 auto;
    text-align: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(122, 167, 179, 0.2);
  }
}

/* 480 px Mobile view*/

@media (max-width: 480px) {
  body {
    padding-top: 10px;
  }

  .container {
    max-width: calc(100vw - 4rem);
    padding: 0.5rem;
    padding-top: 0rem;
    margin: 0;
  }

  .hero-title {
    font-size: 2em !important;
    transform: translateX(120px);
  }

  .hero-description {
    font-size: 0.9em !important;
    line-height: 1.3;
    transform: translateX(120px);
    margin-top: 0.3rem;
  }

  .logo {
    max-width: 120px !important;
  }

  .logo-container {
    transform: translateX(-60px);
  }

  .usd-container {
    width: 100% !important;
    margin-bottom: 1.5rem;
    margin-top: 4rem !important;
  }

  .input-group {
    min-width: 100%;
    overflow: visible;
  }

  .usd-input {
    font-size: 1rem;
  }

  .currency-button {
    max-width: 30%;
    margin-bottom: 0.1rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.2rem;
    font-size: 0.7rem;
  }

  .currency-buttons {
    gap: 0.3rem;
  }

  .ad-container {
    height: 60px;
    width: 468px;
    margin-bottom: 1rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .clear-icon {
    position: absolute !important;
    right: 0rem !important;
    top: -3rem !important;
    transform: translateY(-60px) !important;
    opacity: 0 !important;
    z-index: 1000 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 43px !important;
    height: 43px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
  }

  .clear-icon.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .hero-section {
    margin-bottom: 2rem;
    padding: 1rem 0;
  }

  .currencies-container {
    margin-bottom: 1.5rem;
  }

  .main-content-container {
    margin-top: 1rem;
  }

  .currency-display-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.3rem;
  }

  .currency-display-container .input-group {
    padding: 0.25rem 0.5rem;
  }

  .currency-name {
    font-size: 0.7rem;
    margin-bottom: 0.05rem;
  }

  .currency-value {
    font-size: 1rem;
  }

  .phone-frame {
    width: 250px;
    height: 500px;
    border-radius: 25px;
  }

  .phone-screen {
    width: 240px;
    height: 490px;
    border-radius: 20px;
  }

  .footer-navigation {
    gap: 0.4rem;
    margin-bottom: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-navigation a {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    min-width: auto;
    flex: 0 1 auto;
    text-align: center;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(122, 167, 179, 0.2);
  }
}

/* Mobile responsive styles for About and Privacy pages */
@media (max-width: 768px) {

  .about-section,
  .privacy-section {
    max-width: 95vw;
    min-width: auto;
    padding: 0;
    padding-top: 0rem;
    margin: 0 auto 2rem auto;
  }

  .about-section h2,
  .privacy-section h2 {
    font-size: 1.5rem;
  }

  .about-section h3,
  .privacy-section h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {

  .about-section,
  .privacy-section {
    max-width: calc(100vw - 4rem);
    min-width: auto;
    padding: 0;
    padding-top: 0rem;
    margin: 0 auto 1.5rem auto;
  }

  .about-section h2,
  .privacy-section h2 {
    font-size: 1.3rem;
  }

  .about-section p,
  .privacy-section p {
    font-size: 0.9rem;
  }
}
