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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #090d16, #0f172a);
  color: #d1d5db;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(11, 17, 30, 0.75);
  backdrop-filter: blur(10px);
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #1e293b;
}

.logo {
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
}

.logo .dot {
  color: #3b82f6;
}

.nav-links a {
  margin-left: 30px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #3b82f6;
}

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

.hero-text {
  max-width: 600px;
  animation: fadeInUp 1.2s ease;
}

.hero-text h1 {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 20px;
}

.highlight {
  color: #3b82f6;
}

.hero-text p {
  line-height: 1.7;
  color: #aaa;
  margin-bottom: 30px;
}

.btn {
  background: #2563eb;
  border: none;
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.btn:hover {
  background: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.4);
}

.hero-visual img {
  width: 450px;
  opacity: 0.9;
  animation: float 4s ease-in-out infinite;
}

/* Layers Section */
.layers-section {
  padding: 120px 80px;
  text-align: center;
  background: #0b1120;
}

.layers-section h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.layers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.layer-card {
  background: #111827;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #1e293b;
  transition: all 0.3s ease;
}

.layer-card:hover {
  border-color: #3b82f6;
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.layer-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #06b6d4;
}

/* Features */
.features {
  padding: 120px 80px;
  text-align: center;
}

.features h2 {
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.feature-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.feature-card {
  background: #111827;
  padding: 30px;
  border-radius: 16px;
  width: 300px;
  border: 1px solid #1e293b;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: #3b82f6;
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.15);
}

/* Contact */
.contact {
  padding: 100px 60px;
  text-align: center;
  background: #090d16;
}

.contact h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact p {
  color: #aaa;
  margin-bottom: 30px;
}

.glow {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

/* Footer */
footer {
  background-color: #060911;
  color: #ccc;
  padding: 50px 10% 30px;
  font-family: "Poppins", sans-serif;
  border-top: 1px solid #1e293b;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-column h3 {
  color: #60a5fa;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.footer-column h4 {
  color: #60a5fa;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.footer-column p {
  color: #888;
  line-height: 1.6;
  max-width: 250px;
}

.footer-column a {
  display: block;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.95em;
  transition: color 0.3s, text-shadow 0.3s;
}

.footer-column a:hover {
  color: #fff;
  text-shadow: 0 0 6px #3b82f6;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, #1d4ed8, #06b6d4);
  width: 80%;
  margin: 0 auto 15px;
}

.footer-bottom p {
  font-size: 0.85em;
  color: #777;
}

@media (max-width: 800px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    margin-bottom: 25px;
  }

  .footer-column p {
    margin: 0 auto;
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Responsive Design for Small Screens */
@media (max-width: 720px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 15px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .hero-text,
  .hero-visual {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 5px;
  }

  .hero-text {
    width: 100%;
    max-width: 100%;
    padding: 0 5px;
    margin: 0 auto;
    box-sizing: border-box;
    font-size: clamp(0.9rem, 4vw, 1rem);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero-visual img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 15px;
  }

  .navbar a {
    font-size: 0.95rem;
    margin: 5px 0;
  }

  .nav-links {
    display: none;
  }

  h1, h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin: 0 auto;
  }

  button {
    width: 100%;
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 720px) {
  .layers-section {
    padding: 60px 15px;
  }

  .layers-section h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }
}

/* Plans Section */
.plans {
  padding: 100px 40px;
  background: #0b1120;
  text-align: center;
}

.plans h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 60px;
}

.plans-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.plan-card {
  background: #111827;
  padding: 30px 20px;
  border-radius: 16px;
  border: 1px solid #1e293b;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.plan-card:hover {
  border-color: #3b82f6;
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.plan-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #06b6d4;
}

.plan-card h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.plan-card ul {
  text-align: left;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 20px;
  padding-left: 20px;
}

.price {
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 8px;
}

.target {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.plans-footer {
  margin-top: 60px;
  color: #aaa;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* === Modal Styles === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  animation: fadeIn 0.3s ease;
  padding-top: 20px;
}

.modal-content {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.25);
  color: #fff;
  animation: scaleUp 0.3s ease;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.4rem;
  cursor: pointer;
  color: #888;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #fff;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 10px;
}

