@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   AL RAMZ MEP DESIGN - STYLESHEET
   Aesthetics: Warm Minimalist, Editorial Serif Typography, Blueprint Grids
   ========================================================================== */

/* 1. CSS VARIABLES & DESIGN SYSTEM */
:root {
  /* Color Palette */
  --bg-light: #F5F2EB;
  /* Warm Alabaster/Sand */
  --bg-dark: #121824;
  /* Deep Obsidian Navy */
  --text-dark: #1A1A1A;
  /* Soft Charcoal (Main text on light) */
  --text-muted: rgba(26, 26, 26, 0.65);
  /* Semi-transparent charcoal */
  --text-light: #F8FAFC;
  /* Off-white on dark backgrounds */
  --text-muted-light: rgba(248, 250, 252, 0.6);
  --text-heading: #1B2A41;
  /* Deep navy for all heading/hero texts */

  --accent-gold: #000000;
  /* Changed golden accent text to black */
  --accent-gold-rgb: 0, 0, 0;
  --border-dark: rgba(26, 26, 26, 0.08);
  --border-light: rgba(255, 255, 255, 0.06);

  /* Typography Fallbacks */
  --font-serif: 'Bodoni MT Regular', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Premium Curves */
  --radius-lg: 2.5rem;
  /* Curved cards and hero images */
  --radius-md: 2rem;
  /* Clean buttons and menu tabs */
  --radius-sm: 0.75rem;
  /* Small elements */

  /* Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. CUSTOM FONT LOAD */
@font-face {
  font-family: 'Bodoni MT Regular';
  src: url('./assets/fonts/Bodoni_MT_Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 3. BASE RESET & GLOBAL STYLES */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-light);
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

section {
  position: relative;
  overflow: hidden;
}

.section-padding {
  padding: 8rem 0;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 10px;
}

/* Utilities */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.text-center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 3rem;
}

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

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Typography Elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-heading);
}

.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: normal;
}

.section-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  margin-bottom: 2rem;
  color: var(--text-heading);
}

.subsection-title {
  font-size: clamp(2rem, 4.5vw, 4rem);
  margin-bottom: 3.5rem;
  color: var(--text-heading);
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

.bg-dark .section-title {
  color: var(--text-light);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
  color: var(--text-light);
}

.bg-dark .section-desc {
  color: var(--text-muted-light);
}

.bg-dark .section-tag,
.bg-dark .hero-tagline,
.bg-dark .logo-sub,
.bg-dark .preloader-subtitle {
  color: var(--text-muted-light);
}

/* 4. BUTTONS & INTERACTION */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--text-dark);
  color: var(--bg-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #333333;
}

.btn-secondary {
  background-color: transparent;
  border-color: rgba(26, 26, 26, 0.15);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: rgba(26, 26, 26, 0.04);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  border-radius: 2rem;
}

.btn-block {
  width: 100%;
}


/* 5. PRELOADER */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.preloader-content {
  text-align: center;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

/* Animated Brand Logo in Preloader */
.preloader-logo-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo-img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.85);
  animation: preloaderImageReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.preloader-spinner {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: rotate(-90deg);
  animation: preloaderSpinnerRotate 2s linear infinite;
}

.preloader-spinner .spinner-path {
  stroke-dasharray: 295;
  stroke-dashoffset: 295;
  animation: preloaderSpinnerDraw 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  letter-spacing: 0.15em;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  opacity: 0;
  transform: translateY(10px);
  animation: preloaderTextFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.preloader-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: preloaderTextFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.preloader-bar {
  width: 150px;
  height: 2px;
  background: rgba(26, 26, 26, 0.05);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: var(--text-dark);
  animation: loadProgress 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloaderImageReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes preloaderSpinnerDraw {
  to {
    stroke-dashoffset: 60;
  }
}

@keyframes preloaderSpinnerRotate {
  to {
    transform: rotate(270deg);
  }
}

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

@keyframes loadProgress {
  to {
    width: 100%;
  }
}

.app-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.app-container {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}


/* 6. HEADER & NAVIGATION */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 80px;
  background: rgba(245, 242, 235, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
}

.header-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo Image Styling */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo-img {
  transform: rotate(8deg) scale(1.08);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--text-dark);
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
}

/* Nav Menu with Underline indicators */
.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.5);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-dark);
}

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

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

