/*
===============================================
MES YAPI İNŞAAT - MODERN DESIGN SYSTEM
===============================================
*/

/* Modern Color Palette - İnşaat Sektörü için Profesyonel Renkler */
:root {
  /* Primary Colors - Ana Marka Renkleri */
  --primary-50: #fef7f0;
  --primary-100: #fdeee0;
  --primary-200: #fad9c0;
  --primary-300: #f6be95;
  --primary-400: #f09968;
  --primary-500: #ec7c47;
  --primary-600: #dd5f2f;
  --primary-700: #b74928;
  --primary-800: #923b27;
  --primary-900: #773225;
  --primary-950: #401811;

  /* Secondary Colors - Güven ve Profesyonellik */
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;
  --secondary-950: #020617;

  /* Accent Colors - Vurgu Renkleri */
  --accent-gold: #d4af37;
  --accent-gold-light: #f7e98e;
  --accent-gold-dark: #b8941f;
  
  /* Success, Warning, Error */
  --success-500: #22c55e;
  --warning-500: #f59e0b;
  --error-500: #ef4444;
  
  /* Neutral Colors */
  --neutral-0: #ffffff;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0a0a0a;

  /* Gradient Definitions */
  --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-700) 0%, var(--secondary-900) 100%);
  --gradient-gold: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-800) 70%, var(--neutral-900) 100%);
  
  /* Modern Typography */
  --font-primary: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Poppins', 'Inter', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Font Sizes - Desktop Optimized Typography */
  --text-xs: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
  --text-sm: clamp(1rem, 0.9rem + 0.375vw, 1.125rem);
  --text-base: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.625vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.75vw, 1.625rem);
  --text-2xl: clamp(1.625rem, 1.4rem + 1vw, 2rem);
  --text-3xl: clamp(2rem, 1.7rem + 1.375vw, 2.5rem);
  --text-4xl: clamp(2.5rem, 2rem + 1.75vw, 3.25rem);
  --text-5xl: clamp(3.25rem, 2.6rem + 2.5vw, 4rem);
  --text-6xl: clamp(4rem, 3.2rem + 3.75vw, 5rem);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* Dark Mode Removed - Light Theme Only */

/* Light Mode Variables (Default) */
[data-theme="light"], :root {
  --bg-primary: var(--neutral-0);
  --bg-secondary: var(--neutral-50);
  --bg-tertiary: var(--neutral-100);
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-700);
  --text-muted: var(--neutral-500);
  --border-color: var(--neutral-200);
  --card-bg: var(--neutral-0);
}

/* Modern Typography Classes */
.text-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-heading {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
}

.text-caption {
  font-family: var(--font-primary);
  font-weight: 500;
  line-height: 1.4;
  font-size: var(--text-sm);
}

/* Modern Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px; /* Touch-friendly minimum */
}

.btn:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Button */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--neutral-0);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-500);
  color: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--primary-600);
  border: 2px solid var(--primary-500);
}

.btn-outline:hover {
  background: var(--primary-500);
  color: var(--neutral-0);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  min-height: 36px;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  min-height: 52px;
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-xl);
  min-height: 60px;
}

/* Modern Form Elements */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  transition: all var(--transition-normal);
  min-height: 44px; /* Touch-friendly */
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgb(236 124 71 / 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Modern Card System */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.card-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.card-description {
  margin: var(--space-2) 0 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* Utility Classes */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
  transition: transform var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Design Utilities */
.container-modern {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container-modern {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container-modern {
    padding: 0 var(--space-8);
  }
}

/* Dark Mode Toggle Removed */

/* Loading States */
.loading {
  position: relative;
  color: transparent;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-200);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Modern Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-300) var(--bg-secondary);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
}

*::-webkit-scrollbar-thumb {
  background: var(--primary-300);
  border-radius: var(--radius-full);
  transition: background var(--transition-normal);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--primary-500);
}

/* Service Card Specific Styles */
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-300);
}

.service-card .card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.service-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .card-image img {
  transform: scale(1.05);
}

.service-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover .card-overlay {
  opacity: 0.1;
}

.service-card .card-content {
  padding: var(--space-6);
  position: relative;
}

.service-card .service-icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.service-card .service-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  font-family: var(--font-display);
}

.service-card .card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
  transition: color var(--transition-normal);
}

.service-card:hover .card-title {
  color: var(--primary-600);
}

.service-card .card-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.service-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.service-card .card-footer .btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-normal);
}

.service-card .card-footer .btn svg {
  transition: transform var(--transition-normal);
}

.service-card .card-footer .btn:hover svg {
  transform: translate(4px, -4px);
}

/* Project Card Styles */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2xl);
}

.project-card .project-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.project-card .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-card .project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: var(--space-6);
  color: white;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