.modal-subtext {
  text-align: center;
  color: #aaa;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 6px;
}

.input-group input {
  background: #0b0f19;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.login-btn {
  width: 100%;
  margin-top: 10px;
}

.modal-footer {
  text-align: center;
  margin-top: 20px;
  color: #777;
}

.modal-footer a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.modal-footer a:hover {
  color: #60a5fa;
}

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

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === Auth Form Switch === */
.form-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  padding-top: 20px;
}

.form-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* === Select Input === */
select {
  background: #0b0f19;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  appearance: none;
  cursor: pointer;
}

select:focus {
  border-color: #3b82f6;
  outline: none;
}

/* === Country Dropdown === */
.country-dropdown {
  position: relative;
  background: #0b0f19;
  border: 1px solid #1e293b;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}

.selected-country {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: #fff;
}

.selected-country .flag {
  margin-right: 8px;
}

.selected-country .arrow {
  font-size: 0.8rem;
  color: #aaa;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 1000;
}

.dropdown-menu.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.search-box {
  width: 100%;
  padding: 10px;
  background: #0b0f19;
  border: none;
  border-bottom: 1px solid #1e293b;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 10px 10px 0 0;
}

.search-box:focus {
  outline: none;
  border-color: #3b82f6;
}

#countryList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#countryList li {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  color: #ccc;
  transition: background 0.2s ease;
}

#countryList li:hover {
  background: #1e293b;
  color: #fff;
}

#countryList li .flag {
  margin-right: 10px;
  font-size: 1.1rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.decorative-image {
  text-align: center;
  margin: 40px auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.glow-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 18px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 20px 6px rgba(37, 99, 235, 0.6);
  animation: soft-glow 4s infinite ease-in-out;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  object-fit: contain;
}

.glow-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px 12px rgba(6, 182, 212, 0.8);
}

@keyframes soft-glow {
  0% { box-shadow: 0 0 20px 6px rgba(37, 99, 235, 0.5); }
  50% { box-shadow: 0 0 30px 12px rgba(6, 182, 212, 0.8); }
  100% { box-shadow: 0 0 20px 6px rgba(37, 99, 235, 0.5); }
}

