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

/* ==========================================
   CSS VARIABLES & DESIGN SYSTEM (HSL & HEX)
   ========================================== */
:root {
  /* Brand colors matching LOGO */
  --brand-red: #C91F26;
  --brand-red-light: #e53935;
  --brand-blue: #1E3A8A;
  --brand-blue-light: #2563eb;
  --brand-navy: #0F172A;
  --brand-navy-light: #1e293b;
  --brand-gray: #F8FAFC;
  --brand-cyan: #06b6d4;
  --brand-gold: #f59e0b;

  /* Theme Defaults: Dark Theme is default */
  --bg-primary: linear-gradient(135deg, #0F172A 0%, #152238 100%);
  --bg-secondary: linear-gradient(135deg, #1E293B 0%, #111e3b 100%);
  --bg-tertiary: #0f172a;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(30, 41, 59, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  --gradient-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(201, 31, 38, 0.85) 100%);
  --gradient-accent: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-blue) 100%);
  --accent-glow: 0 0 25px rgba(201, 31, 38, 0.35);

  /* Shared settings */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme overrides triggered by data-theme="light" */
[data-theme="light"] {
  /* Light theme premium adjustments */
  --bg-primary: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  --bg-secondary: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
  --bg-tertiary: #f1f5f9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-hover: rgba(15, 23, 42, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.06);
  --gradient-hero: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(201, 31, 38, 0.85) 100%);
  --gradient-accent: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-blue) 100%);
  --accent-glow: 0 0 20px rgba(201, 31, 38, 0.2);
}

--bg-primary: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
--bg-secondary: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
--bg-tertiary: #f1f5f9;
--text-primary: #0F172A;
--text-secondary: #475569;
--text-muted: #94a3b8;
--border-color: rgba(15, 23, 42, 0.08);
--border-color-hover: rgba(15, 23, 42, 0.16);
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
--shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
--shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
--glass-bg: rgba(255, 255, 255, 0.75);
--glass-border: rgba(15, 23, 42, 0.06);
--gradient-hero: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(201, 31, 38, 0.85) 100%);
--gradient-accent: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-blue) 100%);
--accent-glow: 0 0 20px rgba(201, 31, 38, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-primary) no-repeat fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

a:hover {
  color: var(--brand-red);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-color-hover);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================
   REUSABLE UTILITIES
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background: var(--brand-red);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff !important;
  box-shadow: var(--accent-glow);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 31, 38, 0.5);
  background: var(--gradient-accent);
  filter: brightness(1.1);
}

background: var(--brand-red);
color: #fff !important;
box-shadow: 0 4px 15px rgba(201, 31, 38, 0.35);
border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 31, 38, 0.5);
  background: var(--brand-red-light);
}

.btn-secondary {
  border: 2px solid var(--border-color-hover);
  color: var(--text-primary);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
  transform: translateY(-3px);
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--brand-blue);
  border-color: #fff;
  transform: translateY(-3px);
}

/* ==========================================
   HEADER NAVIGATION & MEGA MENU
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(10, 17, 35, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: padding var(--transition-normal),
    background var(--transition-normal),
    box-shadow var(--transition-normal);
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(10, 17, 35, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Nav links — always white on dark glass header */
.header .nav-link {
  color: #ffffff !important;
  opacity: 0.9;
}

.header .nav-link:hover,
.header .nav-link.active,
.header .nav-item:hover .nav-link {
  color: var(--brand-red) !important;
  opacity: 1;
}