/* Burger Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition-fast);
}


/* 7. MOBILE NAVIGATION OVERLAY */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 8rem 2.5rem 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--text-dark);
  line-height: 1;
}

.mobile-nav-link:hover {
  color: var(--accent-gold);
  padding-left: 10px;
}

.mobile-nav-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  color: var(--text-muted);
}


/* 8. HERO / HOMEPAGE HEADER */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 4rem;
}

.hero-container {
  width: 100%;
  max-width: 1540px !important;
}

.hero-banner-card {
  position: relative;
  width: 100%;
  height: 680px;
  border-radius: 3.2rem;
  background-image: url('homepg- project balamand.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 3rem 4.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.hero-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 42, 65, 0.62) 0%, rgba(18, 24, 36, 0.28) 100%);
  z-index: 1;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: var(--bg-light);
  margin-top: 0;
}

.hero-banner-content .hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  line-height: 0.95;
  color: var(--bg-light);
  /* Creamy white heading for layout visual card */
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-banner-content .hero-desc {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(245, 242, 235, 0.92);
  /* Slightly transparent creamy white for body copy */
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 640px;
}

.hero-banner-card .hero-banner-content {
  position: relative;
  z-index: 2;
  transform: none;
}

/* Scroll Down Indicator styling */
.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 3.5rem auto 0 auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
  width: fit-content;
  z-index: 10;
}

.hero-scroll-indicator:hover {
  opacity: 1;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(18, 24, 36, 0.7);
  border-radius: 10px;
  position: relative;
  transition: border-color 0.3s ease;
}

.hero-scroll-indicator:hover .scroll-mouse {
  border-color: rgba(18, 24, 36, 0.95);
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: rgba(18, 24, 36, 0.7);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-bob 1.6s infinite ease-in-out;
  transition: background-color 0.3s ease;
}

.hero-scroll-indicator:hover .scroll-wheel {
  background-color: rgba(18, 24, 36, 0.95);
}

.scroll-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(18, 24, 36, 0.7);
  transition: color 0.3s ease;
}

.hero-scroll-indicator:hover .scroll-text {
  color: rgba(18, 24, 36, 0.95);
}

@keyframes scroll-bob {
  0% {
    top: 6px;
    opacity: 1;
  }
  50% {
    top: 14px;
    opacity: 0.3;
  }
  100% {
    top: 6px;
    opacity: 1;
  }
}

/* Custom Split Pill Button (Hero) */
.split-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2rem;
}

