/*
================================================================================
JB-SIGNS WEBSITE STYLESHEET - FULLY RESPONSIVE
================================================================================

This file contains all styles for the JB-signs website.
Completely overhauled for perfect responsiveness across all devices.

Table of Contents:
1. CSS Variables & Configuration
2. Base Styles & Reset
3. Typography
4. Layout & Containers
5. Navigation
6. Hero Section
7. Content Sections
8. Components
9. Forms
10. Footer
11. Modals & Gallery
12. FAQ & Special Sections
13. Utilities & Animations
14. RESPONSIVE DESIGN (All Media Queries)

Author: JB-signs
Version: 3.0 - Fully Responsive
Last Updated: 2025
================================================================================
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ============================================================================
   1. CSS VARIABLES & CONFIGURATION
   ============================================================================ */

:root {
  /* UNIFIED COLOR PALETTE */
  --primary-color: #cfaf4d;     /* Gold - Primary brand accent */
  --secondary-color: #2c3e50;   /* Dark blue - Headers and important text */
  --text-color: #333333;        /* Dark gray - Body text */
  --accent-color: var(--primary-color);
  --light-gray: #f8fafc;        /* Light background */
  --border-gray: #e2e8f0;       /* Borders and dividers */
  --white: #ffffff;             /* Pure white */
  
  /* UNIFIED SPACING SYSTEM - 8px Grid */
  --space-1: 0.5rem;    /* 8px */
  --space-2: 1rem;      /* 16px */
  --space-3: 1.5rem;    /* 24px */
  --space-4: 2rem;      /* 32px */
  --space-5: 2.5rem;    /* 40px */
  --space-6: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-12: 6rem;     /* 96px */
  
  /* UNIFIED TYPOGRAPHY SCALE */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */
  --text-5xl: 3rem;     /* 48px */
  
  /* UNIFIED DESIGN TOKENS */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  
  /* UNIFIED EFFECTS */
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.2s ease;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.12);
  --radius-sm: 0.5rem;   /* 8px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1rem;     /* 16px */
  --border-radius: var(--radius-lg);
  
  /* LAYOUT */
  --container-max-width: 75rem;
  --header-height: 4.4375rem;
  
  /* Base Font Size */
  font-size: 16px;
}

/* ============================================================================
   2. BASE STYLES & RESET
   ============================================================================ */

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Document Settings */
html {
  scroll-behavior: smooth;
  font-size: clamp(15px, 0.6vw + 14px, 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

body.menu-open {
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

html, body {
  height: 100%;
}

/* Main content centering with flexbox - CRITICAL LAYOUT */
main {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  flex: 1 !important;
}

/* Remove text decorations */
a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================================
   3. TYPOGRAPHY
   ============================================================================ */

/* UNIFIED TYPOGRAPHY SYSTEM */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

h1 {
  font-size: var(--text-5xl);
  color: var(--secondary-color);
}

h2 {
  font-size: var(--text-4xl);
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--text-2xl);
  color: var(--text-color);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--text-xl);
  color: var(--text-color);
  margin-bottom: var(--space-2);
}

/* Text Elements */
p {
  margin-bottom: var(--space-3);
  line-height: var(--line-height-normal);
  font-size: var(--text-base);
}

.lead {
  font-size: var(--text-3xl);
  color: var(--primary-color);
  margin-bottom: var(--space-4);
  font-weight: 500;
  line-height: var(--line-height-normal);
}

.section-subtitle {
  text-align: center;
  font-size: var(--text-lg);
  color: #64748b;
  margin-bottom: var(--space-8);
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Montserrat', sans-serif;
  line-height: var(--line-height-relaxed);
}

/* ============================================================================
   4. LAYOUT & CONTAINERS
   ============================================================================ */

/* Main Container - CRITICAL CENTERING */
.container {
  max-width: var(--container-max-width) !important;
  margin: 0 auto !important;
  padding: 0 clamp(1rem, 5vw, 2.5rem) !important;
  width: 100% !important;
}

/* Sections within main should take full width but center their content - CRITICAL LAYOUT */
main > section {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Content Spacing - Professional margins */
.service-content,
.about-content {
  margin-left: 1rem;
  margin-right: 1rem;
}

/* Ensure full-width elements maintain their layout */
.hero-section,
.main-header,
footer {
  margin-left: 0;
  margin-right: 0;
}

/* ============================================================================
   5. NAVIGATION
   ============================================================================ */

/* Main Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(0.625rem);
  -webkit-backdrop-filter: blur(0.625rem);
  border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

/* Header States */
.main-header.dark-nav {
  background: #193b5a;
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.main-header.scrolled {
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
}

.main-header.header-hidden {
  transform: translateY(-100%);
}

/* Navigation Content */
.main-nav {
  padding: clamp(0.75rem, 1.5vw, 1.125rem) 0;
}

.nav-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: var(--header-height);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: clamp(2.125rem, 1.5vw + 2rem, 2.5rem);
  width: auto;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: clamp(1rem, 2.5vw, 1.875rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: clamp(0.95rem, 0.25vw + 0.9rem, 1rem);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  font-family: 'Inter', sans-serif;
  padding: 0.125rem 0;
}

.dark-nav .nav-links a {
  color: var(--white);
}

/* Link Hover Effects */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -0.3125rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: var(--primary-color);
  transition: var(--transition);
}

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

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

.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a:focus-visible {
  outline: 0.125rem solid currentColor;
  outline-offset: 0.25rem;
}

.mobile-menu {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: var(--radius-md);
  border: 0;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-sm);
  color: var(--text-color);
  cursor: pointer;
  transition: background var(--transition-normal), box-shadow var(--transition-normal), color var(--transition-normal);
}

.mobile-menu:focus-visible {
  outline: 0.125rem solid var(--primary-color);
  outline-offset: 0.25rem;
}

.mobile-menu:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
}

.dark-nav .mobile-menu {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: var(--white);
}

.mobile-menu-line {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu[aria-expanded="true"] .mobile-menu-line:nth-of-type(2) {
  opacity: 0;
  transform: translateX(-0.25rem);
}

.mobile-menu[aria-expanded="true"] .mobile-menu-line:nth-of-type(1) {
  transform: translateY(0.3125rem) rotate(45deg);
}

.mobile-menu[aria-expanded="true"] .mobile-menu-line:nth-of-type(3) {
  transform: translateY(-0.3125rem) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(0.125rem);
  -webkit-backdrop-filter: blur(0.125rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================================================
   6. HERO SECTION
   ============================================================================ */

/* Hero Container */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  width: 100%;
  margin-top: var(--header-height);
  background-color: var(--secondary-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Background Video */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 1;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.video-background.active {
  opacity: 1;
}

/* Legacy support for single video */
.hero-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay to darken the video for better text readability */
.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 56.25rem;
  width: 100%;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 6vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

/* Hero Typography */
.hero-title {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  line-height: 1.2;
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  color: var(--white);
  font-size: clamp(1.125rem, 3.5vw, 1.5rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0.9;
  animation: fadeInUp 1s ease-out;
  font-family: 'Montserrat', sans-serif;
}

/* Hero Call-to-Action */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.5s;
  animation-fill-mode: backwards;
  width: 100%;
  max-width: 32rem;
}

/* ============================================================================
   7. CONTENT SECTIONS
   ============================================================================ */

/* UNIFIED SECTION SPACING */
section {
  padding: clamp(3.5rem, 7vw, var(--space-12)) 0;
}

.about-section {
  background: var(--white);
}

.services-section {
  background: var(--light-gray);
}

.webshops-section {
  background: var(--white);
}

.freelance-section {
  background: var(--light-gray);
}

.contact-section {
  background: var(--white);
}

/* Freelance Administratie Section Styles */
.freelance-grid {
  display: flex;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.freelance-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  transition: var(--transition-normal);
  width: 100%;
  max-width: 800px;
  border: 1px solid var(--border-gray);
  position: relative;
  overflow: hidden;
}

.freelance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition-normal);
}

.freelance-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.freelance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.freelance-icon {
  font-size: var(--text-4xl);
  color: var(--primary-color);
  margin-bottom: var(--space-4);
  display: block;
}

.freelance-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--text-color);
  font-weight: 600;
}