.header .theme-toggle {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.header .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.header .hamburger span {
  background-color: #ffffff !important;
}

/* Light theme header override */
[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .header .nav-link {
  color: var(--text-primary) !important;
  opacity: 0.9;
}

[data-theme="light"] .header .nav-link:hover,
[data-theme="light"] .header .nav-link.active,
[data-theme="light"] .header .nav-item:hover .nav-link {
  color: var(--brand-red) !important;
  opacity: 1;
}

[data-theme="light"] .header .theme-toggle {
  color: var(--text-primary) !important;
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .header .hamburger span {
  background-color: var(--text-primary) !important;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 42px;
  /*background: #ffffff !important;*/
  padding: 4px 14px !important;
  border-radius: var(--radius-sm) !important;
  /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;*/
  transition: transform var(--transition-fast) !important;
}

.logo-link:hover {
  transform: translateY(-2px) !important;
}

.logo-link img {
  height: 100%;
  width: auto;
}

/* Header logo style: white background in dark mode only */
.header .logo-link img {
  background: #ffffff !important;
  padding: 5px;
  border-radius: var(--radius-sm);
}

[data-theme="light"] .header .logo-link img {
  background: transparent !important;
  padding: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0.85;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

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

.nav-link:hover,
.nav-link.active,
.nav-item:hover .nav-link {
  opacity: 1;
  color: var(--brand-red);
}

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

/* Standard Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 220px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 1100;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--glass-bg);
  border-left: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: block;
}

.dropdown-link:hover {
  background: var(--brand-red);
  color: #fff !important;
  padding-left: 16px;
}

/* MEGA MENU FOR SERVICES */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  left: calc(-50vw + 50%);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  padding: 40px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 1099;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu-row {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 40px;
}

.mega-menu-col {
  flex: 1;
}

.mega-menu-col h5 {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.mega-menu-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-menu-col ul li a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.mega-menu-col ul li a:hover {
  color: var(--brand-red);
  padding-left: 6px;
}

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

/* Theme Toggle */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: var(--border-color);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--border-color-hover);
  transform: scale(1.05);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-fast);
}

/* ==========================================
   HYBRID SWIPER HERO BANNER
   ========================================== */
.hero-accordion {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
}

.hero-accordion-panel {
  flex: 1 1 30%;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.hero-accordion-panel:hover {
  transform: translateY(-5px);
}

.hero-panel-bg {
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-panel-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay-opacity, 0.4));
  /* Dynamic opacity */
  z-index: 1;
}

.hero-accordion-content {
  position: relative;
  z-index: 2;
  /* Ensure content above overlay */
}

.hero-accordion-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}

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

  .hero-accordion-panel {
    flex: 1 1 100%;
    min-height: 200px;
  }

  .hero-accordion-content {
    padding: 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-scroll-indicator {
    transform: scale(0.8);
    bottom: 10px;
  }
}

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

.hero-video-bg,
.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-swiper .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark overlay with gradient for depth */
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.3) 100%);
  z-index: 1;
}

.hero-overlay-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-text-box {
  max-width: 700px;
}

.hero-title {
  color: #ffffff !important;
}

.hero-description {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ==========================================
   PAGE BANNER / BREADCRUMB
   ========================================== */
.page-banner {
  /* Premium gradient background */
  background: var(--gradient-hero), url('../assets/images/hero-bg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-blend-mode: overlay;
  min-height: 320px;
  padding: 0;
  margin-top: 70px;
  /* offset fixed header */
  position: relative;
  text-align: center;
  overflow: hidden;
  /* Subtle glass border */
  border-bottom: 4px solid var(--brand-gold);
}

/* Semi-transparent overlay for readability */
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 17, 35, 0.55) 0%, rgba(10, 17, 35, 0.70) 100%);
  z-index: 1;
}

/* Gradient separator for banner */
.page-banner::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: var(--gradient-accent);
  z-index: 2;
}


/* Semi-transparent dark overlay — lets bg image show through */
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 17, 35, 0.55) 0%,
      rgba(10, 17, 35, 0.70) 100%);
  z-index: 1;
}

/* Centered content block */
.page-banner-content {
  position: relative;
  z-index: 2;
  padding: 70px 20px 55px;
}

/* Light Theme subpage banner overrides */
[data-theme="light"] .page-banner {
  background-color: #1e3a8a;
}

[data-theme="light"] .page-banner::before {
  background: linear-gradient(to bottom,
      rgba(15, 23, 42, 0.50) 0%,
      rgba(15, 23, 42, 0.65) 100%);
}



.page-banner h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  margin: 0 0 14px 0;
  line-height: 1.15;
  color: #fff !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
}

.breadcrumb {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb a {
  color: var(--brand-cyan);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

/* Mobile banner */
@media (max-width: 768px) {
  .page-banner {
    margin-top: 70px;
    min-height: 220px;
  }

  .page-banner-content {
    padding: 50px 20px 40px;
  }

  .page-banner h1 {
    font-size: 1.85rem;
  }
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 105px;
  width: 56px;
  height: 56px;
  background-color: var(--brand-blue);
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.back-to-top:hover {
  background-color: var(--brand-red);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================
   FLOATING CONTACT MENU
   ========================================== */
.floating-contact-menu {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Main Trigger Button */
.contact-menu-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  border: none;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(201, 31, 38, 0.4);
  position: relative;
  transition: all var(--transition-normal);
}

.contact-menu-trigger:hover {
  transform: scale(1.05);
  background: var(--brand-red-light);
}

.contact-menu-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(201, 31, 38, 0.4);
  animation: trigger-pulse 2s infinite;
  pointer-events: none;
}

@keyframes trigger-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 31, 38, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(201, 31, 38, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(201, 31, 38, 0);
  }
}

/* Options Container (Hidden by default, expands upwards) */
.contact-menu-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.floating-contact-menu.active .contact-menu-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Sub-Buttons style */
.contact-menu-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff !important;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.contact-menu-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* WhatsApp Sub-Button */
.whatsapp-btn {
  background-color: #25D366;
}

.whatsapp-btn:hover {
  background-color: #20ba5a;
}

/* Form Sub-Button */
.form-btn {
  background-color: var(--brand-blue);
}

.form-btn:hover {
  background-color: var(--brand-blue-light);
}

/* Tooltip labels on hover */
.contact-menu-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  transform-origin: right;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.contact-menu-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ==========================================
   ABOUT FEATURES & PROFILE
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-feat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.about-feat-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-red);
  box-shadow: var(--shadow-md);
}