.split-btn-text {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1.1rem 2.4rem;
  border-radius: 2rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.split-btn-arrow {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.split-btn-text:hover,
.split-btn-arrow:hover {
  background-color: #ffffff;
  color: #121824;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.split-btn-arrow svg {
  transition: transform 0.3s ease;
}

.split-btn-group:hover .split-btn-arrow svg {
  transform: translateX(4px);
}

.project-image-card {
  background-size: cover;
  background-position: center;
}

.project-cartier-card {
  background-image:
    linear-gradient(rgba(18, 24, 36, 0.18), rgba(18, 24, 36, 0.28)),
    url('assets/project img/project-cartier.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.project-cartier-card .project-tag,
.project-cartier-card .project-center-title,
.project-cartier-card .project-meta,
.project-cartier-card .project-order {
  position: relative;
  z-index: 1;
}

.btn-cta-rect {
  background-color: var(--bg-dark);
  /* Obsidian Navy button */
  color: var(--bg-light);
  /* Creamy sand text */
  padding: 1.1rem 2.8rem;
  border-radius: 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(18, 24, 36, 0.1);
}

.btn-cta-rect:hover {
  background-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.nav-actions {
  gap: 1rem;
}

.nav-actions .btn-cta-rect {
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* BLUEPRINT GRIDS (Video Specific Design) */
.blueprint-card {
  background-color: #1A1F26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.hero-blueprint {
  width: 100%;
  height: 520px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blueprint-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}


/* 9. PORTFOLIO / SELECTED WORK (Homepage & Projects Page) */
.selected-work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 3rem;
}

.selected-work-header .subsection-title {
  margin-bottom: 0;
  max-width: 800px;
}

.btn-view-all {
  border: 1px solid var(--text-dark);
  border-radius: 2rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-view-all:hover {
  background-color: var(--text-dark);
  color: var(--bg-light);
}

/* Projects Masonry Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

/* Projects Accordion (Desktop Expanding Slides) */
.projects-accordion {
  display: flex;
  height: 520px;
  width: 100%;
  gap: 1.5rem;
  overflow: hidden;
  margin-top: 4rem;
}

.project-slide {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  text-decoration: none;
  transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  /* Always visible — do not let reveal-item hide these */
  opacity: 1 !important;
  transform: none !important;
}

.project-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-slide::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    to top,
    rgba(10, 14, 20, 0.95) 0%,
    rgba(10, 14, 20, 0.55) 60%,
    rgba(10, 14, 20, 0.15) 100%
  ) !important;
  z-index: 1 !important;
  opacity: 0.85 !important;
  transition: opacity 0.4s ease !important;
}

.project-slide:hover::before {
  opacity: 0.95 !important;
}

.project-slide-content {
  position: relative;
  z-index: 5;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
  justify-content: flex-end;
}

.project-slide-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-slide-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.project-slide-title {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.project-slide-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.5rem 0 0 0;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-slide-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
  display: inline-flex;
  align-items: center;
}

/* Hover accordion dynamics */
.projects-accordion:hover .project-slide {
  flex: 0.6;
}

.projects-accordion .project-slide:hover {
  flex: 2.2;
}

.projects-accordion .project-slide:hover::after {
  transform: scale(1.05);
}

.projects-accordion .project-slide:hover .project-slide-num {
  transform: translateY(-5px);
}

.projects-accordion .project-slide:hover .project-slide-desc {
  opacity: 1 !important;
  transform: translateY(0) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  display: block !important;
}

.projects-accordion .project-slide:hover .project-slide-link {
  opacity: 1 !important;
  transform: translateY(0) !important;
  color: var(--accent-gold) !important;
  display: inline-flex !important;
}

.project-slide:hover .project-slide-tag {
  color: var(--accent-gold) !important;
  opacity: 1 !important;
}

.project-slide:hover .project-slide-title {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Tablet & Mobile Fallback styles */
@media (max-width: 992px) {
  .projects-accordion {
    height: auto;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
  
  .project-slide {
    height: 340px;
    padding: 2rem;
    border-radius: 1.25rem;
  }
  
  .projects-accordion:hover .project-slide,
  .projects-accordion .project-slide:hover {
    flex: none;
  }
  
  .project-slide-desc,
  .project-slide-link {
    opacity: 1;
    transform: none;
  }
}

.project-card {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: var(--text-light);
  cursor: pointer;
}

.project-image-card {
  background-color: #1A1F26;
  border-color: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.project-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(10, 14, 20, 0.46),
    rgba(10, 14, 20, 0.58)
  );
  z-index: 1;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.project-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-image-card:hover::after {
  transform: scale(1.08);
}

.project-image-card .project-tag,
.project-image-card .project-center-title,
.project-image-card .project-meta,
.project-image-card .project-order {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-image-card .project-center-title {
  opacity: 1;
}

.project-image-card:hover::before {
  opacity: 0;
}

.project-image-card:hover .project-tag,
.project-image-card:hover .project-center-title,
.project-image-card:hover .project-meta,
.project-image-card:hover .project-order {
  opacity: 0;
  transform: translateY(6px);
}

.project-image-card:hover {
  transform: translateY(-8px);
}
/* Prevent hover transform from conflicting with accordion slides */
.project-slide.project-image-card:hover {
  transform: none;
}

.project-image-card.cream-variant:hover {
  box-shadow: 0 30px 60px rgba(27, 42, 65, 0.1);
}

/* Light cream visual variation for specific cards in video */
.project-card.cream-variant {
  background-color: #E6E2D8;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  border-color: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.project-image-card.project-cartier-card::after {
  background-image:
    linear-gradient(rgba(18, 24, 36, 0.24), rgba(18, 24, 36, 0.38)),
    url('assets/project img/project-cartier.jpg');
}

.project-image-card.project-villas-card::after {
  background-image:
    linear-gradient(rgba(18, 24, 36, 0.24), rgba(18, 24, 36, 0.38)),
    url('assets/project img/hero-skyline.jpg');
}

.project-image-card.project-prada-card::after {
  background-image:
    linear-gradient(rgba(18, 24, 36, 0.24), rgba(18, 24, 36, 0.38)),
    url('assets/project img/project-prada.jpg');
}

.project-image-card.project-jones-card::after {
  background-image:
    linear-gradient(rgba(18, 24, 36, 0.24), rgba(18, 24, 36, 0.38)),
    url('assets/project img/project-jones-grocer.jpg');
}

.project-image-card.project-balamand-card::after {
  background-image:
    linear-gradient(rgba(18, 24, 36, 0.24), rgba(18, 24, 36, 0.38)),
    url('assets/project img/project-balamand.jpg');
}

.project-image-card.project-ambhi-card::after {
  background-image:
    linear-gradient(rgba(18, 24, 36, 0.24), rgba(18, 24, 36, 0.38)),
    url('assets/project img/amphi.jpg');
}

.project-image-card.project-book-authority-card::after {
  background-image:
    linear-gradient(rgba(18, 24, 36, 0.24), rgba(18, 24, 36, 0.38)),
    url('assets/project img/about-office.jpg');
}

.project-image-card.project-doors-card::after {
  background-image:
    linear-gradient(rgba(18, 24, 36, 0.24), rgba(18, 24, 36, 0.38)),
    url('assets/project img/project-doors.jpg');
}

.project-image-card.project-tourism-card::after {
  background-image:
    linear-gradient(rgba(18, 24, 36, 0.24), rgba(18, 24, 36, 0.38)),
    url('assets/project img/project-iit-dubai.jpg');
}

.project-image-card.project-iit-card::after {
  background-image:
    linear-gradient(rgba(18, 24, 36, 0.24), rgba(18, 24, 36, 0.38)),
    url('assets/project img/project-iit-dubai.jpg');
}

.project-image-card.project-mens-college-card::after {
  background-image:
    linear-gradient(rgba(18, 24, 36, 0.24), rgba(18, 24, 36, 0.38)),
    url('assets/project img/project-mens-college.jpg');
}

.project-card.cream-variant.project-image-card {
  color: var(--text-light);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.project-tag {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.project-card.cream-variant .project-tag {
  color: rgba(26, 26, 26, 0.5);
}

.project-center-title {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.35;
  font-weight: 500;
  margin: auto 0;
}

.project-card.cream-variant .project-center-title {
  opacity: 0.25;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.project-meta-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

.project-meta-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1;
}

.project-order {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  opacity: 0.4;
}

/* Hide animations for filtering */
.project-card.fade-out {
  display: none;
}


/* 10. SERVICES ROW LAYOUT (Video Specific List Design) */
.services-intro {
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text-dark);
  font-weight: 300;
  max-width: 800px;
  margin-bottom: 5rem;
}

.services-list-container {
  border-top: 1px solid var(--border-dark);
  margin-bottom: 3rem;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-dark);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.service-row:hover {
  padding-left: 2rem;
  background-color: rgba(26, 26, 26, 0.01);
}

.service-row-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--accent-gold);
}

.service-row-content h3 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1;
}

.service-row-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 650px;
  line-height: 1.5;
}

.service-row-keywords {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(26, 26, 26, 0.4);
  text-align: right;
  letter-spacing: 0.05em;
  font-weight: 400;
}


/* 11. PROJECTS FILTER BAR */
.projects-header {
  margin-bottom: 5rem;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 3rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border-dark);
  padding: 0.6rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--text-dark);
  border-color: var(--text-dark);
  color: var(--bg-light);
}


/* 12. CONTACT PAGE LAYOUT */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
}

.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
  margin-top: 1.5rem;
}