@media (max-width: 768px) {
  .glow-image {
    max-width: 320px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .glow-image {
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 0 14px 4px rgba(37, 99, 235, 0.7);
  }
}

@media (min-width: 1200px) {
  .glow-image {
    max-width: 380px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  background: #090d16;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #e6e6e9;
}

.stage {
  width: 100%;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.viewport {
  width: min(1200px, 94%);
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 18px 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.track {
  display: flex;
  gap: 20px;
  align-items: stretch;
  will-change: transform;
  animation: scroll-left linear infinite;
  animation-duration: 10s;
}

.viewport:hover .track {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.card-set {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.card {
  flex: 0 0 220px;
  min-width: 220px;
  height: 260px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-origin: center;
  transition: transform 300ms cubic-bezier(.2, .9, .2, 1), box-shadow 300ms;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  text-align: left;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  border-color: rgba(59, 130, 246, 0.3);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
          radial-gradient(400px 120px at 10% 10%, rgba(37,99,235,0.12), transparent 12%),
          radial-gradient(300px 90px at 90% 85%, rgba(6,182,212,0.08), transparent 12%);
  mix-blend-mode: screen;
}

.icon {
  font-size: 2.2rem;
  color: #38bdf8;
  margin-bottom: 8px;
}

.card span {
  font-size: .85rem;
  color: #bfc3cd;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.card-content h4 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card-content p {
  font-size: .9rem;
  color: #bfc3cd;
  line-height: 1.4;
  word-wrap: break-word;
}

.pulse {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(6,182,212,0.08));
  filter: blur(18px);
  opacity: 0.9;
  transform: scale(.9);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0% { transform: translateY(0) scale(.95); }
  50% { transform: translateY(-8px) scale(1); }
  100% { transform: translateY(0) scale(.95); }
}

@media (max-width: 900px) {
  .card {
    flex: 0 0 190px;
    min-width: 190px;
    height: 240px;
  }
  .track {
    animation-duration: 10s;
  }
}

@media (max-width: 640px) {
  .card {
    flex: 0 0 170px;
    min-width: 170px;
    height: 230px;
    padding: 14px;
  }
  .card-content h4 {
    font-size: 0.95rem;
  }
  .card-content p {
    font-size: 0.8rem;
  }
  .viewport {
    padding: 10px;
  }
  .stage {
    padding: 24px 10px;
  }
  .track {
    animation-duration: 5s;
  }
}

/* ------------------------------------------------------------------
   GLOBAL STYLE — AutoImpact Premium AI Design
------------------------------------------------------------------ */

:root {
  --bg-dark: #090d16;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --accent: #2563eb;
  --accent-light: #38bdf8;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --max-width: 1100px;

  --radius: 16px;
  --transition: 0.3s ease;
}

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

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: "Inter", "Poppins", sans-serif;
  line-height: 1.8;
  scroll-behavior: smooth;
}

.section {
  padding: 100px 20px;
}

.section-glass {
  background: linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0.25),
          rgba(0, 0, 0, 0.25)
  );
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 45px;
  letter-spacing: -1px;
}

.section-description {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.highlight-box {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 25px;
  border-radius: var(--radius);
  margin-top: 20px;
  line-height: 1.7;
}

.professional-card,
.info-card,
.layer-card,
.value-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 25px;
  border-radius: var(--radius);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.professional-card:hover,
.info-card:hover,
.layer-card:hover,
.value-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.layers-grid,
.section-cards,
.values-grid {
  display: grid;
  gap: 25px;
}

.layers-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.section-cards {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.values-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.text-block {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.content-list,
.bullet-list {
  margin-top: 20px;
  padding-left: 20px;
}

.content-list li,
.bullet-list li {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 1.05rem;
  position: relative;
}

.bullet-list li::before {
  content: "•";
  color: var(--accent);
  font-size: 1.4rem;
  margin-right: 10px;
}

.section,
.professional-card,
.info-card,
.value-card,
.layer-card,
.section-title {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }

.professional-card,
.info-card,
.value-card,
.layer-card {
  animation-delay: 0.4s;
}

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

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }

  .section {
    padding: 70px 18px;
  }
}

/* Section base */
.section-glass {
  padding: 100px 0;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.section-glass .container {
  max-width: 900px;
  margin: auto;
  padding: 0 20px;
  color: #e8e8e8;
}

.section-glass .section-title {
  text-align: center;
  font-size: 2.6rem;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 40px;

  background: linear-gradient(90deg, #3b82f6, #06b6d4);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text;
  color: transparent;
}

.section-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 20px 0;
  color: #d4d4d4;
}

.bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}

.bullet-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: #f0f0f0;
  transition: transform 0.2s ease;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

.bullet-list li:hover {
  transform: translateX(6px);
}

.highlight-box {
  margin-top: 35px;
  padding: 22px 25px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
}

.highlight-box p {
  font-size: 1.25rem;
  color: #ffffff;
  text-align: center;
  line-height: 1.8;
}

.highlight-box strong {
  color: #60a5fa;
}

/* CONTACT GRID */
.contact-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 40px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.contact-card .icon {
  font-size: 2.5rem;
  color: #3b82f6;
  margin-bottom: 15px;
}

.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 1.1rem;
  color: #d4d4d4;
}

.contact-card p a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-card p a:hover {
  color: #60a5fa;
}

.vision-icon {
  font-size: 42px;
  color: #3b82f6;
  margin-bottom: 15px;
  display: block;
  text-align: center;
}

.info-card {
  text-align: center;
}

.like-btn {
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.like-btn:hover {
  background-color: #e0e0e0;
}

.like-btn.liked {
  background-color: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
}

.glow-image1-edit {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 18px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  transition: transform 0.4s ease;
  object-fit: contain;
}

.glow-image1-edit:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px 6px rgba(6, 182, 212, 0.8);
}

@keyframes soft-glow1 {
  0% { box-shadow: 0 0 14px 3px rgba(37, 99, 235, 0.6); }
  50% { box-shadow: 0 0 20px 6px rgba(6, 182, 212, 0.8); }
  100% { box-shadow: 0 0 14px 3px rgba(37, 99, 235, 0.6); }
}

@media (max-width: 768px) {
  .glow-image1-edit {
    max-width: 320px;
    border-radius: 14px;
  }
  .glow-image1-edit:hover {
    box-shadow: 0 0 10px 2px rgba(6, 182, 212, 0.8);
  }
}

@media (max-width: 480px) {
  .glow-image1-edit {
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 0 10px 2px rgba(37, 99, 235, 0.7);
  }
}

@media (min-width: 1200px) {
  .glow-image1-edit {
    max-width: 380px;
  }
}

.layer-card .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  width: 100%;
  gap: 10px;
}

@media (max-width: 480px) {
  .layer-card .actions {
    flex-direction: column;
    gap: 8px;
  }

  .layer-card .actions a {
    width: 100%;
    text-align: center;
  }

  .layer-card .actions .like-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .layer-card .actions .like-btn i,
  .layer-card .actions .like-btn .like-count {
    font-size: 16px;
  }
}

/* صندوق السكشن */
.newsletter-section {
  padding: 60px 0;
  text-align: center;
}

.newsletter-section .section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #bae6fd;
}