.about-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(201, 31, 38, 0.1);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

/* ==========================================
   SERVICES CARDS
   ========================================== */
.services-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

.services-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.services-grid.active {
  display: grid;
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
}

/* Portfolio Cross Layout */
.cross-row {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.cross-row-reverse {
  flex-direction: row-reverse;
}

.cross-col-image {
  flex: 0 0 400px;
  max-width: 45%;
}

.cross-col-info {
  flex: 1;
}

.cross-col-image .cross-img-box {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 320px;
}

.cross-col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.cross-col-image:hover img {
  transform: scale(1.05);
}

.cross-col-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

@media (max-width: 768px) {

  .cross-row,
  .cross-row-reverse {
    flex-direction: column;
  }

  .cross-col-image,
  .cross-col-info {
    width: 100%;
  }

  .cross-col-info {
    padding: 16px 0;
  }
}

/* ==========================================
   PORTFOLIO MASONRY GRID & CARDS
   ========================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.premium-project-card {
  position: relative;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.premium-project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-cyan);
}

.premium-project-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.premium-project-card:hover .premium-project-card-img {
  transform: scale(1.08);
}

.premium-project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  transition: opacity 0.4s ease;
}

.premium-project-card:hover .premium-project-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.premium-project-card-content {
  position: relative;
  z-index: 3;
  padding: 30px 25px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-project-card:hover .premium-project-card-content {
  transform: translateY(0);
}

.premium-project-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-cyan);
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-project-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.premium-project-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.premium-project-card:hover .premium-project-desc {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   CLIENT MARQUEE & TICKER
   ========================================== */
.clients-marquee-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.clients-marquee-container {
  display: flex;
  overflow: hidden;
  position: relative;
}

.clients-marquee-track {
  display: flex;
  align-items: center;
  gap: 80px;
  animation: marquee 30s linear infinite;
  min-width: 100%;
}

.marquee-logo {
  height: 40px;
  opacity: 0.5;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.marquee-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

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

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================
   TESTIMONIALS SLIDER
   ========================================== */
.testimonials-slider-box {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  padding: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--brand-red);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.testimonial-slide:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(201, 31, 38, 0.08);
  border-color: rgba(201, 31, 38, 0.3);
  border-top-color: var(--brand-blue);
  /* Dynamically swap accent color on hover! */
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--brand-blue);
  opacity: 0.35;
  margin-bottom: 16px;
  transition: color var(--transition-fast);
}

.testimonial-slide:hover .quote-icon {
  color: var(--brand-red);
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-author h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.testimonial-author p {
  font-size: 0.8rem;
  color: var(--brand-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--text-muted);
  opacity: 0.5;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot-btn.active {
  background: var(--brand-red) !important;
  opacity: 1;
  transform: scale(1.25);
}

/* ==========================================
   BLOG GRID & DETAILS
   ========================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
}

.blog-img-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-img-box img {
  transform: scale(1.05);
}

.blog-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ==========================================
   CAREERS GRID & JOBS
   ========================================== */
.career-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

.jobs-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-details span {
  display: inline-block;
  background: var(--bg-primary);
  color: var(--brand-red);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* ==========================================
   CONTACT DETAILS & FORM
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201, 31, 38, 0.1);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-form-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-control {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

select.form-control option {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(201, 31, 38, 0.15);
}

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

/* ==========================================
   MODALS & OVERLAYS
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-color);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
  transform: translateY(-50%);
}

.wizard-progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-red);
  z-index: 1;
  transform: translateY(-50%);
  transition: width var(--transition-normal);
}

.wizard-step-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  z-index: 2;
  color: var(--text-muted);
}

.wizard-step-node.active {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.wizard-step-node.completed {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.wizard-form-step {
  display: none;
}

.wizard-form-step.active {
  display: block;
}

.checkbox-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-card {
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.checkbox-card input {
  display: none;
}

.checkbox-card.selected {
  border-color: var(--brand-red);
  background: rgba(201, 31, 38, 0.05);
}

.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

/* Success notification toast */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: -350px;
  width: 320px;
  background: var(--bg-secondary);
  border-left: 4px solid var(--brand-cyan);
  box-shadow: var(--shadow-lg);
  border-radius: 4px;
  padding: 16px 20px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.active {
  right: 30px;
}

.toast-icon {
  font-size: 1.5rem;
  color: var(--brand-cyan);
}

.toast-message h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.toast-message p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%);
  color: #fff;
  padding: 80px 0 30px 0;
  border-top: 4px solid var(--brand-red, #C91F26);
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand-logo {
  height: 40px;
  margin-bottom: 20px;
}

.footer-brand-logo img {
  height: 100%;
  background: #ffffff !important;
  padding: 5px;
  border-radius: var(--radius-sm);
}

.footer-desc {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--brand-red);
}

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

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--brand-red);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* ==========================================
   ADMIN PANEL SYSTEM STYLES
   ========================================== */
.admin-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  padding-top: 70px;
}

