/* ============================================
   SAMA TEAM V2 - Premium Interior Design
   Brand Colors: Navy #1E3A4F + Blue #4A8DB7
   ============================================ */

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

:root {
  --navy: #1E3A4F;
  --navy-dark: #142C3D;
  --navy-darker: #0D1F2D;
  --blue: #4A8DB7;
  --blue-light: #6BA5C9;
  --blue-pale: #E8F1F8;
  --dark: #0A0F14;
  --dark-2: #111921;
  --gray-100: #F5F7FA;
  --gray-200: #E4E8ED;
  --gray-300: #CDD3DB;
  --gray-500: #7A8694;
  --gray-700: #3D4A56;
  --white: #FFFFFF;
  --font-ar: 'Cairo', 'Tajawal', sans-serif;
  --font-en: 'Inter', 'Poppins', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-ar); background: var(--white); color: var(--dark); overflow-x: hidden; direction: rtl; }
body.en { font-family: var(--font-en); direction: ltr; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* === LOADER === */
.loader { position: fixed; inset: 0; background: var(--navy-darker); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-logo { margin-bottom: 24px; }
.loader-logo img { height: 90px; margin: 0 auto; }
.loader-bar { width: 200px; height: 2px; background: rgba(255,255,255,0.1); margin: 0 auto; border-radius: 2px; overflow: hidden; }
.loader-bar::after { content: ''; display: block; width: 0; height: 100%; background: var(--blue); animation: loadBar 1.5s var(--ease) forwards; }
@keyframes loadBar { to { width: 100%; } }

/* === NAVBAR === */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: all 0.4s var(--ease); }
.navbar.scrolled { background: rgba(14,31,45,0.95); backdrop-filter: blur(20px); padding: 12px 0; box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 42px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.75); font-size: 0.88rem; font-weight: 500; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone { color: rgba(255,255,255,0.7); font-size: 0.82rem; direction: ltr; }
.nav-lang { color: rgba(255,255,255,0.7); font-size: 0.82rem; font-weight: 600; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); padding: 7px 16px; border-radius: 100px; cursor: pointer; transition: all 0.3s; }
.nav-lang:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.nav-cta { background: var(--blue); color: var(--white); padding: 9px 22px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; transition: all 0.3s; }
.nav-cta:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(74,141,183,0.3); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: all 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(14,31,45,0.98); backdrop-filter: blur(30px); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.mobile-menu.active { display: flex; }
.mobile-menu a { color: var(--white); font-size: 1.6rem; font-weight: 700; transition: color 0.3s; }
.mobile-menu a:hover { color: var(--blue); }

/* === HERO === */
.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; overflow: hidden; background: var(--navy-darker); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 10s ease; }
.hero.loaded .hero-bg img { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(14,31,45,0.85) 0%, rgba(30,58,79,0.6) 50%, rgba(14,31,45,0.8) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 1100px; padding: 0 24px; }

/* Animated lines decoration */
.hero-lines { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-lines .line { position: absolute; width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(74,141,183,0.15), transparent); animation: lineFloat 8s ease infinite; }
.hero-lines .line:nth-child(1) { left: 10%; animation-delay: 0s; }
.hero-lines .line:nth-child(2) { left: 25%; animation-delay: 2s; }
.hero-lines .line:nth-child(3) { left: 50%; animation-delay: 4s; }
.hero-lines .line:nth-child(4) { left: 75%; animation-delay: 1s; }
.hero-lines .line:nth-child(5) { left: 90%; animation-delay: 3s; }
@keyframes lineFloat { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: rgba(74,141,183,0.15); border: 1px solid rgba(74,141,183,0.25); border-radius: 100px; color: var(--blue-light); font-size: 0.82rem; font-weight: 500; margin-bottom: 28px; backdrop-filter: blur(10px); opacity: 0; transform: translateY(20px); animation: fadeUp 0.6s var(--ease) 0.5s forwards; }
.hero-badge .dot { width: 8px; height: 8px; background: var(--blue); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

.hero-title { font-size: clamp(1.6rem, 3.2vw, 3rem); font-weight: 800; color: var(--white); line-height: 1.3; margin-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.1em 0.35em; }
.hero-title .word { opacity: 0; transform: translateY(50px); animation: wordReveal 0.6s var(--ease) forwards; }
@keyframes wordReveal { to { opacity: 1; transform: translateY(0); } }

.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.6); line-height: 1.9; max-width: 600px; margin-bottom: 36px; font-weight: 300; opacity: 0; transform: translateY(20px); animation: fadeUp 0.6s var(--ease) 1.4s forwards; }

