:root {
  --bg-color: #2C6527;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;

  --accent-primary: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus: #3b82f6;

  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Effects */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.5;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(5%, 10%) scale(1.1);
  }

  100% {
    transform: translate(-5%, 5%) scale(0.9);
  }
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid var(--glass-border);
}

.logo img {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Main Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 80px;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-title span {
  font-family: 'Zain', sans-serif;
  font-weight: 900;
  font-size: 1.1em;
  /* Slight bump for stylistic contrast */
  color: #ffffff;
}

.hero-brief {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

/* Apple Button */
.btn-apple {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--text-primary);
  color: #000;
  padding: 12px 24px;
  border-radius: 14px;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.1);
}

.btn-apple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-apple-text {
  display: flex;
  flex-direction: column;
}

.btn-apple-sub {
  font-size: 0.75rem;
  line-height: 1;
  margin-bottom: 2px;
}

.btn-apple-main {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.5px;
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.devices-showcase {
  position: relative;
  width: 500px;
  max-width: 100%;
  height: 450px;
  transform: rotateY(-15deg) rotateX(10deg);
  transition: var(--transition-smooth);
  transform-style: preserve-3d;
}

.devices-showcase:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

.device-ipad {
  position: absolute;
  width: 85%;
  height: auto;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  transition: var(--transition-smooth);
}

.device-iphone {
  position: absolute;
  width: 35%;
  height: auto;
  right: -5%;
  bottom: 5%;
  z-index: 2;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
  transition: var(--transition-smooth);
}

.devices-showcase:hover .device-ipad {
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

.devices-showcase:hover .device-iphone {
  transform: translateZ(40px) translateY(-15px);
  filter: drop-shadow(0 35px 70px rgba(0, 0, 0, 0.8));
}

/* Support Section */
.support-section {
  padding: 6rem 0 8rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Form Styles */
.support-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e4e4e7;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
  outline: none;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.custom-select-wrapper {
  position: relative;
}

.custom-select-wrapper::after {
  content: '\25BC';
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.input-group select {
  appearance: none;
  cursor: pointer;
}

.input-group select option {
  background-color: #1f1f1f;
  color: #fff;
}

.btn-submit {
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
}

.btn-submit:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

/* Success State */
.form-success {
  text-align: center;
  padding: 2rem 0;
  animation: fadeIn 0.5s ease-out;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.form-success h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.form-success p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.btn-reset {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-reset:hover {
  background: var(--glass-bg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
    gap: 3rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-brief {
    margin: 0 auto 2.5rem;
  }

  .devices-showcase {
    max-width: 100%;
    transform: none;
    /* Flatten rotation for better centering */
  }

  .devices-showcase:hover {
    transform: scale(1.02);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 3rem);
  }

  .devices-showcase {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    transform: scale(0.9);
  }

  .devices-showcase:hover {
    transform: scale(0.95);
  }

  .device-ipad {
    position: relative;
    top: 0;
    transform: none;
    width: 90%;
    margin: 0 auto;
  }

  .device-iphone {
    width: 40%;
    right: 0;
    bottom: -5%;
  }

  .glass-panel {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .nav-links {
    display: flex;
    gap: 1rem;
  }

  .nav-links a {
    margin-left: 0;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem 5%;
  }

  .nav-links {
    display: none;
    /* Hide on very small screens to avoid overlaps */
  }

  .devices-showcase {
    aspect-ratio: 1;
    transform: scale(1);
    margin-top: 0;
  }

  .devices-showcase:hover {
    transform: scale(1);
  }

  .device-ipad {
    width: 100%;
  }

  .device-iphone {
    width: 45%;
    bottom: -15%;
  }

  .btn-apple {
    padding: 10px 18px;
  }

  .btn-apple-main {
    font-size: 1.1rem;
  }
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .nav-links a {
  margin-left: 0;
  margin-right: 2rem;
}

[dir="rtl"] .custom-select-wrapper::after {
  right: auto;
  left: 1rem;
}

[dir="rtl"] .input-group input,
[dir="rtl"] .input-group select,
[dir="rtl"] .input-group textarea {
  padding: 1rem 1rem 1rem 2.5rem;
}

[dir="rtl"] .btn-apple,
[dir="rtl"] .btn-submit {
  flex-direction: row-reverse;
}

[dir="rtl"] .device-ipad {
  left: auto;
  right: 0;
}

[dir="rtl"] .device-iphone {
  right: auto;
  left: -5%;
}

@media (max-width: 768px) {
  [dir="rtl"] .nav-links a {
    margin-right: 0;
  }
}