/* Modern Premium CSS for New High Towers L.L.C. */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Design Tokens (Premium Light Mode) */
  --bg-dark: #f8fafc;
  --bg-primary: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.78);
  --border-glass: rgba(15, 23, 42, 0.05);
  --border-glass-hover: rgba(178, 143, 45, 0.25);
  
  --accent-gold: #b28f2d;
  --accent-gold-rgb: 178, 143, 45;
  --accent-gold-dark: #8e701e;
  --accent-bronze: #705715;
  --accent-glow: rgba(178, 143, 45, 0.06);
  
  --text-light: #0f172a;
  --text-muted: #475569;
  --text-dark: #ffffff;
  
  /* Gradients */
  --gold-gradient: linear-gradient(135deg, #d8be6c 0%, #b28f2d 40%, #8e701e 70%, #705715 100%);
  --gold-gradient-hover: linear-gradient(135deg, #f6e8b4 0%, #d8be6c 30%, #b28f2d 70%, #8e701e 100%);
  --dark-gradient: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
  --glow-gradient: radial-gradient(circle, rgba(178, 143, 45, 0.05) 0%, rgba(255, 255, 255, 0) 70%);

  /* Font Families */
  --font-arabic: 'Cairo', sans-serif;
  --font-english: 'Outfit', sans-serif;

  /* Typography */
  --font-family: var(--font-arabic); /* Default */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 12px;
}

/* Base resets & Direction handling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) var(--bg-primary);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Adjust font dynamic switches */
[dir="rtl"] {
  --font-family: var(--font-arabic);
}
[dir="ltr"] {
  --font-family: var(--font-english);
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Global Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.3;
}

h2.section-title {
  font-size: 2.5rem;
  text-align: center;
  position: relative;
  margin-bottom: 3.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* Grid & Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

/* Background glows for premium ambient aesthetics */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--glow-gradient);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
}

.glass-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06), 0 0 15px rgba(178, 143, 45, 0.05);
}