.hero-buttons { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; opacity: 0; transform: translateY(20px); animation: fadeUp 0.6s var(--ease) 1.7s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: var(--blue); color: var(--white); border-radius: 100px; font-size: 0.95rem; font-weight: 600; transition: all 0.4s var(--ease); border: none; cursor: pointer; }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-3px); box-shadow: 0 12px 35px rgba(74,141,183,0.35); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.2); border-radius: 100px; font-size: 0.95rem; font-weight: 600; transition: all 0.4s var(--ease); cursor: pointer; }
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); transform: translateY(-3px); }

/* Hero right side showcase */
.hero-showcase { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); z-index: 2; width: 380px; display: flex; flex-direction: column; gap: 16px; opacity: 0; animation: fadeUp 1s var(--ease) 2s forwards; }
body[dir="rtl"] .hero-showcase { right: auto; left: 5%; }

.showcase-card { background: rgba(255,255,255,0.06); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 20px; display: flex; align-items: center; gap: 16px; transition: all 0.4s var(--ease); }
.showcase-card:hover { background: rgba(255,255,255,0.1); transform: translateX(-8px); }
body[dir="rtl"] .showcase-card:hover { transform: translateX(8px); }
.showcase-card-img { width: 70px; height: 70px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.showcase-card-img img { width: 100%; height: 100%; object-fit: cover; }
.showcase-card h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.showcase-card p { color: rgba(255,255,255,0.5); font-size: 0.75rem; }

.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 2; text-align: center; opacity: 0; animation: fadeUp 0.6s var(--ease) 2.5s forwards; }
.hero-scroll span { display: block; color: rgba(255,255,255,0.3); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; }
.scroll-line { width: 1px; height: 50px; margin: 0 auto; background: rgba(255,255,255,0.1); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 50%; background: var(--blue); animation: scrollDown 2s ease infinite; }
@keyframes scrollDown { 0% { top: -50%; } 100% { top: 100%; } }
.hero-bottom-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to top, var(--gray-100), transparent); z-index: 2; }

/* === MARQUEE / CLIENTS === */
.marquee-section { padding: 40px 0; background: var(--gray-100); overflow: hidden; border-bottom: 1px solid var(--gray-200); }
.marquee-track { display: flex; gap: 60px; animation: marqueeScroll 25s linear infinite; width: max-content; }
.marquee-item { color: var(--gray-300); font-size: 1.3rem; font-weight: 800; white-space: nowrap; letter-spacing: 0.05em; display: flex; align-items: center; gap: 12px; }
.marquee-item .sep { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; opacity: 0.4; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === ABOUT === */
.about { padding: 120px 0; background: var(--gray-100); position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-images { position: relative; height: 600px; }
.about-img-main { position: absolute; top: 0; right: 0; width: 80%; height: 75%; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.12); }
.about-img-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.about-img-main:hover img { transform: scale(1.05); }
.about-img-secondary { position: absolute; bottom: 0; left: 0; width: 55%; height: 50%; border-radius: 16px; overflow: hidden; border: 8px solid var(--gray-100); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.about-img-secondary img { width: 100%; height: 100%; object-fit: cover; }
.about-badge { position: absolute; top: 16px; left: 16px; width: 110px; height: 110px; background: var(--navy); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--white); box-shadow: 0 10px 30px rgba(30,58,79,0.3); z-index: 2; }
.about-badge .num { font-size: 2rem; font-weight: 800; line-height: 1; }
.about-badge .label { font-size: 0.75rem; font-weight: 600; }

.section-tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.section-tag .line { width: 40px; height: 2px; background: var(--blue); }
.section-tag .text { color: var(--blue); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--navy-darker); line-height: 1.3; margin-bottom: 20px; }
.about-text h2 .highlight { color: var(--blue); }
.about-text > p { font-size: 1rem; color: var(--gray-700); line-height: 1.9; margin-bottom: 28px; }