/* Minimalist Contact Info Blocks */
.contact-tagline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.contact-info-blocks {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.contact-office-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.office-group-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  border-bottom: 1px solid rgba(27, 42, 65, 0.08);
  padding-bottom: 0.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

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

.contact-info-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-info-label {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-info-val {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.contact-social-section {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.social-section-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.contact-social-links {
  display: flex;
  gap: 1rem;
}

.contact-social-btn {
  width: 44px;
  height: 44px;
  background-color: var(--bg-dark);
  color: #ffffff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-social-btn:hover {
  background-color: var(--accent-gold);
  transform: translateY(-3px);
  color: #ffffff;
}

.contact-right {
  display: flex;
  flex-direction: column;
}

.contact-form-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-dark);
  border-radius: 2rem;
  padding: clamp(2rem, 4vw, 3rem);
}

.contact-form-header {
  margin-bottom: 2rem;
}

.contact-form-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.75rem;
  color: var(--text-heading);
}

.contact-form-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 36rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-heading);
  text-transform: uppercase;
}

.form-required {
  color: var(--accent-gold);
}

.form-control {
  width: 100%;
  border: 1px solid rgba(27, 42, 65, 0.14);
  border-radius: 1rem;
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.95rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Force readable option tags in selects (prevents white-on-white / black-on-black in dark mode OS) */
.form-control option {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
}

/* Prevent browser autofill from styling inputs with unreadable colors */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-textarea:-webkit-autofill,
.form-select:-webkit-autofill {
  -webkit-text-fill-color: #1a1a1a !important;
  box-shadow: inset 0 0 0 1000px #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-control::placeholder {
  color: rgba(26, 26, 26, 0.35);
}

.form-control:hover {
  border-color: rgba(27, 42, 65, 0.24);
}

.form-control:focus,
.form-control:focus-visible {
  outline: none;
  border-color: rgba(27, 42, 65, 0.55);
  box-shadow: 0 0 0 4px rgba(27, 42, 65, 0.08);
}

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

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  cursor: pointer;
}