.project-card .project-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.project-card .project-category {
  font-size: var(--text-sm);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Modern Header Styles */
.header-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .header-modern {
  background: rgba(15, 23, 42, 0.95);
}

.header-modern.scrolled {
  box-shadow: var(--shadow-lg);
}

/* Modern Navigation */
.nav-modern {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-modern a {
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  position: relative;
}

.nav-modern a:hover,
.nav-modern a.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

[data-theme="dark"] .nav-modern a:hover,
[data-theme="dark"] .nav-modern a.active {
  background: var(--primary-900);
}

/* Modern Hero Section */
.hero-modern {
  background: var(--gradient-hero);
  color: white;
  padding: var(--space-32) 0;
  position: relative;
  overflow: hidden;
}

.hero-modern::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
}

.hero-subtitle {
  font-size: var(--text-xl);
  opacity: 0.9;
  margin-bottom: var(--space-8);
  max-width: 600px;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  .service-card .card-content {
    padding: var(--space-4);
  }
  
  .service-card .service-icon {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .service-card .service-number {
    font-size: var(--text-2xl);
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
}

/* Loading Animation for Images */
.image-loading {
  background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Focus Indicators for Accessibility */
.btn:focus-visible,
.form-input:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border-color: var(--neutral-900);
    --text-secondary: var(--neutral-800);
  }
  
  [data-theme="dark"] {
    --border-color: var(--neutral-100);
    --text-secondary: var(--neutral-200);
  }
}

/* Modern Form Styles */
.modern-contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.modern-contact-form .form-header {
  margin-bottom: var(--space-8);
  text-align: center;
}

.modern-contact-form .form-header h3 {
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.modern-contact-form .form-header p {
  color: var(--text-secondary);
  margin: 0;
}

/* Custom Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  position: relative;
  transition: all var(--transition-normal);
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-500);
  border-color: var(--primary-500);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label:hover .checkmark {
  border-color: var(--primary-400);
}

/* Select Dropdown Styling */
.form-input[type="select"],
select.form-input {
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6,9 12,15 18,9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Form Validation States */
.form-input:valid {
  border-color: var(--success-500);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--error-500);
}

.form-group.error .form-input {
  border-color: var(--error-500);
}

.form-group.success .form-input {
  border-color: var(--success-500);
}

.form-error {
  color: var(--error-500);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.form-success {
  color: var(--success-500);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Loading States for Forms */
.form-input.loading {
  background-image: linear-gradient(90deg, transparent 25%, var(--primary-100) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Modern Badge/Tag System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: var(--primary-100);
  color: var(--primary-800);
}

.badge-secondary {
  background: var(--secondary-100);
  color: var(--secondary-800);
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-500);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-500);
}

.badge-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-500);
}

/* Modern Progress Bar */
.progress {
  width: 100%;
  height: 8px;
  background: var(--neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Modern Alert/Notification System */
.alert {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.alert-success {
  background: rgba(34, 197, 94, 0.05);
  border-color: var(--success-500);
  color: var(--success-500);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: var(--warning-500);
  color: var(--warning-500);
}

.alert-error {
  background: rgba(239, 68, 68, 0.05);
  border-color: var(--error-500);
  color: var(--error-500);
}

.alert-info {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-700);
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Modern Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card-bg);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.modal-close:hover {
  background: var(--bg-tertiary);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  padding: var(--space-4) var(--space-6) var(--space-6);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* Modern Footer Styles */
.modern-footer {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: var(--neutral-100);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-12);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo img {
  max-width: 140px;
  height: auto;
  margin-bottom: var(--space-3);
}

.company-description {
  color: var(--primary-100);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.footer-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--neutral-50);
  margin-bottom: var(--space-4);
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .social-links {
    justify-content: center;
  }
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary-100);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  font-size: var(--text-sm);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.social-link i {
  font-size: 18px;
}

/* Contact Info */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gold);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--primary-900);
  font-size: 16px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-label {
  font-size: var(--text-xs);
  color: var(--primary-200);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.contact-value {
  color: var(--neutral-100);
  text-decoration: none;
  font-size: var(--text-sm);
  line-height: 1.4;
  transition: color var(--transition-normal);
}

.contact-value:hover {
  color: var(--accent-gold);
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--primary-100);
  text-decoration: none;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  font-size: var(--text-sm);
}

.footer-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-gold);
  transform: translateX(8px);
}

.footer-nav-link i {
  width: 20px;
  text-align: center;
  opacity: 0.7;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: var(--primary-200);
  font-size: var(--text-sm);
  margin: 0;
}

/* Fix breadcrumb spacing */
.breadcrumb-area-bg {
    margin-top: 0 !important;
}