.values-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.value-tag { padding: 8px 18px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 100px; font-size: 0.82rem; font-weight: 600; color: var(--gray-700); transition: all 0.3s; }
.value-tag:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.about-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; font-size: 0.9rem; transition: gap 0.3s; }
.about-link:hover { gap: 14px; }

.stats-bar { margin-top: 80px; background: var(--navy); border-radius: 20px; padding: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; box-shadow: 0 25px 50px rgba(30,58,79,0.25); }
.stat-item { text-align: center; }
.stat-icon { width: 48px; height: 48px; margin: 0 auto 14px; background: rgba(74,141,183,0.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.stat-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.stat-label { font-size: 0.82rem; color: var(--gray-500); }

/* === VISION & MISSION === */
.vision-mission { margin-top: 60px; }
.vision-mission .vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card { background: var(--navy-darker); border-radius: 20px; padding: 40px; }
.vm-card .vm-icon { width: 60px; height: 60px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.vm-card .vm-icon svg { width: 26px; height: 26px; stroke: var(--white); fill: none; stroke-width: 2; }
.vm-card h3 { color: var(--white); font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.vm-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.8; }

/* === PORTFOLIO GALLERY === */
.portfolio-gallery { padding: 100px 0; background: var(--gray-100); }
.portfolio-gallery .section-header { text-align: center; margin-bottom: 50px; }
.portfolio-gallery .section-header .tag { display: inline-block; padding: 6px 18px; background: rgba(74,141,183,0.12); color: var(--blue); border-radius: 100px; font-size: 0.82rem; font-weight: 600; margin-bottom: 14px; }
.portfolio-gallery .section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.portfolio-gallery .section-header p { color: var(--gray-600); font-size: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gallery-grid .g-item { position: relative; overflow: hidden; border-radius: 12px; cursor: pointer; }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.gallery-grid .g-item:hover img { transform: scale(1.15); }
.gallery-grid .g-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,31,45,0.6) 0%, transparent 50%); opacity: 0; transition: opacity 0.4s ease; }
.gallery-grid .g-item:hover::after { opacity: 1; }
.gallery-grid .g-item .g-label { position: absolute; bottom: 16px; right: 16px; color: #fff; font-size: 0.85rem; font-weight: 600; opacity: 0; transform: translateY(10px); transition: all 0.4s ease; z-index: 2; }
.gallery-grid .g-item:hover .g-label { opacity: 1; transform: translateY(0); }
/* tall items */
.gallery-grid .g-tall { grid-row: span 2; }
/* wide items */
.gallery-grid .g-wide { grid-column: span 2; }
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .gallery-grid .g-wide { grid-column: span 1; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr 1fr; gap: 6px; } }

/* === SERVICES === */
.services { padding: 120px 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .tag { display: inline-block; padding: 6px 18px; background: var(--blue-pale); color: var(--navy); border-radius: 100px; font-size: 0.82rem; font-weight: 600; margin-bottom: 14px; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--navy-darker); margin-bottom: 14px; }
.section-header p { font-size: 1rem; color: var(--gray-500); max-width: 550px; margin: 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; overflow: hidden; transition: all 0.5s var(--ease); display: flex; flex-direction: column; }
.service-card:hover { border-color: rgba(74,141,183,0.3); box-shadow: 0 20px 50px rgba(74,141,183,0.1); transform: translateY(-8px); }
.service-card-img { position: relative; height: 210px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.service-card:hover .service-card-img img { transform: scale(1.1); }
.service-icon { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
body[dir="rtl"] .service-icon { left: auto; right: 14px; }
.service-icon svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 2; }
.service-card-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.service-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy-darker); margin-bottom: 10px; transition: color 0.3s; }
.service-card:hover .service-card-body h3 { color: var(--blue); }
.service-card-body p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.7; flex-grow: 1; margin-bottom: 16px; }
.service-card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 0.85rem; font-weight: 600; transition: gap 0.3s; }
.service-card:hover .service-card-link { gap: 12px; }

