/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - New Palette */
    --color-main: #13123E;          /* Dark navy blue - main background */
    --color-primary: #2C6EB7;       /* Blue - primary accent */
    --color-secondary: #35C0CD;     /* Cyan - secondary accent/hover */
    --color-white: #FFFFFF;         /* White - text */
    --color-text-muted: #B8C5D6;    /* Muted text */
    --color-input-placeholder: #7B8FA3;
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-mono: 'Ubuntu Mono', monospace;
    --font-arabic: 'IBM Plex Sans Arabic', sans-serif;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* Animation */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--color-main);
    color: var(--color-white);
    position: relative;
    min-height: 900px;
    transition: var(--transition-smooth);
}

/* ===================================
   Custom Scrollbar
   =================================== */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-main);
    border-left: 1px solid rgba(44, 110, 183, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 6px;
    border: 2px solid var(--color-main);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    box-shadow: 0 0 6px rgba(53, 192, 205, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: var(--color-secondary);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-main);
}

/* ===================================
   Background Image
   =================================== */
.background-image {
    position: absolute;
    width: 100%;
    /* height: 100%; */
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #13123E 0%, #1a1a3a 50%, #13123E 100%);
    z-index: -1;
    overflow: hidden;
}

.background-image::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(44, 110, 183, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(53, 192, 205, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(44, 110, 183, 0.06) 0%, transparent 70%);
    animation: backgroundPulse 20s ease-in-out infinite;
}

.background-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(44, 110, 183, 0.04) 2px,
            rgba(44, 110, 183, 0.04) 4px
        );
    opacity: 0.5;
}

@keyframes backgroundPulse {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-5%, -5%) scale(1.1);
  }
}

/* ===================================
   Medical Background Elements
   =================================== */
.medical-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Heartbeat Lines */
.heartbeat-line {
    position: absolute;
    width: 600px;
    height: 120px;
    color: rgba(44, 110, 183, 0.4);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(44, 110, 183, 0.6));
}

.heartbeat-1 {
    top: 20%;
    left: -50px;
    animation: slideRight 15s linear infinite;
}

.heartbeat-2 {
    bottom: 25%;
    right: -50px;
    animation: slideLeft 18s linear infinite;
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100vw + 400px));
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100vw - 400px));
    }
}

/* Medical Cross Icons */
.medical-cross {
    position: absolute;
    width: 70px;
    height: 70px;
    color: rgba(53, 192, 205, 0.35);
    animation: floatRotate 8s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(53, 192, 205, 0.5));
}

.cross-1 {
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.cross-2 {
    top: 60%;
    left: 8%;
    animation-delay: 2s;
}

.cross-3 {
    bottom: 20%;
    right: 15%;
    animation-delay: 4s;
}

@keyframes floatRotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

/* DNA Helix Pattern */
.dna-helix {
    position: absolute;
    width: 120px;
    height: 240px;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: rgba(44, 110, 183, 0.3);
    animation: dnaRotate 20s linear infinite;
    filter: drop-shadow(0 0 8px rgba(44, 110, 183, 0.4));
}

@keyframes dnaRotate {
    0% {
        transform: translateY(-50%) rotateY(0deg);
    }
    100% {
        transform: translateY(-50%) rotateY(360deg);
    }
}

/* Pulse Circles */
.pulse-circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(53, 192, 205, 0.4);
    animation: pulse 3s ease-out infinite;
    box-shadow: 0 0 20px rgba(53, 192, 205, 0.3);
}

.pulse-1 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 20%;
    animation-delay: 0s;
}

.pulse-2 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 15%;
    animation-delay: 1s;
}

.pulse-3 {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 30%;
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Medical Equipment Icons */
.medical-icon {
    position: absolute;
    width: 100px;
    height: 100px;
    color: rgba(53, 192, 205, 0.5);
    animation: floatSlow 10s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(53, 192, 205, 0.7));
}

.stethoscope-icon {
    top: 25%;
    right: 12%;
    animation-delay: 0s;
}

.syringe-icon {
    top: 55%;
    left: 12%;
    animation-delay: 2s;
}

.pills-icon {
    bottom: 25%;
    right: 18%;
    animation-delay: 4s;
}

.monitor-icon {
    top: 40%;
    right: 8%;
    animation-delay: 6s;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-25px) rotate(10deg);
        opacity: 0.8;
    }
}

/* ===================================
   Language Toggle
   =================================== */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1000;
}

[dir="rtl"] .language-toggle {
    right: auto;
    left: 30px;
}

.lang-btn {
    padding: 12px 24px;
    background: rgba(44, 110, 183, 0.2);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 110, 183, 0.4);
}

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

/* ===================================
   Header & Logo
   =================================== */
.header {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 200px;
}

.logo-svg {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(44, 110, 183, 0.3));
    transition: var(--transition-smooth);
}

.logo-svg:hover {
    filter: drop-shadow(0 6px 16px rgba(53, 192, 205, 0.4));
    transform: scale(1.05);
}

/* ===================================
  Main Content
=================================== */
.main-content {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--spacing-lg);
  overflow-y: auto;
  overflow-x: hidden;
}