.newsletter-section .section-description {
  font-size: 16px;
  color: #7dd3fc;
  max-width: 500px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 12px 18px;
  width: 280px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 15px;
  transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
  color: rgba(186, 230, 253, 0.6);
}

.newsletter-form input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
  outline: none;
}

.btn-newsletter {
  padding: 12px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
}

.btn-newsletter:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

.btn-newsletter:active {
  transform: scale(0.96);
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input,
  .btn-newsletter {
    width: 100%;
  }
}

/* ========== Language Toggle (EN / AR) ========== */
.lang-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80px;
  height: 36px;
  padding: 4px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.4);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  user-select: none;
  transition: border-color 0.3s ease;
}

.lang-toggle:hover {
  border-color: #3b82f6;
}

.lang {
  z-index: 2;
  width: 50%;
  text-align: center;
  color: #aaa;
  transition: color 0.3s ease;
}

.lang.en {
  color: white;
}

.lang-toggle.ar .lang.en {
  color: #aaa;
}

.lang-toggle.ar .lang.ar {
  color: white;
}

.lang-slider {
  position: absolute;
  width: 32px;
  height: 28px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-radius: 30px;
  left: 4px;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
  z-index: 1;
}

.lang-toggle.ar .lang-slider {
  transform: translateX(40px);
}

html[dir="rtl"] .lang-slider {
  transform: translateX(-40px);
}

html[dir="rtl"] .lang-toggle.ar .lang-slider {
  transform: translateX(0);
}

html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* ========== تنسيقات محسّنة لصفحة المنشورات (Feed) ========== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 24px;
  padding: 20px;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.post-card:hover {
  border-color: #3b82f6;
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -8px rgba(37, 99, 235, 0.25);
}

.post-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0e8;
  margin-bottom: 16px;
  word-break: break-word;
  white-space: pre-wrap;
}

.post-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 18px;
  margin: 10px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #0f172a;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.post-image:hover {
  transform: scale(1.01);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 18px;
  color: #9ca3af;
  font-size: 0.85rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.post-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-date i {
  font-size: 1rem;
  color: #3b82f6;
}

.reactions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.react-btn {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1);
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.react-btn i {
  font-size: 1.2rem;
  transition: transform 0.15s;
}

.react-btn:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.react-btn:hover i {
  transform: scale(1.1);
}

.react-btn.reacted {
  animation: reactPop 0.3s ease;
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  box-shadow: 0 0 15px #2563eb;
}

.react-btn .count {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 4px;
  min-width: 28px;
  text-align: center;
}

@keyframes reactPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.loading, .error, .no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: #a1a1aa;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-card {
    padding: 18px;
  }

  .reactions {
    justify-content: space-around;
  }

  .react-btn {
    padding: 6px 14px;
    font-size: 0.9rem;
  }
}

html[dir="rtl"] .post-meta,
html[dir="rtl"] .reactions {
  direction: rtl;
}

html[dir="rtl"] .post-date i {
  margin-left: 6px;
  margin-right: 0;
}

html[dir="rtl"] .react-btn i {
  margin-left: 4px;
  margin-right: 0;
}