/* Local Fonts */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Cairo-300.ttf') format('truetype');
}

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Cairo-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Cairo-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Cairo-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Cairo-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Cairo-800.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Inter-300.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Inter-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Inter-800.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/Inter-900.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Outfit-300.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Outfit-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Outfit-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Outfit-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Outfit-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Outfit-800.ttf') format('truetype');
}


:root {
  --navy: #1B2B5E;
  --navy-dark: #0D1526;
  --navy-light: #2D4A8C;
  --gold: #C9A84C;
  --gold-light: #E8D48B;
  --white: #FFFFFF;
  --gray-light: #F0F2F5;
  --gray: #94A3B8;
  --text-dark: #1E293B;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(13, 21, 38, 0.06);
  --shadow-md: 0 8px 32px rgba(13, 21, 38, 0.1);
  --shadow-lg: 0 16px 48px rgba(13, 21, 38, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.7;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
  /* Fallback for browsers without backdrop-filter */
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  transition: var(--transition);
}

.nav-logo svg {
  width: 44px;
  height: 44px;
}

.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: inherit;
  letter-spacing: 2px;
}

.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--navy-light);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  border: 2px solid var(--navy);
}

.nav-cta:hover {
  background: transparent;
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  transition: var(--transition);
}

.navbar.scrolled .lang-btn {
  background: var(--gray-light);
  color: var(--navy);
  border-color: var(--gray);
}

.lang-btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.navbar:not(.scrolled) .nav-logo,
.navbar:not(.scrolled) .nav-links a,
.navbar:not(.scrolled) .menu-toggle span {
  color: var(--white);
}

.navbar:not(.scrolled) .nav-logo-sub {
  color: rgba(255, 255, 255, 0.7);
}

.navbar:not(.scrolled) .menu-toggle span {
  background: var(--white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 2px;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle.active span {
  background: var(--white) !important;
}

/* === HERO (Isometric Light Theme) === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: max(160px, 16vh);
  padding-bottom: 80px;
  box-sizing: border-box;
  background: linear-gradient(rgba(13, 21, 38, 0.45), rgba(13, 21, 38, 0.45)), url('images/hero-bg.jpg?v=2.0');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.hero-content {
  color: var(--white);
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: 'Cairo', 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero h1 .gold {
  color: var(--gold);
  background: linear-gradient(135deg, #F5E6A8 0%, #C9A84C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-display {
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(0.8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  /* Fallback for browsers without backdrop-filter */
  background: rgba(255, 255, 255, 0.1);
}

.hero-logo-img {
  width: 70%;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
}

.hero-logo-display:hover .hero-logo-img {
  transform: scale(1.1);
}

/* === STATS BAR === */
.stats-bar {
  background: var(--white);
  padding: 0;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stat-item {
  padding: 36px 24px;
  text-align: center;
  border-inline-end: 1px solid var(--gray-light);
  transition: var(--transition);
}

.stat-item:last-child {
  border-inline-end: none;
}

.stat-item:hover {
  background: var(--gray-light);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  display: block;
}

.stat-number .gold-text {
  color: var(--gold);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 4px;
  font-weight: 500;
}

/* === SECTIONS === */
.section {
  padding: 100px 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  aspect-ratio: 4/3;
}

.about-image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-year-badge {
  position: absolute;
  bottom: 24px;
  inset-inline-end: 24px;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
}

.about-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-content p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.about-feature:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.about-feature .icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-feature:hover .icon {
  background: var(--gold);
  color: var(--navy-dark);
}

.about-feature span {
  font-weight: 600;
  font-size: 0.9rem;
}

/* === SERVICES === */
.services-bg {
  background: var(--gray-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: inline-start;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--glass-border);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === PROJECTS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  cursor: pointer;
}

.project-card-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition), opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center 35%;
}

.project-bg-1 {
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('images/proj1/1.jpg?v=1.3');
  background-size: cover;
  background-position: center 35%;
}

.project-bg-2 {
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('images/proj2/1.jpg?v=1.3');
  background-size: cover;
  background-position: center 35%;
}

.project-bg-3 {
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('images/proj3/0.jpg?v=1.3');
  background-size: cover;
  background-position: center 35%;
}

