/* header_v2.css - Professional Custom Styles */

:root {
  /* Design Tokens as Variables */
  --primary: #003366;
  --accent: #cc0000;
  --text-white: #ffffff;
  --text-dark: #003366;
  --bg-light: #f8f9fa;
  --footer-bg: #1a1a1a;


  /* Slate & Standard Colors */
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-900: #0f172a;
  
  /* Typography */
  --font-arabic: 'Cairo', 'Almarai', sans-serif;
  --font-display: 'Almarai', sans-serif;

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Transitions & Misc */
  --header-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Transitions */
  --footer-transition: all 0.3s ease-in-out;
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom Scroll Behavior if needed override */
html {
  scroll-behavior: smooth;
}

html[dir="rtl"] body {
  font-family: var(--font-arabic);
  direction: rtl;
  background-color: white;
  color: var(--slate-900);
  overflow-x: hidden;
}
html[dir="ltr"] body {
  font-family: var(--font-arabic);
  direction: ltr;
  background-color: white;
  color: var(--slate-900);
  overflow-x: hidden;
}


/* Specific interactive states not easily done with pure Tailwind in JS context */
#mainNav.shadow-xl {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

/* Custom Underline Animation Logic (if not using group-hover utilities exclusively) */
.nav-link-underline {
  transition: width 0.3s ease;
}

/* RTL Specific Fixes if any */
[dir="rtl"] .ml-4 {
  margin-left: 0;
  margin-right: 1rem;
}

[dir="rtl"] .pl-4 {
  padding-left: 0;
  padding-right: 1rem;
}

[dir="rtl"] .border-l {
  border-left-width: 0;
  border-right-width: 1px;
}


/* Custom Overrides & Smooth Hover Interactions */
.footer-link {
  transition: var(--footer-transition);
}

.footer-link:hover {
  transform: translateX(-8px);
}

/* Glass effect for icon containers */
.icon-glass {
  background-color: rgba(255, 255, 255, 0.05);
  transition: var(--footer-transition);
}

.icon-glass:hover {
  background-color: var(--accent);
  color: white;
}

/* RTL Adjustments */
[dir="rtl"] .footer-link:hover {
  transform: translateX(8px);
}

[dir="rtl"] .ml-4 {
  margin-left: 0;
  margin-right: 1rem;
}


/* Animations - Replaces Framer Motion */
@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

/* Vertical Text for Side Label */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* Custom Button Styles (Pure CSS equivalents) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 2rem;
  background-color: var(--accent);
  color: var(--text-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--primary);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 2rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--text-white);
}

/* Typography Overrides */
.font-display {
  font-family: var(--font-display);
}

/* Section Utilities */
.section-padding {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 120px 0;
  }
}

/* Buttons (Professional CSS) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 2.5rem;
  background-color: var(--accent);
  color: var(--text-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--primary);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 2.5rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--text-white);
}

/* Revealed Sections (Animation Trigger) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Custom Animations */
@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

/* Typography Overrides */
.font-display { font-family: var(--font-display); }

/* Accent Line */
.accent-line {
  width: 48px;
  height: 4px;
  background-color: var(--accent);
  margin-bottom: 24px;
}

/* Component: Header Scroll State */
#mainNav.shadow-xl {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero: Vertical Text Side Label */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* Projects Layer Animation */
.project-card:hover .project-overlay {
  opacity: 0.95;
}

.project-card:hover .project-details {
  transform: translateY(0);
}

/* Footer Link Glide */
.footer-link:hover {
  transform: translateX(8px);
}

/* Responsive Fixes & Custom Patterns */
[dir="rtl"] .ml-4 { margin-left: 0; margin-right: 1rem; }
[dir="rtl"] .border-l { border-left-width: 0; border-right-width: 1px; }

.shadow-concretize {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}



/* Grid Layout */
.project-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0;
  border: 1px solid var(--slate-100);
}

@media (min-width: 768px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Project Card */
.project-card {
  position: relative;
  height: 450px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--bg-light);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover img { transform: scale(1.1); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--primary) 0%, rgba(0, 51, 102, 0.4) 60%, transparent 100%);
  opacity: 0.8;
  transition: var(--transition);
}

.project-card:hover .project-overlay { opacity: 0.95; }

.project-content {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  flex-col: column;
  justify-content: flex-end;
  transform: translateY(32px);
  transition: var(--transition);
  color: white;
}

.project-card:hover .project-content { transform: translateY(0); }

.project-details-mini {
  opacity: 0;
  transition: var(--transition);
  transition-delay: 0.1s;
  margin-top: 12px;
}

.project-card:hover .project-details-mini { opacity: 1; }

.btn-maximize {
  width: 56px;
  height: 56px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-top: 32px;
  transition: var(--transition);
  opacity: 0;
}

.project-card:hover .btn-maximize { opacity: 1; }
.btn-maximize:hover { background-color: white; color: var(--accent); transform: scale(1.1); }

/* Modal / Lightbox */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 51, 102, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
  background: white;
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }

@media (min-width: 1024px) {
  .modal-content { grid-template-columns: 1fr 1fr; }
}

.modal-image {
  height: 320px;
  position: relative;
}

@media (min-width: 1024px) {
  .modal-image { height: auto; }
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info { padding: 40px; position: relative; }
@media (min-width: 768px) { .modal-info { padding: 64px; } }

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 110;
}

/* Filter Active State */
.filter-btn.active {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes revealItem {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.project-card.hidden { display: none; }
.project-card.revealing { animation: revealItem 0.5s forwards; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2.5rem;
  background-color: var(--accent);
  color: var(--text-white);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background-color: var(--primary); }
 .section-padding { padding: 80px 0; }
@media (min-width: 768px) { .section-padding { padding: 120px 0; } }