.freelance-intro {
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-color);
}

.freelance-features {
  list-style: none;
  margin-bottom: var(--space-4);
  padding: 0;
}

.freelance-features li {
  margin-bottom: var(--space-2);
  padding-left: var(--space-3);
  position: relative;
  font-size: var(--text-sm);
  line-height: var(--line-height-relaxed);
}

.freelance-features li:before {
  content: '\2022';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: var(--text-base);
  font-weight: bold;
}

.freelance-highlight {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--primary-color);
  margin: var(--space-4) 0;
}

@media (max-width: 768px) {
  .freelance-grid {
    flex-direction: column;
    padding: 0 var(--space-2);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Service Detail Page Sections */
.service-section {
  padding: clamp(3.5rem, 7vw, var(--space-12)) 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-gray);
}

.service-section:nth-child(even) {
  background: var(--light-gray);
}

.service-content {
  max-width: 50rem;
  margin: 0 auto;
  padding: 1.25rem;
}

.service-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin: 1.25rem 0;
}

/* Section Headings */
.service-section h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.875rem;
  color: var(--secondary-color);
  padding: 0 1.25rem;
}

.service-section h2 i {
  color: var(--primary-color);
  font-size: 2rem;
  flex-shrink: 0;
  margin-right: 0.625rem;
}

.service-section .section-subtitle {
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
}

/* About Section Specific */
.about-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.about-text {
  flex: 1;
}

/* Mission Points */
.mission-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1.875rem 0;
}

.mission-item {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 250px;
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--primary-color);
}

.mission-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(207, 175, 77, 0.15);
}

.mission-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.mission-item:hover i {
  transform: scale(1.2);
}

.mission-item span {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.4;
}

/* Media query for mission points */
@media (max-width: 992px) {
  .mission-points {
    gap: 1rem;
  }
  
  .mission-item {
    min-width: 220px;
  }
}

@media (max-width: 768px) {
  .mission-points {
    flex-direction: column;
  }
  
  .mission-item {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .mission-item:last-child {
    margin-bottom: 0;
  }
}

/* Statistics */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.875rem;
  margin-top: 3.75rem;
}

.stat-item {
  text-align: center;
  padding: 1.875rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-0.3125rem);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.625rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-color);
}

/* ============================================================================
   8. COMPONENTS
   ============================================================================ */

/* UNIFIED BUTTON SYSTEM */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1vw, var(--space-1));
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: clamp(0.95rem, 0.25vw + 0.9rem, 1rem);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  text-align: center;
  min-width: clamp(9.5rem, 40vw, 12rem);
}

/* Primary Button */
.cta-button {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Secondary Button */
.cta-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
  backdrop-filter: blur(4px);
}

.cta-button.secondary:hover {
  background: var(--white);
  color: var(--secondary-color);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Small Button Variant */
.cta-button.small {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  min-width: 120px;
}

/* Service Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: 1.875rem;
  margin-top: 3.75rem;
}

/* UNIFIED SERVICE CARDS */
.service-item {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-gray);
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition-normal);
}

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

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.service-item i {
  font-size: var(--text-4xl);
  color: var(--primary-color);
  margin-bottom: var(--space-4);
  display: block;
}

.service-item h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--text-color);
  font-weight: 600;
}

.service-item ul {
  list-style: none;
  margin-bottom: var(--space-4);
  padding: 0;
  flex-grow: 1;
}

.service-item ul li {
  margin-bottom: var(--space-2);
  padding-left: var(--space-3);
  position: relative;
  font-size: var(--text-sm);
  line-height: var(--line-height-relaxed);
}

.service-item ul li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: var(--text-base);
  font-weight: bold;
}

.service-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: var(--transition-normal);
  margin-bottom: 0;
  margin-top: auto;
  font-size: var(--text-sm);
}

.service-link i {
  font-size: var(--text-xs);
  margin-bottom: 0;
  transition: var(--transition-normal);
}

.service-item:hover .service-link {
  gap: var(--space-2);
}

/* Webshops Grid */
.webshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 1.875rem;
  margin-top: 3.75rem;
}

.webshop-item {
  text-decoration: none;
  color: var(--text-color);
}

.webshop-content {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gray);
}

.webshop-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition-normal);
}

.webshop-content:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.webshop-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.webshop-content i {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-3);
  color: var(--primary-color);
}

.webshop-content h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.webshop-content p {
  margin-bottom: var(--space-3);
  opacity: 0.8;
  font-size: var(--text-sm);
  line-height: var(--line-height-relaxed);
}

.platform-features {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 0.625rem;
  justify-content: center;
  margin: 1.25rem 0;
}

.platform-features span {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.3125rem 0.9375rem;
  border-radius: 1.25rem;
  font-size: 0.9rem;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-top: 1.25rem;
}

.learn-more i {
  font-size: 0.9rem;
  line-height: 1;
  margin-bottom: 0;
}

/* Service Highlights */
.service-highlight {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 40px 0;
  padding: 30px;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

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

.service-highlight.reverse {
  flex-direction: row-reverse;
}

.service-image {
  max-width: 200px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  transition: var(--transition);
}

.service-highlight:hover .service-image {
  transform: scale(1.05);
}

.service-highlight-content {
  flex: 1;
}

.service-highlight-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* Partner Logos */
.partner-logos {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center;
  gap: 40px !important;
  margin: 40px 0 !important;
}

.partner-logo {
  height: auto;
  max-height: 120px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
  margin: 15px;
  padding: 10px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  filter: grayscale(100%);
  opacity: 0.8;
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  filter: grayscale(0%);
  opacity: 1;
}

/* Special styling for Office logo in cloud services */
.office-logo {
  max-height: 150px !important;
  margin: 20px auto !important;
}

/* Center single logo containers */
.partner-logos:has(.office-logo) {
  justify-content: center !important;
}

.partner-logos .it-image-container {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 10px !important;
}

/* IT-Infrastructuur Specific Image Styling */
.it-infrastructuur-section img,
.it-section img,
#it-infrastructuur img,
[data-category="it-infrastructuur"] img,
img[src^="Media/IT-Infrastructuur/"] {
  max-width: 400px !important;
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* TeamViewer Logo Sizing */
img[src*="teamviewer.jpg"],
img[alt*="TeamViewer"] {
  max-width: 200px !important;
  max-height: 80px !important;
}

/* IT Logo Sizing - Consistent proportions */
img[src*="LENOVO.png"],
img[src*="Brother.png"],
img[src*="Ubiquiti.png"],
img[src*="skyhi-500.png"],
img[src*="bitdefender.jpg"],
img[src*="synology.jpg"],
img[src*="NORTON.jpg"],
img[src*="Microsoft-Defender"],
img[alt*="IT logo"],
img[alt*="IT Logo"] {
  max-width: 180px !important;
  max-height: 100px !important;
  object-fit: contain !important;
}

/* Smart Home Features Grid */
.smart-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.smart-feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.smart-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.smart-feature-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--light-gray);
}

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

.smart-feature-card:hover .smart-feature-image img {
  transform: scale(1.05);
}

.smart-feature-content {
  padding: 25px;
  flex-grow: 1;
}

.smart-feature-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.smart-feature-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* Smart Feature Card as Link */
.smart-feature-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.smart-feature-link:hover {
  text-decoration: none;
}

.smart-feature-link .smart-feature-content h3,
.smart-feature-link .smart-feature-content p {
  transition: var(--transition-normal);
}

.smart-feature-link:hover .smart-feature-content h3 {
  color: var(--accent-color);
}

/* Separate Feature Sections - Simple Card Approach */
.service-feature-separate {
  margin: 30px 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.service-feature-separate h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: none;
  font-weight: 600;
}

