/* ==========================================================================
   Hasad Al Ghars - Under Construction Stylesheet
   ========================================================================== */

/* Custom CSS Custom Properties */
:root {
  --color-primary: #2D7A47;
  --color-primary-dark: #1b4d2c;
  --color-primary-light: #48a666;
  --color-accent: #e5c158;
  /* Rich honey gold representing sweets and juices */
  --color-accent-glow: rgba(229, 193, 88, 0.4);

  --bg-dark-overlay: rgba(12, 28, 18, 0.85);
  /* Deep forest green dark tint */
  --glass-bg: rgba(20, 43, 29, 0.55);
  /* Transparent green tint */
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-glow: rgba(72, 166, 102, 0.25);

  --text-main: #ffffff;
  --text-muted: #bcd6c7;
  --text-gold: #f8df93;

  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Outfit', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-ar);
  color: var(--text-main);
  background-color: #08140c;
  line-height: 1.6;
  position: relative;
}

/* Global Background Image with Dark Overlay */
body {
  background-image: url('assets/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 20%, var(--bg-dark-overlay) 100%),
    linear-gradient(to bottom, rgba(8, 20, 12, 0.4), var(--bg-dark-overlay));
  z-index: 1;
  pointer-events: none;
}

/* Center Container Flex */
.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 40px 24px;
  z-index: 2;
  position: relative;
  box-sizing: border-box;
}

/* Premium Glassmorphism Card styling */
.glass-card {
  width: 100%;
  max-width: 620px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.05),
    0 0 30px var(--glass-border-glow);
  position: relative;
  overflow: hidden;
  margin: auto; /* Centers card inside flex wrapper, allows proper scrolling if viewport overflows */
  animation: cardFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-primary-light), var(--color-accent), var(--color-primary-light), transparent);
  opacity: 0.8;
}

/* Brand Header */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.logo-wrapper {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 330px;
  height: 180px;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFloat 4s ease-in-out infinite alternate;
  transition: var(--transition-smooth);
}

.logo-wrapper:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-primary-light);
  box-shadow: 0 8px 32px var(--glass-border-glow);
}

.brand-logo {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.badge-container {
  margin-top: 20px;
}

.status-badge {
  background: rgba(229, 193, 88, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(229, 193, 88, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 0 0 12px var(--color-accent-glow);
  animation: pulseGlow 2.5s infinite alternate;
}

/* Content Section styling */
.content-section {
  margin-bottom: 32px;
}

.main-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 1px;
}

.divider {
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: 24px auto;
}

.description-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 10px;
}

.desc-ar {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
  text-align: justify;
  text-align-last: center;
}

.desc-en {
  font-family: var(--font-en);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-weight: 300;
  line-height: 1.7;
}

/* Details Section styling */
.details-section {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}

/* Center content inside info-item and adjust direction depending on layout */
body[dir="rtl"] .info-item {
  flex-direction: row;
}

.icon-wrapper {
  color: var(--color-accent);
  background: rgba(229, 193, 88, 0.1);
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-text {
  color: var(--text-muted);
  font-weight: 500;
}

.info-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.info-link:hover {
  color: var(--color-accent);
}

/* Social Footer */
.social-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
}

.social-heading {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.social-btn {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  color: #08140c;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#social-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
  color: #fff;
}

#social-youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}

#social-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

/* Helper Class for Numbers */
.number-font {
  font-family: var(--font-en);
}

/* Copyright Text styling */
.copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 10px;
}

/* Keyframe Animations */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes logoFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 8px rgba(229, 193, 88, 0.2);
    border-color: rgba(229, 193, 88, 0.2);
  }

  100% {
    box-shadow: 0 0 18px rgba(229, 193, 88, 0.5);
    border-color: rgba(229, 193, 88, 0.55);
  }
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */

/* Width-based responsive styling */
@media (max-width: 580px) {
  .glass-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

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

  .subtitle {
    font-size: 0.95rem;
  }

  .logo-wrapper {
    max-width: 260px;
    height: 140px;
    padding: 8px;
  }

  .desc-ar {
    font-size: 0.95rem;
  }

  .desc-en {
    font-size: 0.85rem;
  }

  .info-item {
    font-size: 0.85rem;
  }
}

/* Height-based responsive styling (prevents vertical cutoff on landscape/short screens) */
@media (max-height: 780px) {
  .main-container {
    padding: 24px 16px;
  }

  .glass-card {
    padding: 28px 30px;
  }

  .brand-header {
    margin-bottom: 20px;
  }

  .logo-wrapper {
    max-width: 260px;
    height: 140px;
    padding: 8px;
  }

  .badge-container {
    margin-top: 12px;
  }

  .content-section {
    margin-bottom: 20px;
  }

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

  .divider {
    margin: 16px auto;
  }

  .details-section {
    margin-bottom: 20px;
    padding: 14px;
    gap: 10px;
  }

  .social-footer {
    padding-top: 20px;
  }

  .social-links {
    margin-bottom: 16px;
  }
}

@media (max-height: 600px) {
  .glass-card {
    padding: 20px 24px;
  }

  .brand-header {
    margin-bottom: 14px;
  }

  .logo-wrapper {
    max-width: 200px;
    height: 110px;
    padding: 6px;
  }

  .badge-container {
    margin-top: 8px;
  }

  .content-section {
    margin-bottom: 14px;
  }

  .main-title {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .desc-ar {
    font-size: 0.9rem;
  }

  .divider {
    margin: 12px auto;
  }

  .details-section {
    padding: 10px;
    gap: 8px;
    margin-bottom: 16px;
  }

  .social-footer {
    padding-top: 14px;
  }

  .social-links {
    margin-bottom: 12px;
  }
}