.project-bg-4 {
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&q=80&w=800&v=1.3');
  background-size: cover;
  background-position: center 35%;
}

.project-bg-5 {
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&q=80&w=800&v=1.3');
  background-size: cover;
  background-position: center 35%;
}

.project-bg-6 {
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('images/proj6/1.jpg?v=1.3');
  background-size: cover;
  background-position: center 35%;
}

.project-card-bg svg {
  width: 80px;
  height: 80px;
  opacity: 0.2;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 21, 38, 0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: var(--transition);
}

.project-overlay h3 {
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-overlay span {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
}

.project-card:hover .project-card-bg {
  transform: scale(1.05);
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(13, 21, 38, 1) 0%, rgba(13, 21, 38, 0.3) 100%);
}

/* === TESTIMONIALS === */
.testimonials-bg {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.testimonials-bg .section-tag {
  color: var(--gold);
}

.testimonials-bg .section-title {
  color: var(--white);
}

.testimonials-bg .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-item {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial-item.active {
  display: block;
}

.testimonial-quote {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
  font-style: italic;
  margin-bottom: 32px;
  position: relative;
  padding: 0 40px;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4rem;
  color: var(--gold);
  font-family: serif;
  opacity: 0.5;
}

.testimonial-author {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-role {
  color: var(--gold);
  font-size: 0.85rem;
  margin-top: 4px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.testimonial-dots .dot.active {
  background: var(--gold);
  width: 30px;
  border-radius: 5px;
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info>p {
  color: var(--gray);
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact-detail:hover {
  background: var(--navy);
  color: var(--white);
}

.contact-detail .icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail:hover .icon {
  background: var(--gold);
  color: var(--navy-dark);
}

.contact-detail div {
  display: flex;
  flex-direction: column;
}

.contact-detail .label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

.contact-detail:hover .label {
  color: rgba(255, 255, 255, 0.6);
}

.contact-detail .value {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--gray-light);
  color: var(--navy-dark);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input {
  height: 50px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

/* === FOOTER === */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-about .footer-logo svg {
  width: 40px;
  height: 40px;
}

.footer-about .footer-logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 2px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer h4 {
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer ul a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* === ANIMATIONS === */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

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

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin: 0 auto 36px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: rgba(27, 43, 94, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    /* Fallback for browsers without backdrop-filter */
    background: rgba(27, 43, 94, 0.98);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    color: var(--white) !important;
    font-size: 1.25rem;
    font-weight: 600;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    z-index: 2001;
    position: relative;
  }

  .menu-toggle span {
    background: var(--white);
  }

  .navbar.scrolled .menu-toggle:not(.active) span {
    background: var(--navy);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats-container {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* === PROJECT DRAWER === */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 21, 38, 0.7);
  z-index: 1999;
  display: none;
  opacity: 0;
  transition: var(--transition);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  /* Fallback for browsers without backdrop-filter */
  background: rgba(13, 21, 38, 0.8);
}

.drawer-overlay.active {
  display: block;
  opacity: 1;
}

.project-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 500px;
  height: 100%;
  background: var(--white);
  z-index: 2000;
  transition: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.project-drawer.active {
  right: 0;
}

.drawer-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.drawer-close:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: rotate(90deg);
}

.drawer-gallery {
  width: 100%;
  height: 350px;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.drawer-gallery:active {
  cursor: grabbing;
}

.drawer-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1120;
  transition: opacity 0.3s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.gallery-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 5;
}

.gallery-indicators {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.gallery-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-indicators button.active {
  width: 14px;
  background: var(--gold);
}

.gallery-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  /* Fallback for browsers without backdrop-filter */
  background: rgba(255, 255, 255, 0.3);
}

.gallery-nav button:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.drawer-info {
  padding: 40px;
}

.drawer-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.drawer-info h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.drawer-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-light);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.9rem;
}

.meta-item i {
  color: var(--gold);
}

.drawer-desc {
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 40px;
}

.drawer-actions {
  margin-top: auto;
}

.drawer-actions .btn-primary {
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .project-drawer {
    width: 100%;
  }

  .drawer-gallery {
    height: 280px;
    touch-action: pan-y pinch-zoom; /* Allow vertical scrolling and pinch zoom */
  }

  .drawer-info {
    padding: 30px 24px;
  }

  /* Improve touch targets for mobile */
  .gallery-nav button {
    width: 50px;
    height: 50px;
  }

  .gallery-indicators button {
    width: 12px;
    height: 12px;
  }
}

/* ==========================================================================
   === ADMIN PANEL & MODALS STYLES ===
   ========================================================================== */

/* Trigger Button */
.admin-trigger-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  margin: 0 12px;
}

.admin-trigger-btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Navbar Admin Quick Access Icon Button */
.nav-admin-icon-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.navbar.scrolled .nav-admin-icon-btn {
  background: var(--gray-light);
  color: var(--navy);
  border-color: var(--gray);
}

.nav-admin-icon-btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  transform: scale(1.1);
}

/* Admin Modals Base */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 21, 38, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.admin-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 36px;
  transform: scale(0.95);
  transition: var(--transition);
}

.admin-modal-overlay.active .admin-modal {
  transform: scale(1);
}

/* Auth Modal Redesign */
.auth-modal {
  max-width: 440px;
  border-radius: 24px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 25px 60px rgba(13, 21, 38, 0.35);
  padding: 36px 30px 28px 30px;
}

.auth-header-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 20px rgba(13, 21, 38, 0.15);
  border: 2px solid var(--gold);
}

.auth-header-brand h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.auth-header-brand p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
}