.service-feature-separate h3 i {
  margin-right: 8px;
  color: var(--primary-color);
}

.feature-separate-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.feature-separate-image {
  flex: 0 0 180px;
  height: 140px;
  overflow: hidden;
  border-radius: 6px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9ecef;
}

.feature-separate-image img {
  max-width: 150px;
  max-height: 100px;
  object-fit: contain;
}

.feature-separate-text {
  flex: 1;
}

.feature-separate-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 15px;
}

.feature-notice {
  display: inline-block;
  padding: 6px 12px;
  background: #fff3cd;
  color: #856404;
  font-weight: 500;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-top: 10px;
}

.feature-notice i {
  margin-right: 4px;
}

.feature-cta {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  font-weight: 500;
  border-radius: 4px;
  transition: opacity 0.2s;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 10px;
}

.feature-cta:hover {
  opacity: 0.9;
  color: white;
  text-decoration: none;
}

.feature-cta i {
  margin-right: 5px;
}

.feature-clickable {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.feature-clickable:hover {
  text-decoration: none;
}

.feature-clickable:hover .feature-cta {
  opacity: 0.85;
}

/* Responsive for Separate Features */
@media (max-width: 768px) {
  .service-feature-separate {
    margin: 25px 0;
  }
  
  .service-feature-separate h3 {
    font-size: 1.3rem;
  }
  
  .feature-separate-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .feature-separate-image {
    flex: 0 0 auto;
    width: 100%;
    height: 120px;
  }
  
  .feature-separate-image img {
    max-width: 200px;
    max-height: 80px;
  }
  
  .feature-separate-text p {
    font-size: 0.95rem;
  }
}

/* Smart Features Grid - 2 Column Layout with Images on Top */
.smart-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 30px 0;
}

.smart-feature-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.smart-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.smart-feature-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smart-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smart-feature-content {
  padding: 25px;
}

.smart-feature-content h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.smart-feature-content h3 i {
  margin-right: 8px;
  color: var(--primary-color);
}

.smart-feature-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0;
}

/* Responsive for Smart Features */
@media (max-width: 768px) {
  .smart-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .smart-feature-image {
    height: 200px;
  }
  
  .smart-feature-content {
    padding: 20px;
  }
  
  .smart-feature-content h3 {
    font-size: 1.2rem;
  }
}

/* IT Image Container */
.it-image-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 30px !important;
}

/* IT Images in Gallery */
.gallery-item-image-container img[src^="Media/IT-Infrastructuur/"] {
  max-width: 400px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* Service Lists */
.service-list {
  margin: 20px 0 30px;
  padding-left: 20px;
}

.service-list li {
  margin-bottom: 12px;
  position: relative;
  line-height: 1.5;
}

.service-list li strong {
  color: var(--secondary-color);
}

/* Webdesign Showcase */
.webdesign-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.webdesign-text {
  flex: 0.6;
}

.webdesign-text h2 {
  text-align: left;
  margin-bottom: 20px;
}

.webdesign-image-container {
  flex: 1.4;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.webdesign-image-container:hover {
  transform: translateY(-5px);
}

.webdesign-image {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.webdesign-image:hover {
  opacity: 0.9;
}

/* Templates Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.template-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition-normal);
  border: 1px solid var(--border-gray);
  height: 120px;
  min-height: 120px;
  max-height: 120px;
}

.template-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.template-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: var(--transition-normal);
  flex-shrink: 0;
  padding: 8px;
  margin-bottom: 8px;
}

.template-item:hover i {
  transform: scale(1.1);
}

.template-item span {
  font-weight: 600;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.1;
  flex-shrink: 0;
  word-wrap: break-word;
  hyphens: auto;
}

/* Gelegenheidsdrukwerk Image Sizing */
.service-highlight img[src*="gelegenheidsdrukwerk.jpg"] {
  max-width: 300px;
  height: auto;
  object-fit: contain;
}

/* Carousel */
.carousel-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 10;
}

.carousel-arrow {
  background: var(--primary-color);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.carousel-arrow:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.webdesign-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.webdesign-image-container:hover .webdesign-image {
  transform: scale(1.05);
}

.webdesign-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px;
  color: var(--white);
  text-align: center;
  transform: translateY(10px);
}

.webdesign-overlay h3 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 600;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.webdesign-overlay p {
  font-size: 1.4rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.webdesign-image-container:hover .webdesign-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.webdesign-image-container:hover .webdesign-overlay h3,
.webdesign-image-container:hover .webdesign-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* Logodesign Section */
.logodesign-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
  flex-direction: row-reverse;
}

.logodesign-text {
  flex: 1;
}

.logodesign-image-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.logodesign-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.logodesign-image-container:hover {
  transform: translateY(-5px);
}

.logodesign-image-container:hover .logodesign-image {
  transform: scale(1.05);
}

/* Projects Section */
.projects-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background-color: var(--light-gray);
}

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

.project-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-preview {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-item:hover .project-preview img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-overlay h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.project-overlay p {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.project-item:hover .project-overlay h3,
.project-item:hover .project-overlay p {
  transform: translateY(0);
  opacity: 1;
}

.view-project {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-20px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-item:hover .view-project {
  opacity: 1;
  transform: translateY(0);
}

.view-project i {
  transition: transform 0.3s ease;
}

.view-project:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

.view-project:hover i {
  transform: rotate(90deg);
}

/* ============================================================================
   9. FORMS
   ============================================================================ */

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-top: 60px;
}

/* Contact Information */
.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.contact-info p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.contact-info i {
  color: var(--primary-color);
  margin-right: 15px;
  font-size: 1.2rem;
  width: 20px;
}

/* Hours Grid */
.hours-grid {
  display: grid;
  gap: 15px;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: var(--white);
  border-radius: 8px;
}

.hours-item .day {
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}



/* ============================================================================
   10. FOOTER
   ============================================================================ */

footer {
  background: var(--secondary-color);
  color: var(--white);
  padding: 1.25rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 3.75rem 0;
  text-align: center;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: top;
}

.footer-section p {
  margin: 0.9375rem 0;
  text-align: center;
}

.footer-logo {
  width: 11.25rem;
  height: auto;
  margin-bottom: 1.25rem;
}

.footer-section h4 {
  margin-bottom: 1.5625rem;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.9375rem;
}

.footer-section ul li a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.1rem;
  opacity: 0.8;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  opacity: 1;
}

/* Contact Details in Footer */
.contact-details {
  margin: 20px 0;
}

.contact-details p {
  margin-bottom: 10px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: var(--transition);
  opacity: 0.8;
}

.social-links a:hover {
  color: var(--primary-color);
  opacity: 1;
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   11. MODALS - REDESIGNED LAYOUT SYSTEM
   ============================================================================ */

/* Main Modal Container */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 20px;
  box-sizing: border-box;
}

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

/* Modal Content Container - Fixed Size, No Scrolling */
.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 1400px;
  width: 95%;
  height: 85vh;
  max-height: 900px;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

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

/* Modal Header - Title Only (10% height) */
.modal-header {
  position: relative;
  padding: 16px 32px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10%;
  min-height: 60px;
  max-height: 80px;
  flex-shrink: 0;
}

.project-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  text-align: center;
}

/* Close Button - Top Right */
.close-modal {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
  color: #64748b;
  z-index: 10;
}

.close-modal:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  transform: translateY(-50%) scale(1.05);
}

.close-modal:active {
  transform: translateY(-50%) scale(0.95);
}

/* Modal Body - Main Container (90% height) */
.modal-body {
  height: 90%;
  padding: 0;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Main Container: Two Column Layout */
.project-main-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 100%;
  min-height: 0;
}

/* Left Column: Images Section */
.project-images-section {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  min-height: 0;
}