.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
  background: var(--brand-red);
  color: #fff !important;
}

.admin-content {
  padding: 40px;
  background: transparent;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.admin-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-stat-card h3 {
  font-size: 2.25rem;
  font-weight: 800;
}

.admin-stat-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.admin-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(201, 31, 38, 0.1);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Tables */
.admin-table-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  margin-bottom: 30px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.admin-table th {
  background: var(--bg-tertiary);
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: var(--border-color);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 20px;
}

.login-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
}

.login-card h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
  text-align: center;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 600;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Scroll reveal CSS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.25rem;
  }

  .about-grid,
  .why-grid,
  .career-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .section-title {
    font-size: 2.25rem;
  }

  .header {
    padding-top: 15px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 100px 30px;
    gap: 20px;
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 105;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: none !important;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-item.active-mobile-dropdown .dropdown-menu {
    display: flex;
  }

  .dropdown-link {
    font-size: 0.95rem;
    padding: 8px 12px;
  }

  .mega-menu {
    position: static;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    transform: none;
    display: none;
  }

  .nav-item.active-mobile-dropdown .mega-menu {
    display: block;
  }

  .mega-menu-row {
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }

  .mega-menu-col h5 {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .nav-actions {
    margin-right: 40px;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .checkbox-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .admin-container {
    grid-template-columns: 1fr !important;
    margin-top: 75px !important;
  }

  .admin-sidebar {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 12px 16px !important;
    gap: 10px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .admin-sidebar::-webkit-scrollbar {
    display: none;
  }

  .admin-sidebar-link {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    flex-shrink: 0 !important;
  }

  .admin-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 24px 16px !important;
    min-height: calc(100vh - 150px) !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.35rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

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

  .contact-form-box {
    padding: 24px;
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .job-card button {
    width: 100%;
  }
}

/* ==========================================
   PORTFOLIO ACCORDION LAYOUT
   ========================================== */
.portfolio-accordion-section {
  padding: 50px 0;
  overflow: hidden;
  background: transparent;
}

.portfolio-accordion {
  display: flex;
  width: 100%;
  height: 65vh;
  min-height: 500px;
  max-height: 750px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.accordion-panel {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  transition: flex 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

/* Background image & gradient overlay */
.accordion-panel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: -2;
}

.accordion-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.2) 100%);
  z-index: -1;
  transition: opacity 0.45s ease;
}

.accordion-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(201, 31, 38, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* Active / Hover column scaling */
@media (min-width: 768px) {
  .accordion-panel:hover {
    flex: 1.8;
  }

  .accordion-panel:not(:hover) {
    flex: 0.6;
  }

  .portfolio-accordion:not(:hover) .accordion-panel {
    flex: 1;
  }
}

.accordion-panel:hover .accordion-panel-bg {
  transform: scale(1.05);
}

.accordion-panel:hover::before {
  opacity: 0.4;
}

.accordion-panel:hover::after {
  opacity: 1;
}

.accordion-content {
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.accordion-content h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
  text-align: center;
  transition: all 0.4s ease;
  font-family: var(--font-heading);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
}

.accordion-content h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--brand-red);
  margin: 10px auto 0 auto;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.accordion-panel:hover .accordion-content h3::after {
  width: 80px;
}

.accordion-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  text-align: center;
}

.accordion-details p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.accordion-panel:hover .accordion-details {
  max-height: 200px;
  opacity: 1;
  margin-top: 10px;
}

@media (min-width: 768px) {
  .accordion-panel:hover .accordion-content h3 {
    text-align: left;
  }

  .accordion-panel:hover .accordion-details {
    text-align: left;
  }

  .accordion-panel:hover .accordion-content h3::after {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .portfolio-accordion {
    flex-direction: column;
    height: auto;
  }

  .accordion-panel {
    height: 180px;
    flex: none;
  }

  .accordion-panel.active {
    height: 320px;
  }
}

/* ==========================================
   HOMEPAGE FULLSCREEN HERO ACCORDION
   ========================================== */
.hero-accordion-section {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #797a7c;
  z-index: 0;
  /* below fixed header */
}

.hero-accordion {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-accordion-panel {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 40px 100px 50px;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.3, 1);
  z-index: 0;
  /* was 1 — prevents stacking context trapping header */
  border: none;
  background: transparent;
  text-align: left;
  isolation: isolate;
  /* self-contained stacking context */
}

/* Background image — slight scale for breathing room */
.hero-panel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1s cubic-bezier(0.25, 1, 0.3, 1),
    filter 0.8s ease;
  z-index: 0;
  transform: scale(1.08);
  filter: brightness(0.55) saturate(1.05);
}

/* Layer 1 — cinematic bottom-up dark shadow (always on) */
.hero-accordion-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Strong black bottom shadow for text */
    linear-gradient(to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.55) 28%,
      rgba(0, 0, 0, 0.18) 55%,
      transparent 78%),
    /* Top vignette for premium depth */
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      transparent 35%),
    /* Left edge shadow */
    linear-gradient(to right,
      rgba(0, 0, 0, 0.30) 0%,
      transparent 30%);
  z-index: -1;
  transition: opacity 0.6s ease;
}