/* Scroll Reveal Premium Micro-Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(35px);
  filter: blur(3px);
  transition: 
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 1s cubic-bezier(0.16, 1, 0.3, 1), 
    filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered and Directional Scroll Reveals */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  filter: blur(2px);
  transition: 
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  filter: blur(2px);
  transition: 
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal-zoom-in {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  filter: blur(2px);
  transition: 
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.reveal-zoom-in.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

/* 5 Unique Cards Scroll Reveal Animations */
.reveal-card-1,
.reveal-card-2,
.reveal-card-3,
.reveal-card-4,
.reveal-card-5 {
  opacity: 0;
  filter: blur(4px);
  transition: 
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.reveal-card-1.active,
.reveal-card-2.active,
.reveal-card-3.active,
.reveal-card-4.active,
.reveal-card-5.active,
[dir="rtl"] .reveal-card-1.active,
[dir="rtl"] .reveal-card-2.active,
[dir="rtl"] .reveal-card-3.active,
[dir="rtl"] .reveal-card-4.active,
[dir="rtl"] .reveal-card-5.active,
[dir="ltr"] .reveal-card-1.active,
[dir="ltr"] .reveal-card-2.active,
[dir="ltr"] .reveal-card-3.active,
[dir="ltr"] .reveal-card-4.active,
[dir="ltr"] .reveal-card-5.active {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) rotate(0deg) !important;
  filter: blur(0) !important;
}

/* 1. RTL (Arabic Layout) unique entry states */
[dir="rtl"] .reveal-card-1 {
  transform: translateX(60px) rotate(1.5deg);
}
[dir="rtl"] .reveal-card-2 {
  transform: translateY(60px) scale(0.9);
}
[dir="rtl"] .reveal-card-3 {
  transform: translateX(-60px) rotate(-1.5deg);
}
[dir="rtl"] .reveal-card-4 {
  transform: translate(50px, 50px);
}
[dir="rtl"] .reveal-card-5 {
  transform: translate(-50px, 50px);
}

/* 2. LTR (English Layout) unique entry states */
[dir="ltr"] .reveal-card-1 {
  transform: translateX(-60px) rotate(-1.5deg);
}
[dir="ltr"] .reveal-card-2 {
  transform: translateY(60px) scale(0.9);
}
[dir="ltr"] .reveal-card-3 {
  transform: translateX(60px) rotate(1.5deg);
}
[dir="ltr"] .reveal-card-4 {
  transform: translate(-50px, 50px);
}
[dir="ltr"] .reveal-card-5 {
  transform: translate(50px, 50px);
}

/* 4 Unique Counters Scroll Reveal Animations */
.reveal-counter-1,
.reveal-counter-2,
.reveal-counter-3,
.reveal-counter-4 {
  opacity: 0;
  filter: blur(4px);
  transition: 
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.reveal-counter-1.active,
.reveal-counter-2.active,
.reveal-counter-3.active,
.reveal-counter-4.active,
[dir="rtl"] .reveal-counter-1.active,
[dir="rtl"] .reveal-counter-2.active,
[dir="rtl"] .reveal-counter-3.active,
[dir="rtl"] .reveal-counter-4.active,
[dir="ltr"] .reveal-counter-1.active,
[dir="ltr"] .reveal-counter-2.active,
[dir="ltr"] .reveal-counter-3.active,
[dir="ltr"] .reveal-counter-4.active {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) rotate(0deg) !important;
  filter: blur(0) !important;
}

/* RTL initial states */
[dir="rtl"] .reveal-counter-1 {
  transform: translateX(50px);
}
[dir="rtl"] .reveal-counter-2 {
  transform: translateY(40px);
}
[dir="rtl"] .reveal-counter-3 {
  transform: translateY(40px);
}
[dir="rtl"] .reveal-counter-4 {
  transform: translateX(-50px);
}

/* LTR initial states */
[dir="ltr"] .reveal-counter-1 {
  transform: translateX(-50px);
}
[dir="ltr"] .reveal-counter-2 {
  transform: translateY(40px);
}
[dir="ltr"] .reveal-counter-3 {
  transform: translateY(40px);
}
[dir="ltr"] .reveal-counter-4 {
  transform: translateX(50px);
}

/* Special load reveal for Hero elements to animate instantly on load */
.load-reveal {
  opacity: 0;
  transform: translateY(25px);
  filter: blur(3px);
  will-change: transform, opacity, filter;
}

.load-reveal.active {
  animation: loadRevealAnim 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loadRevealAnim {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Load reveal staggered delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }

/* Elegant Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  font-size: 1rem;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border: none;
}

.btn-primary:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
   NAVIGATION BAR
------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-wrapper img {
  height: 55px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.logo-text h1 {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition-smooth);
}

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

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

.nav-link.active {
  color: var(--accent-gold);
  font-weight: 700;
}

.nav-link.active::after {
  width: 100%;
  box-shadow: 0 0 8px rgba(178, 143, 45, 0.6);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  color: var(--accent-gold);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.lang-toggle:hover {
  background: rgba(178, 143, 45, 0.08);
  border-color: var(--accent-gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: var(--accent-gold);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

/* -------------------------------------------------------------
   HERO SECTION
------------------------------------------------------------- */
.hero-sec {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  background-color: var(--bg-dark);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.4) 0%, rgba(248, 250, 252, 0.96) 100%);
  z-index: 2;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.8) brightness(1.2);
  transform: scale(1.05);
  animation: zoomBg 20s infinite alternate ease-in-out;
}

@keyframes zoomBg {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 850px;
  padding-top: 5rem;
}

