@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@500;600;700;800&display=swap");

:root {
  --bg-primary: #0b0f1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --accent: #BF4646;
  --accent-soft: #EDE4C2;
  --text-primary: #f9fafb;
  --text-muted: #9ca3af;
  --border-soft: rgba(212, 175, 55, 0.25);
  --shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.45);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 30%),
    linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  min-height: 100vh;
  direction: rtl;
  text-align: right;
  letter-spacing: 0.01em;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

section {
  padding: 100px 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(11, 15, 26, 0.72);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  animation: headerFadeDown 0.9s cubic-bezier(0.25, 1, 0.5, 1) both;
}

header > div,
nav,
main,
footer {
  max-width: var(--container-width);
  margin: 0 auto;
}

header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

header a {
  color: var(--text-primary);
  transition: color 0.25s ease, transform 0.25s ease;
}

header a:hover {
  color: var(--accent-soft);
}

header strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

header span {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  position: relative;
  padding-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  width: 100%;
}

.hero-section {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-top: 70px;
  padding-bottom: 70px;
  position: relative;
  direction: ltr;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 45%);
  filter: blur(30px);
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  max-width: 620px;
  width: 100%;
  position: relative;
  z-index: 2;
  direction: rtl;
}

.hero-text-block {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
  animation: heroFadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.hero-tag {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  margin-bottom: 12px;
  animation: heroFadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.1s both;
}

.hero-section h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.16);
  margin: 0;
  animation: heroFadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.2s both;
}

.hero-section h1 .accent-letter {
  color: var(--accent);
}

.hero-strap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  text-align: center;
  animation: heroFadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.35s both;
}

.hero-section .hero-subtitle {
  font-family: "Cairo", "Tajawal", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1.7;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(237, 228, 194, 0.14);
}

.hero-cta {
  margin-top: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero-visual img {
  width: 100%;
  max-width: 620px;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  opacity: 0.72;
  border-radius: 32px;
  box-shadow: var(--shadow-strong);
  filter: grayscale(0.25) contrast(1.05);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
  animation: heroImageFloat 10s ease-in-out infinite alternate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 26, 0.04), rgba(11, 15, 26, 0.24));
  border-radius: 32px;
  pointer-events: none;
}

.hero-section img:hover,
section img:hover {
  transform: scale(1.03);
}

.btn,
button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--text-primary);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  transition: background 0.6s cubic-bezier(0.25, 1, 0.5, 1), color 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.12);
  position: relative;
  overflow: hidden;
}

.btn::before,
button::before,
a.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: translateX(-110%);
  transition: transform 0.7s ease;
}

.btn:hover::before,
button:hover::before,
a.button:hover::before {
  transform: translateX(110%);
}

.btn:hover,
button:hover,
a.button:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #111827;
  transform: translateY(-3px) scale(1.04);
}

section h2 {
  font-size: clamp(1.9rem, 2.3vw, 2.15rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 25px;
  letter-spacing: 0.08em;
}

.contact-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.contact-info-panel,
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(14px);
}

.contact-intro {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(212, 175, 55, 0.08);
}

.contact-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-item small {
  color: var(--text-muted);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-item:hover .contact-icon {
  color: var(--accent-soft);
  background: rgba(212, 175, 55, 0.2);
}

.social-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.social-pill:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form button {
  margin-top: 6px;
}

section p,
section li,
section label {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
}

section p {
  font-size: 16px;
}

section small,
section label {
  font-size: 13px;
  letter-spacing: 0.5px;
}

section > div {
  display: grid;
  gap: 24px;
}

article,
form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(14px);
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.6s ease, box-shadow 0.6s ease;
}

article:hover,
form:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 18px 42px rgba(212, 175, 55, 0.16);
}

article h3 {
  margin: 16px 0 8px;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
}

article img {
  height: 180px;
}

#about,
#why-vega,
#services,
#projects,
#works,
#contact {
  position: relative;
}

#about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

#why-vega > div,
#services > div,
#projects > div {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#works ul,
#contact ul {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

#works li::before,
#contact li::before {
  content: "•";
  color: var(--accent);
  margin-left: 8px;
}

form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

footer {
  padding: 28px 24px 40px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer ul {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

.fade-section,
.slide-section {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1), filter 0.9s ease;
  filter: blur(0);
}

.fade-section.is-hidden,
.slide-section.is-hidden {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(5px);
}

.slide-section.is-hidden {
  transform: translateX(-20px) translateY(30px);
}

.show {
  opacity: 1;
  transform: translateY(0) translateX(0);
  filter: blur(0);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageFloat {
  from {
    transform: translateY(0px) scale(1);
  }
  to {
    transform: translateY(-8px) scale(1.01);
  }
}

@keyframes headerFadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-section,
  #about,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 56px;
  }
}

@media (max-width: 720px) {
  header > div {
    flex-direction: column;
    gap: 16px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  section {
    padding: 60px 18px;
  }

  article,
  form {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-section h1 {
    font-size: 2rem;
    letter-spacing: 0.08em;
  }

  section h2 {
    font-size: 1.7rem;
  }

  nav ul {
    gap: 12px;
  }

  nav a {
    font-size: 13px;
  }
}