/* Layer 2 — brand colour glow (appears on hover / active) */
.hero-accordion-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 90%,
      rgba(201, 31, 38, 0.28) 0%,
      rgba(30, 58, 138, 0.14) 50%,
      transparent 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Content above overlays — inside the isolated panel context */
.hero-accordion-content {
  position: relative;
  z-index: 1;
  /* above ::before and ::after within isolated panel */
  width: 100%;
  max-width: 520px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1);
}

/* ---- DESKTOP (≥769px) ---- */
@media (min-width: 769px) {

  /* Diagonal skew */
  .hero-accordion-panel {
    transform: skewX(-8deg);
    margin-right: -2px;
  }

  .hero-panel-bg {
    left: -12%;
    width: 124%;
    transform: skewX(8deg) scale(1.08);
  }

  .hero-accordion-content {
    transform: skewX(8deg);
  }

  /* Expand hovered, shrink others */
  .hero-accordion:hover .hero-accordion-panel:hover,
  .hero-accordion:hover .hero-accordion-panel:focus-within {
    flex: 2.2;
    outline: none;
  }

  .hero-accordion:hover .hero-accordion-panel:not(:hover):not(:focus-within) {
    flex: 0.55;
  }

  /* Default active state */
  .hero-accordion:not(:hover) .hero-accordion-panel.active {
    flex: 2.2;
  }

  .hero-accordion:not(:hover) .hero-accordion-panel:not(.active) {
    flex: 0.55;
  }

  /* Image — dark moody brightness on all states */
  .hero-accordion-panel:hover .hero-panel-bg,
  .hero-accordion-panel:focus-within .hero-panel-bg,
  .hero-accordion:not(:hover) .hero-accordion-panel.active .hero-panel-bg {
    transform: skewX(8deg) scale(1.18);
    filter: brightness(0.55) saturate(1.15);
  }

  .hero-accordion:hover .hero-accordion-panel:not(:hover):not(:focus-within) .hero-panel-bg,
  .hero-accordion:not(:hover) .hero-accordion-panel:not(.active) .hero-panel-bg {
    filter: brightness(0.35) saturate(0.7);
  }

  /* Red-blue gradient border on each panel — via inset box-shadow */
  .hero-accordion-panel {
    box-shadow:
      inset 1px 0 0 0 rgba(201, 31, 38, 0.25),
      inset -1px 0 0 0 rgba(30, 58, 138, 0.25);
  }

  .hero-accordion-panel:hover,
  .hero-accordion:not(:hover) .hero-accordion-panel.active {
    box-shadow:
      inset 2px 0 0 0 rgba(201, 31, 38, 0.7),
      inset -2px 0 0 0 rgba(30, 58, 138, 0.7),
      inset 0 0 60px rgba(201, 31, 38, 0.08);
  }

  /* Glow on active/hover */
  .hero-accordion-panel:hover::after,
  .hero-accordion-panel:focus-within::after,
  .hero-accordion:not(:hover) .hero-accordion-panel.active::after {
    opacity: 1;
  }

  /* Collapsed panels: center title vertically */
  .hero-accordion:hover .hero-accordion-panel:not(:hover):not(:focus-within),
  .hero-accordion:not(:hover) .hero-accordion-panel:not(.active) {
    justify-content: center;
    padding: 0;
    align-items: center;
    text-align: center;
  }

  .hero-accordion:hover .hero-accordion-panel:not(:hover):not(:focus-within) .hero-accordion-content,
  .hero-accordion:not(:hover) .hero-accordion-panel:not(.active) .hero-accordion-content {
    transform: skewX(8deg);
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-accordion:hover .hero-accordion-panel:not(:hover):not(:focus-within) .hero-accordion-content h2,
  .hero-accordion:not(:hover) .hero-accordion-panel:not(.active) .hero-accordion-content h2 {
    font-size: 1.25rem;
    letter-spacing: 3px;
    margin-bottom: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
  }

  .hero-accordion:hover .hero-accordion-panel:not(:hover):not(:focus-within) .hero-accordion-content h2::after,
  .hero-accordion:not(:hover) .hero-accordion-panel:not(.active) .hero-accordion-content h2::after {
    display: none;
  }
}

/* h2 accent line */
.hero-accordion-content h2 {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0;
  font-family: var(--font-heading);
  letter-spacing: -1.5px;
  line-height: 1.1;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 8px 24px rgba(0, 0, 0, 0.7),
    0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.hero-accordion-content h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--brand-red);
  margin-top: 16px;
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.25, 1, 0.3, 1),
    background-color 0.4s ease,
    box-shadow 0.4s ease;
  box-shadow: 0 0 8px rgba(201, 31, 38, 0.5);
}