/* === VIDEO / SHOWREEL === */
.showreel { padding: 80px 0; background: var(--navy-darker); position: relative; overflow: hidden; }
.showreel-content { text-align: center; position: relative; z-index: 2; }
.showreel-content h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.showreel-content p { color: var(--gray-500); font-size: 1rem; margin-bottom: 48px; }
.showreel-preview { position: relative; max-width: 1000px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,0.5); aspect-ratio: 16/9; }
.showreel-preview img, .showreel-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.4s var(--ease); box-shadow: 0 0 0 0 rgba(74,141,183,0.4); animation: playPulse 2.5s ease infinite; }
.play-btn:hover { background: var(--blue-light); transform: translate(-50%, -50%) scale(1.1); }
.play-btn svg { width: 28px; height: 28px; fill: white; margin-left: 4px; }
body[dir="rtl"] .play-btn svg { margin-left: 0; margin-right: 4px; }
@keyframes playPulse { 0% { box-shadow: 0 0 0 0 rgba(74,141,183,0.4); } 70% { box-shadow: 0 0 0 20px rgba(74,141,183,0); } 100% { box-shadow: 0 0 0 0 rgba(74,141,183,0); } }

/* === PROCESS === */
.process { padding: 120px 0; background: var(--navy); position: relative; overflow: hidden; }
.process .section-header h2 { color: var(--white); }
.process .section-header .tag { background: rgba(74,141,183,0.15); color: var(--blue-light); }
.process .section-header p { color: var(--gray-500); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.process-line { position: absolute; top: 50px; left: 12%; right: 12%; height: 1px; background: rgba(255,255,255,0.08); }
.process-step { text-align: center; position: relative; z-index: 2; }
.step-circle { width: 100px; height: 100px; border-radius: 50%; background: var(--navy-dark); border: 2px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; transition: all 0.5s var(--ease); }
.process-step:hover .step-circle { border-color: var(--blue); background: rgba(74,141,183,0.1); transform: scale(1.1); box-shadow: 0 0 40px rgba(74,141,183,0.15); }
.step-num { font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.process-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.process-step p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.7; max-width: 230px; margin: 0 auto; }

/* === PROJECTS === */
.projects { padding: 120px 0; background: var(--gray-100); }
.projects-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; flex-wrap: wrap; gap: 20px; }
.projects-header-text .tag { display: inline-block; padding: 6px 18px; background: var(--blue-pale); color: var(--navy); border-radius: 100px; font-size: 0.82rem; font-weight: 600; margin-bottom: 14px; }
.projects-header-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--navy-darker); margin-bottom: 10px; }
.projects-header-text p { font-size: 1rem; color: var(--gray-500); }
.projects-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--navy); color: var(--white); border-radius: 100px; font-weight: 600; font-size: 0.88rem; transition: all 0.3s; }
.projects-cta:hover { background: var(--blue); transform: translateY(-2px); }
.projects-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 16px; }
.projects-grid:nth-child(odd) { grid-template-columns: 5fr 7fr; }
.project-card { position: relative; height: 400px; border-radius: 20px; overflow: hidden; cursor: pointer; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-card:hover img { transform: scale(1.1); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(14,31,45,0.4) 60%, rgba(14,31,45,0.9) 100%); opacity: 0.7; transition: opacity 0.5s; }
.project-card:hover .project-overlay { opacity: 1; }
.project-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; transform: translateY(10px); transition: transform 0.5s var(--ease); }
.project-card:hover .project-info { transform: translateY(0); }
.project-category { display: inline-block; padding: 4px 14px; background: var(--blue); color: var(--white); font-size: 0.72rem; font-weight: 700; border-radius: 100px; margin-bottom: 10px; }
.project-info h3 { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.project-location { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.6); font-size: 0.82rem; opacity: 0; transition: opacity 0.5s 0.1s; }
.project-card:hover .project-location { opacity: 1; }
.project-external { position: absolute; top: 18px; left: 18px; width: 44px; height: 44px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(-10px); transition: all 0.4s var(--ease); }
body[dir="rtl"] .project-external { left: auto; right: 18px; }
.project-card:hover .project-external { opacity: 1; transform: translateY(0); }
.project-external svg { width: 16px; height: 16px; stroke: white; fill: none; stroke-width: 2; }