.phone-input-group {
  display: flex;
  align-items: center;
  border: 1px solid rgba(27, 42, 65, 0.14);
  border-radius: 1rem;
  background-color: #ffffff !important;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-input-group:focus-within {
  border-color: rgba(27, 42, 65, 0.55);
  box-shadow: 0 0 0 4px rgba(27, 42, 65, 0.08);
}

.country-code-wrap {
  width: 105px;
  flex-shrink: 0;
  border-right: 1px solid rgba(27, 42, 65, 0.14);
}

.country-code-wrap::after {
  right: 0.65rem !important;
}

.country-code-select {
  border: none !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  padding: 0.95rem 1.6rem 0.95rem 0.75rem !important;
  box-shadow: none !important;
  width: 100%;
}

.phone-field {
  border: none !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  padding: 0.95rem 1rem !important;
  box-shadow: none !important;
  flex-grow: 1;
}

.form-group-full {
  grid-column: span 2;
}

.btn-submit-form {
  width: 100%;
  border: none;
  border-radius: 2rem;
  padding: 1rem 1.5rem;
  background-color: var(--text-dark);
  color: var(--bg-light);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  margin-top: 0.5rem;
}

.btn-submit-form:hover {
  transform: translateY(-1px);
  background-color: #333333;
}

.btn-submit-form:active {
  transform: translateY(0);
}

.btn-submit-form:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(27, 42, 65, 0.12);
}

.form-feedback {
  min-height: 1.25rem;
  font-size: 0.95rem;
  font-weight: 400;
}

.form-feedback.success {
  color: #15803d;
}

.form-feedback.error {
  color: #b91c1c;
}


/* 13. FOOTER */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 6rem 0 3rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 5rem;
  align-items: stretch;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-brand-col .logo {
  margin-bottom: 1.5rem;
}

.footer-brand-col .logo-main {
  color: #ffffff;
}

.footer-brand-col .logo-sub {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-weight: 300;
  max-width: 320px;
  margin-bottom: 2.5rem;
}

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

.footer-social-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-details-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}

.footer-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-info-block {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  flex: 1;
}

.footer-info-block:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 2rem;
}

.footer-info-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.footer-info-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-info-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-info-value {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  font-weight: 300;
}

.footer-info-value-phone {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .footer-info-value-phone {
    white-space: normal;
  }
}

.footer-info-value a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-info-value a:hover {
  color: #ffffff;
}

.footer-dotted-divider {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  width: 100%;
}

.footer-links-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr 1.2fr;
  gap: 2rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-links-col h6 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 0.4rem 0;
}

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

.footer-links-list a {
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 300;
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-links-col p {
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

.footer-links-col p a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links-col p a:hover {
  color: #ffffff;
}

.footer-divider-solid {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 3.5rem 0 2rem;
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 300;
}


/* 14. ENTRANCE REVEAL ANIMATIONS */
.reveal-item {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Failsafe: auto-reveal selected-work items after 3s even if JS animations fail */
@keyframes failsafe-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.selected-work .reveal-item {
  animation: failsafe-reveal 0.8s ease forwards;
  animation-delay: 3s;
}

.selected-work .reveal-item.revealed {
  animation: none;
}


/* Home Services Grid Cards (Frame 003) */
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.service-card {
  padding: 3.5rem 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 3;
  transition: var(--transition-smooth);
}

.service-card.light-card {
  background-color: #FAF8F5;
  /* Premium off-white */
  color: var(--text-dark);
  border: 1px solid rgba(26, 26, 26, 0.05);
}

.service-card.dark-card {
  background-color: var(--bg-dark);
  /* Dark Obsidian */
  color: var(--text-light);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
}

.service-card.dark-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.service-card-num {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.service-card-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
  line-height: 1;
}

.service-card-desc {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.5;
  opacity: 0.75;
  margin-bottom: auto;
}

.service-card-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* CTA Banner Card (Frame 007) */
.cta-banner {
  background-color: var(--bg-dark);
  color: var(--bg-light);
  /* Creamy white CTA banner text */
  padding: 5.5rem 5rem;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.cta-text h2 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.0;
  margin-bottom: 0;
  color: var(--bg-light);
}

.btn-cta {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border: none;
  border-radius: 2rem;
  padding: 1.2rem 2.8rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  background-color: #FFFFFF;
}


/* 15. RESPONSIVE DESIGN BREAKPOINTS */

/* Tablet Landscape */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .contact-layout {
    gap: 3rem;
  }
}

/* Tablet Portrait */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }

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

  .header {
    height: 90px;
  }

  /* Menu burger elements show */
  .nav-menu {
    display: none;
  }

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

  .nav-actions .btn,
  .nav-actions .btn-cta-rect {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Menu burger animated shifts */
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

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

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

  /* Hero adjustments */
  .hero-banner-card {
    height: 520px;
    padding: 5rem 3.5rem;
    border-radius: 2.8rem;
  }

  /* Service card grid on tablet */
  .home-services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card {
    aspect-ratio: auto;
    padding: 3rem 2.5rem;
  }

  /* Service list columns responsive */
  .service-row {
    grid-template-columns: 50px 1.5fr 1fr;
  }

  /* Projects grid responsive */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* CTA Banner responsive */
  .cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 4rem 2.5rem;
    gap: 3rem;
  }

  .btn-cta {
    align-self: center;
  }

  /* Contact page responsive */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

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

  .contact-form-panel {
    padding: 2rem;
  }

  /* Footer grid responsive */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .footer-brand-col {
    align-items: flex-start;
    text-align: left;
  }

  .footer-brand-desc {
    max-width: 480px;
    margin-bottom: 2rem;
  }

  .footer-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-info-block {
    width: 100%;
  }

  .footer-info-block:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }
}

/* Mobile Devices */
@media (max-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }

  .section-padding {
    padding: 5rem 0;
  }

  .hero-banner-card {
    height: auto;
    min-height: 480px;
    padding: 4rem 2rem;
    border-radius: 2rem;
  }

  .hero-banner-content .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .btn-cta-rect {
    padding: 0.9rem 2.2rem;
    font-size: 0.9rem;
  }

  .contact-form-panel {
    border-radius: 1.5rem;
    padding: 1.5rem;
  }

  .contact-form-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .contact-form-subtitle {
    font-size: 1rem;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2.5rem 0;
  }

  .service-row-keywords {
    text-align: left;
    margin-top: 0.5rem;
  }

  .project-card {
    padding: 2rem;
  }

  .project-meta-title {
    font-size: 1.5rem;
  }

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

  .footer {
    padding: 4rem 0 2.5rem;
  }

  .footer-links-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Global Blueprint Background Grid Canvas */
#global-blueprint-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  display: block;
}

/* 13. BRANDS MARQUEE */
.brands-marquee-section {
  padding: 4rem 0 2rem;
  overflow: hidden;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-dark);
}

.brands-marquee-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-dark);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.5rem;
  opacity: 0.5;
}

.brands-marquee-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
  position: relative;
  background: transparent;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.brands-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-right 30s linear infinite;
}

.brands-marquee-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1.5rem;
  padding: 0 1rem;
  min-width: 100%;
}

.brand-logo-img {
  height: 90px;
  width: auto;
  min-width: 80px;
  max-width: 220px;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: normal;
  filter: grayscale(100%) contrast(95%) opacity(85%);
  transition: var(--transition-fast);
  display: block;
  flex-shrink: 0;
}

.brand-logo-img[src*="book.png"] {
  height: 110px;
}

/* Wide logos — let them breathe at full width */
.brand-logo-img[src*="university"],
.brand-logo-img[src*="IIT"],
.brand-logo-img[src*="dubai tourism"],
.brand-logo-img[src*="jones"] {
  height: 70px;
  max-width: 260px;
}

.brand-logo-img:hover {
  filter: grayscale(0%) contrast(100%) opacity(100%);
}

@keyframes marquee-right {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* ==========================================================================
   ABOUT AL RAMZ SECTION & STATISTICS
   ========================================================================== */
.about-section {
  background-color: var(--bg-light);
  padding: 8rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-image-col {
  width: 100%;
}

.about-image-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-main-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-content-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-tagline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-dark);
  text-transform: uppercase;
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.about-desc {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.stats-grid-container {
  margin-top: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.stat-card {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  min-height: 140px;
  transition: none;
}

.stat-card:hover {
  /* no hover effect */
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
  }
  
  .about-image-col {
    max-width: 600px;
    margin: 0 auto;
    display: block;
  }
  
  .about-image-wrapper {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  
  .about-main-img {
    height: auto;
  }
}

@media (max-width: 576px) {
  .about-section {
    padding: 5rem 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* Service Modal Styles */
.service-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 24, 36, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.service-modal-card {
  background-color: var(--bg-light); /* Warm Alabaster */
  border: 1px solid var(--border-dark);
  border-radius: 2rem;
  width: 90%;
  max-width: 500px;
  padding: 3rem 2.5rem;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-modal-overlay.open .service-modal-card {
  transform: scale(1);
}

.service-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-dark);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.service-modal-close:hover {
  background-color: rgba(27, 42, 65, 0.05);
}

.service-modal-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.service-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.service-modal-title {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}

.service-modal-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 90%;
}

.service-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

.modal-btn-contact {
  flex: 1;
  max-width: 180px;
  text-align: center;
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem;
}

.btn-secondary-modal {
  flex: 1;
  max-width: 120px;
  border: 1px solid rgba(27, 42, 65, 0.14);
  background-color: transparent;
  color: var(--text-dark);
  border-radius: 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-secondary-modal:hover {
  border-color: rgba(27, 42, 65, 0.3);
  background-color: rgba(27, 42, 65, 0.03);
}

/* Custom Premium Cursor */
@media (min-width: 993px) {
  html, body {
    cursor: none; /* Hide default cursor on desktop */
  }
  
  a, button, input, textarea, select, .btn, .project-slide, .service-row, .filter-btn, .logo, .menu-toggle {
    cursor: none !important;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100000;
    transition: width 0.15s ease, height 0.15s ease, background-color 0.15s ease;
  }

  .cursor-ring {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(197, 168, 128, 0.45);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, background-color 0.3s ease;
  }

  /* Hover states */
  body.cursor-hovering .cursor-ring {
    width: 55px;
    height: 55px;
    border-color: var(--accent-gold);
    background-color: rgba(197, 168, 128, 0.08);
  }

  body.cursor-hovering .cursor-dot {
    background-color: #ffffff;
    width: 4px;
    height: 4px;
  }
}

/* 3D Tilt Effect Utilities */
.tilt-element {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
}
.tilt-element-inner {
  transform: translateZ(20px);
}