/* Input Icon Wrappers */
.input-icon-group {
  margin-bottom: 20px;
}

.input-icon-group label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 8px;
  display: block;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  inset-inline-start: 14px;
  color: var(--gold);
  font-size: 1rem;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 13px 44px 13px 44px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.95rem;
  color: var(--navy-dark);
  transition: all 0.25s ease;
}

.input-wrapper input:focus {
  background: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3.5px rgba(201, 168, 76, 0.2);
  outline: none;
}

.toggle-password-btn {
  position: absolute;
  inset-inline-end: 12px;
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
  transition: var(--transition);
}

.toggle-password-btn:hover {
  color: var(--navy);
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: 12px;
  margin-top: 10px;
  justify-content: center;
}

.auth-footer-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-light);
}

.auth-footer-hint code {
  background: rgba(201, 168, 76, 0.12);
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Dashboard Header & Logout */
.dashboard-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 16px;
  margin-bottom: 24px;
  text-align: start;
}

.logout-btn {
  border-color: #ef4444;
  color: #dc2626;
  padding: 8px 18px;
}

.logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Shake Animation on Auth Error */
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.auth-shake {
  animation: authShake 0.4s ease-in-out;
}

/* Admin Modal & Dashboard Redesign */
.dashboard-modal,
.project-form-modal {
  position: relative;
  max-width: 960px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(13, 21, 38, 0.25);
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: var(--navy);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Header */
.admin-modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(13, 21, 38, 0.05));
  color: var(--navy);
  border: 1.5px solid var(--gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.15);
}

.admin-modal-header h2 {
  font-family: 'Outfit', sans-serif;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
}

/* Tabs Bar */
.admin-tabs {
  display: flex;
  gap: 10px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 28px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.6);
}

.tab-btn.active {
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 4px 12px rgba(13, 21, 38, 0.2);
}

.tab-btn.active i {
  color: var(--gold);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

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

/* Action Bars & Grid Forms */
.tab-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px dashed #e2e8f0;
}

.tab-action-bar h3 {
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sm {
  padding: 10px 20px !important;
  font-size: 0.88rem !important;
  border-radius: 10px !important;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-outline.btn-dark {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
}

.btn-outline.btn-dark:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(13, 21, 38, 0.15);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: var(--white);
  border: none;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

/* Admin Projects List Item */
.admin-projects-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
  padding-inline-end: 6px;
}

.admin-project-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.admin-project-item.hidden-project {
  opacity: 0.65;
  background: #f1f5f9;
}

.admin-project-item:hover {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.proj-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy);
  border: 2px solid #e2e8f0;
}

.proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-info {
  flex-grow: 1;
}

.proj-info h4 {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 6px;
}