/* Thumbnail Column - Vertical Scrollable */
.gallery-thumbnails {
  width: 120px;
  flex-shrink: 0;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  overflow-y: auto;
  padding: 12px 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.gallery-thumbs::-webkit-scrollbar {
  width: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.gallery-thumbs img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.6;
  border: 2px solid transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-thumbs img:hover {
  opacity: 0.9;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--primary-color);
  box-shadow: 
    0 4px 12px rgba(207, 175, 77, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}

/* Main Image Area */
.gallery-main {
  position: relative;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  transition: transform 0.3s ease;
}

/* Gallery Navigation */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--primary-color);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.06);
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
}

.gallery-main:hover .gallery-nav {
  opacity: 1;
  visibility: visible;
}

.gallery-nav:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 
    0 8px 20px rgba(207, 175, 77, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-nav.prev {
  left: 16px;
}

.gallery-nav.next {
  right: 16px;
}

/* Right Column: Text Content */
.project-text-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
}

/* Description Section (Top of Right Column) */
.project-description-section {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.project-description {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
  text-align: left;
  font-weight: 400;
}

/* Specs and Results Section (Bottom of Right Column) */
.project-specs-results-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
}

.project-specs {
  padding: 24px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  overflow-y: auto;
}

.project-results {
  padding: 24px;
  background: #ffffff;
  overflow-y: auto;
}

.project-specs h3,
.project-results h3 {
  font-size: 18px;
  color: var(--text-color);
  margin: 0 0 16px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 6px;
}

.specs-list,
.results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-list li,
.results-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 8px;
}

.specs-list li:before,
.results-list li:before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 16px;
}

.project-info h2 {
  font-size: 28px;
  color: var(--text-color);
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.project-info p {
  font-size: 16px;
  line-height: 1.7;
  color: #64748b;
  margin: 0 0 20px 0;
  font-weight: 400;
}

/* Project Sections */
.project-specs,
.project-results {
  padding: 16px 0;
  margin: 0;
}

.project-specs h3,
.project-results h3 {
  font-size: 18px;
  color: var(--text-color);
  margin: 0 0 12px 0;
  font-weight: 600;
}

.project-specs h3:before {
  content: '';
  display: none;
}

.project-results h3:before {
  content: '';
  display: none;
}

/* Enhanced Lists */
.specs-list,
.results-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.specs-list li,
.results-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 8px;
}

.specs-list li:before,
.results-list li:before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 16px;
}

/* ============================================================================
   12. UTILITIES & ANIMATIONS
   ============================================================================ */

/* Animation Keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

.loaded {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* CTA Banner */
.cta-banner {
  background: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  margin: 30px 0;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.cta-banner:hover {
  transform: translateY(-5px);
}

.cta-banner h3 {
  color: var(--secondary-color);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.cta-banner p {
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.cta-banner .cta-button {
  display: inline-block;
  margin-top: 10px;
}

/* Related Services Section */
.related-services {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gray);
}

.related-services h3 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.related-links {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.related-links .service-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--light-gray);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition-normal);
  border: 1px solid var(--border-gray);
  font-weight: 500;
}

.related-links .service-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-links .service-link i {
  color: var(--primary-color);
  font-size: var(--text-lg);
}

.related-links .service-link:hover i {
  color: var(--white);
}

/* Pricing Section */
.pricing-section {
  padding: clamp(3.5rem, 8vw, 6.25rem) 0;
  background: var(--light-gray);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card.featured {
  transform: translateY(-20px);
  border: 2px solid var(--primary-color);
}

.pricing-card h3 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.price {
  margin: 30px 0;
}

.price .amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--secondary-color);
}

.price .period {
  display: block;
  color: #666;
  font-size: 14px;
  margin-top: 5px;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  margin-bottom: auto;
}

.features li {
  padding: 12px 0;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.features li i {
  color: var(--primary-color);
  font-size: 16px;
}

.pricing-cta {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  width: 100%;
  margin: 20px 0;
}

.pricing-cta:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.pricing-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
}

.pricing-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
}

/* NumNum Intro Section */
.numnum-intro {
  padding: 4rem 0;
  background-color: var(--white);
}

.numnum-intro h2 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 0.5rem;
}

.numnum-intro .section-subtitle {
  text-align: center;
  margin-bottom: 3rem;
}

.numnum-features {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.numnum-features p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.numnum-features ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.numnum-features ul li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.numnum-features ul li i {
  color: var(--primary-color);
  margin-right: 0.75rem;
}

.numnum-service {
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--box-shadow);
}

.numnum-service h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.numnum-service p {
  margin-bottom: 1rem;
}

.numnum-service ul {
  list-style: none;
  margin: 1.5rem 0;
}

.numnum-service ul li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
}

.numnum-service ul li i {
  color: var(--primary-color);
  margin-right: 0.75rem;
  font-size: 0.6rem;
  margin-top: 0.5rem;
}

/* ============================================================================
   13. UTILITIES & ANIMATIONS
   ============================================================================ */

/* Animation Keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-1.875rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.875rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

.loaded {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* ============================================================================
   14. ACCESSIBILITY ENHANCEMENTS
   ============================================================================ */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 0.125rem solid var(--primary-color);
  outline-offset: 0.125rem;
}

/* ============================================================================
   END OF STYLESHEET
   ============================================================================ */

/* ============================================================================
   GALLERY STYLES
   ============================================================================ */

/* Gallery Container */
.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-title {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gallery-subtitle {
  font-size: 1.2rem;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.8;
  font-family: 'Montserrat', sans-serif;
}

/* Enhanced Search and Filter Controls */
.gallery-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid #e9ecef;
}

.search-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1.2rem 1.2rem 1.2rem 3.5rem;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--light-gray);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(207, 175, 77, 0.1);
  transform: translateY(-2px);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.1rem;
  z-index: 10;
  pointer-events: none;
}

.search-input:focus + .search-icon,
.search-container:focus-within .search-icon {
  color: var(--primary-color);
}

.search-clear {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 10;
}

.search-clear:hover {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.9rem 1.8rem;
  border: 2px solid #e9ecef;
  background: white;
  color: var(--text-color);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow);
}

/* Enhanced Gallery Grid - 4 Columns */
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

.gallery-item {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid #e9ecef;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s ease forwards;
}

.gallery-item:nth-child(odd) {
  animation-delay: 0.1s;
}

.gallery-item:nth-child(even) {
  animation-delay: 0.2s;
}

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

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

/* Improved Image Container */
.gallery-item-image-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: var(--transition);
  background: white;
}

.gallery-item:hover .gallery-item-image {
  transform: scale(1.03);
}

