
/* ============================================
   MODERN RESUME MAKER CSS
   Professional, Clean, and Responsive Design
   ============================================ */

:root {
  /* Primary Brand Colors - Professional Blue Theme */
  --color-primary: #0a66c2;
  --color-primary-dark: #004182;
  --color-primary-light: #378fe9;
  --color-primary-soft: #e6f2ff;
  --color-primary-alpha: rgba(10, 102, 194, 0.1);
  
  /* Neutral Colors */
  --color-text: #1d1d1d;
  --color-text-light: #5e5e5e;
  --color-text-muted: #868686;
  --color-text-inverse: #ffffff;
  
  /* Background Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #f9f9f9;
  --color-bg-section: #f5f8fa;
  --color-bg-card: #ffffff;
  --color-bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* Border & Divider Colors */
  --color-border: #e1e4e8;
  --color-border-light: #f0f0f0;
  --color-divider: #eaeaea;
  
  /* Status Colors */
  --color-success: #057642;
  --color-warning: #e6a800;
  --color-error: #cf0007;
  --color-info: #0a66c2;
  
  /* Shadow System */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  
  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Z-index layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* Container widths */
  --container-xs: 480px;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Selection styling */
::selection {
  background-color: var(--color-primary-alpha);
  color: var(--color-primary-dark);
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

/* Page wrapper with subtle gradient background */
.page-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, 
    var(--color-bg) 0%, 
    var(--color-bg-alt) 50%, 
    var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

.page-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, var(--color-primary-soft) 0%, transparent 70%);
  opacity: 0.3;
  z-index: 0;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 0;
  animation: fadeInUp 0.8s var(--transition-bounce);
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h5 {
  font-size: var(--text-lg);
  font-weight: 600;
}

h6 {
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

p {
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

.lead {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-primary {
  color: var(--color-primary);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* ============================================
   PAGE HEADER COMPONENT
   ============================================ */

.page-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-xl);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--color-primary) 0%, 
    var(--color-primary-light) 100%);
  border-radius: var(--radius-full);
}

.page-header h1 {
  background: linear-gradient(135deg, 
    var(--color-text) 0%, 
    var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: var(--space-md);
  position: relative;
}

.page-header .lead {
  max-width: 700px;
  margin: 0 auto;
  font-size: var(--text-lg);
  color: var(--color-text-light);
}

/* ============================================
   CARD SYSTEM
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--color-primary) 0%, 
    var(--color-primary-light) 100%);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, 
    var(--color-primary) 0%, 
    var(--color-primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-inverse);
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  flex: 1;
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.card-body {
  flex: 1;
  margin-bottom: var(--space-lg);
}

.card-footer {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

/* Card Variants */
.card-primary {
  background: linear-gradient(135deg, 
    var(--color-primary-soft) 0%, 
    var(--color-bg-card) 100%);
  border-color: var(--color-primary-alpha);
}

.card-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, 
    var(--color-primary) 0%, 
    var(--color-primary-dark) 100%);
  color: var(--color-text-inverse);
}

.card-featured .card-title,
.card-featured .card-subtitle,
.card-featured .card-body {
  color: var(--color-text-inverse);
}

@media (max-width: 768px) {
  .card-featured {
    grid-column: span 1;
  }
}

/* ============================================
   BUTTON SYSTEM
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, 
    var(--color-primary) 0%, 
    var(--color-primary-dark) 100%);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--color-primary-soft);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-text-light);
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .btn-group {
    flex-direction: column;
  }
  
  .btn-group .btn {
    width: 100%;
  }
}

/* ============================================
   SPECIAL COMPONENTS
   ============================================ */

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, 
    var(--color-primary-dark) 0%, 
    var(--color-primary) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  margin: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-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" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 Z"/></svg>');
  background-size: cover;
}

.cta-section h2 {
  color: var(--color-text-inverse);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  position: relative;
  z-index: 1;
}

/* Stats Component */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin: var(--space-3xl) 0;
}

.stat-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  background: linear-gradient(135deg, 
    var(--color-primary) 0%, 
    var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonial Component */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-3xl) 0;
}

.testimonial-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-primary);
}

.testimonial-content {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-relaxed);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--color-primary-soft);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 600;
}

.testimonial-info h4 {
  margin-bottom: var(--space-xs);
  font-size: var(--text-base);
}

.testimonial-info p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================
   FORM COMPONENTS
   ============================================ */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base);
  font-family: var(--font-family-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-alpha);
}

.form-control::placeholder {
  color: var(--color-text-muted);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  line-height: var(--leading-normal);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Spacing Utilities */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-sm) !important; }
.mt-4 { margin-top: var(--space-md) !important; }
.mt-6 { margin-top: var(--space-lg) !important; }
.mt-8 { margin-top: var(--space-xl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-sm) !important; }
.mb-4 { margin-bottom: var(--space-md) !important; }
.mb-6 { margin-bottom: var(--space-lg) !important; }
.mb-8 { margin-bottom: var(--space-xl) !important; }

.p-0 { padding: 0 !important; }
.p-4 { padding: var(--space-md) !important; }
.p-6 { padding: var(--space-lg) !important; }
.p-8 { padding: var(--space-xl) !important; }

/* Display Utilities */
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flex Utilities */
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }

/* Grid Utilities */
.grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
.grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
.grid-4 { grid-template-columns: repeat(4, 1fr) !important; }

/* Width Utilities */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.max-w-sm { max-width: var(--container-sm) !important; }
.max-w-md { max-width: var(--container-md) !important; }
.max-w-lg { max-width: var(--container-lg) !important; }

/* Text Utilities */
.font-light { font-weight: 300 !important; }
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }

.text-xs { font-size: var(--text-xs) !important; }
.text-sm { font-size: var(--text-sm) !important; }
.text-base { font-size: var(--text-base) !important; }
.text-lg { font-size: var(--text-lg) !important; }
.text-xl { font-size: var(--text-xl) !important; }

/* Color Utilities */
.text-white { color: var(--color-text-inverse) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-error { color: var(--color-error) !important; }

.bg-white { background: var(--color-bg) !important; }
.bg-light { background: var(--color-bg-alt) !important; }
.bg-primary { background: var(--color-primary) !important; }
.bg-primary-light { background: var(--color-primary-soft) !important; }

/* Border Utilities */
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

.border { border: 1px solid var(--color-border) !important; }
.border-t { border-top: 1px solid var(--color-border) !important; }
.border-b { border-bottom: 1px solid var(--color-border) !important; }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

/* Position Utilities */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.sticky { position: sticky !important; }

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in {
  animation: fadeInUp 0.8s var(--transition-bounce);
}

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

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-slide-left {
  animation: slideInLeft 0.6s var(--transition-bounce);
}

.animate-slide-right {
  animation: slideInRight 0.6s var(--transition-bounce);
}

/* Stagger animations for lists */
.stagger-animation > * {
  opacity: 0;
  animation: fadeInUp 0.6s var(--transition-bounce) forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --text-2xl: 1.5rem;
  }
  
  .content-wrapper {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 768px) {
  :root {
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
    --text-xl: 1.125rem;
  }
  
  .content-wrapper {
    padding: var(--space-xl) 0;
  }
  
  .cta-section {
    padding: var(--space-xl);
    margin: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  :root {
    --text-4xl: 1.5rem;
    --text-3xl: 1.375rem;
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .btn {
    padding: var(--space-md) var(--space-lg);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt !important;
  }
  
  .page-wrapper::before,
  .cta-section,
  .btn {
    display: none !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}