.hero-accordion-panel:hover .hero-accordion-content h2::after,
.hero-accordion-panel:focus-within .hero-accordion-content h2::after,
.hero-accordion:not(:hover) .hero-accordion-panel.active .hero-accordion-content h2::after {
  width: 100px;
  background: var(--brand-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.7), 0 0 32px rgba(6, 182, 212, 0.3);
}

/* Details reveal */
.hero-accordion-details {
  max-height: 0;
  opacity: 0;
  transform: translateY(20px);
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.25, 1, 0.3, 1),
    opacity 0.4s ease 0.1s,
    transform 0.5s cubic-bezier(0.25, 1, 0.3, 1);
}

.hero-accordion-details p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin: 18px 0 28px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-accordion-panel:hover .hero-accordion-details,
.hero-accordion-panel:focus-within .hero-accordion-details,
.hero-accordion:not(:hover) .hero-accordion-panel.active .hero-accordion-details {
  max-height: 350px;
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility */
.hero-accordion-panel:focus {
  outline: none;
}

.hero-accordion-panel:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: -3px;
}

/* ---- MOBILE (≤768px) ---- */
@media (max-width: 768px) {
  .hero-accordion-section {
    height: calc(100svh - 70px);
    margin-top: 70px;
  }

  .hero-accordion {
    flex-direction: column;
  }

  .hero-accordion-panel {
    flex: none;
    width: 100%;
    height: 25%;
    padding: 16px 24px;
    justify-content: flex-end;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    transform: none !important;
    text-align: left;
  }

  .hero-panel-bg {
    left: 0 !important;
    width: 100% !important;
    transform: scale(1.05) !important;
  }

  .hero-accordion-content {
    transform: none !important;
    writing-mode: horizontal-tb !important;
    max-width: 100%;
  }

  .hero-accordion-content h2 {
    font-size: 1.5rem !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 0 !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    white-space: normal !important;
  }

  .hero-accordion-panel.active {
    height: 52%;
    justify-content: flex-end;
    padding: 16px 24px 32px;
  }

  .hero-accordion-panel:not(.active) {
    height: 24%;
    justify-content: center;
    padding: 12px 24px;
  }

  .hero-accordion-panel.active .hero-accordion-details {
    max-height: 250px;
    opacity: 1;
    transform: translateY(0);
  }

  .hero-accordion-panel:not(.active) .hero-accordion-content h2::after {
    display: none;
  }

  .hero-accordion-panel.active .hero-accordion-content h2::after {
    width: 55px;
    background: var(--brand-cyan);
  }

  .hero-accordion-content h2::after {
    margin-top: 8px;
    height: 3px;
    width: 30px;
  }

  .hero-accordion-details p {
    font-size: 0.9rem;
    margin: 10px 0 14px 0;
  }
}


/* ==========================================
   HERO ACCORDION — ANIMATIONS
   ========================================== */