.breadcrumb-area-bg .bread-crumb-area-inner {
    padding-top: 120px !important;
}

@media only screen and (max-width: 767px) {
    .breadcrumb-area-bg .bread-crumb-area-inner {
        padding-top: 100px !important;
    }
}

@media only screen and (max-width: 575px) {
    .breadcrumb-area-bg .bread-crumb-area-inner {
        padding-top: 80px !important;
    }
}

/* Modern Project Detail Styles */
.modern-project-hero {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
  padding: var(--space-24) 0 var(--space-16);
  color: white;
  position: relative;
  overflow: hidden;
}

.modern-project-hero::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  z-index: 1;
}

.modern-project-hero .container {
  position: relative;
  z-index: 2;
}

.project-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.project-hero-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.project-hero-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.project-meta-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* Modern Gallery */
.modern-gallery-section {
  background: var(--bg-primary);
  padding: var(--space-20) 0;
}

/* Full-width gallery container override */
.modern-gallery-section .container {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.modern-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.gallery-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--neutral-100);
  box-shadow: none;
  transition: all var(--duration-300) var(--ease-out);
  cursor: pointer;
  group: hover;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-300) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--duration-300) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  width: 48px;
  height: 48px;
  color: white;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

/* Project Details Section */
.modern-project-details {
  background: white;
  padding: var(--space-20) 0;
}

.project-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 768px) {
  .project-details-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.project-description {
  background: var(--bg-primary);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-500);
}

.project-description h3 {
  color: var(--primary-600);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.project-description p {
  color: var(--neutral-700);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.project-specs {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.specs-header {
  background: var(--primary-50);
  padding: var(--space-6);
  border-bottom: 1px solid var(--neutral-200);
}

.specs-header h4 {
  color: var(--primary-600);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--neutral-100);
  transition: background-color var(--duration-200) var(--ease-out);
}

.spec-item:hover {
  background: var(--neutral-50);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--neutral-600);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.spec-value {
  color: var(--neutral-900);
  font-weight: 600;
}

.spec-icon {
  width: 16px;
  height: 16px;
  color: var(--primary-500);
}

/* Status Badge */
.project-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.project-status.completed {
  background: var(--success-100);
  color: var(--success-700);
}

.project-status.ongoing {
  background: var(--warning-100);
  color: var(--warning-700);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.project-status.completed .status-dot {
  background: var(--success-500);
}

.project-status.ongoing .status-dot {
  background: var(--warning-500);
}

/* Modern Lightbox */
.modern-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.modern-lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  animation: lightboxFadeIn 0.3s ease-out;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-info {
  padding: var(--space-6);
  background: white;
}

.lightbox-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--neutral-900);
  margin: 0;
}

.lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-200) var(--ease-out);
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-200) var(--ease-out);
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: var(--space-4);
}

.lightbox-next {
  right: var(--space-4);
}

/* Modern Project Cards */
.modern-projects-section {
  background: var(--bg-primary);
  padding: var(--space-20) 0;
}

.projects-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.projects-header h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.projects-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Modern Filter Buttons */
.modern-filter-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-12);
  padding: var(--space-2);
  background: var(--card-bg);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .modern-filter-buttons {
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
  }
}

.modern-filter-btn {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
}

.modern-filter-btn:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.modern-filter-btn.active {
  color: var(--neutral-0);
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
  box-shadow: var(--shadow-md);
}

.modern-filter-btn.active::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.2;
}

/* Modern Project Grid */
.modern-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

@media (max-width: 640px) {
  .modern-projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Modern Project Card */
.modern-project-card {
  background: var(--card-bg);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  group: hover;
}

.modern-project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.project-image-container {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.project-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.modern-project-card:hover .project-image-container img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-content {
  text-align: center;
  color: var(--neutral-0);
}

.project-overlay .btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--neutral-0);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.project-overlay .btn:hover {
  background: var(--neutral-0);
  color: var(--primary-600);
  border-color: var(--neutral-0);
}

.project-content {
  padding: var(--space-6);
}

.project-category {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--primary-100);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}

.project-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2) 0;
  line-height: 1.3;
}

.project-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

.project-title a:hover {
  color: var(--primary-600);
}

.project-description {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: 0;
  border-left: 3px solid var(--primary-500);
  padding-left: var(--space-3);
}

/* Project Status Badge */
.project-status {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-status.completed {
  background: var(--success-500);
  color: var(--neutral-0);
}

.project-status.ongoing {
  background: var(--warning-500);
  color: var(--neutral-0);
}

/* Animation Classes */
.project-item {
  opacity: 1;
  transform: scale(1);
  transition: all var(--transition-slow);
}

.project-item.filtering {
  opacity: 0;
  transform: scale(0.95);
}

.project-item.hidden {
  display: none;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
