@import url('./components.css');
@import url('https://fonts.cdnfonts.com/css/koodak');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Koodak','Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #35B4E7 0%, #5EC0FF 100%);
  position: relative;
  overflow-x: hidden;
  padding: 48px 0 32px;
}

[dir="rtl"] body {
  direction: rtl;
}

.logo-section {
  width: min(1100px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 0;
  margin: 0 auto 20px;
  gap: 12px;
}

.logo-section > * {
  flex: 0 0 56px;
}

.logo-section .basawad-logo {
  cursor: pointer;
}

.logo-section .close-section,
.logo-section .language-switcher .btn {
  margin: 0;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  max-width: 440px;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}


.welcome-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 0 24px 48px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.welcome-text {
  margin-bottom: 40px;
  text-align: center;
}

.welcome-text h1 {
  font-size: 48px;
  font-weight: 700;
  color: white;
  letter-spacing: -1px;
  line-height: 1.2;
}

.action-buttons {
  display: flex;
  font-family: 'Koodak','Vazirmatn', sans-serif;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
  text-align: end;
  align-items: center;
  margin: 0 auto;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Koodak','Vazirmatn', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1f2937;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

.action-btn:active {
  transform: translateY(0);
}

.btn-text {
  flex: 1;
  text-align: left;
  font-weight: 500;
}

.btn-text [dir="rtl"] {
  text-align: right;
}

.clouds-container {
  width: 100%;
  height: clamp(160px, 24vw, 360px);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.clouds-image {
  width: 1216px;
  height: 358px;
  object-fit: contain;
  object-position: top center;
  display: block;
  margin: 0 auto;
}

.action-btn [dir="rtl"] {
  text-align: left;
}

.btn-text [dir="rtl"] {
  text-align: left;
}

.btn-icon [dir="rtl"] {
  margin-left: 0;
  margin-right: 12px;
}

@media (max-width: 1024px) {
  body {
    padding: 40px 0 28px;
  }

  .logo-section {
    width: 100%;
  }

  .main-content {
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 36px 0 24px;
  }

  .logo-section {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    text-align: center;
  }

  .main-content {
    padding: 0 24px;
  }

  .welcome-text h1 {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .welcome-container {
    padding: 0 16px 36px;
  }

  .main-content {
    padding: 0 16px;
  }

  .action-buttons {
    max-width: 100%;
  }

  .action-btn {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 28px 0 24px;
  }

  .welcome-container {
    padding: 0 12px 28px;
  }

  .logo-section {
    padding: 24px 0 12px;
  }

  .logo img {
    max-width: 100px;
  }

  .main-content {
    padding: 0 12px;
  }

  .welcome-text h1 {
    font-size: 34px;
  }

  .action-btn {
    padding: 16px 20px;
    font-size: 15px;
  }

  .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  body {
    padding: 24px 0 20px;
  }

  .welcome-container {
    padding: 0 10px 24px;
  }

  .welcome-text h1 {
    font-size: 30px;
  }
  
  .action-btn {
    padding: 14px 16px;
    font-size: 14px;
  }
  
  .character {
    width: 140px;
    height: 140px;
  }
  
  .character-body {
    width: 80px;
    height: 70px;
  }
}

@media (min-width: 1440px) {
  .main-content {
    max-width: 500px;
  }

  .welcome-text h1 {
    font-size: 52px;
  }
}

@media (min-width: 1920px) {
  .main-content {
    max-width: 540px;
  }

  .clouds-container {
    height: 360px;
  }
}

.welcome-character {
  animation: characterEntrance 0.8s ease-out;
}

@keyframes characterEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-text {
  animation: textEntrance 0.8s ease-out 0.2s both;
}

@keyframes textEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.action-buttons {
  animation: buttonsEntrance 0.8s ease-out 0.4s both;
}

@keyframes buttonsEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
} 

.button-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px;
  border-radius: 18px;
  background: linear-gradient(180deg, #C0E3FC 0%, #2879EC 100%), linear-gradient(180deg, #4881F4 0%, #0054FC 100%);
  box-shadow: 0 -1px 0 0 #00419B inset;
  width: 100%;
  transition:
    box-shadow 0.12s cubic-bezier(.4,0,.2,1),
    transform 0.10s cubic-bezier(.4,0,.2,1);
}

.button-container:active {
  transform: scale(0.99);
  box-shadow: 0 -2px 0 0 #00419B inset, 0 2px 8px 0 rgba(40,121,236,0.10);
}

.custom-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  border: none;
  border-radius: 18px;
  padding: 18px 20px;
  color: white;
  font-family: 'Koodak','Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  background: #1D93FD;
  box-shadow: 0 -0.5px 0 0 #7EC6FF inset, 0 -4px 8px 0 #0658FB inset, 0 2px 0 0 #68B2FD inset;
  transition: 
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.08s cubic-bezier(.4,0,.2,1);
  width: 100%;
  max-width: 320px;
  min-width: 0;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.custom-button [dir="rtl"] {
  text-align: right;
}

.custom-button:hover {
  background: #168ef8;
  box-shadow: 0 -0.5px 0 0 #7EC6FF inset, 0 -4px 8px 0 #0658FB inset, 0 2px 0 0 #68B2FD inset;
}

.custom-button:active {
  transform: scale(1);
  box-shadow: 0 -0.5px 0 0 #7EC6FF inset, 0 -2px 4px 0 #0658FB inset, 0 1px 0 0 #68B2FD inset;
  background: #1998ff;
}