/* ---- Keyframes ---- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

@keyframes heroSlideIn {
  from {
    opacity: 0;
    transform: scaleX(0.85) skewX(-8deg);
  }

  to {
    opacity: 1;
    transform: scaleX(1) skewX(-8deg);
  }
}

@keyframes heroSlideInMobile {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.4;
  }

  33% {
    transform: translateY(-30px) translateX(12px) scale(1.2);
    opacity: 0.7;
  }

  66% {
    transform: translateY(-55px) translateX(-8px) scale(0.9);
    opacity: 0.5;
  }

  100% {
    transform: translateY(-90px) translateX(4px) scale(1);
    opacity: 0;
  }
}

@keyframes scrollBounce {

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

  50% {
    transform: translateY(12px);
    opacity: 0.3;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 31, 38, 0);
  }

  50% {
    box-shadow: 0 0 20px 6px rgba(201, 31, 38, 0.35);
  }
}

@keyframes numberReveal {
  from {
    opacity: 0;
    transform: skewX(8deg) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: skewX(8deg) translateY(0);
  }
}

/* ---- Page-load panel entry ---- */
@media (min-width: 769px) {
  .hero-accordion-panel:nth-child(1) {
    animation: heroSlideIn 0.9s cubic-bezier(0.25, 1, 0.3, 1) 0.1s both;
  }

  .hero-accordion-panel:nth-child(2) {
    animation: heroSlideIn 0.9s cubic-bezier(0.25, 1, 0.3, 1) 0.25s both;
  }

  .hero-accordion-panel:nth-child(3) {
    animation: heroSlideIn 0.9s cubic-bezier(0.25, 1, 0.3, 1) 0.4s both;
  }
}

@media (max-width: 768px) {
  .hero-accordion-panel:nth-child(1) {
    animation: heroSlideInMobile 0.7s ease 0.1s both;
  }

  .hero-accordion-panel:nth-child(2) {
    animation: heroSlideInMobile 0.7s ease 0.25s both;
  }

  .hero-accordion-panel:nth-child(3) {
    animation: heroSlideInMobile 0.7s ease 0.4s both;
  }
}

/* ---- Active panel content stagger ---- */
.hero-accordion:not(:hover) .hero-accordion-panel.active .hero-accordion-content h2,
.hero-accordion-panel:hover .hero-accordion-content h2 {
  animation: heroFadeUp 0.6s cubic-bezier(0.25, 1, 0.3, 1) 0.15s both;
}

.hero-accordion:not(:hover) .hero-accordion-panel.active .hero-accordion-details,
.hero-accordion-panel:hover .hero-accordion-details {
  animation: heroFadeUp 0.6s cubic-bezier(0.25, 1, 0.3, 1) 0.3s both;
}

/* ---- Panel number badges ---- */
.hero-panel-number {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%) skewX(8deg);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-heading);
  pointer-events: none;
  z-index: 2;
  transition: color 0.4s ease, opacity 0.4s ease;
  animation: numberReveal 0.8s ease 0.5s both;
}

.hero-accordion-panel:hover .hero-panel-number,
.hero-accordion:not(:hover) .hero-accordion-panel.active .hero-panel-number {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  .hero-panel-number {
    display: none;
  }
}

/* ---- CTA Button shimmer effect ---- */
.hero-cta-btn {
  position: relative;
  overflow: hidden;
  animation: pulseGlow 3s ease-in-out infinite;
}

.hero-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(120deg,
      transparent 20%,
      rgba(255, 255, 255, 0.25) 50%,
      transparent 80%);
  background-size: 200% 100%;
  animation: shimmer 2.8s linear infinite;
  border-radius: inherit;
}

/* ---- Floating ambient particles ---- */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: particleFloat linear infinite;
}

/* Unique positions and timings for each particle */
.hero-particles span:nth-child(1) {
  left: 12%;
  bottom: 20%;
  width: 3px;
  height: 3px;
  animation-duration: 7s;
  animation-delay: 0s;
  background: rgba(201, 31, 38, 0.7);
}

.hero-particles span:nth-child(2) {
  left: 28%;
  bottom: 35%;
  width: 5px;
  height: 5px;
  animation-duration: 9s;
  animation-delay: 1.2s;
  background: rgba(255, 255, 255, 0.5);
}

.hero-particles span:nth-child(3) {
  left: 45%;
  bottom: 15%;
  width: 3px;
  height: 3px;
  animation-duration: 8s;
  animation-delay: 2.5s;
  background: rgba(6, 182, 212, 0.6);
}

