/* Modern Professional Construction-Inspired Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto+Slab:wght@400;500;600;700&display=swap');

:root {
  /* Primary Color Palette - Professional Blues & Grays */
  --primary-blue: #1e3a8a;
  --primary-blue-dark: #1e40af;
  --primary-blue-light: #3b82f6;
  --accent-orange: #f97316;
  --accent-orange-light: #fb923c;
  
  /* Neutral Palette */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: var(--gray-50);
  --bg-dark: var(--gray-900);
  --bg-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Roboto Slab', Georgia, serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* 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);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--bg-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Header Styles */
.header-title {
  color: var(--primary-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  text-shadow: none;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-subtitle {
  font-family: var(--font-primary);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--gray-600);
  font-weight: 400;
  margin-top: var(--spacing-sm);
}

/* Section Titles */
.section-title {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-lg);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  font-family: var(--font-heading);
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-orange-light));
  border-radius: 2px;
}

/* Link Styles */
a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--primary-blue-light);
  text-decoration: none;
}

/* Card Component */
.card-dashboard {
  background: var(--bg-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
}

.card-dashboard:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue-light);
}

/* List Items */
.list-item {
  margin: var(--spacing-md) 0;
  font-size: 1.125rem;
}

.list-item a {
  display: block;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.list-item a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s;
}

.list-item a:hover {
  color: var(--primary-blue);
  background: var(--bg-primary);
  border-color: var(--primary-blue-light);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.list-item a:hover::before {
  left: 100%;
}

/* Background Sections */
.bg-section {
  background: var(--bg-secondary);
  position: relative;
}

.bg-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(30, 58, 138, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Button Styles */
.btn, .property-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--bg-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn:hover, .property-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn::before, .property-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before, .property-link:hover::before {
  left: 100%;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline-primary:hover {
  background: var(--primary-blue);
  color: white;
}

/* Property Link Specific Styles */
.property-link {
  display: block;
  margin: var(--spacing-sm) 0;
  background: var(--bg-primary);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  text-align: left;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

.property-link:hover {
  color: var(--primary-blue);
  border-color: var(--primary-blue-light);
  background: var(--gray-50);
  transform: translateX(8px);
}

/* Responsive Design */
@media (min-width: 1400px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 1200px) and (min-width: 992px) {
  .header-title {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .list-item a {
    font-size: 1.125rem;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .header-title {
    font-size: 3rem;
  }
  
  .header-subtitle {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.875rem;
  }
  
  .list-item a {
    font-size: 1.125rem;
  }
  
  .card-dashboard {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .header-title {
    font-size: 2.5rem;
  }
  
  .header-subtitle {
    font-size: 1.125rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .list-item a {
    font-size: 1rem;
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .card-dashboard {
    padding: var(--spacing-lg);
  }
  
  .property-link {
    font-size: 1rem;
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

@media (max-width: 576px) {
  .header-title {
    font-size: 2rem;
  }
  
  .header-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .list-item a {
    font-size: 0.875rem;
  }
  
  .card-dashboard {
    padding: var(--spacing-md);
  }
  
  .property-link {
    font-size: 0.875rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-accent { color: var(--accent-orange); }
.bg-gradient { background: var(--bg-gradient); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); }

/* Back Button */
.back-button {
  position: fixed;
  top: var(--spacing-lg);
  left: var(--spacing-lg);
  z-index: 1000;
}

.back-button .btn {
  background: rgba(30, 58, 138, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}