/* Image Overlay */
.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay i {
  color: white;
  font-size: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.gallery-item-info {
  padding: 2rem;
}

.gallery-item-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.gallery-item-category {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Montserrat', sans-serif;
}

.gallery-item-description {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Enhanced Loading State */
.loading {
  text-align: center;
  padding: 4rem;
  color: #6c757d;
}

.loading i {
  font-size: 3.5rem;
  color: var(--primary-color);
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loading-text {
  font-size: 1.1rem;
  font-weight: 600;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Enhanced No Results State */
.no-results {
  text-align: center;
  padding: 4rem;
  color: #6c757d;
}

.no-results i {
  font-size: 4rem;
  color: #e9ecef;
  margin-bottom: 1.5rem;
}

.no-results h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.no-results p {
  font-size: 1.1rem;
}

/* Enhanced Image Modal - Modern Design */
.image-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.modal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 95vw;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.2),
    0 12px 32px rgba(0, 0, 0, 0.15);
  transform: scale(0.9) translateY(30px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.image-modal.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-content {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  background: #f8fafc;
}

.modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: #64748b;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1010;
}

.modal-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.modal-title {
  color: var(--text-color);
  margin-top: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  padding: 0 20px;
  max-width: 100%;
  line-height: 1.4;
}

/* Enhanced Statistics */
.gallery-stats {
  display: flex !important;
  justify-content: center !important;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  width: 100%;
  align-items: center;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  min-width: 140px;
  border: 1px solid #e9ecef;
  transition: var(--transition);
  flex: 1;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-number {
  font-size: 3.2rem;
  font-weight: bold;
  color: var(--primary-color);
  display: block;
  line-height: 1;
}

.stat-label {
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Pagination Styles */
.pagination-container {
  margin: 3rem 0;
  text-align: center;
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  background: white;
  color: var(--text-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.pagination-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pagination-dots {
  color: #6c757d;
  font-weight: bold;
  padding: 0 0.5rem;
}

.pagination-info {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}



/* Enhanced focus states for accessibility */
.search-input:focus,
.filter-btn:focus,
.gallery-item:focus {
  outline: 3px solid rgba(207, 175, 77, 0.3);
  outline-offset: 2px;
}  

/* RESPONSIVE MODAL DESIGN - Now handled in comprehensive responsive section */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
  }

  .modal-content {
    width: 95%;
    height: 90vh;
    max-height: none;
  }

  .modal-header {
    padding: 16px 20px;
    min-height: 50px;
  }

  .project-title {
    font-size: 20px;
  }

  .close-modal {
    width: 36px;
    height: 36px;
    right: 16px;
    font-size: 16px;
  }

  .modal-body {
    padding: 0;
  }

  /* Stack layout vertically on mobile */
  .project-main-container {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .project-images-section {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .gallery-thumbnails {
    width: 100%;
    order: 2;
  }

  .gallery-thumbs {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    padding: 8px 12px;
  }

  .gallery-thumbs img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .gallery-main {
    order: 1;
    height: 250px;
  }

  .project-text-column {
    height: auto;
  }

  .project-description-section {
    padding: 16px 20px;
  }

  .project-description {
    font-size: 14px;
  }

  .project-specs-results-section {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .project-specs {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px;
  }

  .project-results {
    padding: 20px;
  }

  .project-specs h3,
  .project-results h3 {
    font-size: 16px;
  }

  .specs-list li,
  .results-list li {
    font-size: 13px;
  }
}

/* Tablet Responsive Design */
@media (min-width: 769px) and (max-width: 1024px) {
  .modal-content {
    width: 90%;
    height: 80vh;
  }

  .project-images-section {
    padding: 20px;
  }

  .gallery-thumbnails {
    width: 100px;
  }

  .gallery-thumbs img {
    height: 70px;
  }

  .project-description-section {
    padding: 18px 20px;
  }

  .project-specs,
  .project-results {
    padding: 20px;
  }
}

/* Large Screen Optimizations */
@media (min-width: 1200px) {
  .modal-content {
    max-width: 1600px;
  }

  .project-images-section {
    padding: 28px;
  }

  .gallery-thumbnails {
    width: 140px;
  }

  .gallery-thumbs img {
    height: 90px;
  }

  .project-description-section {
    padding: 24px 28px;
  }

  .project-specs,
  .project-results {
    padding: 28px;
  }
}

.modal-content {
  max-height: 60vh;

  
  .modal-close {
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .modal-title {
    font-size: 1.1rem;
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .project-info h2 {
    font-size: 24px;
  }
  
  .gallery-main {
    height: 250px;
  }
  
  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .gallery-nav.prev {
    left: 8px;
  }
  
  .gallery-nav.next {
    right: 8px;
  }
}

/* Keyboard Navigation Styles */
.modal:focus-within {
  outline: none;
}

.close-modal:focus,
.gallery-nav:focus {
  outline: 3px solid rgba(207, 175, 77, 0.5);
  outline-offset: 2px;
}

/* Animation Keyframes */
@keyframes modalBackdropFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

@keyframes modalContentSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(40px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Utility Classes */
.img-fallback {
  filter: grayscale(1) opacity(0.5);
}

/* Smooth scroll for modal content */
.modal-body {
  scroll-behavior: smooth;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ============================================================================
   FAQ SECTION STYLES
   ============================================================================ */

.faq-section {
  padding: clamp(3.5rem, 8vw, 6.25rem) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.faq-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.faq-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #e2b04d);
  border-radius: 2px;
}

.faq-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-subtitle {
  font-size: 1.3rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

.faq-list {
  display: grid;
  gap: 24px;
}

.faq-item {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(207, 175, 77, 0.1);
  position: relative;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #e2b04d);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(207, 175, 77, 0.3);
}

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

.faq-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 15px 50px rgba(207, 175, 77, 0.2);
}

.faq-item.active::before {
  transform: scaleX(1);
}

.faq-question {
  padding: 32px 40px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.faq-question-text {
  flex: 1;
  text-align: left;
}

.faq-question::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #e2b04d 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.faq-question:hover::before {
  opacity: 1;
}

.faq-question.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color) 0%, #e2b04d 100%);
}

.faq-question.active::before {
  opacity: 1;
}

.faq-icon {
  font-size: 1.4rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--primary-color);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-question:hover .faq-icon,
.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--white);
  position: relative;
}

.faq-answer.active {
  max-height: 2000px;
}

.faq-content {
  padding: 20px 40px 32px;
  line-height: 1.8;
  color: #475569;
  font-size: 1.05rem;
}

.faq-content h3 {
  color: var(--secondary-color);
  margin: 28px 0 16px 0;
  font-size: 1.25rem;
  font-weight: 600;
  position: relative;
  padding-left: 20px;
}

.faq-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 2px;
}

.faq-content h3:first-child {
  margin-top: 0;
}

.faq-content h4 {
  color: var(--secondary-color);
  margin: 24px 0 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.faq-content li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 8px;
}

.faq-content li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: -16px;
}

.faq-content strong {
  color: var(--secondary-color);
  font-weight: 600;
}

.faq-content p {
  margin-bottom: 20px;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

/* FAQ Search and Filter */
.faq-controls {
  margin-bottom: 40px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.faq-search {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.faq-search input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.faq-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(207, 175, 77, 0.1);
}

.faq-search i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
}

.faq-categories {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.faq-category-btn {
  padding: 12px 24px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  background: var(--white);
  color: #64748b;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.faq-category-btn:hover,
.faq-category-btn.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
}



/* Responsive Design */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0;
  }
  
  .faq-title {
    font-size: 2.5rem;
  }
  
  .faq-subtitle {
    font-size: 1.1rem;
  }
  
  .faq-question {
    padding: 24px 30px;
    font-size: 1.1rem;
  }
  
  .faq-content {
    padding: 0 30px 30px;
    font-size: 1rem;
  }
  
  .faq-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .faq-search {
    max-width: none;
  }
  
  .faq-categories {
    justify-content: center;
  }
  

}

@media (max-width: 480px) {
  .faq-title {
    font-size: 2rem;
  }
  
  .faq-question {
    padding: 20px 25px;
    font-size: 1rem;
  }
  
  .faq-content {
    padding: 0 25px 25px;
  }
  
  .faq-category-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ============================================================================
   SCROLL TO TOP BUTTON
   ============================================================================ */

.scroll-top, .back-to-top {
  position: fixed;
  bottom: 1.875rem;
  right: 1.875rem;
  width: 3.75rem;
  height: 3.75rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.25rem);
  transition: all 0.3s ease;
  box-shadow: 0 0.25rem 1.25rem rgba(207, 175, 77, 0.3);
  z-index: 1000;
}

.scroll-top:hover, .back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(0);
  box-shadow: 0 0.375rem 1.5625rem rgba(44, 62, 80, 0.4);
}

.scroll-top.visible, .back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Note: Responsive sizing handled in main responsive section */

/* ============================================================================
   BREADCRUMBS
   ============================================================================ */

.breadcrumbs {
  background: var(--white);
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.breadcrumbs .container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--secondary-color);
  background: rgba(207, 175, 77, 0.1);
}

.breadcrumb-item.current {
  color: var(--secondary-color);
  font-weight: 700;
  padding: 4px 8px;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .breadcrumbs {
    padding: 15px 0;
  }
  
  .breadcrumb-list {
    font-size: 0.95rem;
  }

  .breadcrumb-separator {
    margin: 0 6px;
  }
}

/* ============================================================================
   NOTIFICATION POPUPS
   ============================================================================ */

.notification-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  pointer-events: none;
  transition: top 0.3s ease;
}

/* When header is hidden, move notifications up */
.main-header.header-hidden ~ .notification-container,
.main-header.header-hidden + .notification-container {
  top: 20px;
}

.notification-popup {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.12);
  border: 1px solid rgba(207, 175, 77, 0.2);
  border-left: 3px solid var(--primary-color);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: auto;
  position: relative;
}

.notification-popup.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-popup.hide {
  transform: translateX(100%);
  opacity: 0;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.notification-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-icon {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: bold;
}

.notification-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  padding: 3px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.notification-close:hover {
  color: var(--secondary-color);
}

.notification-content {
  margin-bottom: 12px;
}

.notification-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary-color);
  line-height: 1.3;
}

.notification-text {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 10px;
}

.notification-action {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.notification-action:hover {
  background: var(--secondary-color);
}

.notification-action i {
  margin-left: 8px;
  font-size: 0.95rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .notification-container {
    top: 80px;
    right: 10px;
    left: 10px;
    max-width: none;
    gap: 8px;
  }
  
  /* When header is hidden on mobile, move notifications up */
  .main-header.header-hidden ~ .notification-container,
  .main-header.header-hidden + .notification-container {
    top: 10px;
  }
  
  .notification-popup {
    padding: 15px;
  }
  
  .notification-title {
    font-size: 1rem;
  }
  
  .notification-text {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .notification-action {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
  
  .notification-icon {
    font-size: 14px;
  }
  
  .notification-close {
    font-size: 14px;
    width: 22px;
    height: 22px;
  }
}

/* Tablet Responsive Design */
/* Price Table Styling */
.price-table-container {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.price-table-container.compact {
  font-size: 0.9rem;
  max-width: 400px;
}

/* Card examples for funeral/mourning cards */
.card-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.card-example {
  flex: 1;
  min-width: 250px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card-example h5 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.font-examples {
  list-style: none;
  padding: 0;
  margin: 0;
}

.font-examples li {
  margin-bottom: 8px;
  padding: 5px;
  background: #fff;
  border-radius: 4px;
  border-left: 3px solid var(--primary-color);
  font-size: 0.95rem;
}

.sample-text {
  font-style: italic;
  color: #555;
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  border-left: 3px solid var(--primary-color);
  font-size: 0.95rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.price-table thead {
  background-color: var(--primary-color);
  color: white;
}

.price-table th,
.price-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

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

.price-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.price-table tbody tr:hover {
  background-color: #f1f1f1;
}

@media (max-width: 768px) {
  .price-table th,
  .price-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

/* End of Price Table Styling */

/* ============================================================================
   QUICK NAVIGATION FOR SERVICE PAGES - VIBY CLEAN DESIGN
   ============================================================================ */

.quick-nav {
  background: #ffffff;
  padding: 50px 0;
  margin: 40px 0;
  position: relative;
}

.quick-nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.quick-nav-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  justify-items: center;
}

@media (max-width: 900px) {
  .quick-nav-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .quick-nav-items {
    grid-template-columns: 1fr;
  }
}

.quick-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 35px 25px;
  background: #ffffff;
  border: 2px solid #f1f3f4;
  border-radius: 16px;
  color: #2c3e50;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  min-height: 160px;
  width: 100%;
  max-width: 220px;
}

.quick-nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #cfaf4d, #e8c547, #cfaf4d);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.quick-nav-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(207, 175, 77, 0.25);
  border-color: #cfaf4d;
  background: linear-gradient(135deg, rgba(207, 175, 77, 0.05), rgba(232, 197, 71, 0.05));
}

.quick-nav-item:hover::before {
  opacity: 0.1;
}

.quick-nav-item:hover i {
  color: #cfaf4d;
  transform: scale(1.1);
  text-shadow: 0 2px 4px rgba(207, 175, 77, 0.3);
}

.quick-nav-item:hover span {
  color: #2c3e50;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(44, 62, 80, 0.1);
}

.quick-nav-item:active {
  transform: translateY(-2px);
}

.quick-nav-item i {
  font-size: 2.8rem;
  color: #6c757d;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}

.quick-nav-item span {
  text-align: center;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #495057;
  transition: color 0.3s ease;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Active state for current section */
.quick-nav-item.active {
  background: linear-gradient(135deg, #cfaf4d, #e8c547);
  color: #ffffff;
  border-color: #cfaf4d;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(207, 175, 77, 0.3);
}

.quick-nav-item.active i {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.quick-nav-item.active span {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.quick-nav-item.active::before {
  opacity: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .quick-nav-items {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
  }
  
  .quick-nav-item {
    padding: 30px 20px;
    min-height: 145px;
    max-width: 200px;
  }
  
  .quick-nav-item i {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .quick-nav {
    padding: 35px 0;
    margin: 30px 0;
  }
  
  .quick-nav-items {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
  }
  
  .quick-nav-item {
    padding: 25px 15px;
    min-height: 130px;
    max-width: 180px;
  }
  
  .quick-nav-item i {
    font-size: 2.2rem;
  }
  
  .quick-nav-item span {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .quick-nav-items {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  
  .quick-nav-item {
    padding: 20px 12px;
    min-height: 115px;
    max-width: 160px;
    border-radius: 12px;
  }
  
  .quick-nav-item i {
    font-size: 2rem;
  }
  
  .quick-nav-item span {
    font-size: 0.65rem;
    line-height: 1.3;
  }
}

/* ============================================================================
   14. COMPREHENSIVE RESPONSIVE DESIGN - ALL MEDIA QUERIES
   ============================================================================ */

/* ===== LARGE SCREENS (1400px and up) ===== */
@media (min-width: 87.5rem) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .modal-content {
    max-width: 100rem;
  }
  
  .project-images-section {
    padding: 1.75rem;
  }
  
  .gallery-thumbnails {
    width: 8.75rem;
  }
  
  .gallery-thumbs img {
    height: 5.625rem;
  }
  
  .project-description-section {
    padding: 1.5rem 1.75rem;
  }
  
  .project-specs,
  .project-results {
    padding: 1.75rem;
  }
}

/* ===== DESKTOP (1200px and up) ===== */
@media (min-width: 75rem) {
  .modal-content {
    max-width: 100rem;
  }
  
  .project-images-section {
    padding: 1.75rem;
  }
  
  .gallery-thumbnails {
    width: 8.75rem;
  }
  
  .gallery-thumbs img {
    height: 5.625rem;
  }
  
  .project-description-section {
    padding: 1.5rem 1.75rem;
  }
  
  .project-specs,
  .project-results {
    padding: 1.75rem;
  }
}

/* ===== LARGE TABLETS (1024px and below) ===== */
@media (max-width: 64rem) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 1.25rem;
  }
  
  .pricing-card.featured {
    transform: translateY(0);
  }
  
  .quick-nav-items {
    grid-template-columns: repeat(auto-fit, minmax(11.25rem, 1fr));
    gap: 1.5625rem;
  }
  
  .quick-nav-item {
    padding: 1.875rem 1.25rem;
    min-height: 9.0625rem;
    max-width: 12.5rem;
  }
  
  .quick-nav-item i {
    font-size: 2.5rem;
  }
}

/* ===== TABLETS AND SMALL LAPTOPS (1000px and below) ===== */
@media (max-width: 62.5rem) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }
}

/* ===== TABLETS (768px and below) ===== */
@media (max-width: 48rem) {
  /* Gallery Stats Adjustments */
  .gallery-stats {
    gap: 1rem;
    flex-direction: row !important;
    overflow-x: visible;
  }
  
  .stat-item {
    padding: 1rem 1rem;
    min-width: auto;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  /* Typography Adjustments */
  h2 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .about-text .lead {
    font-size: 1.5rem;
  }
  
  .gallery-title {
    font-size: 2.2rem;
  }
  
  .faq-title {
    font-size: 2.5rem;
  }
  
  .faq-subtitle {
    font-size: 1.1rem;
  }
  
  /* Layout Adjustments */
  .hero-section {
    min-height: calc(100vh - var(--header-height));
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .cta-button {
    width: 100%;
    max-width: 280px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .gallery-container {
    padding: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }
  
  .gallery-controls {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .filter-buttons {
    gap: 0.8rem;
  }
  
  .filter-btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
  }
  
  .gallery-item-image-container {
    height: 15rem;
  }
  
  .gallery-item-info {
    padding: 1.5rem;
  }
  
  .stat-item {
    padding: 1rem 1.5rem;
    min-width: 7.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .pagination {
    gap: 0.25rem;
  }
  
  .pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    min-width: 2.25rem;
  }
  
  /* Navigation - Mobile Menu */
  .nav-content {
    gap: clamp(0.5rem, 4vw, 1.5rem);
  }

  .mobile-menu {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    gap: clamp(0.75rem, 3vw, 1.5rem);
    flex: 0;
  }

  .nav-links.mobile {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(18rem, 85vw);
    padding: clamp(5rem, 10vw, 6rem) clamp(1.5rem, 5vw, 2rem) clamp(2.5rem, 6vw, 3rem);
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.75rem, 2.5vw, 1.25rem);
    background: var(--white);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
    border-left: 0.25rem solid var(--primary-color);
    overflow-y: auto;
    z-index: 999;
  }
  
  .nav-links.mobile.active {
    transform: translateX(0);
  }
  
  .nav-links.mobile a {
    color: var(--text-color);
    font-size: 1.05rem;
    padding: 0.75rem 0;
    width: 100%;
    text-align: left;
    border-radius: var(--radius-sm);
    margin: 0;
    transition: color var(--transition-normal), background var(--transition-normal), transform var(--transition-normal);
    font-weight: 500;
  }
  
  .nav-links.mobile a:hover,
  .nav-links.mobile a:focus-visible {
    color: var(--primary-color);
    background: rgba(207, 175, 77, 0.1);
    transform: translateX(0.25rem);
  }
  
  .nav-links.mobile a.active {
    background: var(--primary-color);
    color: var(--white);
  }
  
  /* Components Responsive */
  .webdesign-flex,
  .logodesign-flex {
    flex-direction: column;
  }
  
  .webdesign-text,
  .webdesign-image-container,
  .logodesign-text,
  .logodesign-image-container {
    width: 100%;
  }
  
  .webdesign-text h2 {
    text-align: center;
  }
  
  .carousel-arrow {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  
  .webdesign-overlay h3 {
    font-size: 2rem;
  }
  
  .webdesign-overlay p {
    font-size: 1.2rem;
  }
  
  .service-highlight, 
  .service-highlight.reverse {
    flex-direction: column;
    text-align: center;
  }
  
  .service-image {
    margin-bottom: 1.25rem;
  }
  
  .partner-logo {
    max-height: 6.25rem;
    height: auto;
    margin: 0.625rem;
    padding: 0.5rem;
  }
  
  .partner-logos {
    gap: 1.25rem !important;
  }
  
  img[src^="Media/IT-Infrastructuur/"] {
    max-width: 18.75rem !important;
  }
  
  .video-background {
    height: 100%;
    width: auto;
    min-width: 100%;
  }
  
  .cta-banner {
    padding: 1.875rem 1.25rem;
  }
  
  .cta-banner h3 {
    font-size: 1.5rem;
  }
  
  /* Projects */
  .project-title {
    margin: 0 !important;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  }
  
  .project-overlay h3 {
    font-size: 1.25rem;
    transform: translateY(0);
    opacity: 1;
  }
  
  .project-overlay p {
    font-size: 0.875rem;
    transform: translateY(0);
    opacity: 0.9;
  }
  
  .view-project {
    top: 0.9375rem;
    right: 0.9375rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Modals */
  .modal {
    padding: 0.625rem;
  }
  
  .modal-content {
    width: 95%;
    height: 90vh;
    max-height: none;
  }
  
  .modal-header {
    padding: 1rem 1.25rem;
    min-height: 3.125rem;
  }
  
  .project-title {
    font-size: 1.25rem;
  }
  
  .close-modal {
    width: 2.25rem;
    height: 2.25rem;
    right: 1rem;
    font-size: 1rem;
  }
  
  .modal-body {
    padding: 0;
  }
  
  .project-main-container {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .project-images-section {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-right: none;
    border-bottom: 0.0625rem solid #e2e8f0;
  }
  
  .gallery-thumbnails {
    width: 100%;
    order: 2;
  }
  
  .gallery-thumbs {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    padding: 0.5rem 0.75rem;
  }
  
  .gallery-thumbs img {
    width: 3.75rem;
    height: 3.75rem;
    flex-shrink: 0;
  }
  
  .gallery-main {
    order: 1;
    height: 15.625rem;
  }
  
  .project-text-column {
    height: auto;
  }
  
  .project-description-section {
    padding: 1rem 1.25rem;
  }
  
  .project-description {
    font-size: 0.875rem;
  }
  
  .project-specs-results-section {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .project-specs {
    border-right: none;
    border-bottom: 0.0625rem solid #e2e8f0;
    padding: 1.25rem;
  }
  
  .project-results {
    padding: 1.25rem;
  }
  
  .project-specs h3,
  .project-results h3 {
    font-size: 1rem;
  }
  
  .specs-list li,
  .results-list li {
    font-size: 0.8125rem;
  }
  
  .project-details {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .gallery-main {
    height: 21.875rem;
  }
  
  .project-info {
    padding: 0;
  }
  
  .project-info h2 {
    font-size: 1.5rem;
  }
  
  /* Pricing */
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 1.25rem;
  }
  
  .pricing-card.featured {
    transform: translateY(0);
  }
  
  .pricing-card {
    padding: 1.875rem;
  }
  
  .price .amount {
    font-size: 2.25rem;
  }
  
  .features li {
    font-size: 0.875rem;
  }
  
  /* FAQ */
  .faq-section {
    padding: 3.75rem 0;
  }
  
  .faq-question {
    padding: 1.5rem 1.875rem;
    font-size: 1.1rem;
  }
  
  .faq-content {
    padding: 0 1.875rem 1.875rem;
    font-size: 1rem;
  }
  
  .faq-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .faq-search {
    max-width: none;
  }
  
  .faq-categories {
    justify-content: center;
  }
  
  /* Scroll to Top - Consistent Size */
  .scroll-top, .back-to-top {
    width: 3.75rem;
    height: 3.75rem;
    font-size: 1.25rem;
    bottom: 1.25rem;
    right: 1.25rem;
  }
  
  /* Arrow handled by FontAwesome icon, no need for ::before */
  
  /* Breadcrumbs */
  .breadcrumbs {
    padding: 0.9375rem 0;
  }
  
  .breadcrumb-list {
    font-size: 0.9375rem;
  }
  
  .breadcrumb-separator {
    margin: 0 0.375rem;
  }
  
  /* Notifications */
  .notification-container {
    top: 5rem;
    right: 0.625rem;
    left: 0.625rem;
    max-width: none;
  }
  
  .main-header.header-hidden ~ .notification-container,
  .main-header.header-hidden + .notification-container {
    top: 0.625rem;
  }
  
  .notification-popup {
    padding: 1.25rem;
  }
  
  .notification-title {
    font-size: 1.1rem;
  }
  
  .notification-text {
    font-size: 1rem;
  }
  
  .notification-action {
    padding: 0.625rem 1.125rem;
    font-size: 1rem;
  }
  
  .notification-icon {
    font-size: 1rem;
  }
  
  .notification-close {
    font-size: 1rem;
    width: 1.5rem;
    height: 1.5rem;
  }
  
  /* Price Table */
  .price-table th,
  .price-table td {
    padding: 0.5rem 0.625rem;
    font-size: 0.9rem;
  }
  
  /* Quick Navigation */
  .quick-nav {
    padding: 2.1875rem 0;
    margin: 1.875rem 0;
  }
  
  .quick-nav-items {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1.25rem;
  }
  
  .quick-nav-item {
    padding: 1.5625rem 0.9375rem;
    min-height: 8.125rem;
    max-width: 11.25rem;
  }
  
  .quick-nav-item i {
    font-size: 2.2rem;
  }
  
  .quick-nav-item span {
    font-size: 0.7rem;
  }
  
  /* NumNum Responsive */
  .numnum-features ul {
    grid-template-columns: 1fr;
  }
  
  .numnum-service {
    padding: 1.5rem;
  }
  
  /* Footer - Single Column on Mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
  }
  
  .footer-logo {
    width: 9rem;
  }
  
  /* Service Section - Better Icon Spacing on Mobile */
  .service-section h2 {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 0 1.5rem;
    gap: 1.5rem;
  }
  
  .service-section h2 i {
    margin-right: 1rem;
    margin-left: 0.5rem;
  }
}

/* ===== TABLET LANDSCAPE (769px to 1024px) ===== */
@media (min-width: 48.0625rem) and (max-width: 64rem) {
  .modal-content {
    width: 90%;
    height: 80vh;
  }
  
  .project-images-section {
    padding: 1.25rem;
  }
  
  .gallery-thumbnails {
    width: 6.25rem;
  }
  
  .gallery-thumbs img {
    height: 4.375rem;
  }
  
  .project-description-section {
    padding: 1.125rem 1.25rem;
  }
  
  .project-specs,
  .project-results {
    padding: 1.25rem;
  }
}

/* ===== SMALL MOBILE (480px and below) ===== */
@media (max-width: 30rem) {
  .cta-button {
    padding: var(--space-2) var(--space-3);
    min-width: 140px;
    font-size: 0.9rem;
  }
  
  /* Gallery Stats Adjustments */
  .gallery-stats {
    gap: 0.5rem;
    flex-direction: row !important;
    justify-content: space-between !important;
  }
  
  .stat-item {
    padding: 0.75rem 0.5rem;
    flex: 1;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
    margin-top: 0.25rem;
  }
  
  /* Typography */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .faq-title {
    font-size: 2rem;
  }
  
  /* Layout */
  .container {
    padding: 0 0.9375rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .service-item,
  .webshop-content,
  .contact-form {
    padding: 1.5625rem;
  }
  
  .filter-buttons {
    justify-content: center;
  }
  
  .filter-btn {
    flex: 1;
    min-width: 8.75rem;
  }
  
  /* FAQ */
  .faq-question {
    padding: 1.25rem 1.5625rem;
    font-size: 1rem;
  }
  
  .faq-content {
    padding: 0 1.5625rem 1.5625rem;
  }
  
  .faq-category-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
  
  /* Modal adjustments */
  .modal-header {
    padding: 1rem 1.25rem;
  }
  
  .modal-body {
    padding: 1.25rem;
  }
  
  .project-info h2 {
    font-size: 1.5rem;
  }
  
  .gallery-main {
    height: 15.625rem;
  }
  
  .gallery-nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
  }
  
  .gallery-nav.prev {
    left: 0.5rem;
  }
  
  .gallery-nav.next {
    right: 0.5rem;
  }
  
  /* Quick Navigation */
  .quick-nav-items {
    grid-template-columns: repeat(auto-fit, minmax(8.75rem, 1fr));
    gap: 0.9375rem;
  }
  
  .quick-nav-item {
    padding: 1.25rem 0.75rem;
    min-height: 7.1875rem;
    max-width: 10rem;
    border-radius: 0.75rem;
  }
  
  .quick-nav-item i {
    font-size: 2rem;
  }
  
  .quick-nav-item span {
    font-size: 0.65rem;
    line-height: 1.3;
  }
  
  .modal-content {
    max-height: 60vh;
  }
  
  .modal-close {
    top: -0.75rem;
    right: -0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.125rem;
  }
  
  .modal-title {
    font-size: 1.1rem;
    margin-top: 1rem;
  }
  
  /* Footer - Extra Compact on Small Mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }
  
  .footer-logo {
    width: 7rem;
  }
  
  .footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  /* Scroll to Top - Small Mobile */
  .scroll-top, .back-to-top {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
    bottom: 1rem;
    right: 1rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .hero-video,
  .hero-overlay,
  .nav-links,
  .mobile-menu,
  .social-links,
  .cta-button,
  .carousel-arrow,
  .gallery-nav {
    display: none;
  }
  
  body {
    color: #000;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  h2 {
    page-break-after: avoid;
  }
  
  p {
    page-break-inside: avoid;
  }
  
  .service-item,
  .webshop-content {
    border: 0.0625rem solid #ccc;
  }
}

/* ===== ACCESSIBILITY MEDIA QUERIES ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --primary-color: #000;
    --secondary-color: #000;
    --text-color: #000;
    --light-gray: #fff;
  }
}

@media (prefers-color-scheme: dark) {
  /* Optional: Add dark mode styles if needed */
}

/* ===== FINAL LAYOUT OVERRIDE - PREVENTS EXTERNAL CSS FROM BREAKING CENTERING ===== */
/* This rule has high specificity and !important to ensure centering is never overridden */
body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

main[role="main"], main {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  flex: 1 !important;
}

main > section {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.container {
  max-width: var(--container-max-width) !important;
  margin: 0 auto !important;
  width: 100% !important;
}

/* ============================================================================
   IT IMAGES & GALLERY STYLES
   ============================================================================ */

/* Image Grid Container */
.it-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

/* Image Card */
.it-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #ffffff;
}

.it-image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.it-image-container {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
}

.it-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.it-image-card:hover .it-image-container img {
  transform: scale(1.05);
}

/* Image Caption */
.it-image-caption {
  padding: 1rem;
  background: #ffffff;
}

.it-image-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.it-image-description {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.5;
}

/* Gallery Specific Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.5rem;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

/* IT Service Icons */
.it-service-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 0;
}

.it-service-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 150px;
}

.it-service-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.it-service-icon:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.it-service-icon-label {
  font-size: 0.875rem;
  color: #333333;
  font-weight: 500;
}

/* ============================================================================
   VIDEO BACKGROUND STYLES
   ============================================================================ */

/* Video Hero Section */
.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Video Container */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

/* Video Element */
.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Overlay for better text readability */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

/* Content over video */
.video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 2rem;
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
}

.video-control-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  color: #ffffff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.video-control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Fallback for browsers that don't support video */
.video-fallback {
  background-image: url('Media/heroVid-poster.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Additional responsive styles for merged CSS */
@media (max-width: 768px) {
  .it-image-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
  }
  
  .it-service-icons {
    gap: 1rem;
  }
  
  .it-service-icon img {
    width: 60px;
    height: 60px;
  }
  
  /* Templates Grid Responsive */
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .template-item {
    padding: 15px 10px;
    height: 100px;
    min-height: 100px;
    max-height: 100px;
  }
  
  .template-item i {
    font-size: 2rem;
    padding: 6px;
    margin-bottom: 6px;
  }
  
  .template-item span {
    font-size: 0.75rem;
    line-height: 1.1;
  }
  
  .video-hero {
    height: 70vh;
  }
  
  .video-controls {
    bottom: 1rem;
    right: 1rem;
  }
  
  .video-control-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  /* Webshops section tablet */
  .webshops-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .webshops-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  .it-image-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  /* Mobile-responsive titles for long section names */
  h2 {
    font-size: var(--text-2xl);
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  .service-section h2 {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  
  #marketing h2,
  #promotiemateriaal h2 {
    font-size: 1.35rem;
  }
  
  /* Webshops section mobile */
  .webshops-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .webshops-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .webshop-item {
    width: 100%;
  }
}