/* === FACTORY === */
.factory-section { padding: 120px 0; background: var(--navy-darker); }
.factory-section .section-header h2 { color: var(--white); }
.factory-section .section-header .tag { background: rgba(74,141,183,0.15); color: var(--blue-light); }
.factory-section .section-header p { color: var(--gray-500); }
.factory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.factory-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 40px; transition: all 0.4s var(--ease); }
.factory-card:hover { border-color: var(--blue); transform: translateY(-5px); }
.factory-icon { width: 64px; height: 64px; background: rgba(74,141,183,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.factory-icon svg { width: 28px; height: 28px; stroke: var(--blue); fill: none; stroke-width: 2; }
.factory-card h3 { color: var(--white); font-size: 1.15rem; font-weight: 700; margin-top: 20px; margin-bottom: 12px; }
.factory-card p { color: var(--gray-500); font-size: 0.88rem; line-height: 1.8; }
.factory-features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; list-style: none; }
.factory-feature { padding: 6px 14px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); font-size: 0.75rem; border-radius: 100px; font-weight: 500; }

/* === CLIENTS === */
.clients-section { padding: 100px 0; background: var(--white); }
.clients-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.client-badge { background: var(--navy); color: var(--white); padding: 16px 28px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; transition: all 0.3s; }
.client-badge:hover { background: var(--blue); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(74,141,183,0.25); }

/* === PARTNERS === */
.partners-section { padding: 80px 0; background: var(--gray-100); }
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.partner-badge { background: var(--blue-pale); color: var(--navy); padding: 14px 24px; border-radius: 100px; font-weight: 700; font-size: 0.88rem; border: 1px solid transparent; transition: all 0.3s; }
.partner-badge:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* === BLOG === */
.blog { padding: 120px 0; background: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; overflow: hidden; transition: all 0.5s var(--ease); display: flex; flex-direction: column; color: inherit; }
.blog-card:hover { border-color: rgba(74,141,183,0.3); box-shadow: 0 20px 50px rgba(74,141,183,0.08); transform: translateY(-8px); }
.blog-card-img { position: relative; height: 210px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.1); }
.blog-date { position: absolute; top: 14px; right: 14px; padding: 4px 14px; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); color: white; font-size: 0.72rem; font-weight: 600; border-radius: 100px; }
body[dir="ltr"] .blog-date { right: auto; left: 14px; }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-cat { display: inline-block; padding: 4px 12px; background: var(--blue-pale); color: var(--navy); border-radius: 100px; font-size: 0.72rem; font-weight: 600; margin-bottom: 10px; width: fit-content; }
.blog-card-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-darker); line-height: 1.5; margin-bottom: 10px; transition: color 0.3s; }
.blog-card:hover .blog-card-body h3 { color: var(--blue); }
.blog-card-body p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.7; flex-grow: 1; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 0.82rem; font-weight: 600; transition: gap 0.3s; }
.blog-card:hover .blog-read-more { gap: 12px; }