.content-wrapper {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

/* ===================================
  Hero Text
=================================== */
.hero-text {
  text-align: center;
  margin-top: var(--spacing-md);
}

.hero-line {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 107%;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0;
  padding: 0;
  display: block;
}

.word {
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  text-shadow: 0 0 30px rgba(44, 110, 183, 0.3);
}

.word-1 {
  animation-delay: 0.2s;
}

.word-2 {
  animation-delay: 0.4s;
  background: linear-gradient(135deg, #FFFFFF 0%, #35C0CD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.word-3 {
  animation-delay: 0.6s;
}

/* Arabic font support */
[dir="rtl"] .hero-line {
  font-family: var(--font-arabic);
}

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

/* ===================================
   Countdown Timer
   =================================== */
.countdown-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.8s forwards;
}

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

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.countdown-label {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.countdown-value {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 56px;
  letter-spacing: -0.04em;
  color: var(--color-white);
  min-width: 65px;
  text-align: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.countdown-value:hover {
  background: rgba(53, 192, 205, 0.15);
  transform: scale(1.05);
}

/* Arabic font for countdown labels */
[dir="rtl"] .countdown-label {
  font-family: var(--font-arabic);
}

.countdown-separator {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 56px;
  letter-spacing: -0.04em;
  color: var(--color-white);
  opacity: 0.5;
}

/* ===================================
   Tagline & Description
   =================================== */
.tagline {
  /* margin-top: var(--spacing-lg); */
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.2s forwards;
}

.tagline p {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
}

[dir="rtl"] .tagline p {
  font-family: var(--font-arabic);
}

.description {
  margin-top: var(--spacing-md);
  max-width: 700px;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.4s forwards;
}

.desc-line {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.8;
  color: var(--color-text-muted);
  margin: var(--spacing-sm) 0;
  letter-spacing: 0.01em;
}

[dir="rtl"] .desc-line {
  font-family: var(--font-arabic);
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
  margin-top: var(--spacing-sm);
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.6s forwards;
}

.contact-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.02em;
}

[dir="rtl"] .contact-title {
  font-family: var(--font-arabic);
}

.contact-emails {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--spacing-sm);
  justify-content: center;
  align-items: center;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(44, 110, 183, 0.1);
  border: 1px solid rgba(44, 110, 183, 0.3);
  border-radius: 8px;
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 500;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.email-link:hover {
  background: rgba(44, 110, 183, 0.2);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 110, 183, 0.3);
}

.email-link:active {
  transform: translateY(0);
}

.email-icon {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

[dir="rtl"] .email-link {
  flex-direction: row-reverse;
}

/* Phone Links */
.contact-phones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(44, 110, 183, 0.1);
  border: 1px solid rgba(44, 110, 183, 0.3);
  border-radius: 8px;
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 500;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  font-variant-numeric: lining-nums;
  direction: ltr;
}

.phone-link:hover {
  background: rgba(44, 110, 183, 0.2);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 110, 183, 0.3);
}

.phone-link:active {
  transform: translateY(0);
}

.phone-icon {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

[dir="rtl"] .phone-link {
  flex-direction: row-reverse;
}

/* Company Name */
.company-name {
  margin-top: var(--spacing-md);
  text-align: center;
}

.company-name p {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

[dir="rtl"] .company-name p {
  font-family: var(--font-arabic);
}


/* ===================================
   Email Subscription Form
   =================================== */
.email-form {
  width: 100%;
  max-width: 656.89px;
  margin-top: var(--spacing-lg);
  opacity: 0;
  animation: fadeIn 1s ease-out 1s forwards;
}

#subscribeForm {
  display: flex;
  gap: 16px;
  width: 100%;
}

.input-wrapper {
  flex: 1;
  position: relative;
}

#emailInput {
  width: 100%;
  height: 68px;
  padding: 0 24px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.04em;
  color: var(--color-main);
  background: var(--color-white);
  border: none;
  border-radius: 4px;
  backdrop-filter: blur(18.64px);
  transition: var(--transition-smooth);
  outline: none;
}

[dir="rtl"] #emailInput {
  font-family: var(--font-arabic);
}

#emailInput::placeholder {
  color: var(--color-input-placeholder);
}

#emailInput:focus {
  box-shadow: 0 0 0 3px rgba(44, 110, 183, 0.4);
  transform: translateY(-2px);
}

#emailInput:hover {
  box-shadow: 0 4px 12px rgba(44, 110, 183, 0.15);
}

.subscribe-btn {
  width: 240px;
  height: 68px;
  padding: 24px 48px;
  background: var(--color-primary);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.subscribe-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.subscribe-btn:hover::before {
  width: 300px;
  height: 300px;
}

.subscribe-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44, 110, 183, 0.5);
  background: var(--color-secondary);
}

.subscribe-btn:active {
  transform: translateY(-1px);
}

.subscribe-btn span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  line-height: 14px;
  text-transform: uppercase;
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

[dir="rtl"] .subscribe-btn span {
  font-family: var(--font-arabic);
}

/* ===================================
   Decorative Elements
   =================================== */
.decorative-element {
  position: absolute;
  width: 116.98px;
  height: 116.41px;
  background: radial-gradient(
    circle,
    rgba(53, 192, 205, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.decorative-top {
  right: 15.25%;
  top: 32.37%;
  animation-delay: 0s;
}

.decorative-bottom {
  right: 15.25%;
  top: 54.63%;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.8;
  }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
  .main-content {
    padding: var(--spacing-md);
  }

  .hero-text {
    margin-top: var(--spacing-sm);
  }

  .decorative-element {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: var(--spacing-sm);
  }

  .hero-text {
    margin-top: var(--spacing-sm);
  }

  .countdown-container {
    gap: var(--spacing-xs);
  }

  .countdown-value {
    min-width: 50px;
    font-size: 32px;
    padding: 4px 8px;
  }

  .countdown-label {
    font-size: 12px;
  }

  .countdown-separator {
    font-size: 32px;
  }

  #subscribeForm {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .subscribe-btn {
    width: 100%;
  }

  .decorative-element {
    display: none;
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 140px;
  }

  .logo-svg {
    max-height: 40px;
  }

  .main-content {
    padding: var(--spacing-xs);
  }

  .hero-text {
    margin-top: var(--spacing-xs);
  }

  .countdown-container {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===================================
   Accessibility
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
