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

html {
   background: linear-gradient(252deg, #1e1e1e 0%, #252525 46.59%, #1e1e1e 100%);
}

body {
   font-family: 'Montserrat', sans-serif;
   color: #ffffff;
   min-height: 100vh;
   overflow-x: hidden;
   position: relative;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   text-rendering: optimizeLegibility;
}

/* Background pattern */
body::before {
   content: '';
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   pointer-events: none;
   z-index: -1;
}

/* Header */
.header {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 20px 40px;
   z-index: 1000;
   backdrop-filter: blur(10px);
}

.logo-container {
   display: flex;
   align-items: center;
   gap: 5px;
}

.logo {
   height: 50px;
   width: auto;
   filter: brightness(1.1);
}

.logo-text {
   font-size: 24px;
   font-weight: 500;
   color: #ffffff;
   letter-spacing: 1px;
}

.header-right {
   display: flex;
   align-items: center;
   gap: 30px;
}

/* Language switcher */
.language-switcher {
   display: flex;
   gap: 8px;
   background: rgba(255, 255, 255, 0.1);
   border-radius: 10px;
   padding: 4px;
   border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
   background: transparent;
   border: none;
   color: #ffffff;
   padding: 8px 16px;
   border-radius: 5px;
   font-family: 'Montserrat', sans-serif;
   font-weight: 600;
   font-size: 14px;
   cursor: pointer;
   transition: all 0.3s ease;
   position: relative;
}

.lang-btn:hover {
   background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
   background: #fe0032;
   color: #ffffff;
}

/* Social links */
.social-links {
   display: flex;
   gap: 15px;
}

.social-link {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 40px;
   height: 40px;
   background: rgba(255, 255, 255, 0.1);
   border-radius: 50%;
   color: #ffffff;
   text-decoration: none;
   transition: all 0.3s ease;
   border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
   background: #fe0032;
   border-color: #fe0032;
   transform: translateY(-2px);
   box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}

.social-link svg {
   width: 18px;
   height: 18px;
}

/* Main content */
.main-content {
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 100vh;
   padding: 120px 40px 80px;
}

.content-container {
   text-align: center;
   max-width: 1200px;
   width: 100%;
}

/* Main title */
.main-title {
   margin-bottom: 30px;
   line-height: 1.1;
   position: relative;
}

.title-line-1 {
   line-height: 1;
   display: block;
   font-size: clamp(2.5rem, 5vw, 4rem);
   font-weight: 800;
   letter-spacing: 2px;
   opacity: 0;
   animation: fadeInUp 1s ease 0.5s forwards;
   text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title-line-2 {
   display: block;
   font-size: clamp(2rem, 4vw, 2.6rem);
   font-weight: 500;
   letter-spacing: 1px;
   text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.title-line-2 span {
   opacity: 0;
   animation: fadeInUp 1s ease forwards;
}

.title-line-2 span:nth-child(1) {
   animation-delay: 0.7s;
}

.title-line-2 span:nth-child(2) {
   animation-delay: 0.9s;
}

.title-line-2 span:nth-child(3) {
   animation-delay: 1.1s;
}

.highlight {
   color: #fe0032;
   text-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
   font-weight: 700;
   position: relative;
}

/* .highlight::after {
   content: '';
   position: absolute;
   bottom: -2px;
   left: 0;
   width: 100%;
   height: 2px;
   background: linear-gradient(90deg, transparent, #FE0032, transparent);
   opacity: 0.6;
} */

/* Subtitle */
.subtitle {
   font-size: clamp(1rem, 2vw, 1.2rem);
   line-height: 1.6;
   color: rgba(143, 135, 135, 1);
   margin-bottom: 50px;
   opacity: 0;
   animation: fadeInUp 1s ease 1.3s forwards;
}

/* Notification form */
.notification-form {
   display: flex;
   gap: 15px;
   justify-content: center;
   margin-bottom: 40px;
   flex-wrap: wrap;
   opacity: 0;
   animation: fadeInUp 1s ease 1.5s forwards;
}

.email-input {
   flex: 1;
   max-width: 350px;
   padding: 18px 25px;
   background: rgba(255, 255, 255, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.2);
   border-radius: 10px;
   color: #ffffff;
   font-family: 'Montserrat', sans-serif;
   font-size: 16px;
   outline: none;
   transition: all 0.3s ease;
   backdrop-filter: blur(10px);
}

.email-input::placeholder {
   color: rgba(255, 255, 255, 0.6);
}

.email-input:focus {
   border-color: #fe0032;
   background: rgba(255, 255, 255, 0.15);
}

/* Email error states */
.email-input.error {
   border-color: #fe0032;
   background: rgba(220, 20, 60, 0.1);
}

.email-error-container {
   height: 30px;
   display: flex;
   align-items: flex-start;
   justify-content: center;
   margin-top: 8px;
}

.email-error {
   display: none;
   color: #fe0032;
   font-size: 14px;
   font-weight: 500;
   text-align: center;
   opacity: 0;
   transform: translateY(-10px);
   transition: all 0.3s ease;
}

.email-error.show {
   display: block;
   opacity: 1;
   transform: translateY(0);
}

.notify-btn {
   padding: 18px 10px;
   background: linear-gradient(135deg, #fe0032 0%, #b91c3c 100%);
   border: none;
   border-radius: 10px;
   color: #ffffff;
   font-family: 'Montserrat', sans-serif;
   font-weight: 700;
   font-size: 16px;
   cursor: pointer;
   transition: all 0.3s ease;
   letter-spacing: 1px;
   box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
   min-width: 180px;
   width: 180px;
   text-align: center;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.notify-btn:disabled {
   opacity: 0.6;
   cursor: not-allowed;
   transform: none !important;
   pointer-events: none;
   background: linear-gradient(135deg, #999999 0%, #777777 100%) !important;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.notify-btn:hover:not(:disabled) {
   transform: translateY(-2px);
   box-shadow: 0 12px 35px rgba(220, 20, 60, 0.4);
   background: linear-gradient(135deg, #e6164a 0%, #c91e42 100%);
}

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

/* Footer */
.footer {
   position: fixed;
   bottom: 0;
   left: 0;
   right: 0;
   padding: 70px 40px;
   backdrop-filter: blur(10px);
   z-index: 1000;
}

/* Contact info */
.contact-info {
   text-align: center;
   opacity: 0;
   animation: fadeInUp 1s ease 1.7s forwards;
}

.contact-info p {
   font-size: 14px;
   color: rgba(255, 255, 255, 0.7);
   font-weight: 400;
   margin: 0;
}

.mailto {
   color: #fe0032 !important;
   text-decoration: none;
   color: rgba(255, 255, 255, 0.7);
}

.mailto:hover {
   text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* Responsive design */
@media (max-width: 768px) {
   .header {
      padding: 20px 24px;
      flex-direction: row;
      gap: 20px;
      background: rgba(26, 26, 26, 0.95);
      backdrop-filter: blur(15px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
   }

   .logo {
      height: 48px;
   }

   .logo-text {
      font-size: 22px;
      font-weight: 600;
   }

   .header-right {
      gap: 24px;
   }

   .main-content {
      padding: 160px 24px 120px;
      min-height: calc(100vh - 80px);
   }

   .content-container {
      max-width: 100%;
      padding: 0 8px;
   }

   .footer {
      padding: 24px;
      background: rgba(26, 26, 26, 0.95);
      backdrop-filter: blur(15px);
      border-top: 1px solid rgba(255, 255, 255, 0.05);
   }

   .notification-form {
      flex-direction: column;
      align-items: stretch;
      gap: 24px;
      margin-bottom: 10px;
   }

   .email-input {
      width: 100%;
      max-width: none;
      padding: 20px 28px;
      font-size: 17px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.08);
      border: 2px solid rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(20px);
   }

   .email-input:focus {
      border-color: #fe0032;
      background: rgba(255, 255, 255, 0.12);
      box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.15);
   }

   .notify-btn {
      width: 100%;
      max-width: none;
      min-width: auto;
      padding: 20px 40px;
      font-size: 17px;
      font-weight: 700;
      border-radius: 16px;
      background: linear-gradient(135deg, #fe0032 0%, #b91c3c 100%);
      box-shadow: 0 12px 40px rgba(220, 20, 60, 0.4);
   }

   .notify-btn:hover:not(:disabled) {
      transform: translateY(-3px);
      box-shadow: 0 16px 50px rgba(220, 20, 60, 0.5);
   }

   .social-links {
      gap: 16px;
   }

   .social-link {
      width: 44px;
      height: 44px;
      background: rgba(255, 255, 255, 0.08);
      border: 2px solid rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(10px);
   }

   .social-link:hover {
      background: #fe0032;
      border-color: #fe0032;
      transform: translateY(-3px) scale(1.05);
      box-shadow: 0 12px 35px rgba(220, 20, 60, 0.4);
   }

   .social-link svg {
      width: 20px;
      height: 20px;
   }

   .title-line-1 {
      font-size: clamp(2.2rem, 8vw, 3.2rem);
      font-weight: 800;
      letter-spacing: 1px;
   }

   .title-line-2 {
      font-size: clamp(1.6rem, 6vw, 2.2rem);
      font-weight: 600;
      letter-spacing: 0.5px;
      line-height: 1.2;
   }

   .subtitle {
      font-size: clamp(1rem, 4vw, 1.2rem);
      line-height: 1.7;
      margin-bottom: 60px;
      padding: 0 16px;
      color: rgba(255, 255, 255, 0.8);
   }

   .language-switcher {
      background: rgba(255, 255, 255, 0.08);
      border: 2px solid rgba(255, 255, 255, 0.15);
      padding: 6px;
      backdrop-filter: blur(10px);
   }

   .lang-btn {
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 600;
      border-radius: 5px;
   }

   .lang-btn.active {
      background: #fe0032;
   }
}

@media (max-width: 480px) {
   .header {
      padding: 16px 20px;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      background: rgba(26, 26, 26, 0.98);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
   }

   .logo-container {
      gap: 5px;
      order: 1;
   }

   .logo {
      height: 42px;
      filter: brightness(1.2) drop-shadow(0 0 10px rgba(220, 20, 60, 0.3));
   }

   .logo-text {
      font-size: 18px;
      font-weight: 700;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
   }

   .header-right {
      gap: 24px;
      order: 2;
      width: 100%;
      justify-content: center;
      align-items: center;
   }

   .language-switcher {
      background: rgba(255, 255, 255, 0.1);
      border: 2px solid rgba(255, 255, 255, 0.2);
      padding: 8px;
      border-radius: 10px;
      backdrop-filter: blur(15px);
   }

   .lang-btn {
      padding: 10px 18px;
      font-size: 13px;
      font-weight: 700;
      border-radius: 5px;
      transition: all 0.4s ease;
   }

   .lang-btn.active {
      background: #fe0032;
      transform: scale(1.05);
   }

   .social-links {
      gap: 20px;
   }

   .social-link {
      width: 48px;
      height: 48px;
      background: rgba(255, 255, 255, 0.1);
      border: 2px solid rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(15px);
      transition: all 0.4s ease;
   }

   .social-link:hover {
      background: linear-gradient(135deg, #fe0032 0%, #b91c3c 100%);
      border-color: #fe0032;
      transform: translateY(-4px) scale(1.1);
      box-shadow: 0 16px 40px rgba(220, 20, 60, 0.5);
   }

   .social-link svg {
      width: 22px;
      height: 22px;
   }

   .main-content {
      padding: 200px 20px 0px;
   }

   .content-container {
      max-width: 100%;
      padding: 0 4px;
   }

   .main-title {
      margin-bottom: 40px;
   }

   .title-line-1 {
      font-size: clamp(1.5rem, 8vw, 2.5rem);
      font-weight: 800;
      letter-spacing: 0.5px;
      line-height: 1.1;
      text-shadow: 0 4px 20px rgba(220, 20, 60, 0.3);
   }

   .title-line-2 {
      font-size: clamp(1.1rem, 6vw, 1.7rem);
      font-weight: 600;
      letter-spacing: 0.3px;
      line-height: 1.3;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
   }

   .highlight {
      color: #fe0032;
      text-shadow: 0 0 30px rgba(220, 20, 60, 0.7);
      font-weight: 800;
   }

   .subtitle {
      font-size: clamp(0.8rem, 4vw, 1rem);
      line-height: 1.8;
      margin-bottom: 60px;
      padding: 0 12px;
      color: rgba(255, 255, 255, 0.85);
      text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
   }

   .notification-form {
      gap: 20px;
      margin-bottom: 10px;
   }

   .email-input {
      padding: 20px 28px;
      font-size: 15px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.1);
      border: 3px solid rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(25px);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
   }

   .email-input:focus {
      border-color: #fe0032;
      background: rgba(255, 255, 255, 0.15);
      transform: translateY(-2px);
   }

   .email-input.error {
      border-color: #fe0032;
      background: rgba(220, 20, 60, 0.15);
      /* box-shadow: 0 0 0 5px rgba(220, 20, 60, 0.3), 0 12px 40px rgba(220, 20, 60, 0.2); */
   }

   .notify-btn {
      padding: 20px 40px;
      font-size: 15px;
      font-weight: 800;
      min-width: auto;
      width: 100%;
      border-radius: 20px;
      background: linear-gradient(135deg, #fe0032 0%, #b91c3c 100%);
      box-shadow: 0 16px 48px rgba(220, 20, 60, 0.4);
      letter-spacing: 1.5px;
      text-transform: uppercase;
   }

   .notify-btn:hover:not(:disabled) {
      transform: translateY(-4px);
      box-shadow: 0 20px 60px rgba(220, 20, 60, 0.6);
      background: linear-gradient(135deg, #e6164a 0%, #c91e42 100%);
   }

   .notify-btn:disabled {
      background: linear-gradient(135deg, #666666 0%, #555555 100%);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
      transform: none;
   }

   .footer {
      padding: 28px 20px;
      background: rgba(26, 26, 26, 0.98);
      backdrop-filter: blur(20px);
      border-top: 1px solid rgba(255, 255, 255, 0.08);
   }

   .contact-info p {
      font-size: 12px;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.8);
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
   }

   .mailto {
      color: #fe0032;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s ease;
   }

   .mailto:hover {
      color: #e6164a;
      text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
   }

   /* Enhanced Dialog for Mobile */
   .dialog-content {
      padding: 40px 28px;
      margin: 20px;
      border-radius: 24px;
      background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
      border: 2px solid rgba(255, 255, 255, 0.15);
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(20px);
   }

   .dialog-icon {
      width: 80px;
      height: 80px;
      font-size: 36px;
      margin-bottom: 24px;
   }

   .dialog-icon.success {
      background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
      box-shadow: 0 12px 40px rgba(76, 175, 80, 0.4);
   }

   .dialog-icon.error {
      background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
      box-shadow: 0 12px 40px rgba(244, 67, 54, 0.4);
   }

   .dialog-title {
      font-size: 20px;
      font-weight: 800;
      margin-bottom: 20px;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
   }

   .dialog-message {
      font-size: 14px;
      color: rgba(255, 255, 255, 0.9);
      line-height: 1.7;
      margin-bottom: 32px;
   }

   .dialog-button {
      padding: 14px 32px;
      font-size: 14px;
      font-weight: 700;
      border-radius: 16px;
      background: linear-gradient(135deg, #fe0032 0%, #b91c3c 100%);
      box-shadow: 0 12px 35px rgba(220, 20, 60, 0.4);
      transition: all 0.4s ease;
      text-transform: uppercase;
      letter-spacing: 1px;
   }

   .dialog-button:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: 0 16px 45px rgba(220, 20, 60, 0.5);
   }

   /* Email Error Enhancement */
   .email-error-container {
      height: 35px;
      margin-top: 12px;
   }

   .email-error {
      font-size: 12px;
      font-weight: 600;
      color: #fe0032;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
   }

   /* Enhanced Animations for Mobile */
   .title-line-1,
   .title-line-2 span {
      animation-duration: 1.2s;
   }

   .subtitle {
      animation-duration: 1.2s;
      animation-delay: 1.4s;
   }

   .notification-form {
      animation-duration: 1.2s;
      animation-delay: 1.6s;
   }

   .contact-info {
      animation-duration: 1.2s;
      animation-delay: 1.8s;
   }
}

/* Additional hover effects */
.main-title {
   position: relative;
}

/* .main-title::after {
   content: '';
   position: absolute;
   bottom: -10px;
   left: 50%;
   transform: translateX(-50%);
   width: 100px;
   height: 3px;
   background: linear-gradient(90deg, transparent, #FE0032, transparent);
   opacity: 0;
   animation: fadeIn 1s ease 2s forwards;
} */

@keyframes fadeIn {
   to {
      opacity: 1;
   }
}

/* Smooth scrolling */
html {
   scroll-behavior: smooth;
}

/* Performance optimizations for mobile */
@media (max-width: 480px) {
   .header,
   .footer {
      will-change: transform;
   }

   .main-content {
      will-change: opacity, transform;
   }

   .email-input,
   .notify-btn {
      will-change: transform, box-shadow;
   }
}

/* Focus styles for accessibility */
.lang-btn:focus,
.social-link:focus,
.email-input:focus,
.notify-btn:focus {
   outline: none;
}

/* Custom Dialog Styles */
.custom-dialog {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.8);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 10000;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
}

.custom-dialog.show {
   opacity: 1;
   visibility: visible;
}

.dialog-content {
   background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
   border-radius: 20px;
   padding: 40px;
   text-align: center;
   max-width: 400px;
   width: 90%;
   border: 1px solid rgba(255, 255, 255, 0.1);
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
   transform: scale(0.8) translateY(20px);
   transition: all 0.3s ease;
}

.custom-dialog.show .dialog-content {
   transform: scale(1) translateY(0);
}

.dialog-icon {
   width: 80px;
   height: 80px;
   margin: 0 auto 20px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 40px;
   animation: iconPulse 0.6s ease;
}

.dialog-icon.success {
   background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
   color: white;
}

.dialog-icon.error {
   background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
   color: white;
}

.dialog-title {
   font-size: 24px;
   font-weight: 700;
   margin-bottom: 15px;
   color: #ffffff;
}

.dialog-message {
   font-size: 16px;
   color: rgba(255, 255, 255, 0.8);
   line-height: 1.5;
   margin-bottom: 30px;
}

.dialog-button {
   background: linear-gradient(135deg, #fe0032 0%, #b91c3c 100%);
   border: none;
   border-radius: 10px;
   color: white;
   padding: 12px 30px;
   font-family: 'Montserrat', sans-serif;
   font-weight: 600;
   font-size: 16px;
   cursor: pointer;
   transition: all 0.3s ease;
   min-width: 120px;
}

.dialog-button:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

@keyframes iconPulse {
   0% {
      transform: scale(0);
      opacity: 0;
   }
   50% {
      transform: scale(1.1);
   }
   100% {
      transform: scale(1);
      opacity: 1;
   }
}

/* Success checkmark animation */
.checkmark {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   display: block;
   stroke-width: 3;
   stroke: #fff;
   stroke-miterlimit: 10;
   box-shadow: inset 0px 0px 0px #4caf50;
   animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark__circle {
   stroke-dasharray: 166;
   stroke-dashoffset: 166;
   stroke-width: 3;
   stroke-miterlimit: 10;
   stroke: #4caf50;
   fill: none;
   animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
   transform-origin: 50% 50%;
   stroke-dasharray: 48;
   stroke-dashoffset: 48;
   animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
   100% {
      stroke-dashoffset: 0;
   }
}

@keyframes scale {
   0%,
   100% {
      transform: none;
   }
   50% {
      transform: scale3d(1.1, 1.1, 1);
   }
}

@keyframes fill {
   100% {
      box-shadow: inset 0px 0px 0px 30px #4caf50;
   }
}