/* === CTA === */
.cta-section { padding: 120px 0; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%); }
.cta-content { position: relative; z-index: 2; text-align: center; }
.cta-content h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.cta-content p { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 550px; margin: 0 auto 36px; line-height: 1.7; }
.btn-white { display: inline-flex; align-items: center; gap: 10px; padding: 16px 38px; background: var(--white); color: var(--navy); border-radius: 100px; font-size: 1rem; font-weight: 700; transition: all 0.4s var(--ease); border: none; cursor: pointer; }
.btn-white:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }

/* === FOOTER === */
.footer { background: var(--dark); color: var(--gray-500); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 40px; padding-bottom: 60px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { height: 40px; filter: brightness(0) invert(1); }
.footer-brand > p { font-size: 0.85rem; line-height: 1.8; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 40px; height: 40px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.footer-socials a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.footer-socials a svg { width: 16px; height: 16px; stroke: var(--gray-500); fill: none; stroke-width: 2; }
.footer-socials a:hover svg { stroke: var(--white); }
.footer h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.85rem; transition: color 0.3s; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--white); }
.footer-links svg { width: 16px; height: 16px; stroke: var(--gray-500); fill: none; stroke-width: 2; flex-shrink: 0; }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; margin-bottom: 14px; line-height: 1.6; }
.footer-contact svg { width: 18px; height: 18px; stroke: var(--gray-500); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--white); }

/* === FLOATING BUTTONS === */
.float-whatsapp { position: fixed; bottom: 28px; right: 28px; width: 58px; height: 58px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,0.4); z-index: 900; transition: all 0.3s; animation: floatPulse 3s ease infinite; }
.float-whatsapp:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 10px 30px rgba(37,211,102,0.5); }
.float-tooltip { position: absolute; right: 68px; background: var(--dark); color: white; padding: 8px 14px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.3s; pointer-events: none; }
body[dir="ltr"] .float-tooltip { right: auto; left: 68px; }
.float-whatsapp:hover .float-tooltip { opacity: 1; visibility: visible; }
@keyframes floatPulse { 0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.4); } 50% { box-shadow: 0 6px 30px rgba(37,211,102,0.6), 0 0 0 12px rgba(37,211,102,0.08); } }

.float-top { position: fixed; bottom: 28px; left: 28px; width: 48px; height: 48px; background: var(--navy); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; z-index: 900; transition: all 0.4s var(--ease); opacity: 0; visibility: hidden; transform: translateY(20px); }
.float-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.float-top:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }

/* === ANIMATIONS === */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: all 0.8s var(--ease); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
body[dir="rtl"] .reveal-left { transform: translateX(60px); }
body[dir="rtl"] .reveal-left.visible { transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: all 0.8s var(--ease); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
body[dir="rtl"] .reveal-right { transform: translateX(-60px); }
body[dir="rtl"] .reveal-right.visible { transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.85); transition: all 0.8s var(--ease); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }
.stagger-9 { transition-delay: 0.9s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: block; }
  .hero-showcase { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-images { height: 400px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .process-line { display: none; }
  .projects-grid, .projects-grid:nth-child(odd) { grid-template-columns: 1fr; }
  .project-card { height: 340px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-grid { grid-template-columns: 1fr; }
  .vision-mission .vm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 1.1rem; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; padding: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .projects-header { flex-direction: column; align-items: flex-start; }
  .float-whatsapp { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .float-top { bottom: 18px; left: 18px; width: 42px; height: 42px; }
  .float-tooltip { display: none; }
  .clients-grid { gap: 10px; }
  .client-badge { padding: 12px 20px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }
