/* =========================================================
   ARTICLES / CATEGORY PAGES (THEME AWARE, NO DUPLICATES)
   ========================================================= */

/* Top Spacing for Category Page */
.category-page-wrapper {
  padding-top: 120px;
}

/* Custom Text Meta Classes (Replaces Bootstrap text-muted) */
.mag-meta-text {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.mag-meta-text-sm {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.mag-excerpt {
  font-size: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/* Fix: Specific a-tag color overrides for category pills */
a.mag-cat-pill {
  color: var(--contrast-color); /* Overrides global a-tag accent color */
}

a.mag-cat-pill:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 20%);
  color: var(--contrast-color);
}

/* Additional Pill Sizing Modifiers */
.mag-cat-pill-sm {
  font-size: 0.65rem;
  padding: 2px 10px;
}

.mag-cat-pill-xs {
  font-size: 0.6rem;
  padding: 2px 8px;
}

/* Theme-Aware Borders (Replaces border-secondary) */
.mag-border-bottom {
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.mag-border-top {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

/* Typography Extensions */
.mag-page-title {
  font-family: var(--heading-font);
  Padding-top: 50px;
  color: var(--heading-color);
}

.mag-title-category {
  font-size: 1.4rem;
  line-height: 1.3;
}

.mag-title-md {
  font-size: 1.15rem;
  line-height: 1.4;
}

.mag-title-xs {
  font-size: 0.95rem;
}

.mag-category-link {
  color: var(--heading-color);
}

.mag-widget-title {
  font-family: var(--heading-font);
  color: var(--heading-color);
}

.mag-text-accent {
  color: var(--accent-color);
}

.mag-icon-sm {
  font-size: 0.8rem;
}

/* Thumbnail Sizes */
.mag-thumb-sm {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.mag-thumb-wide {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

/* Social Link Follow Me Buttons */
.mag-social-link {
  color: #ffffff !important; /* Force white over hardcoded brand backgrounds */
  font-size: 0.85rem;
  border: none;
}

.mag-social-link:hover {
  filter: brightness(0.9);
  color: #ffffff !important;
}

/* Safely prevent article title links from adopting global blue link color */
article a.text-decoration-none:not(.mag-cat-pill) {
  color: inherit;
}
/* =========================================================
   ARTICLES HERO SLIDER (UltraNews Style)
   ========================================================= */

.articles-hero-section {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  background-color: #000;
  overflow: hidden;
  /* Removes default section padding to go edge-to-edge */
  padding: 0 !important;
  border: none !important;
}

/* --- Main Background Slider --- */
.articles-main-swiper {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.articles-main-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

.articles-main-swiper .slide-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Smooth scale-down effect when sliding in */
  transform: scale(1.1);
  transition: transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.articles-main-swiper .swiper-slide-active .slide-bg-img {
  transform: scale(1);
}

/* The dark gradient overlay (Dark on left & bottom, clear on top right) */
.articles-main-swiper .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%),
              linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
  z-index: 1;
}

/* --- Slide Content (Text) --- */
.articles-slide-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 2;
}

.articles-slide-content .category-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--contrast-color, #fff);
  padding: 4px 16px;
  border-radius: 30px;
  font-family: var(--nav-font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.articles-slide-content h1 {
  font-family: var(--heading-font);
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 800px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.articles-slide-content .slide-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 400;
}

.articles-slide-content .slide-meta i {
  margin-right: 6px;
  opacity: 0.8;
}

/* --- Bottom Controls Area (Arrows + Thumbnails) --- */
.articles-hero-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-bottom: 30px;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

/* Left side arrows */
.articles-hero-nav {
  display: flex;
  gap: 15px;
}

.articles-hero-nav .nav-arrow {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  border-radius: 50%;
}

.articles-hero-nav .nav-arrow:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

/* Right side thumbnails */
.articles-thumbs-swiper {
  width: 50%;
  max-width: 600px;
  margin-right: 0;
  padding: 10px 0;
  overflow: hidden;
}

.articles-thumbs-swiper .swiper-slide {
  width: 120px !important; /* Fixed thumbnail width */
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.articles-thumbs-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.articles-thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
  .articles-slide-content h1 {
    font-size: 2.2rem;
  }
  .articles-thumbs-swiper {
    display: none; /* Hide thumbnails on small screens to save space */
  }
  .articles-hero-controls {
    justify-content: center;
  }
}

/* =========================================================
   ULTRANEWS EXACT LAYOUT SYSTEM
   ========================================================= */

/* --- 1. Global Magazine Typography & Watermarks --- */
.mag-section-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding-bottom: 12px;
  z-index: 2;
}

.mag-section-title {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  color: var(--heading-color);
  position: relative;
  display: inline-block;
  z-index: 2;
}

.mag-section-title span {
  color: var(--accent-color);
}

/* The Huge Background Watermark Letters */
.mag-watermark-wrapper {
  position: relative;
}

.mag-watermark {
  position: absolute;
  left: -15px;
  top: -45px;
  font-size: 6rem;
  font-family: var(--heading-font);
  font-weight: 900;
  color: color-mix(in srgb, var(--default-color), transparent 93%);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}

/* Category Pills & Badges */
.mag-cat-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--accent-color);
  color: var(--contrast-color, #fff);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--nav-font);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
}

.mag-cat-pill i {
  font-size: 0.5rem;
  margin-right: 4px;
}

.mag-icon-badge {
  position: absolute;
  top: 15px;
  right: 15px; 
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Smooth Image Hover - No Card Jumping */
.mag-img-zoom {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.mag-img-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:hover .mag-img-zoom img {
  transform: scale(1.08);
}

/* Title Hover Effect */
.mag-title-hover {
  transition: color 0.3s ease;
}

a:hover .mag-title-hover {
  color: var(--accent-color) !important;
}

/* --- 2. Hero Slider (Jellyfish Reference) --- */
.mag-hero-section {
  position: relative;
  width: 100%;
  height: 80vh; /* Reduced from 80vh */
  min-height: 450px; /* Reduced from 600px */
  background-color: #000;
  overflow: hidden;
  margin-top: -80px;   /* equal to header height */
  padding-top: 100px;
}

.mag-hero-swiper {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.mag-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.45) 0%,
      rgba(0,0,0,0.25) 30%,
      rgba(0,0,0,0.1) 50%,
      transparent 60%
    ),
    linear-gradient(
      to right,
      rgba(0,0,0,0.25) 0%,
      rgba(0,0,0,0.1) 30%,
      transparent 60%
    );
  z-index: 1;
}

.mag-hero-content {
  position: absolute;
  bottom: 15%;
  left: 0;
  width: 100%;
  z-index: 2;
}

.mag-hero-content h1 {
  font-family: var(--heading-font);
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 15px;
  margin-bottom: 20px;
  max-width: 800px;
}

.mag-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Hero Controls (Arrows + Thumbs) */
.mag-hero-controls {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 5%;
}

.mag-hero-nav {
  display: flex;
  gap: 15px;
}

.mag-hero-nav .nav-arrow {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mag-hero-nav .nav-arrow:hover {
  color: var(--accent-color);
}

.mag-hero-thumbs {
  width: 45%;
  max-width: 500px;
  margin-right: 0;
}

.mag-hero-thumbs .swiper-slide {
  width: 100px !important; 
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.mag-hero-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--accent-color);
}

/* --- 3. Weekly Popular --- */
.mag-weekly-filters {
  display: flex;
  gap: 15px;
  font-family: var(--nav-font);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.mag-weekly-filters a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.mag-weekly-filters a:hover {
  color: var(--heading-color);
}

.mag-weekly-filters a.active {
  background: var(--heading-color);
  color: var(--background-color);
  padding: 4px 16px;
  border-radius: 20px;
}

.mag-card-large .mag-img-zoom {
  aspect-ratio: 4/3;
  margin-bottom: 20px;
}

.mag-card-large .mag-cat-pill {
  position: absolute;
  bottom: 15px;
  left: 15px;
}

.mag-card-grid .mag-img-zoom {
  aspect-ratio: 16/10;
  margin-bottom: 12px;
}

/* --- 4. Most Comments (Overlay Cards) --- */
.mag-overlay-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.mag-overlay-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mag-overlay-card:hover img {
  transform: scale(1.08);
}

.mag-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  z-index: 2;
}

.mag-overlay-card h4 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 10px;
  margin-bottom: 8px;
}

/* --- 5. Editor's Picked (Box Layout) --- */
.mag-editors-wrapper {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  display: flex;
}

.mag-editors-sidebar {
  background-color: color-mix(in srgb, var(--accent-color) 10%, var(--surface-color));
  width: 300px;
  flex-shrink: 0;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mag-editors-slider-area {
  flex-grow: 1;
  padding: 40px 30px;
  overflow: hidden; /* Important for Swiper */
}

.mag-editor-card .editor-title {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
  /* Replaced min-height with a strict height perfectly sized for 3 lines */
  height: 4.2em; 
  color: var(--heading-color);
  
  /* Forces text to truncate with '...' if it exceeds 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 6. Recent Posts (Horizontal List) --- */
.mag-recent-card {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.mag-recent-card .mag-img-zoom {
  width: 45%;
  flex-shrink: 0;
  aspect-ratio: 4/3;
}

.mag-recent-content {
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mag-recent-content h3 {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 15px 0;
  color: var(--heading-color);
}

.mag-read-more {
  font-family: var(--heading-font);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--heading-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {
  /* Hero */
  .mag-hero-thumbs { display: none; }
  .mag-hero-controls { justify-content: flex-start; padding: 0 20px; }
  
  /* Editors Picked */
  .mag-editors-wrapper { flex-direction: column; }
  .mag-editors-sidebar { width: 100%; padding: 30px 20px; }
  .mag-editors-slider-area { padding: 30px 20px; }
}

@media (max-width: 768px) {
  /* Watermarks */
  .mag-watermark { font-size: 4rem; top: -30px; }
  
  /* Weekly Popular Filter */
  .mag-weekly-filters { display: none; /* Hide complex filters on mobile like demo */ }
  
  /* Recent Posts horizontal to vertical */
  .mag-recent-card { flex-direction: column; gap: 20px; }
  .mag-recent-card .mag-img-zoom, .mag-recent-content { width: 100%; }
  .mag-recent-content h3 { font-size: 1.4rem; }
}
/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
/* =====================================
   CAIRO ARABIC FONT
   ===================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #000000; /* Dark page background */
  --default-color: #ffffff; /* Primary body/text color (white) */
  --heading-color: #ffffff; /* Headings in white */
  --accent-color: #3b82f6; /* Accent color (blue) */
  --surface-color: #0f0f0f; /* Card/surface backgrounds (dark) */
  --contrast-color: #ffffff; /* Contrast color for text on accent/dark elements */
  --marquee-fade-color: #ffffff;
  
}



/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  /* Navigation colors (dark-theme tuned) */
  --nav-color: #9CA3AF; /* Neutral grey for inactive nav text on dark backgrounds */
  --nav-hover-color: color-mix(in srgb, #ffffff 28%, #9CA3AF 72%); /* gently transitions toward white on hover */
  --nav-active-color: #ffffff; /* active nav item color (pure white) */
  --nav-mobile-background-color: #f8fafc; /* Mobile nav background (light) */
  --nav-dropdown-background-color: #ffffff; /* Dropdown background */
  --nav-dropdown-color: #374151; /* Dropdown link color */
  --nav-dropdown-hover-color: #6b7280; /* Dropdown hover accent */
  /* Navbar glass variables (default / dark) */
  --nav-glass-bg: rgba(12, 14, 18, 0.50);
  --nav-glass-border: rgba(255, 255, 255, 0.04);
  --nav-glass-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #ffffff;
  --default-color: #374151;
  --heading-color: #111827;
  --accent-color: #6b7280;
  --surface-color: #f3f4f6;
  --contrast-color: #ffffff;
  --marquee-fade-color: #000000; /* dark mode default */

  /* nav color overrides for light theme so components (filters, nav links) adapt */
  --nav-color: #111827; /* nav text should be white in light mode per request */
  --nav-active-color: var(--heading-color);
  --nav-hover-color: var(--accent-color);
  /* Navbar glass variables (light theme overrides for white glass) */
  --nav-glass-bg: rgba(255, 255, 255, 0.70);
  --nav-glass-border: rgba(16, 24, 40, 0.08);
  --nav-glass-shadow: 0 6px 18px rgba(2, 6, 10, 0.08);
}

.dark-background {
  --background-color: #000000;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
  /* nav color overrides for dark theme */
  --nav-color: #9CA3AF;
  --nav-active-color: #ffffff;
  --nav-hover-color: color-mix(in srgb, #ffffff 28%, #9CA3AF 72%);
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/* Theme transition helpers — smooth color swaps for header/nav/controls */
:root,
body,
.header,
.header .logo h1,
.navmenu a,
.navmenu a:focus,
.photography-gallery .filter-btn,
.footer .social-links a {
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.header::before {
  transition: background-color 260ms ease, box-shadow 260ms ease;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  /* Glass navbar container (dark UI friendly)
     Keep z-index low so mobile/menu overlays remain above. */
  --header-offset: 80px; /* fallback spacing for page content */
  color: var(--default-color);
  background-color: transparent; /* actual visual comes from ::before */
  padding: 15px 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  z-index: 997;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  -webkit-backface-visibility: hidden;
}

.header .logo {
  line-height: 1;
}



/* Glass surface applied through a pointer-events-free pseudo element */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
  /* subtle dark tint so underlying content shows through */
  background-color: rgba(10, 14, 20, 0.45);
  /* glass effect */
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  /* soft border + minimal glow */
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 18px rgba(2, 6, 10, 0.6);
  pointer-events: none;
  z-index: -1; /* keep behind header content */
}

/* provide page content spacing so fixed header doesn't cover it */
.main {
  padding-top: var(--header-offset, 80px);
}

.header .logo h1 {
  font-size: 32px;
  margin: 0;
  font-weight: 400;
  color: var(--heading-color);
}

/* Mobile site name shown in header (keeps layout intact on desktop) */
.mobile-site-name {
  display: none;
}

/* Ensure the header logo (used in header-name and .logo) is consistently sized */


.header .header-social-links {
  padding-right: 15px;
}

.header .header-social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding-left: 6px;
  display: inline-block;
  transition: 0.3s;
  font-size: 16px;
}

.header .header-social-links a:hover {
  color: var(--default-color);
}

.header .header-social-links a i {
  line-height: 0px;
}

/* Show site name on mobile instead of individual social icons */
.header .header-social-links .header-name {
  display: none;
  color: var(--default-color);
  font-weight: 600;
  text-decoration: none;
  padding-left: 6px;
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .header-social-links {
    order: 2;
  }

  .header .navmenu {
    order: 3;
  }
}

@media (max-width: 1199px) {
  .header .header-social-links a {
    display: none;
  }

  .header .header-social-links .header-name {
    display: inline-block;
  }
}



/* Desktop: replace header social icons with the site logo */
@media (min-width: 1200px) {
  .header .header-social-links a:not(.header-name) {
    display: none !important;
  }

  .header .header-social-links .header-name {
    display: inline-block;
  }

  

  .header .header-social-links {
    padding-right: 12px;
  }
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: #ffffff; /* white header on scroll */
  /* Navigation colors intentionally inherited from :root to preserve contrast */
  --nav-mobile-background-color: #f8fafc;
}

/*--------------------------------------------------------------
# Global Footer (Theme Aware)
--------------------------------------------------------------*/
.footer {
  background-color: var(--background-color);
  color: var(--default-color);
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-heading {
  color: var(--heading-color);
}

/* Replaces Bootstrap's text-muted to work in both themes */
.footer .footer-text {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.footer .footer-link {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  text-decoration: none;
  transition: 0.3s ease;
}

.footer .footer-link:hover {
  color: var(--accent-color);
  letter-spacing: 0.5px; /* Adds a nice premium editorial touch */
}

.footer .footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer .footer-social-btn i {
  line-height: 0;
  font-size: 16px;
}

.footer .footer-social-btn:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

.footer .footer-bottom-bar {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/* Footer Logo (Theme Aware) */
.footer .footer-logo {
  content: url("/assets/img/wg-logo.webp");
  max-height: 35px; /* Slightly larger than the header, adjust as needed */
  width: auto;
  transition: opacity 0.3s ease;
}

.footer a:hover .footer-logo {
  opacity: 0.8;
}

/* Light Theme Override */
.light-background .footer .footer-logo {
  content: url("/assets/img/wg-logo-dark.webp");
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
  width: 100%;
  height: 100vh;
}

#preloader:before,
#preloader:after {
  content: "";
  position: absolute;
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

#preloader:after {
  animation-delay: -0.5s;
}

@keyframes animate-preloader {
  0% {
    width: 10px;
    height: 10px;
    top: calc(50% - 5px);
    left: calc(50% - 5px);
    opacity: 1;
  }

  100% {
    width: 72px;
    height: 72px;
    top: calc(50% - 36px);
    left: calc(50% - 36px);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}

.page-title .heading {
  padding: 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.page-title .heading h1 {
  font-size: 38px;
  font-weight: 700;
}

.page-title nav {
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  padding: 20px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title nav ol li+li {
  padding-left: 10px;
}

.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 80px;
  overflow: clip;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

/* Exclude hero from global section styling */
#hero-display.hero-fixed-wrapper {
  padding: 0;
  scroll-margin-top: 0;
  border-top: none;
  background-color: transparent;
  overflow: visible;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/

.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

//* ===============================
   Section Title (Global)
   =============================== */

.section-title h2 {
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2.5rem;
  }
}

.section-title p {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

/* =====================================
   CLIENTS MARQUEE — LAYOUT CORRECTED
   ===================================== */

/* Section wrapper */
.clients-marquee {
  position: relative;
  min-height: auto;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Title spacing */
.clients-marquee .section-title {
  margin-bottom: 0rem;
}

/* Viewport: controls centering + width */
.marquee-viewport {
  position: relative;
  width: 100%;
  max-width: var(--bs-container-width);
  margin-top: 0 auto;           /* horizontal centering */
  overflow: hidden;
  display: flex;
  justify-content: center;
}

/* Moving track (JS owns transform) */
.marquee-track {
  display: flex;
  align-items: center;
  gap: 5rem;
  will-change: transform;
}

/* Logos */
/* Client logos — grayscale by default */
.marquee-track img {
  height: 80px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.8;
  filter: grayscale(100%);
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Hovered logo becomes colored */
.marquee-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .clients-marquee .section-title {
    margin-bottom: 0.2rem;
  }

  .marquee-track {
    gap: 3rem;
  }

  .marquee-track img {
    height: 80px;
  }
}

.marquee-track {
  cursor: grab;
}

.marquee-track:active {
  cursor: grabbing;
}

/* =====================================
   CLIENTS MARQUEE — EDGE GRADIENTS
   ===================================== */

.marquee-viewport::before,
.marquee-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Left fade */
.marquee-viewport::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--background-color),
    rgba(255, 255, 255, 0)
  );
}

/* Right fade */
.marquee-viewport:after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--background-color),
    rgba(255, 255, 255, 0)
  );
}
/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 0 !important;   /* Force removal of global padding */
  border: none !important; /* Removes the empty pixel line at the top */
  margin: 0;
  width: 100%;
}

.hero .hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .hero-content h1 .highlight {
  color: var(--accent-color);
  position: relative;
}

.hero .hero-content h1 .highlight::after {
  display: none;
}

@media (max-width: 768px) {
  .hero .hero-content h1 {
    font-size: 2.5rem;
  }
}

.hero .hero-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.hero .hero-content h2 .typed {
  color: var(--accent-color);
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero .hero-content h2 {
    font-size: 1.25rem;
  }
}

.hero .hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: .5rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}
@media (max-width: 768px) {
  .hero .hero-content p {
    font-size: 0.9rem;     /* mobile size */
    line-height: 1.2;
  }
}

.hero .hero-actions {
  display: flex;
  gap: 1rem;
margin-top: 1.75rem; 
  margin-bottom: 3rem;
}

.hero .hero-actions .btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
}

.hero .hero-actions .btn.btn-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

.hero .hero-actions .btn.btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), black 15%);
  border-color: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-2px);
}

.hero .hero-actions .btn.btn-outline {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.hero .hero-actions .btn.btn-outline:hover {
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .hero .hero-actions {
    flex-direction: column;
  }

  .hero .hero-actions .btn {
    text-align: center;
  }
}

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

.hero .social-links a {
  width: 45px;
  height: 45px;
  background: var(--surface-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--default-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.hero .social-links a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.hero .hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .hero-image .image-wrapper {
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
}

.hero .hero-image .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;     
}


.hero .hero-image .floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero .hero-image .floating-elements .floating-card {
  position: absolute;

  /* GLASS EFFECT — MATCH NAVBAR */
  background: rgba(12, 14, 18, 0.45);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);

  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);

  padding: 15px 20px;
  border-radius: 15px;

  display: flex;
  align-items: center;
  gap: 10px;

  font-weight: 600;
  color: #ffffff;

  animation: float 3s ease-in-out infinite;
}

.hero .hero-image .floating-elements .floating-card i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.hero .hero-image .floating-elements .floating-card.design {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.hero .hero-image .floating-elements .floating-card.code {
  bottom: 30%;
  left: -15%;
  animation-delay: 1s;
}

.hero .hero-image .floating-elements .floating-card.creativity {
  top: 60%;
  right: -5%;
  animation-delay: 2s;
}

@media (max-width: 992px) {
  .hero .hero-image .floating-elements .floating-card {
    display: none;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}
.hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;   /* Al-Asema style */
  max-width: 900px;
}

@media (min-width: 993px) {
  #hero .hero-content {
    text-align: left;
    transform: translateY(400px);
  }
}

@media (max-width: 992px) {
  .hero .hero-content {
    text-align: center;
    margin-bottom: 3rem;
    transform: translateY(380px);
  }
}

/* TRUE FULLSCREEN ONLY (tall screens) */
@media (min-height: 900px) {
  #hero.hero--fullscreen .hero-content {
    transform: translateY(500px);
  }
}
/* =====================================================
   HERO — LOCK TEXT + CTA (SAME IN LIGHT & DARK)
   ===================================================== */

/* H1: "Hello, I'm Waleed" */
.hero .hero-content h1 {
  color: #ffffff;
}

/* Highlighted name */
.hero .hero-content h1 .highlight {
  color: #3b82f6;
}

/* Typed text: "Photographer, Graphic Designer, Marketer" */
.hero .hero-content h2 .typed {
  color: #3b82f6;
}

.hero .hero-content p {
  color: color-mix(in srgb, #ffffff, transparent 30%) !important;
}

/* Primary CTA: "View My Work" */
.hero .hero-actions .btn.btn-primary {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}

/* Optional: lock hover so it doesn’t change in light mode */
.hero .hero-actions .btn.btn-primary:hover {
  background-color: #2563eb; /* darker blue */
  border-color: #2563eb;
}

/* HERO — lock subtitle text ("Creative") */
.hero .hero-content h2 {
  color: #ffffff;
}
/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .intro-content .eyebrow {
  display: inline-block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 16px;
}

.about .intro-content .headline {
  font-family: var(--heading-font);
  font-weight: 300;
  line-height: 1.2;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 24px 0;
}

.about .intro-content .lead {
  font-size: 18px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  margin-bottom: 24px;
}

.about .intro-content p {
  line-height: 1.8;
  margin-bottom: 24px;
  color: color-mix(in srgb, var(--default-color), transparent 5%);
}

.about .intro-content .cta-group {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.about .intro-content .cta-group .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 6px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  transition: 0.3s ease-in-out;
}

.about .intro-content .cta-group .btn-ghost:hover,
.about .intro-content .cta-group .btn-ghost:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.about .intro-content .cta-group .link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  color: var(--accent-color);
  padding-bottom: 4px;
  transition: 0.3s ease-in-out;
}

.about .intro-content .cta-group .link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: color-mix(in srgb, var(--accent-color), transparent 40%);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: 0.3s ease-in-out;
}

.about .intro-content .cta-group .link-underline:hover,
.about .intro-content .cta-group .link-underline:focus {
  color: color-mix(in srgb, var(--accent-color), transparent 10%);
  outline: none;
}

.about .intro-content .cta-group .link-underline:hover::after,
.about .intro-content .cta-group .link-underline:focus::after {
  transform: scaleX(1);
}

.about .profile-figure {
  margin: 0;
}

.about .profile-figure .profile-photo {
  width: 88%;
  max-width: 440px;
  border-radius: 18px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 92%);
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.about .profile-figure .profile-caption {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about .profile-figure .profile-caption .meta {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.about .profile-figure .profile-caption .meta .funfact {
  font-size: 13px;
  margin-top: 4px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.about .profile-figure:hover .profile-photo {
  transform: translateY(-4px);
}

.about .skill-item {
  padding: 24px;
  border-radius: 6px;
  transition: 0.3s ease-in-out;
  background: color-mix(in srgb, var(--surface-color), var(--accent-color) 2%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  height: 100%;
}

.about .skill-item i {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 16px;
  display: inline-block;
}

.about .skill-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 500;
}

.about .skill-item p {
  margin: 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.about .skill-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 92%);
}

.about .timeline-item {
  position: relative;
  padding-left: 26px;
}

.about .timeline-item time {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  margin-bottom: 6px;
}

.about .timeline-item h4 {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 6px;
}

.about .timeline-item p {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin: 0;
}

.about .timeline-item .dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-color), transparent 80%);
}

.about .personal-quote {
  padding: 24px 0;
}

.about .personal-quote p {
  font-family: var(--heading-font);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.5;
  color: color-mix(in srgb, var(--default-color), transparent 5%);
  margin: 0 auto;
  max-width: 800px;
}

.about .fact-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  background: var(--surface-color);
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  transition: 0.3s ease-in-out;
}

.about .fact-pill i {
  color: var(--accent-color);
}

.about .fact-pill span {
  font-size: 14px;
}

.about .fact-pill:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 92%);
}

.about .fact-pill:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 70%);
}

@media (max-width: 992px) {
  .about .profile-figure {
    text-align: center !important;
  }

  .about .profile-figure .profile-photo {
    width: 72%;
  }

  .about .intro-content .cta-group {
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .about .profile-figure .profile-photo {
    width: 100%;
  }
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .skill-box {
  background-color: var(--surface-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.skills .skill-box h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.skills .skill-box p {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  opacity: 0.6;
}

.skills .skill-box .progress {
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
  border-radius: 50px;
  height: 8px;
  margin-top: 5px;
  overflow: hidden;
}

.skills .skill-box .progress .progress-bar {
  background-color: var(--accent-color);
  height: 100%;
  position: relative;
  border-radius: 50px;
  transition: 0.9s;
  width: 1px;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .avatars {
  position: relative;
}

.stats .avatars img {
  width: 60px;
  height: 60px;
  border: 3px solid var(--accent-color);
  margin-right: -15px;
  transition: transform 0.3s ease;
}

.stats .avatars img:hover {
  transform: translateY(-5px);
  z-index: 2;
}

.stats .counters h2 {
  color: var(--heading-color);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stats .counters h2 span {
  display: inline-block;
}

.stats .counters p {
  color: var(--default-color);
  font-size: 18px;
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 991px) {
  .stats .row {
    text-align: center;
  }

  .stats .avatars {
    justify-content: center;
    margin-bottom: 40px;
  }

  .stats .counters h2 {
    font-size: 36px;
  }

  .stats .counters p {
    font-size: 16px;
  }

  .stats .counters .col-md-4 {
    margin-bottom: 30px;
  }

  .stats .counters .col-md-4:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .stats {
    padding: 60px 0;
  }

  .stats .avatars {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stats .avatars img {
    margin: 0 -8px;
  }
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item .testimonial-content {
  border-left: 3px solid var(--accent-color);
  padding-left: 30px;
}

.testimonials .testimonial-item .testimonial-img {
  border-radius: 50%;
  border: 4px solid var(--background-color);
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0 0 10px 0;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 30px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-item {
  margin-bottom: 3rem;
}

.resume .resume-item .resume-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  position: relative;
  color: var(--heading-color);
}

.resume .resume-item .resume-title::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  bottom: 0;
  left: 0;
}

.resume .resume-item .resume-content {
  padding-left: 1.25rem;
  border-left: 2px solid color-mix(in srgb, var(--accent-color), transparent 85%);
}

.resume .resume-item article {
  position: relative;
  margin-bottom: 2.5rem;
}

.resume .resume-item article::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: -1.8rem;
  top: 0.25rem;
  background: var(--background-color);
  border: 2px solid var(--accent-color);
}

.resume .resume-item article h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.resume .resume-item article h5 {
  font-size: 1rem;
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  padding: 0.375rem 0.75rem;
  display: inline-block;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--accent-color);
  border-radius: 4px;
}

.resume .resume-item article .institution,
.resume .resume-item article .company {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.resume .resume-item article p {
  margin-bottom: 1rem;
}

.resume .resume-item article ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.resume .resume-item article ul li {
  padding-bottom: 0.75rem;
  position: relative;
}

.resume .resume-item article ul li:last-child {
  padding-bottom: 0;
}

.resume .skill-item {
  margin-bottom: 2rem;
}

.resume .skill-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.resume .skill-item .progress {
  height: 0.75rem;
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  border-radius: 1rem;
  overflow: visible;
}

.resume .skill-item .progress .progress-bar {
  background-color: var(--accent-color);
  position: relative;
  border-radius: 1rem;
  width: 0;
  transition: width 1s ease;
}

.resume .skill-item .progress .progress-bar::after {
  content: attr(aria-valuenow) "%";
  position: absolute;
  right: 0;
  top: -1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-color);
}

@media (max-width: 991.98px) {
  .resume .resume-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .resume .resume-content {
    padding-left: 1rem !important;
  }

  .resume article::before {
    left: -2rem !important;
  }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  display: flex;
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s ease;
}

.services .service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--accent-color);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.services .service-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.services .service-item:hover::before {
  transform: scaleY(1);
}

.services .service-item:hover .service-icon {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotateY(180deg);
}

.services .service-item:hover .service-icon i {
  transform: rotateY(180deg);
}

.services .service-item:hover .service-link i {
  transform: translateX(5px);
}

.services .service-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  transition: all 0.5s ease;
}

.services .service-icon i {
  font-size: 2rem;
  transition: transform 0.5s ease;
}

.services .service-content {
  flex-grow: 1;
}

.services .service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--heading-color);
}

.services .service-content p {
  margin-bottom: 1.25rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.services .service-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.services .service-link span {
  margin-right: 0.5rem;
}

.services .service-link i {
  transition: transform 0.3s ease;
}

.services .service-link:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

@media (max-width: 767.98px) {
  .services .service-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .services .service-icon {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
  }

  .services .service-icon i {
    font-size: 1.5rem;
  }

  .services .service-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .services .service-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .services .service-item {
    flex-direction: column;
    text-align: center;
  }

  .services .service-item::before {
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
  }

  .services .service-item:hover::before {
    transform: scaleX(1);
  }

  .services .service-icon {
    margin-right: 0;
    margin-bottom: 1.25rem;
  }

  .services .service-link {
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .service-hero {
  margin-bottom: 4rem;
}

.service-details .service-hero .service-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-details .service-hero .service-meta .service-category {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.service-details .service-hero .service-meta .reading-time {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 0.9rem;
  font-weight: 300;
}

.service-details .service-hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}

.service-details .service-hero .service-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-weight: 300;
  margin: 0;
}

.service-details .service-visual {
  margin-bottom: 4rem;
  overflow: hidden;
  border-radius: 4px;
}

.service-details .service-visual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-details .service-visual img:hover {
  transform: scale(1.02);
}

.service-details .service-narrative {
  margin-bottom: 5rem;
}

.service-details .service-narrative h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}

.service-details .service-narrative p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--default-color);
  font-weight: 300;
}

.service-details .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-details .benefits-grid .benefit-card {
  text-align: center;
  padding: 0;
}

.service-details .benefits-grid .benefit-card .benefit-icon {
  width: 60px;
  height: 60px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.service-details .benefits-grid .benefit-card .benefit-icon i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.service-details .benefits-grid .benefit-card:hover .benefit-icon {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.service-details .benefits-grid .benefit-card:hover .benefit-icon i {
  color: var(--contrast-color);
}

.service-details .benefits-grid .benefit-card h4 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.service-details .benefits-grid .benefit-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
}

.service-details .timeline-section {
  margin-bottom: 4rem;
}

.service-details .timeline-section h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}

.service-details .timeline-section .timeline {
  position: relative;
}

.service-details .timeline-section .timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 85%);
}

.service-details .timeline-section .timeline .timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
}

.service-details .timeline-section .timeline .timeline-item:last-child {
  margin-bottom: 0;
}

.service-details .timeline-section .timeline .timeline-item .timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--surface-color);
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.service-details .timeline-section .timeline .timeline-item .timeline-marker span {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent-color);
}

.service-details .timeline-section .timeline .timeline-item .timeline-content h4 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.service-details .timeline-section .timeline .timeline-item .timeline-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: var(--default-color);
}

.service-details .timeline-section .timeline .timeline-item .timeline-content small {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 0.9rem;
  font-weight: 500;
}

.service-details .service-sidebar {
  padding-left: 2rem;
}

@media (max-width: 992px) {
  .service-details .service-sidebar {
    padding-left: 0;
    margin-top: 4rem;
  }
}

.service-details .overview-card,
.service-details .success-story,
.service-details .consultation-form {
  background: var(--surface-color);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 93%);
  transition: all 0.3s ease;
}

.service-details .overview-card:hover,
.service-details .success-story:hover,
.service-details .consultation-form:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.service-details .overview-card .overview-header h4 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--heading-color);
}

.service-details .overview-card .overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-details .overview-card .overview-stats .stat-item {
  text-align: center;
}

.service-details .overview-card .overview-stats .stat-item .stat-number {
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.service-details .overview-card .overview-stats .stat-item .stat-label {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-details .overview-card .overview-details {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding-top: 1.5rem;
}

.service-details .overview-card .overview-details .detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
  gap: 24px;
  margin-bottom: 1rem;
}

.service-details .overview-card .overview-details .detail-row:last-child {
  margin-bottom: 0;
}

.service-details .overview-card .overview-details .detail-row .detail-label {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-weight: 400;
}

.service-details .overview-card .overview-details .detail-row .detail-value {
  font-size: 0.95rem;
  color: var(--heading-color);
  font-weight: 500;
}

.service-details .success-story .story-quote p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-style: italic;
  margin-bottom: 2rem;
}

.service-details .success-story .story-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-details .success-story .story-author .author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.service-details .success-story .story-author .author-details h5 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--heading-color);
}

.service-details .success-story .story-author .author-details span {
  display: block;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0.25rem;
}

.service-details .success-story .story-author .author-details small {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.service-details .success-story .story-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.service-details .success-story .story-metrics .metric {
  text-align: center;
}

.service-details .success-story .story-metrics .metric .metric-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.25rem;
}

.service-details .success-story .story-metrics .metric .metric-label {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-details .consultation-form .form-header {
  margin-bottom: 2rem;
}

.service-details .consultation-form .form-header h4 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.service-details .consultation-form .form-header p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
}

.service-details .consultation-form .form-group {
  margin-bottom: 1.5rem;
}

.service-details .consultation-form .form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 4px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: transparent;
}

.service-details .consultation-form .form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 90%);
}

.service-details .consultation-form input[type=text],
.service-details .consultation-form input[type=email],
.service-details .consultation-form input[type=tel],
.service-details .consultation-form select,
.service-details .consultation-form textarea {
  color: var(--default-color);
  background-color: var(--surface-color);
  font-size: 14px;
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.service-details .consultation-form input[type=text]:focus,
.service-details .consultation-form input[type=email]:focus,
.service-details .consultation-form input[type=tel]:focus,
.service-details .consultation-form select:focus,
.service-details .consultation-form textarea:focus {
  border-color: var(--accent-color);
}

.service-details .consultation-form input[type=text]::placeholder,
.service-details .consultation-form input[type=email]::placeholder,
.service-details .consultation-form input[type=tel]::placeholder,
.service-details .consultation-form select::placeholder,
.service-details .consultation-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.service-details .consultation-form .btn-consultation {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-transform: none;
}

.service-details .consultation-form .btn-consultation:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 10%);
  transform: translateY(-1px);
}

.service-details .consultation-form .btn-consultation i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .service-details .service-hero h1 {
    font-size: 2.5rem;
  }

  .service-details .service-hero .service-description {
    font-size: 1.1rem;
  }

  .service-details .service-visual img {
    height: 250px;
  }

  .service-details .benefits-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-details .timeline-section .timeline::before {
    left: 20px;
  }

  .service-details .timeline-section .timeline .timeline-item {
    padding-left: 60px;
  }

  .service-details .timeline-section .timeline .timeline-item .timeline-marker {
    width: 40px;
    height: 40px;
  }

  .service-details .timeline-section .timeline .timeline-item .timeline-marker span {
    font-size: 1rem;
  }

  .service-details .overview-card .overview-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
/* =====================================
   Service Sidebar CTA Button
   (reuse portfolio button style — FINAL)
   ===================================== */

/* CTA wrapper */
.service-details .cta-buttons {
  display: flex;
  justify-content: center; /* center above form */
  margin-bottom: 2rem;     /* spacing before consultation card */
}

/* Button */
.service-details .cta-buttons .btn-view-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 28px;
  background-color: var(--accent-color);
  color: var(--contrast-color);

  border-radius: 30px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;

  transition: all 0.3s ease;
}

/* Hover */
.service-details .cta-buttons .btn-view-project:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

/* Mobile behavior — match form CTA */
@media (max-width: 768px) {
  .service-details .cta-buttons {
    width: 100%;
  }

  .service-details .cta-buttons .btn-view-project {
    width: 100%;
    text-align: center;
  }
}
/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding: 0;
  list-style: none;
}

.portfolio .portfolio-filters li {
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.portfolio .portfolio-filters li.filter-active {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.portfolio .portfolio-card {
  background-color: var(--surface-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.portfolio .portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio .portfolio-card:hover .portfolio-img .portfolio-overlay {
  opacity: 1;
}

.portfolio .portfolio-card:hover .portfolio-img img {
  transform: scale(1.1);
}

.portfolio .portfolio-card .portfolio-img {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-card .portfolio-img img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.portfolio .portfolio-card .portfolio-img .portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio .portfolio-card .portfolio-img .portfolio-overlay a {
  width: 45px;
  height: 45px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.portfolio .portfolio-card .portfolio-img .portfolio-overlay a:hover {
  background-color: color-mix(in srgb, var(--accent-color), #fff 20%);
  transform: translateY(-5px);
}

.portfolio .portfolio-card .portfolio-info {
  padding: 20px;
}

.portfolio .portfolio-card .portfolio-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--heading-color);
}

.portfolio .portfolio-card .portfolio-info p {
  font-size: 0.9rem;
  color: var(--default-color);
  margin-bottom: 10px;
}

.portfolio .portfolio-card .portfolio-info .portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  max-width: 100%;
  max-height: calc(2 * 1.6em); /* limit vertical growth */
  overflow: hidden;
}

.portfolio .portfolio-card .portfolio-info .portfolio-tags span {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
}

.portfolio .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.portfolio .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 10%);
  border-color: color-mix(in srgb, var(--accent-color), #000 10%);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details {
  --section-spacing: 2.5rem;
}

.portfolio-details .portfolio-details-media {
  position: relative;
}

.portfolio-details .portfolio-details-media .main-image {
  margin-bottom: 1rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider {
  position: relative;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-wrapper {
  height: auto !important;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-slide img {
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev {
  background-color: var(--contrast-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next:after,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev:after {
  font-size: 16px;
  color: var(--accent-color);
  font-weight: bold;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next:hover,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev:hover {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next:hover:after,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev:hover:after {
  color: var(--contrast-color);
}

/* ==============================
   PORTFOLIO THUMBNAILS (SLIDER)
   ============================== */

.portfolio-details .portfolio-details-media .thumbnail-grid {
    width: 100% !important; /* Ensure it takes full width */
    overflow-x: auto !important; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    padding: 10px 15px; /* Add some padding so they don't touch the edges */
    margin: 16px 0 0; /* Align to the left/right */
    justify-content: flex-start; /* Align thumbnails to the start */
  }

.portfolio-details .portfolio-details-media .thumbnail-grid .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap; /* Prevent thumbnails from wrapping to next line */
    gap: 3px; /* Space between thumbnails */
  }

.portfolio-details .portfolio-details-media .thumbnail-grid .swiper-slide {
  width: 96px; 
  aspect-ratio: 4 / 3;              /* square */
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-details .portfolio-details-media .thumbnail-grid .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;                /* contained cleanly */
  display: block;
}

.portfolio-details .portfolio-details-media .thumbnail-grid .swiper-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.portfolio-details .portfolio-details-media .tech-stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.portfolio-details .portfolio-details-media .tech-stack-badges span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  background-color: color-mix(in srgb, var(--heading-color), transparent 85%);
  color: var(--heading-color);
  transition: all 0.3s ease;
}

.portfolio-details .portfolio-details-media .tech-stack-badges span:hover {
  background-color: color-mix(in srgb, var(--heading-color), transparent 70%);
  transform: translateY(-2px);
}

.portfolio-details .portfolio-details-content {
  padding: 0 0 0 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-details .portfolio-details-content .project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-meta .badge-wrapper .project-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
}

.portfolio-details .portfolio-details-content .project-meta .date-client {
  display: flex;
  gap: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-meta .date-client .meta-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.portfolio-details .portfolio-details-content .project-meta .date-client .meta-item i {
  margin-right: 6px;
  color: var(--accent-color);
}

.portfolio-details .portfolio-details-content .project-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color);
}

.portfolio-details .portfolio-details-content .project-website {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-website i {
  font-size: 22px;
  color: var(--accent-color);
  margin-right: 8px;
}

.portfolio-details .portfolio-details-content .project-website a {
  font-weight: 500;
  transition: all 0.3s;
}

.portfolio-details .portfolio-details-content .project-website a:hover {
  letter-spacing: 0.5px;
}

.portfolio-details .portfolio-details-content .project-overview {
  margin-bottom: var(--section-spacing);
}

.portfolio-details .portfolio-details-content .project-overview .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  margin-bottom: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item {
  border: none;
  background: none;
  margin-bottom: 10px;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button {
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading-color);
  background-color: color-mix(in srgb, var(--surface-color), transparent 70%);
  border-radius: 8px !important;
  box-shadow: none;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button:not(.collapsed) {
  background-color: var(--surface-color);
  color: var(--accent-color);
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button:not(.collapsed) i {
  color: var(--accent-color);
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button::after {
  background-size: 14px;
  width: 14px;
  height: 14px;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button i {
  font-size: 1.1rem;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-body {
  padding: 1rem;
  background-color: var(--surface-color);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-body p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.6;
}

.portfolio-details .portfolio-details-content .project-features {
  margin-bottom: var(--section-spacing);
}

.portfolio-details .portfolio-details-content .project-features h3 {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}

.portfolio-details .portfolio-details-content .project-features h3 i {
  margin-right: 10px;
  color: var(--accent-color);
  font-size: 1.1em;
}

.portfolio-details .portfolio-details-content .project-features .feature-list {
  list-style: none;
  padding-left: 0;
}

.portfolio-details .portfolio-details-content .project-features .feature-list li {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.portfolio-details .portfolio-details-content .project-features .feature-list li i {
  color: var(--accent-color);
  margin-right: 10px;
  font-size: 1.1em;
}

.portfolio-details .portfolio-details-content .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-view-project {
  padding: 12px 28px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-view-project:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project {
  padding: 12px 28px;
  background-color: color-mix(in srgb, var(--heading-color), transparent 90%);
  color: var(--heading-color);
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project i {
  transition: transform 0.3s ease;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project:hover {
  background-color: color-mix(in srgb, var(--heading-color), transparent 80%);
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project:hover i {
  transform: translateX(3px);
}

@media (max-width: 1199.98px) {
  .portfolio-details .portfolio-details-content {
    padding-left: 1rem;
  }
}

@media (max-width: 991.98px) {
  .portfolio-details .portfolio-details-content {
    padding: 2rem 0 0 0;
  }

  .portfolio-details .portfolio-details-content .cta-buttons {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .portfolio-details .project-meta {
    flex-direction: column;
    gap: 1rem;
  }

  @media (max-width: 767.98px) {
  .portfolio-details .project-meta .date-client {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }
}

  .portfolio-details .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .portfolio-details .cta-buttons a {
    width: 100%;
    text-align: center;
  }
}
@media (min-width: 992px) {

  /* space between text (left) and slider (right) */
  .portfolio-details .portfolio-details-media {
    padding-left: 2.5rem;
  }

}
/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-box {
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: 1rem;
  height: 100%;
}

.contact .info-box h3 {
  color: var(--header-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .contact .info-box h3 {
    font-size: 1.75rem;
  }
}

.contact .info-box p {
  opacity: 0.8;
  margin-bottom: 2rem;
}

.contact .info-box a {
  color: var(--contrast-color);
}

@media (max-width: 992px) {
  .contact .info-box {
    padding: 1.5rem;
  }
}

.contact .info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact .info-item:last-child {
  margin-bottom: 0;
}

.contact .info-item .icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--surface-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.3s;
}

.contact .info-item .icon-box i {
  font-size: 1.5rem;
  color: var(--header-color);
}

.contact .info-item:hover .icon-box {
  background-color: var(--accent-color);
}

.contact .info-item .content h4 {
  color: var(--header-color);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact .info-item .content p {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.contact .info-item .content p:last-child {
  margin-bottom: 0;
}

.contact .contact-form {
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: 1rem;
  height: 100%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
  .contact .contact-form {
    padding: 1.5rem;
  }
}

.contact .contact-form h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .contact .contact-form h3 {
    font-size: 1.75rem;
  }
}

.contact .contact-form p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 2rem;
}

.contact .contact-form .form-control,
.contact .contact-form .form-select {
  padding: 0.875rem 1.25rem;
  border-color: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 0.5rem;
  background-color: transparent;
  color: var(--default-color);
}

.contact .contact-form .form-control:focus,
.contact .contact-form .form-select:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.contact .contact-form .form-control::placeholder,
.contact .contact-form .form-select::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.contact .contact-form .btn {
  background-color: color-mix(in srgb, var(--surface-color), transparent 80%);
  color: var(--header-color);
  padding: 1rem 2rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s;
}

.contact .contact-form .btn i {
  font-size: 1.25rem;
}

.contact .contact-form .btn:hover {
  background-color: color-mix(in srgb, var(--surface-color), transparent 70%);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}

.header.barista-nav {
  background: transparent;
}

.header.barista-nav .navbar {
  margin-top: 12px;
  padding: 14px 24px;
  border-radius: 14px;

  background: var(--nav-glass-bg);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);

  border: 1px solid var(--nav-glass-border);
  box-shadow: var(--nav-glass-shadow);
}

/* Logo */


/* Links */
.barista-nav .nav-link {
  color: var(--nav-color, #9ca3af);
  font-family: var(--nav-font, "Poppins", sans-serif);
  font-size: 15px;
  font-weight: 400;
  padding: 7px 14px;
  transition: color 0.2s ease;
}

.barista-nav .nav-link:hover,
.barista-nav .nav-link.active {
  color: var(--accent-color);
}

/* Dropdown */
.barista-nav .dropdown-menu {
  background: rgba(12, 14, 18, 0.55);
  backdrop-filter: blur(6px) saturate(115%);
  -webkit-backdrop-filter: blur(6px) saturate(115%);

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  padding: 10px 0;
}

.barista-nav .dropdown-item {
  color: #e5e7eb;
  font-size: 14px;
  padding: 8px 20px;
}

.barista-nav .dropdown-item:hover {
  background: transparent;
  color: var(--accent-color);
}

/* Deep dropdown (right side) */
.barista-nav .dropdown-submenu {
  position: relative;
}

.barista-nav .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 2px;
}

/* Mobile */
@media (max-width: 991px) {
  .header.barista-nav .navbar {
    border-radius: 12px;
  }

  .barista-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 12px;
  }

  .barista-nav .dropdown-submenu > .dropdown-menu {
    margin-left: 0;
  }

  .barista-nav .navbar-toggler {
    border: none;
  }

    /* Dark mode (default) */
  .barista-nav .navbar-toggler-icon {
    filter: invert(1);
  }

  /* Light mode */
  .light-background .barista-nav .navbar-toggler-icon {
    filter: invert(0);
  }
}
/* Disable global header glass when using Barista navbar */
.header.barista-nav::before {
  display: none;
}


/* Keep Portfolio text white when dropdown is open */
.header.barista-nav .nav-link:focus,
.header.barista-nav .nav-link:active,
.header.barista-nav .dropdown-toggle:focus,
.header.barista-nav .dropdown-toggle.show {
  color: var(--accent-color) !important;
}

/* Optional: keep arrow white too */
.header.barista-nav .dropdown-toggle::after {
  filter: brightness(0) invert(1);
}


/* Remove Bootstrap focus/active blue box */
.header.barista-nav .nav-link:focus,
.header.barista-nav .nav-link:active,
.header.barista-nav .dropdown-toggle:focus,
.header.barista-nav .dropdown-toggle:active,
.header.barista-nav .dropdown-toggle.show {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Keep arrow white */
.header.barista-nav .dropdown-toggle::after {
  filter: brightness(0) invert(1);
}

/* Arrow spacing */
.header.barista-nav .dropdown-toggle-split {
  padding-left: 8px;
  padding-right: 8px;
}

/* MOBILE: dropdown under Portfolio */
@media (max-width: 991px) {
  .header.barista-nav .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    background: rgba(12, 14, 18, 0.95);
    border-radius: 10px;
  }
}




.header.barista-nav .nav-link,
.header.barista-nav .dropdown-toggle {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Mobile */
@media (max-width: 991px) {
  .header.barista-nav .nav-link,
  .header.barista-nav .dropdown-toggle {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* =========================================================
   PHOTOGRAPHY GALLERY (MOVED FROM photography-projects.css)
   Scoped safely under .photography-gallery
   ========================================================= */

/* =========================================================
   PHOTOGRAPHY PAGE ONLY
   ========================================================= */

.photography-gallery .photography-gallery {
  padding-top: 0;
}

/* =========================================================
   FILTERS
   ========================================================= */

.photography-gallery .filter-btn {
  /* use portfolio filter color system (accent-based pills) */
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border: none;
}

.photography-gallery .filter-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.photography-gallery .filter-btn.active {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}
.photography-gallery .filter-btn.active::after {
  width: 100%;
}

.photography-gallery .filter-btn.active,
.photography-gallery .filter-btn:hover {
  color: var(--nav-active-color);
}

/* =========================================================
   GALLERY CARDS
   ========================================================= */

.photography-gallery .project-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}

.photography-gallery .project-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.photography-gallery .project-card:hover img {
  transform: scale(1.05);
}

/* =========================================================
   OVERLAY
   ========================================================= */

.photography-gallery .project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.photography-gallery .project-card:hover .project-overlay {
  opacity: 1;
}

.photography-gallery .project-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.photography-gallery .project-categories {
  color: #cccccc;
  font-size: 12px;
  letter-spacing: 0.08em;
  
}

/* =========================================================
   LIGHTGALLERY FIX (THIS IS THE KEY)
   ========================================================= */

/* Hidden gallery anchors */
.photography-gallery .lg-hidden {
  display: none;
}

/* Force LightGallery UI visibility */
.photography-gallery .lg-toolbar,
.photography-gallery .lg-actions,
.photography-gallery .lg-prev,
.photography-gallery .lg-next,
.photography-gallery .lg-close {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Ensure icons are visible (SVG fix) */
.photography-gallery .lg-toolbar svg,
.photography-gallery .lg-actions svg {
  fill: #ffffff !important;
}

/* Improve contrast against dark bar */
.photography-gallery .lg-toolbar {
  background: rgba(0, 0, 0, 0.65) !important;
}

/* Arrow size */
.photography-gallery .lg-prev,
.photography-gallery .lg-next {
  font-size: 32px;
}

/* Mobile tuning */
@media (max-width: 768px) {
  .photography-gallery .lg-prev,
  .photography-gallery .lg-next {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .photography-gallery .project-overlay {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* =========================================================
   FIX: Hide Scroll-To-Top while LightGallery is open
   ========================================================= */

body.lg-overlay-open .scroll-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* =========================================================
   BARISTA NAVBAR – SINGLE SOURCE OF TRUTH (FINAL)
   ========================================================= */

.header.barista-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  background: transparent;
}

.header.barista-nav .navbar {
  margin-top: 8px;
  padding: 18px 24px;
  border-radius: 14px;

  background: var(--nav-glass-bg);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);

  border: 1px solid var(--nav-glass-border);
  box-shadow: var(--nav-glass-shadow);

  position: relative;
  z-index: 2;
}

/* LOGO SIZE – CHANGE HERE ONLY */
.header

/* NAV LINKS */
.header.barista-nav .nav-link {
  color: var(--nav-color);
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  transition: color 0.2s ease;
}

.header.barista-nav .nav-link:hover,
.header.barista-nav .nav-link.active,
.header.barista-nav .dropdown-toggle.show {
  color: var(--accent-color);
}

.header.barista-nav .nav-link:focus,
.header.barista-nav .dropdown-toggle:focus {
  background: transparent;
  box-shadow: none;
  outline: none;
}

/* DROPDOWN */
.header.barista-nav .dropdown-menu {
  background: rgba(12, 14, 18, 0.55);
  backdrop-filter: blur(6px) saturate(115%);
  border-radius: 10px;
  padding: 10px 0;
}

/* MOBILE */
@media (max-width: 991px) {
  .header.barista-nav .navbar {
    border-radius: 12px;
  }

  .header
}



/* LOGO SOURCE & SIZE — SINGLE SOURCE (THEME AWARE) */

/* Default (dark mode) */
.header.barista-nav .navbar-brand-image {
  content: url("/assets/img/wg-logo.webp");
  max-height: 30px;
  width: auto;
}

/* Light mode */
.light-background .header.barista-nav .navbar-brand-image {
  content: url("/assets/img/wg-logo-dark.webp");
}

/* Mobile-only: center service icons */
@media (max-width: 767px) {

  .services .service-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .services .service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
  }

}
/* ==============================
   PORTFOLIO — VIRTUAL TOUR
   ============================== */

.portfolio-virtual-tour {
  width: 100%;
}

.kuula-embed-wrapper {
  position: relative;
  width: 100%;
  height: 520px;          /* desktop */
  border-radius: 18px;
  overflow: hidden;

  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

/* Tablet & Mobile */
@media (max-width: 991px) {
  .kuula-embed-wrapper {
    height: 420px;
  }
}
/* MOBILE: tighten portfolio header spacing */
@media (max-width: 576px) {
  .portfolio-details .section-title {
    padding-bottom: 32px;
  }

  .portfolio-details .section-title h2 {
    margin-bottom: 12px;
  }

  .portfolio-details .section-title p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}
@media (max-width: 576px) {
  .kuula-embed-wrapper {
    height: 40vh;
    border-radius: 0;
  }
}
@media (max-width: 991px) {
  .header.barista-nav .navbar-collapse {
    margin-top: 24px; /* 👈 pushes menu links away from logo + hamburger */
  }
}
/* Match image slide dimensions */
.portfolio-details-slider .video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2; /* MUST match your image ratio */
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

.portfolio-details-slider .portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-article {
  max-width: 720px;
  line-height: 1.8;
}

.project-article p {
  margin-bottom: 1.3rem;
}

.project-article .article-footnote {
  margin-top: 2.5rem;
  font-style: italic;
  opacity: 0.85;
}

.portfolio-item.is-hidden {
  display: none;
}

/* =====================================
   Portfolio Card – Fixed 1024×683 Ratio
   ===================================== */

.portfolio-img.ratio-1024x683 {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 683;
  overflow: hidden;
}

/* FORCE media to fill the ratio box */
.portfolio-img.ratio-1024x683 img,
.portfolio-img.ratio-1024x683 video {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;

  object-fit: cover;
  display: block;
}

/* =====================================
   Testimonials – smaller client photos (mobile only)
   ===================================== */
@media (max-width: 576px) {
  .testimonials .testimonial-item .testimonial-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
  }
}
/* =====================================
   Testimonials – image above text (mobile only)
   ===================================== */
@media (max-width: 576px) {
  .testimonials .testimonial-item .row {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .testimonials .testimonial-item .testimonial-content {
    border-left: none;
    padding-left: 0;
  }

  .testimonials .testimonial-item .testimonial-img {
    margin-bottom: 12px;
  }
}
/* =====================================
   YouTube Video Overlay
   ===================================== */
.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.video-overlay.active {
  display: flex;
}

.video-overlay-content {
  position: relative;
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-overlay iframe {
  width: 100%;
  height: 100%;
}

.video-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

/* =========================================================
   GLOBAL EDITORIAL LAYOUT (Fixed Hero + Scroll Content)
   ========================================================= */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overscroll-behavior-y: auto;
}

/* 1. The Fixed Hero Container - The Root */
.hero-fixed-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 110vh;
  height: 110dvh; /* Dynamic viewport height for mobile address bars */
  z-index: -1;
  overflow: hidden;
  margin: 0;
  padding: 0;
  top: env(safe-area-inset-top, 0); 
  height: calc(100dvh + env(safe-area-inset-top)); 
  transform: translate3d(0,0,0);
}

/* 2. THE FIX: Ensure all nested containers inherit the full height */
.hero-slider-container,
.hero-image-slider,
.hero-fixed-wrapper .swiper,
.hero-fixed-wrapper .swiper-wrapper,
.hero-fixed-wrapper .swiper-slide {
  height: 100% !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
}

/* Force the actual image to cover the area without distortion */
.hero-fixed-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 3. The Dark Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.10) 35%,
    rgba(0,0,0,0.35) 60%,
    rgba(0,0,0,0.65) 100%
  );

}

/* 4. The Centered Text Layer */
.hero-content-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  pointer-events: none; /* Allows clicks to pass through to the arrow if needed */
}

.hero-title-styled {
  font-family: var(--heading-font);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
  line-height: 1.1;
  max-width: 900px;
}

.hero-subtitle-styled {
  font-family: var(--default-font);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 5. The Content Wrapper (Slides OVER the hero) */
.editorial-content-wrapper {
  position: relative;
  z-index: 10;          /* Higher than hero (0) */
  margin-top: 100vh;    /* Pushes content below the viewport */
  margin-top: 100dvh;   /* Mobile fix */
  background-color: var(--background-color); /* Must be opaque to cover hero */
  min-height: 100vh;
  padding-top: 60px;    /* Spacing for the internal content */
  box-shadow: 0 -10px 30px rgba(0,0,0,0.1); /* Optional: subtle shadow for the overlap edge */
}

/* 6. Scroll Arrow Animation */
.scroll-down-arrow {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  cursor: pointer;
  color: #fff;
  font-size: 2rem;
  animation: bounce 2s infinite;
  transition: opacity 0.3s;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
  40% {transform: translateX(-50%) translateY(-10px);}
  60% {transform: translateX(-50%) translateY(-5px);}
}


/* ============================================================
   PORTFOLIO ARTICLE PAGES (Left-Aligned Text Focus)
   ============================================================ */

.portfolio-article-page {
  background-color: var(--background-color) !important;
  color: var(--default-color);
}

.portfolio-article-page .portfolio-details.section {
  padding: 60px 0;
  background: transparent;
}

/* 1. Spine Alignment */
.portfolio-article-page .portfolio-details-content {
  max-width: 850px; 
  margin: 0 auto;
}

/* 2. Project Title - Remains Centered for visual hierarchy */
.portfolio-article-page .project-title {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: left; /* Centered */
}

/* 3. Meta & Badges - Remains Centered */
.portfolio-article-page .project-meta {
  display: flex;
  justify-content: center; /* Centered */
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.portfolio-article-page .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-article-page .meta-item i {
  color: var(--accent-color);
  font-size: 18px;
}

/* 4. The Editorial Body Text - ALIGNED LEFT within the spine */
.portfolio-article-page .project-article {
  text-align: left; /* Aligned Left */
  line-height: 1.8;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto ; /* Aligned to the left of the container */
  color: color-mix(in srgb, var(--default-color), transparent 10%);
}

.portfolio-article-page .project-article p {
  margin-bottom: 1.5rem;
}

/* 5. Dropcap */
.portfolio-article-page .project-article p:first-of-type::first-letter {
  font-family: var(--heading-font);
  font-size: 4.5rem;
  float: left;
  line-height: 0.8;
  padding: 5px 12px 0 0;
  color: var(--accent-color);
  font-weight: 700;
}

/* 6. Pull Quote (The Footnote) - ALIGNED LEFT to match text */
.portfolio-article-page .article-footnote {
  margin: 50px 0; /* Removed 'auto' to align left */
  padding: 40px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--heading-color);
  text-align: center; /* Aligned Left */
  max-width: 700px;
}

/* 7. Editorial Images with Captions (Left Aligned) */
.article-editorial-fig {
  margin: 2.5rem 0;
  text-align: left;
}


.article-editorial-fig figcaption {
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 8px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/* 8. Bottom Buttons - Centered for closure */
.portfolio-article-page .cta-buttons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .portfolio-article-page .project-article,
  .portfolio-article-page .article-footnote {
    max-width: 100%;
    text-align: left;
    padding: 0 10px;
  }
}

/* ============================================================
   EDITORIAL IMAGES (Inside Article - Centered & Contained)
   ============================================================ */

.article-editorial-fig {
  margin: 3.5rem 0; /* Breathing room */
  width: 100%;
  clear: both;
  text-align: center; /* Keeps the figcaption centered if it's short */
}

.article-editorial-fig img {
  display: block;
  margin: 0 auto 12px auto; /* Centers the image horizontally */
  
  /* Sizing Logic */
  width: auto;
  max-width: 100%;       /* Responsive width */
  max-height: 70vh;      /* The "Vertical Guard" */
  object-fit: contain;   /* Prevents distortion */
  
  border-radius: 8px;    /* Your standard UI curves */
  /* Your requested shadow using color-mix */
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 94%); 
}

.article-editorial-fig figcaption {
  font-family: var(--default-font);
  color: color-mix(in srgb, var(--default-color), transparent 45%); 
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.5;
  
  /* Caption alignment */
  text-align: left;      /* Standard editorial alignment */
  display: inline-block; /* Makes the caption follow the image width */
  max-width: 700px;      /* Keeps it aligned with your article text spine */
  padding-left: 10px;
  border-left: 2px solid var(--accent-color); 
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .article-editorial-fig {
    margin: 2rem 0;
  }
  .article-editorial-fig img {
    max-height: 60vh; /* Shorter limit for mobile screens */
  }
}

/* 8. Mobile Adjustments */
@media (max-width: 768px) {
  /* Aligns the badges and meta items to the left */
  .portfolio-article-page .project-meta {
    flex-direction: column;
    align-items: flex-start; /* Aligns items to the left */
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  /* Ensures the badges (Conceptual, AI Generated) also align left */
  .portfolio-article-page .badge-wrapper {
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 10px;
  }

  /* Aligns the date and client info to the left */
  .portfolio-article-page .date-client {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  /* Aligns the main title and Instagram link to the left */
  .portfolio-article-page .project-title,
  .portfolio-article-page .project-website {
    text-align: left;
    justify-content: flex-start;
  }

  /* Ensures consistent left padding for the whole content block */
  .portfolio-article-page .portfolio-details-content {
    padding: 0 0px;
  }
}

/* ============================================================
   SEAMLESS INFINITE HERO ZOOM (No Jumps, No Pauses)
   ============================================================ */

.hero-image-slider {
  overflow: hidden;
  background-color: #000;

}

/* 1. The Animation: Very slow, very large, perfectly linear */
@keyframes infiniteZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); } /* Zoom in */
  100% { transform: scale(1); }  /* Zoom back out smoothly */
}

.hero-image-slider .swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;

  
  /* 2. THE KEY: Every image runs the SAME animation constantly */
  /* Using 60 seconds makes the movement nearly imperceptible but constant */
  animation: infiniteZoom 60s linear infinite;
  
  /* 3. The Fade: Slow cross-fade to hide the image swap */
  transition: opacity 3s ease-in-out;
}

/* Ensure the wrapper doesn't interfere with the zoom */
.hero-image-slider .swiper-wrapper {
  display: flex;
  align-items: center;
}

/* ============================================================
   EDITORIAL AUTHOR & CREDIT BLOCK
   ============================================================ */

.portfolio-article-page .author-meta {
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding-bottom: 20px;
}

.portfolio-article-page .author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%); /* Keeps it professional/minimal */
}

.portfolio-article-page .author-info {
  display: flex;
  flex-direction: column;
}

.portfolio-article-page .author-name {
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading-color);
}

.portfolio-article-page .project-date {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.portfolio-article-page .project-category-tag {
  font-family: var(--heading-font);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-top: 15px;
  font-weight: 700;
}

/* ============================================================
   HERO FLOATING META (No Glass Box, 70% Opacity)
   ============================================================ */
/* --- Desktop & Base Styles --- */
.hero-floating-meta {
  display: grid;
  /* Creates exactly 3 columns of equal width */
  grid-template-columns: repeat(3, auto); 
  gap: 100px;  /* This controls the space between all columns */
  /* Using margin-top relative to content to prevent overlaps */
  margin-top: 500px; 
  position: absolute; 
  z-index: 10;
  background: transparent; 
  border: none;
}

.hero-floating-meta .meta-item {
  display: flex;
  flex-direction: column;
}

.hero-floating-meta .meta-label {
  font-family: var(--nav-font);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 5px;
  opacity: 0.7;
}

.hero-floating-meta .meta-value {
  font-family: var(--default-font);
  font-size: 15px;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.7;
}

/* --- Mobile Optimization (Under 768px) --- */
@media (max-width: 768px) {
  .hero-floating-meta {
    /* Forces 3 columns even on small screens */
    grid-template-columns: repeat(3, 1fr); 
    gap: 1px; /* This controls the space between all columns */
    width: 100%;
    margin-top: 400px; 
  }
  
  .hero-floating-meta .meta-value {
    font-size: 12px; /* Slightly smaller to prevent text breaking on narrow phones */
    line-height: 1.2;
  }
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* prevents accidental interaction */
}

#featured-projects .swiper-slide-cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

#featured-projects .swiper-slide-cta .hero-actions {
  margin: 0;
}

/* =====================================
   FEATURED PROJECTS — SLIDE FOCUS EFFECT
   ===================================== */

#featured-projects .swiper-slide {
  transition: 
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.6s ease,
    opacity 0.6s ease;
}

/* Side slides (left & right) */
#featured-projects .swiper-slide-prev,
#featured-projects .swiper-slide-next {
  transform: scale(0.90);
  filter: grayscale(100%);
  opacity: 0.6;
}

/* Center (active) slide */
#featured-projects .swiper-slide-active {
  transform: scale(1);
  filter: grayscale(0%);
  opacity: 1;
  z-index: 2;
}

/* Fix for Swiper Hover Clipping on Home Page */
.projects-swiper {
  padding-top: 20px;    /* Adds space for the card to move UP */
  padding-bottom: 30px; /* Adds space for the shadow to cast DOWN */
}

/* Do not apply section borders to hero */
body.index-page #hero,
body.index-page #hero-display {
  border-top: none !important;
  border-bottom: none !important;
}

/* =====================================
   HOME — FEATURED PROJECT CARD DESIGN
   ===================================== */

#featured-projects .swiper-slide {
  display: flex;
  justify-content: center;
  height: auto;      /* changed from 100% to auto to respect the aspect ratio */
  width: 40%;      /* Forces consistency */
}

/* Card wrapper */
.home-featured-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;         /* THE FIX: Enforces strict 5:4 ratio */
  overflow: hidden;
  border-radius: 12px;
  transform: scale(0.92);
  transition: transform 0.6s ease, filter 0.6s ease;
  display: block;
}

/* =====================================
   FEATURED CARDS — MOBILE RATIO
   ===================================== */

@media (max-width: 768px) {
  .home-featured-card {
    aspect-ratio: 9 / 12; 
  }
}

/* Image */
.home-featured-image {
  position: absolute;          /* Absolute is required to respect aspect-ratio container */
  top: 0;
  left: 0;
  width: 100% !important;      /* Force full width */
  height: 100% !important;      /* Force full width */
  object-fit: cover;           /* Crops image to fit 5:4 without distortion */
  object-position: center;
  display: block;
}

/* Overlay text */
.home-featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.45), /* ↓ was 0.65 */
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0)
  );
  color: #ffffff;
}

/* Title */
.home-featured-title {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.1rem;
  color: #ffffff;
}

/* Meta */
.home-featured-meta {
  font-size: 0.9rem;
  opacity: 0.85;
  text-transform: capitalize;
}

/* ===============================
   SWIPER STATE STYLING (SHARED)
   =============================== */

/* Side slides (both sections) */
#featured-projects .swiper-slide:not(.swiper-slide-active) .home-featured-card,
#feature-photos .swiper-slide:not(.swiper-slide-active) .home-featured-card {
  filter: grayscale(1);
  transform: scale(0.95);
}

/* Active (center) slide (both sections) */
#featured-projects .swiper-slide-active .home-featured-card,
#feature-photos .swiper-slide-active .home-featured-card {
  filter: none;
  transform: scale(1);
}

#featured-projects .swiper-slide,
#feature-photos .swiper-slide {
  display: flex;
  justify-content: center;
  height: auto;
  width: 40%;
}
/* =========================================================
   WHO I HELP & WHY WORK WITH ME
   EXACT SERVICES CARD SYSTEM (DESKTOP + MOBILE)
   ========================================================= */

/* ---------- CARD BASE (IDENTICAL TO .service-item) ---------- */
#who-i-help .who-card,
#why-work-with-me .why-card {
  display: flex;
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s ease;
}

/* ---------- ACCENT BAR (IDENTICAL) ---------- */
#who-i-help .who-card::before,
#why-work-with-me .why-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--accent-color);

  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

#who-i-help .who-card:hover,
#why-work-with-me .why-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

#who-i-help .who-card:hover::before,
#why-work-with-me .why-card:hover::before {
  transform: scaleY(1);
}

/* ---------- ICON (IDENTICAL TO .service-icon) ---------- */
#who-i-help .who-icon,
#why-work-with-me .why-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 12px;

  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);

  display: flex;
  align-items: center;
  justify-content: center;

  margin-right: 1.5rem;
  transition: all 0.5s ease;
}

#who-i-help .who-icon i,
#why-work-with-me .why-icon i {
  font-size: 2rem;
  transition: transform 0.5s ease;
}

/* ---------- ICON HOVER (IDENTICAL ROTATION) ---------- */
#who-i-help .who-card:hover .who-icon,
#why-work-with-me .why-card:hover .why-icon {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotateY(180deg);
}

#who-i-help .who-card:hover .who-icon i,
#why-work-with-me .why-card:hover .why-icon i {
  transform: rotateY(180deg);
}

/* ---------- CONTENT BLOCK (IDENTICAL TO .service-content) ---------- */
#who-i-help .who-content,
#why-work-with-me .why-content {
  flex-grow: 1;
}

/* ---------- HEADINGS (IDENTICAL) ---------- */
#who-i-help .who-content h3,
#why-work-with-me .why-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--heading-color);
}

/* ---------- TEXT (IDENTICAL) ---------- */
#who-i-help .who-content p,
#why-work-with-me .why-content p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.7;
}

/* =========================================================
   MOBILE — EXACT SERVICES BEHAVIOR
   ========================================================= */

@media (max-width: 575.98px) {
  #who-i-help .who-card,
  #why-work-with-me .why-card {
    flex-direction: column;
    text-align: center;
  }

  #who-i-help .who-card::before,
  #why-work-with-me .why-card::before {
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
  }

  #who-i-help .who-card:hover::before,
  #why-work-with-me .why-card:hover::before {
    transform: scaleX(1);
  }

  #who-i-help .who-icon,
  #why-work-with-me .why-icon {
    margin-right: 0;
    margin-bottom: 1.25rem;
  }
}

/* =====================================================
   WHO & WHY — MOBILE ICON CENTERING (MATCH SERVICES)
   ===================================================== */

@media (max-width: 575.98px) {

  /* Stack card content vertically */
  #who-i-help .service-item,
  #why-work-with-me .service-item {
    flex-direction: column;
    text-align: center;
  }

  /* Center icons */
  #who-i-help .service-icon,
  #why-work-with-me .service-icon {
    margin-right: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
  }

  /* Center text block */
  #who-i-help .service-content,
  #why-work-with-me .service-content {
    text-align: center;
  }

  /* Accent bar — same mobile behavior as Services */
  #who-i-help .service-item::before,
  #why-work-with-me .service-item::before {
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
  }

  #who-i-help .service-item:hover::before,
  #why-work-with-me .service-item:hover::before {
    transform: scaleX(1);
  }
}

/* =====================================================
   FEATURED PHOTOGRAPHY — SAME AS FEATURED PROJECTS
   ===================================================== */

#feature-photos .photos-swiper {
  /* inherits everything from .projects-swiper */
}

#feature-photos .home-featured-card {
  /* same card */
}

#feature-photos .home-featured-image {
  /* same image behavior */
}

#feature-photos .home-featured-overlay {
  /* same overlay */
}

#feature-photos .home-featured-title,
#feature-photos .home-featured-meta {
  /* same typography */
}


/* =====================================
   CLIENT MARQUEE — THEME AWARE LOGOS
   ===================================== */

.client-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Base image styling (inherits marquee sizing) */
.client-logo img {
  height: 80px;
  width: auto;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

/* DEFAULT = DARK MODE */
.client-logo .logo-dark {
  display: none;
}

.client-logo .logo-light {
  display: block;
}

/* LIGHT MODE OVERRIDE */
.light-background .client-logo .logo-dark {
  display: block;
}

.light-background .client-logo .logo-light {
  display: none;
}


/* =====================================================
   FEATURED ARTICLES (Economist Style - Theme Accent)
   ===================================================== */

#featured-articles {
  padding: 60px 0;
  background-color: var(--background-color);
}

.feature-article {
  background-color: var(--surface-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border-bottom: 3px solid transparent; 
}

/* Hover Effects */
.feature-article:hover {
  transform: translateY(-5px);
  /* Uses your theme accent color for the underline */
  border-bottom: 3px solid var(--accent-color); 
}

.feature-article:hover .feature-img-bg {
  transform: scale(1.05);
}

/* Link Wrapper */
.feature-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image Wrapper */
.feature-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.feature-img-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* The Tag - Now uses Accent Color */
.feature-tag {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--accent-color); /* Matches your theme */
  color: var(--contrast-color); /* Ensures text is readable on the accent */
  padding: 4px 12px;
  font-family: var(--nav-font);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

/* Content Area */
.feature-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Eyebrow / Section Name */
.feature-eyebrow {
  font-family: var(--nav-font);
  font-size: 0.75rem;
  color: var(--accent-color); /* Already matched your theme */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Headline */
.feature-title {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading-color);
  margin-bottom: 12px;
}

/* Excerpt */
.feature-excerpt {
  font-family: var(--default-font);
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer Meta */
.feature-meta {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #9CA3AF;
  display: flex;
  justify-content: space-between;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .feature-content {
    padding: 15px;
  }
  .feature-title {
    font-size: 1.1rem;
  }
}

/* =====================================================
   ECONOMIST GRID SYSTEM (Scalable)
   ===================================================== */

.featured-articles-wrapper {
  padding: 60px 0;
  background-color: var(--background-color);
}

/* The Base Card */
.feature-article {
  background-color: var(--surface-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  text-decoration: none !important;
  overflow: hidden;
}

.feature-article:hover {
  border-bottom-color: var(--accent-color);
  transform: translateY(-3px);
}

/* Typography & Elements */
.f-tag {
  display: inline-block;
  background: var(--accent-color);
  color: var(--contrast-color);
  font-family: var(--nav-font);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.f-eyebrow {
  color: var(--accent-color);
  font-family: var(--nav-font);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.f-title {
  font-family: var(--heading-font);
  color: var(--heading-color);
  line-height: 1.2;
  margin-bottom: 10px;
}

/* --- Layout Variation: MAIN (Large Hero) --- */
.feature-article.f-main .f-title {
  font-size: 2.2rem;
  font-weight: 800;
}

.feature-article.f-main .f-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* --- Layout Variation: LIST (Sidebar Style) --- */
.feature-article.f-list {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.feature-article.f-list:hover {
  border-bottom: 1px solid var(--accent-color);
}

.feature-article.f-list .f-title {
  font-size: 1.1rem;
}

/* --- Layout Variation: STANDARD (Grid) --- */
.feature-article.f-grid .f-img-wrap {
  aspect-ratio: 3 / 2;
  margin-bottom: 15px;
}

.feature-article.f-grid .f-title {
  font-size: 1.25rem;
}

.f-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.f-content { padding: 15px 16px; }
.f-main .f-content { padding: 20px 20px; }

.f-meta {
  font-size: 12px;
  color: #888;
  margin-top: auto;
}


/* Force body text color inside article cards */
.feature-article p {
  color: var(--default-color);
}

/* HOME + LIGHT THEME ONLY — force "About me" button white */
body.index-page.light-background #hero .hero-actions .btn.btn-outline {
  color: #ffffff;
  border-color: #ffffff;
}

/* Hover stays clean and readable */
body.index-page.light-background #hero .hero-actions .btn.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

.bi {
  font-family: "bootstrap-icons" !important;
}

@media (max-width: 768px) {
  #featured-insights .container {
    padding-left: 1px;
    padding-right: 1px;
  }
  .feature-article {
    border-radius: 12px;
  }

  #featured-insights .row {
    margin-left: -5px;
    margin-right: -5px;
  }
}

/* =====================================================
   PAGINATION BUTTONS
   ===================================================== */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  color: var(--accent-color);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 50%);
  transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn:focus {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.pagination-btn i {
  transition: transform 0.3s ease;
}

/* Slight arrow nudge on hover for extra polish */
.pagination-btn:hover .bi-arrow-right {
  transform: translateX(3px);
}
.pagination-btn:hover .bi-arrow-left {
  transform: translateX(-3px);
}

/* Force Arabic article alignment */
html[lang="ar"] .project-overview,
html[lang="ar"] .portfolio-details-content,
html[lang="ar"] .editorial-content-wrapper {
  text-align: right;
}

html[lang="ar"] .project-overview p,
html[lang="ar"] .project-overview li,
html[lang="ar"] .project-overview h1,
html[lang="ar"] .project-overview h2,
html[lang="ar"] .project-overview h3,
html[lang="ar"] .project-title,
html[lang="ar"] .project-overview h4 {
  text-align: right;
}
/* Disable drop cap for Arabic */
html[lang="ar"] .project-overview p:first-of-type::first-letter {
  all: unset;
}

html[lang="ar"] {
  --default-font: "Cairo", sans-serif;
  --heading-font: "Cairo", sans-serif;
  --nav-font: "Cairo", sans-serif;
}

/* =====================================
   LANGUAGE SELECTOR — COMPACT PREMIUM (CENTERED)
   ===================================== */

.lang-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 999999;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.lang-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Center box */
.lang-box {
  text-align: center;
  padding: 38px 32px;
  max-width: 380px;   /* slightly smaller */
  width: 88%;

  background: rgba(20, 24, 30, 0.65);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* Title */
.lang-title {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 28px; /* tighter spacing */
}

/* Button container */
.lang-actions {
  display: flex;
  flex-direction: column;      /* stack vertically */
  align-items: center;         /* center horizontally */
  gap: 16px;
}

/* Buttons */
.lang-btn {
  display: inline-flex;        /* important */
  align-items: center;
  justify-content: center;     /* center flag + text */
  gap: 8px;

  font-size: 0.95rem;
  font-weight: 500;

  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  position: relative;

  padding: 6px 12px;
  min-width: 140px;            /* keeps visual balance */

  transition: color 0.3s ease, opacity 0.3s ease;
}

.lang-btn:hover {
  color: #ffffff;
  opacity: 1;
}

/* Flag styling */
.flag {
  font-size: 1rem;
  line-height: 1;
}

/* Underline animation */
.lang-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.lang-btn:hover::after {
  width: 60%;
}

/* Mobile */
@media (max-width: 768px) {
  .lang-box {
    padding: 30px 22px;
    max-width: 320px;
  }

  .lang-title {
    font-size: 1.3rem;
    margin-bottom: 22px;
  }

  .lang-btn {
    font-size: 0.9rem;
    min-width: 120px;
  }
}

/* =====================================
   RTL Timeline Fix
   ===================================== */

html[dir="rtl"] .service-details .timeline-section .timeline::before {
  right: 30px;
  left: auto;
}

html[dir="rtl"] .service-details .timeline-section .timeline .timeline-item {
  padding-right: 80px;
  padding-left: 0;
}

html[dir="rtl"] .service-details .timeline-section .timeline .timeline-item .timeline-marker {
  right: 0;
  left: auto;
}

/* =====================================
   RTL Form Fix
   ===================================== */

html[dir="rtl"] input,
html[dir="rtl"] textarea {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] input::placeholder,
html[dir="rtl"] textarea::placeholder {
  text-align: right;
}

/* =====================================
   RESUME RTL FIX
   ===================================== */

html[dir="rtl"] .resume .resume-item .resume-title::after {
  right: 0;
  left: auto;
}

html[dir="rtl"] .resume .resume-item .resume-content {
  padding-right: 1.25rem;
  padding-left: 0;
  border-right: 2px solid color-mix(in srgb, var(--accent-color), transparent 85%);
  border-left: none;
}

html[dir="rtl"] .resume .resume-item article::before {
  right: -1.8rem;
  left: auto;
}

html[dir="rtl"] .resume .resume-item article ul {
  padding-right: 1.25rem;
  padding-left: 0;
}

/* =====================================
   TIMELINE DOT RTL FIX
   ===================================== */

html[dir="rtl"] .timeline-item {
  padding-right: 2rem;
  padding-left: 0;
}

html[dir="rtl"] .timeline-item .dot {
  right: 0;
  left: auto;
}
/* =====================================
   TESTIMONIAL RTL FLIP
   ===================================== */

html[dir="rtl"] #testimonials .row {
  flex-direction: row-reverse;
}

/* =====================================
   ARTICLE NEWSLETTER (Contained Premium)
   ===================================== */

.article-newsletter {
  max-width: 820px;
  margin: 60px auto;        /* reduced vertical spacing */
  padding: 45px 50px;       /* tighter top & bottom */
  background: var(--surface-color);
  border-radius: 20px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

/* Title */
.article-newsletter .newsletter-title {
  font-size: 32px;                  /* slightly larger for authority */
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--heading-color);
}

/* Description */
.article-newsletter .newsletter-text {
  max-width: 640px;
  margin: 0 auto 35px;
  font-size: 17px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

/* Form */
.article-newsletter .newsletter-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  gap: 14px;
}

/* Input */
.article-newsletter input {
  flex: 1;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%);
  background: transparent;
  color: var(--default-color);
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.article-newsletter input:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Button */
.article-newsletter button {
  padding: 16px 28px;
  border-radius: 12px;
  border: none;
  background: var(--accent-color);
  color: var(--contrast-color);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s ease;
}

.article-newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 60%);
}

/* Mobile */
@media (max-width: 768px) {
  .article-newsletter {
    margin: 80px 20px;
    padding: 50px 25px;
  }

  .article-newsletter .newsletter-form {
    flex-direction: column;
  }

  .article-newsletter button {
    width: 100%;
  }
}

/* ===============================
   Newsletter Slide-Up
   =============================== */

.newsletter-slideup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  transition: 0.5s ease;
  z-index: 9999;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.newsletter-slideup.active {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.newsletter-slideup-card {
  background: var(--surface-color);
  width: 95%;
  max-width: 520px;
  padding: 28px 30px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
}

.newsletter-slideup-card h4 {
  margin-bottom: 10px;
  font-size: 20px;
}

.newsletter-slideup-card p {
  margin-bottom: 18px;
  font-size: 14px;
}

.newsletter-slideup-form {
  display: flex;
  gap: 10px;
}

.newsletter-slideup-form input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%);
  background: transparent;
}

.newsletter-slideup-form button {
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: var(--accent-color);
  color: var(--contrast-color);
  font-weight: 600;
}

.newsletter-slideup-close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 576px) {
  .newsletter-slideup-form {
    flex-direction: column;
  }

  .newsletter-slideup-form button {
    width: 100%;
  }
}

.article-newsletter {
  display: none;
}

/* ===============================
   Category Center Modal
   =============================== */

.newsletter-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  z-index: 9999;
}

.newsletter-modal.active {
  opacity: 1;
  visibility: visible;
}

.newsletter-modal-card {
  background: var(--surface-color);
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 520px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  position: relative;
  transform: translateY(20px);
  transition: 0.4s ease;
}

.newsletter-modal.active .newsletter-modal-card {
  transform: translateY(0);
}

.newsletter-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

.newsletter-modal-form {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.newsletter-modal-form input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%);
  background: transparent;
}

.newsletter-modal-form button {
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  background: var(--accent-color);
  color: var(--contrast-color);
}

@media (max-width: 576px) {
  .newsletter-modal-form {
    flex-direction: column;
  }

  .newsletter-modal-form button {
    width: 100%;
  }
}

/* ===============================
   PREMIUM LANGUAGE TOGGLE
   =============================== */

/* Trigger */
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  transition: 0.25s ease;
}

.lang-trigger:hover {
  opacity: 0.75;
}

/* Circular flag container */
.lang-flag,
.flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: inline-block;
}

/* English Flag (UK SVG inline) */
.flag-en {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'>\
<clipPath id='t'><circle cx='30' cy='15' r='15'/></clipPath>\
<g clip-path='url(%23t)'>\
<rect width='60' height='30' fill='%23012169'/>\
<path d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/>\
<path d='M0,0 L60,30 M60,0 L0,30' stroke='%23C8102E' stroke-width='4'/>\
<rect x='25' width='10' height='30' fill='%23fff'/>\
<rect y='10' width='60' height='10' fill='%23fff'/>\
<rect x='27' width='6' height='30' fill='%23C8102E'/>\
<rect y='12' width='60' height='6' fill='%23C8102E'/>\
</g></svg>");
}

/* Egyptian Flag SVG */
.flag-ar {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'>\
<clipPath id='c'><circle cx='30' cy='15' r='15'/></clipPath>\
<g clip-path='url(%23c)'>\
<rect width='60' height='10' y='0' fill='%23CE1126'/>\
<rect width='60' height='10' y='10' fill='%23fff'/>\
<rect width='60' height='10' y='20' fill='%23000'/>\
</g></svg>");
}

/* German Flag SVG */
.flag-de {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'>\
<clipPath id='c'><circle cx='30' cy='15' r='15'/></clipPath>\
<g clip-path='url(%23c)'>\
<rect width='60' height='10' y='0' fill='%23000000'/>\
<rect width='60' height='10' y='10' fill='%23DD0000'/>\
<rect width='60' height='10' y='20' fill='%23FFCE00'/>\
</g></svg>");
}

/* Chevron */
.lang-chevron {
  opacity: 0.6;
  transition: 0.25s ease;
}

.lang-dropdown.show .lang-chevron {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.lang-menu {
  min-width: 170px;
  border-radius: 16px;
  padding: 10px 0;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(20,20,20,0.95);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Items */
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 0.9rem;
  position: relative;
  transition: 0.25s ease;
}

/* Remove Bootstrap hover background */
.lang-menu .dropdown-item:hover {
  background: transparent;
}

/* Subtle underline effect */
.lang-item::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 6px;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: 0.25s ease;
  opacity: 0.4;
}

.lang-item:hover::after {
  width: calc(100% - 40px);
}

/* Active language */
.active-lang {
  font-weight: 600;
}

/* iOS Aesthetic Gallery Styles */
:root {
  --ios-radius: 22px;
  --ios-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --ios-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-display-title {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.ios-subtitle {
  color: #86868b;
  font-size: 1.1rem;
}

/* The Grid */
.ios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

/* The Card */
.ios-card {
  text-decoration: none;
  display: block;
  border-radius: var(--ios-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--ios-shadow);
  transition: var(--ios-transition);
}

.ios-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.ios-card-inner {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.ios-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--ios-transition);
}

/* Overlay on hover */
.ios-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ios-card:hover .ios-overlay {
  opacity: 1;
}

/* More Galleries Section */
.ios-divider {
  margin: 80px 0 40px;
  border-color: #e5e5e5;
}

.section-label {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.related-gallery-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-thumb-wrapper {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f5f5f7;
}

.related-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-gallery-card:hover img {
  transform: scale(1.1);
}

.related-gallery-card h5 {
  font-size: 1rem;
  font-weight: 500;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .ios-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  :root {
    --ios-radius: 14px;
  }
}

/* =========================================================
   ROBUST RTL FIX
   ========================================================= */

/* Force the entire LightGallery environment to LTR to fix sliding offsets */
html[dir="rtl"] .lg-container,
html[dir="rtl"] .lg-outer,
html[dir="rtl"] .lg-backdrop,
html[dir="rtl"] .lg-inner,
html[dir="rtl"] .lg-components {
  direction: ltr !important;
  unicode-bidi: isolate;
}

/* Ensure the title and description (sub-html) stay RTL for Arabic readers */
html[dir="rtl"] .lg-sub-html,
html[dir="rtl"] .lg-sub-html * {
  direction: rtl !important;
  text-align: center; /* Or right, based on your preference */
}

/* Fix for thumbnails container in RTL */
html[dir="rtl"] .lg-thumb-outer {
  direction: ltr !important;
}

/* =====================================
   THEME GLASS BOX (Video Section)
   ===================================== */
.theme-glass-box {
  background: rgba(20, 24, 30, 0.65); /* Dark mode default */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border 0.3s ease;
}

/* Overrides when .light-background is active on the body/section */
.light-background .theme-glass-box,
.light-background.theme-glass-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Video Link Buttons - Uses your theme's native color-mix */
.video-link-btn {
  background: color-mix(in srgb, var(--default-color), transparent 96%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  transition: all 0.3s ease;
}

.video-link-btn:hover {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  transform: translateY(-2px);
}

/* =====================================
   VR OVERLAY (BASE STYLES)
   ===================================== */
.vr-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vr-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vr-overlay-content {
  width: 75%;
  height: 90vh;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
}

.vr-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.vr-close:hover {
  color: var(--accent-color, #ff4a17);
}

.kuula-container {
  flex-grow: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* =====================================
   VR OVERLAY MOBILE FIX
   ===================================== */
@media (max-width: 768px) {
  /* 1. Remove the 16:9 video ratio and make the box tall */
  .vr-overlay-content {
    aspect-ratio: auto;
    height: 60vh; /* Increased slightly for a better mobile VR experience */
    width: 95%;
  }
  
  /* 2. Force the Kuula wrapper to fill the new tall box */
  .kuula-container {
    height: 100% !important; 
    border-radius: 16px;
  }

  /* 3. Make the close button slightly larger for mobile tapping */
  .vr-close {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }
}

/* =====================================
   GLOBAL ARABIC TYPOGRAPHY FIX
   ===================================== */

html[lang="ar"] {
  letter-spacing: normal !important;
}

html[lang="ar"] * {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Fix small uppercase label styles */
html[lang="ar"] .section-title,
html[lang="ar"] .hero-title-styled,
html[lang="ar"] .d-inline-flex,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
  letter-spacing: 0 !important;
}

  /* Custom Grid to reorder elements for mobile while keeping desktop layout */
  .tour-section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  @media (min-width: 992px) {
    .tour-section-grid {
      grid-template-columns: 4fr 8fr; /* Mimics col-lg-4 and col-lg-8 */
      gap: 3rem;
      align-items: center;
    }
    .tour-text-block { 
      grid-area: 1 / 1 / 2 / 2; 
      align-self: end; 
    }
    .tour-buttons-block { 
      grid-area: 2 / 1 / 3 / 2; 
      align-self: start; 
    }
    .tour-embed-block { 
      grid-area: 1 / 2 / 3 / 3; 
    }
}
/* =========================================================
   GALLERY TAB BUTTONS (Event Coverage Section)
   ========================================================= */
.gallery-tab-btn {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  width: 100%;
  text-align: left;
  transition: all 0.3s ease;
}

.gallery-tab-btn:hover {
  background: color-mix(in srgb, var(--default-color), transparent 95%);
}

.gallery-tab-btn.active-tab {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-color: var(--accent-color);
}

.jx-knightlab,
.knightlab-logo,
.juxtapose-name {
  display: none !important;
}

/* ================================
   CLEAN JUXTAPOSE STYLE (Corrected)
================================ */

/* Container */
.juxtapose {
  font-family: var(--default-font);
  border-radius: 1rem;
  overflow: hidden;
}

/* Remove default harsh edges */
.juxtapose .jx-slider {
  border: none;
  box-shadow: none;
}

/* Keep handle container wide for usability */
.juxtapose .jx-handle {
  width: 50px;
  margin-left: -25px; /* re-center */
}

/* Vertical line */
.juxtapose .jx-control {
  width: 4px;
  background: var(--accent-color);
  box-shadow: 0 0 25px color-mix(in srgb, var(--accent-color), transparent 60%);
}

/* Center draggable bar */
.juxtapose .jx-controller {
  width: 10px;
  height: 70px;
  background: var(--accent-color);
  border-radius: 20px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color), transparent 70%);
}

/* Arrows */
.juxtapose .jx-arrow.jx-left {
  border-color: transparent var(--contrast-color) transparent transparent;
}

.juxtapose .jx-arrow.jx-right {
  border-color: transparent transparent transparent var(--contrast-color);
}

/* =========================================================
   JUXTAPOSE LABELS
   ========================================================= */

.juxtapose .jx-label {
  background: color-mix(in srgb, var(--surface-color), transparent 10%) !important;
  backdrop-filter: blur(12px) !important;
  color: var(--heading-color) !important;
  border-radius: 30px !important;
  
  /* Make text smaller & adjust padding to match */
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%) !important;
  
  /* Push away from the top edge */
  top: 20px !important;
  opacity: 1 !important; /* Force them to stay visible */
}

/* Push "Before" away from the left edge */
.juxtapose .jx-image.jx-left .jx-label {
  left: 20px !important;
}

/* Push "After" away from the right edge */
.juxtapose .jx-image.jx-right .jx-label {
  right: 20px !important;
  left: auto !important; /* Prevent default left-alignment conflict */
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .juxtapose .jx-label {
    top: 12px !important;
    font-size: 0.6rem !important;
    padding: 3px 10px !important;
  }
  .juxtapose .jx-image.jx-left .jx-label { left: 12px !important; }
  .juxtapose .jx-image.jx-right .jx-label { right: 12px !important; }
}

/* Remove KnightLab credit */
a.jx-knightlab {
  display: none !important;
}

html[lang="ar"] .hero-content {
  direction: rtl;
  text-align: right !important;
}

/* =====================================
   BOOTSTRAP ICONS RTL FLIP
   ===================================== */

/* 1. Flip directional icons in Arabic/RTL pages */
html[dir="rtl"] .bi-arrow-right,
html[dir="rtl"] .bi-arrow-left,
html[dir="rtl"] .bi-chevron-right,
html[dir="rtl"] .bi-chevron-left,
html[dir="rtl"] .bi-arrow-right-short,
html[dir="rtl"] .bi-arrow-up-right,
html[dir="rtl"] .bi-arrow-left-short,
html[dir="rtl"] .bi-arrow-right-circle,
html[dir="rtl"] .bi-arrow-left-circle,
html[dir="rtl"] .bi-quote {
  transform: scaleX(-1);
  display: inline-block; /* Transforms only work on block/inline-block elements */
}

/* 2. Fix the hover animations on your pagination buttons */
/* Because transform overwrites previous transforms, we have to combine scaleX and translateX for RTL */
html[dir="rtl"] .pagination-btn:hover .bi-arrow-right {
  transform: scaleX(-1) translateX(3px); 
}

html[dir="rtl"] .pagination-btn:hover .bi-arrow-left {
  transform: scaleX(-1) translateX(-3px);
}

/* 3. Optional Utility Class: Add class="rtl-flip" to any HTML element you want to force-flip */
html[dir="rtl"] .rtl-flip {
  transform: scaleX(-1);
  display: inline-block;
}

/* =========================================================
   SOCIAL SHARE SYSTEM (Floating, Top, & Bottom CTA)
   ========================================================= */
/* =========================================================
   SOCIAL SHARE SYSTEM
   ========================================================= */

/* =========================================================
   SOCIAL SHARE SYSTEM (Minimalist Ghost & Glow Edition)
   ========================================================= */

/* The Ghost Outline Base */
.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  
  /* Transparent base with a subtle, thin border */
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  color: color-mix(in srgb, var(--default-color), transparent 30%); /* Dimmed icon */
  
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  
  /* Snappy, responsive transition */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.share-btn.btn-lg {
  width: 56px;
  height: 56px;
  border-width: 1.5px;
}

.share-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.share-btn.btn-lg svg {
  width: 24px;
  height: 24px;
}

/* Hover Base - Lift and scale icon */
.share-btn:hover {
  transform: translateY(-4px);
  background: var(--surface-color); /* Fills with a dark surface color */
}

.share-btn:hover svg {
  transform: scale(1.15);
}

/* Neon Glow Brand Colors 
   On hover, the border, icon, and drop-shadow light up with the brand color 
*/
.share-facebook:hover { 
  border-color: #1877F2; 
  color: #1877F2; 
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.35); 
}
.share-x:hover { 
  border-color: #ffffff; 
  color: #ffffff; 
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25); 
}
.light-background .share-x:hover { 
  border-color: #14171A; 
  color: #14171A; 
  box-shadow: 0 6px 20px rgba(20, 23, 26, 0.25); 
}
.share-linkedin:hover { 
  border-color: #0A66C2; 
  color: #0A66C2; 
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.35); 
}
.share-whatsapp:hover { 
  border-color: #25D366; 
  color: #25D366; 
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35); 
}
.share-native:hover, .share-copy:hover { 
  border-color: var(--accent-color); 
  color: var(--accent-color); 
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-color), transparent 65%); 
}

/* Floating Sidebar (Desktop Only) - No container, just floating lines */
.social-share-floating {
  position: fixed;
  right: 16px;
  bottom: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 9998;
}

/* Bottom CTA Share Box - Sleek, sharp minimalist surface */
.social-share-cta {
  background: var(--surface-color);
  border: none;
  /* A single accent line on top gives it an editorial, structured feel */
  border-top: 2px solid color-mix(in srgb, var(--accent-color), transparent 40%);
  border-radius: 8px; /* Sharper corners for a brutalist/minimalist edge */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  color: var(--heading-color);
}

/* Align Top Share on larger screens */
@media (min-width: 768px) {
  .top-share {
    max-width: 700px;
    margin: 0 auto;
  }
}

/* =====================================
   RTL Fixes (Arabic Support)
   ===================================== */
html[dir="rtl"] .social-share-floating,
html[lang="ar"] .social-share-floating {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .scroll-top,
html[lang="ar"] .scroll-top {
  right: auto;
  left: 15px;
}

/* =========================================================
   MOBILE BOTTOM SHARE BAR (Glass Style)
   ========================================================= */
.social-share-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9997;
  
  /* Deep Glass Effect matching your theme */
  background: color-mix(in srgb, var(--surface-color), transparent 20%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  
  /* env(safe-area-inset-bottom) pads the bar so it sits above the iPhone home indicator */
  padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
  justify-content: space-evenly;
  align-items: center;
  
  /* Smooth slide-up entrance */
  transform: translateY(100%);
  animation: slideUpShare 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s forwards;
}

@keyframes slideUpShare {
  to { transform: translateY(0); }
}

/* Make buttons inside the mobile bar completely flat to avoid double-blurs */
.social-share-mobile .share-btn {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* CRITICAL SPACING ADJUSTMENTS FOR MOBILE 
  Pushes the scroll-to-top button up so it doesn't get covered by the new bottom bar 
*/
@media (max-width: 991px) {
  .scroll-top.active {
    bottom: calc(85px + env(safe-area-inset-bottom)) !important;
  }
  
  /* Prevent the footer text from being hidden behind the sticky bar */
  .footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

/* ==========================================================================
   Explore More - Bento Box Layout
   ========================================================================== */

/* Base Card Styling & Hover Effects */
.bento-card {
  transition: transform 0.3s ease;
  border: none;
  /* Ensures the image zoom doesn't spill out of the rounded corners */
  border-radius: 16px !important; 
}

.bento-card:hover {
  transform: translateY(-5px);
}

/* Image Zoom Effect on Hover */
.bento-card img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bento-card:hover img {
  transform: scale(1.05);
}

/* Better Text Readability Overlay */
/* Overrides the solid Bootstrap background for a smoother gradient */
.bento-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%) !important;
  transition: padding 0.3s ease;
}

.bento-card:hover .bento-overlay {
  padding-bottom: 2rem !important; /* Slight upward nudge of text on hover */
}

/* Typography Adjustments */
.bento-card h3, 
.bento-card h4 {
  font-family: var(--heading-font, 'Raleway', sans-serif);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff !important;
}

/* Heights for Mobile & Tablet */
.bento-card.large {
  min-height: 400px;
}

.bento-card.small {
  min-height: 220px;
}

/* Desktop Grid Alignment */
@media (min-width: 992px) {
  /* Forces both columns to be the exact same height on large screens */
  .explore-bento .row > div {
    height: 520px; 
  }
  
  .bento-card.large {
    height: 100%;
  }
}

/* ==========================================================================
   Dark Theme Adjustments
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  /* If your primary color is too bright in dark mode for the 3rd card */
  .bento-card.bg-primary {
    background-color: var(--primary-color-dark, #0d6efd) !important; 
  }
}