.hero-particles span:nth-child(4) {
  left: 62%;
  bottom: 28%;
  width: 4px;
  height: 4px;
  animation-duration: 10s;
  animation-delay: 0.8s;
  background: rgba(255, 255, 255, 0.4);
}

.hero-particles span:nth-child(5) {
  left: 75%;
  bottom: 18%;
  width: 3px;
  height: 3px;
  animation-duration: 6s;
  animation-delay: 3s;
  background: rgba(201, 31, 38, 0.5);
}

.hero-particles span:nth-child(6) {
  left: 88%;
  bottom: 40%;
  width: 5px;
  height: 5px;
  animation-duration: 11s;
  animation-delay: 1.5s;
  background: rgba(255, 255, 255, 0.3);
}

.hero-particles span:nth-child(7) {
  left: 20%;
  bottom: 55%;
  width: 2px;
  height: 2px;
  animation-duration: 8s;
  animation-delay: 4s;
  background: rgba(6, 182, 212, 0.5);
}

.hero-particles span:nth-child(8) {
  left: 55%;
  bottom: 45%;
  width: 3px;
  height: 3px;
  animation-duration: 9s;
  animation-delay: 2s;
  background: rgba(255, 255, 255, 0.5);
}

/* ---- Scroll indicator ---- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
  animation: heroFadeUp 1s ease 1.2s both;
}

.hero-scroll-label {
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1.5px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.hero-scroll-dot {
  width: 100%;
  height: 18px;
  background: linear-gradient(to bottom, var(--brand-red), var(--brand-cyan));
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-scroll-indicator {
    bottom: 16px;
  }

  .hero-scroll-line {
    height: 36px;
  }
}

/* ==== Portfolio Grid ==== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
  grid-auto-rows: 260px;
  /* consistent stretched height */
  /* Auto theme background for grid container */
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  animation: slideUpFade 0.7s ease-out both;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
}

.portfolio-item:hover .gallery-hover-btn {
  opacity: 1 !important;
}

.portfolio-img-box {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.portfolio-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-bg {
  transform: scale(1.08);
}

/* Portfolio Info Section (Text Below Image) */
.portfolio-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
}

.portfolio-info .portfolio-cat {
  margin-bottom: 8px;
}

.portfolio-info h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.portfolio-info .client-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.portfolio-action-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 24px;
  font-size: 0.85rem;
  border-radius: 30px;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 2;
}

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

.overlay-content {
  color: #fff;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  transition-delay: 0.1s;
}

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

.portfolio-cat {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-cyan);
  margin-bottom: 8px;
  display: inline-block;
  font-weight: 700;
}

.overlay-content h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.overlay-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.portfolio-link {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--brand-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0.8) rotate(-45deg);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(201, 31, 38, 0.4);
}

.portfolio-item:hover .portfolio-link {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.portfolio-link:hover {
  background: #fff;
  color: var(--brand-red);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Add styles for filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.portfolio-filters .filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.portfolio-filters .filter-btn:hover,
.portfolio-filters .filter-btn.active {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
  box-shadow: 0 4px 15px rgba(201, 31, 38, 0.3);
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Dynamic Logo Filter for Dark/Light Mode */
.theme-logo-filter {
  filter: grayscale(1) brightness(0) invert(1) !important;
}
[data-theme="light"] .theme-logo-filter {
  filter: grayscale(1) brightness(0) !important;
}
/* ==========================================
   TESTIMONIALS MASONRY GRID
   ========================================== */
.testimonials-masonry {
  column-count: 3;
  column-gap: 24px;
  margin-top: 40px;
}
.testimonial-masonry-card {
  break-inside: avoid;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
}
.testimonial-masonry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-color: var(--brand-red);
}
.testimonial-masonry-icon {
  font-size: 2rem;
  color: var(--brand-red);
  opacity: 0.2;
  position: absolute;
  top: 20px;
  right: 30px;
}
.testimonial-masonry-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
  font-style: italic;
}
.testimonial-masonry-author {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}
.testimonial-masonry-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}
.testimonial-masonry-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text-primary);
}
.testimonial-masonry-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  font-weight: 500;
}
.testimonial-masonry-rating {
  color: var(--brand-gold);
  font-size: 0.8rem;
  margin-top: 5px;
}
@media (max-width: 991px) {
  .testimonials-masonry { column-count: 2; }
}
@media (max-width: 768px) {
  .testimonials-masonry { column-count: 1; }
}
/* ==========================================
   SMOOTH CONTINUOUS AUTO SCROLL FOR TESTIMONIALS
   ========================================== */
.testimonials-slider-box .swiper-wrapper {
  transition-timing-function: linear !important;
}