.hero-title-area h2 {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero-subtitle-area {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 2rem;
  border-inline-start: 4px solid var(--accent-gold);
  padding-inline-start: 1rem;
}

.hero-tagline-area {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------
   DYNAMIC SCROLL COUNTERS SECTION
------------------------------------------------------------- */
.stats-counters-sec {
  background-color: var(--bg-dark);
  padding: 0;
  margin-top: -70px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.counter-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.2rem 1.5rem;
  border-bottom: 3px solid transparent;
}

.counter-card:hover {
  border-bottom-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.04), 0 0 15px rgba(178, 143, 45, 0.03);
}

.counter-num-wrapper {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
  line-height: 1;
  letter-spacing: -1px;
}

.counter-num {
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.counter-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.3rem;
}

/* -------------------------------------------------------------
   ABOUT US SECTION
------------------------------------------------------------- */
.about-sec {
  padding-bottom: 0.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-left {
  position: relative;
  z-index: 2;
}

.about-badge {
  color: var(--accent-gold);
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 1rem;
}

.about-heading-text {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.about-para {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-para strong {
  color: var(--text-light);
}

.about-buttons {
  margin-top: 2.5rem;
}

.about-right {
  position: relative;
}

.logo-showcase {
  background: radial-gradient(circle, rgba(178, 143, 45, 0.06) 0%, rgba(255, 255, 255, 0.75) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  animation: floatCircle 6s ease-in-out infinite;
}

.logo-showcase img {
  width: 60%;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.4));
}

.logo-showcase::before, .logo-showcase::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.15);
}

.logo-showcase::before {
  inset: -15px;
  animation: rotateRing 20s linear infinite;
}

.logo-showcase::after {
  inset: -30px;
  animation: rotateRing 30s linear infinite reverse;
}

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

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* -------------------------------------------------------------
   SERVICES SECTION
------------------------------------------------------------- */
.services-sec {
  padding-top: 0.5rem;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-card {
  flex: 0 1 calc(33.333% - 1.34rem);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  height: auto;
}

.service-icon {
  width: 65px;
  height: 65px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--gold-gradient);
  color: var(--text-dark);
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.service-card:hover h3 {
  color: var(--accent-gold);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* -------------------------------------------------------------
   LIBYAN COMPLETED PROJECTS SECTION (Bento-style Cinematic Gallery)
 ------------------------------------------------------------- */
.projects-sec {
  background-color: var(--bg-secondary);
  padding-bottom: 3rem;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  color: var(--text-light);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Premium 3-Column Bento Grid Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 2rem;
}

/* Grid Spanning Classes */
.portfolio-item.featured-wide {
  grid-column: span 2;
}

.portfolio-item.standard {
  grid-column: span 1;
}

/* Base Card Styles with Glow Outlines & Parallax Prep */
.portfolio-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
  cursor: pointer;
  z-index: 1;
}

/* Golden Border Overlay Outline on Hover */
.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid transparent;
  border-radius: var(--border-radius);
  pointer-events: none;
  z-index: 5;
  transition: var(--transition-smooth);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  border-color: rgba(178, 143, 45, 0.35);
  box-shadow: 
    0 20px 40px rgba(15, 23, 42, 0.08), 
    0 0 30px rgba(178, 143, 45, 0.08);
}

.portfolio-item:hover::after {
  border-color: var(--accent-gold);
  box-shadow: inset 0 0 15px rgba(178, 143, 45, 0.15);
}

/* Cinematic Image Zoom & Dimensional Dimming */
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05); /* Subtle color grade */
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.08);
  filter: brightness(0.7) contrast(1.1) saturate(1.1); /* Darken and enhance dynamic range */
}

/* Perpetual Glassmorphic Category Badges */
.portfolio-badge {
  position: absolute;
  top: 1.2rem;
  inset-inline-end: 1.2rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

/* Specialized category accents */
.portfolio-badge.badge-road {
  background: rgba(178, 143, 45, 0.1);
  border-color: rgba(178, 143, 45, 0.25);
  color: #8e701e;
}

.portfolio-badge.badge-build {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.2);
  color: #0369a1;
}

.portfolio-badge.badge-infra {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.2);
  color: #7e22ce;
}

.portfolio-item:hover .portfolio-badge {
  transform: scale(0.95);
  opacity: 0.9;
}

/* Dynamic Glass Content Overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 9, 0.98) 0%, rgba(7, 7, 9, 0.4) 60%, rgba(7, 7, 9, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  z-index: 3;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Action Zoom Icon */
.portfolio-zoom-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: auto; /* Push icon to the top of overlay */
  transform: scale(0.7) translateY(-10px);
  opacity: 0;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.portfolio-item:hover .portfolio-zoom-icon {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition-delay: 0.08s;
}

.portfolio-zoom-icon:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

/* Text reveal slide up */
.portfolio-overlay h3 {
  font-size: 1.35rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  font-weight: 700;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  transition-delay: 0.12s;
}

.portfolio-overlay p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  transition-delay: 0.18s;
}

.portfolio-item:hover h3, 
.portfolio-item:hover p {
  transform: translateY(0);
}

/* ==========================================
   PORTFOLIO RESPONSIVENESS OVERRIDES
 =========================================== */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
  }
  .portfolio-item.featured-wide {
    grid-column: span 2; /* wide spans row on tablet */
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
    gap: 1.25rem;
  }
  .portfolio-item.featured-wide {
    grid-column: span 1; /* resets wide span to standard single column on mobile */
  }
  .portfolio-overlay {
    padding: 1.5rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}



/* -------------------------------------------------------------
   CONTACT SECTION
------------------------------------------------------------- */
.contact-sec {
  background-color: var(--bg-secondary);
  padding-top: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text-light);
}