.en-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.proj-meta-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.meta-tag {
  font-size: 0.78rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-badge {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-visible {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-hidden {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.proj-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.action-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.action-btn.delete-btn:hover {
  background: #dc2626;
  color: var(--white);
  border-color: #dc2626;
}

/* Admin Card Boxes & Bilingual Columns */
.admin-card-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.admin-card-header {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-card-header i {
  color: var(--gold);
  font-size: 1.2rem;
}

.lang-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .lang-grid-2 {
    grid-template-columns: 1fr;
  }
}

.lang-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
}

.lang-col-ar {
  border-inline-start: 4px solid var(--navy);
}

.lang-col-en {
  border-inline-start: 4px solid var(--gold);
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(13, 21, 38, 0.08);
  color: var(--navy);
  margin-bottom: 16px;
}

.lang-badge-en {
  background: rgba(201, 168, 76, 0.15);
  color: #92400e;
}

/* Forms & Group Cards in Admin */
.form-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin: 24px 0 16px 0;
  padding: 10px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border-inline-start: 4px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .form-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--navy-dark);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.admin-modal input[lang="ar"],
.admin-modal textarea[lang="ar"] {
  direction: rtl !important;
  text-align: right !important;
}

.admin-modal input[lang="en"],
.admin-modal textarea[lang="en"] {
  direction: ltr !important;
  text-align: left !important;
  font-family: 'Outfit', sans-serif, inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3.5px rgba(201, 168, 76, 0.22);
  background: #ffffff;
}

.form-group textarea {
  min-height: 85px;
  resize: vertical;
  line-height: 1.6;
}

.help-text {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 6px;
  display: block;
}

.form-error {
  color: #dc2626;
  font-size: 0.88rem;
  margin-bottom: 14px;
  text-align: center;
  font-weight: 700;
  padding: 10px;
  background: #fef2f2;
  border-radius: 8px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid #e2e8f0;
}

/* Switches / Toggles */
.form-toggle-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.25s ease;
}

.form-toggle-group:hover {
  border-color: var(--gold);
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-toggle-group label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 0;
  cursor: pointer;
}

.inline-toggle {
  margin-bottom: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .35s ease;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .35s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: #10b981;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Backup section boxes */
.backup-box {
  background: #f8fafc;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.backup-box h3 {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.backup-box p {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.6;
}

.backup-box.danger-zone {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
}

.backup-box.danger-zone h3 {
  color: #991b1b;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .admin-modal {
    padding: 24px 16px;
  }
}

/* Utility Helpers */
.hidden-file-input {
  display: none !important;
}

.form-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.form-header-row label {
  margin: 0;
}

.margin-zero {
  margin: 0 !important;
}

.margin-inline-start-8 {
  margin-inline-start: 8px !important;
}

.display-none {
  display: none !important;
}

.status-text-inline {
  display: inline-block;
  margin-inline-start: 10px;
}

.margin-top-20 {
  margin-top: 20px !important;
}

/* Analytics Dashboard Styles */
.analytics-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .analytics-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.analytics-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.analytics-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.analytics-card .card-info {
  display: flex;
  flex-direction: column;
}

.analytics-card .card-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.analytics-card .card-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.analytics-log-container {
  max-height: 380px;
  overflow-y: auto;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px;
}

.log-entry-item {
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.log-entry-item:hover {
  transform: translateX(-3px);
}

.log-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-action-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.badge-visit {
  background: #E0F2FE;
  color: #0369A1;
}

.badge-view {
  background: #FEF3C7;
  color: #92400E;
}

.badge-lang {
  background: #F3E8FF;
  color: #6B21A8;
}

.badge-contact {
  background: #DCFCE7;
  color: #166534;
}

.log-details {
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 500;
}

.log-time {
  font-size: 0.75rem;
  color: var(--gray);
  white-space: nowrap;
}

.contact-status-msg {
  display: none;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

/* === SCROLL TO TOP BUTTON === */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  inset-inline-start: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(13, 21, 38, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 30px rgba(201, 168, 76, 0.4);
}

/* Input Focus Glow Highlight */
@keyframes inputPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(201, 168, 76, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
}

.input-focus-highlight {
  animation: inputPulseGlow 1.5s ease-in-out infinite;
  border-color: var(--gold) !important;
  background-color: #fffef5 !important;
}