.contact-info-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-info-content a {
  color: var(--accent-gold);
  text-decoration: none;
}

.contact-info-content a:hover {
  text-decoration: underline;
}

/* Simulated Bright Map Widget */
.map-widget {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  height: 250px;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #ffffff, #f1f5f9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(178, 143, 45, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 143, 45, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

.map-pin {
  width: 16px;
  height: 16px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 15px rgba(178, 143, 45, 0.8);
  margin-bottom: 0.8rem;
  z-index: 2;
  position: relative;
  animation: pulsePin 2s infinite;
}

@keyframes pulsePin {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(178, 143, 45, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(178, 143, 45, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(178, 143, 45, 0); }
}

.map-label {
  font-weight: 700;
  color: var(--accent-gold);
  z-index: 2;
  font-size: 0.9rem;
}

.map-coords {
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: 2;
  margin-top: 0.3rem;
}

/* Contact Form Grid styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-success-alert {
  background-color: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  display: none;
  font-size: 0.95rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.form-error-alert {
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  display: none;
  font-size: 0.95rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px; /* Always on the left side to avoid conflicting with scroll-to-top widgets */
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
  z-index: 999;
  transition: var(--transition-smooth);
  text-decoration: none;
  animation: pulseWhatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  background-color: #20ba5a;
  color: #ffffff;
}

@keyframes pulseWhatsapp {
  0% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
footer {
  background-color: var(--bg-dark);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--accent-gold);
  padding-inline-start: 5px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.footer-brand img {
  height: 45px;
  width: auto;
}

.footer-brand h2 {
  font-size: 1.2rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: transparent;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
   RESPONSIVENESS MEDIA QUERIES
------------------------------------------------------------- */
@media (max-width: 1024px) {
  h2.section-title { font-size: 2.2rem; }
  .hero-title-area h2 { font-size: 3.2rem; }
  .about-grid, .contact-grid { gap: 2.5rem; }
  .service-card { flex: 0 1 calc(50% - 1rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .footer-col:last-child { grid-column: span 2; }
}

@media (max-width: 768px) {
  header {
    padding: 0.5rem 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* Mobile Nav Menu Drawer */
  .nav-menu {
    position: fixed;
    top: 80px;
    inset-inline-start: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-dark);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-glass);
    z-index: 999;
  }
  
  .nav-menu.active {
    inset-inline-start: 0;
  }
  
  .nav-controls {
    margin-inline-start: auto;
    margin-inline-end: 1rem;
  }

  .hero-title-area h2 { font-size: 2.5rem; }
  .hero-subtitle-area { font-size: 1.3rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-right { order: -1; margin-bottom: 2rem; }
  .logo-showcase { width: 240px; height: 240px; }
  
  .form-row { grid-template-columns: 1fr; gap: 1.5rem; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-col:last-child { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  
  .modal-card { padding: 2rem; }
}

@media (max-width: 480px) {
  .service-card { flex: 0 1 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
}

/* Portfolio Cursor styling */
.portfolio-item {
  cursor: pointer;
}

/* ==========================================
   LIGHTBOX MODAL SYSTEM
=========================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 4, 5, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.05);
}

.lightbox-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--accent-gold);
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 2001;
}

.lightbox-close-btn:hover {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: transparent;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

[dir="rtl"] .lightbox-close-btn {
  right: auto;
  left: 2rem;
}

.lightbox-caption {
  margin-top: 1.5rem;
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  max-width: 80vw;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.lightbox-desc {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  max-width: 80vw;
}

/* ==========================================
   PREMIUM SITE PRELOADER
=========================================== */
#site-preloader {
  position: fixed;
  inset: 0;
  background-color: #0c111d; /* Elegant deep dark color */
  z-index: 99999; /* Ensure it is on top of everything */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  visibility: visible;
  opacity: 1;
}

#site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 280px;
  width: 100%;
}

.preloader-logo {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(178, 143, 45, 0.5));
  animation: logoPulse 2.5s infinite alternate ease-in-out;
}

.preloader-bar-container {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 2px;
  transition: width 0.4s ease-out;
  box-shadow: 0 0 10px rgba(178, 143, 45, 0.8);
}

@keyframes logoPulse {
  0% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 15px rgba(178, 143, 45, 0.3));
  }
  100% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 35px rgba(178, 143, 45, 0.7));
  }
}
