/* ==========================================
   CSS Custom Properties (Design Tokens)
   ========================================== */
:root {
  /* Primary Colors - Stunning Professional Palette */
  --color-primary-50: #f0f9ff;
  --color-primary-100: #e0f2fe;
  --color-primary-200: #bae6fd;
  --color-primary-300: #7dd3fc;
  --color-primary-400: #38bdf8;
  --color-primary-500: #0ea5e9;
  --color-primary-600: #0284c7;
  --color-primary-700: #0369a1;
  --color-primary-800: #075985;
  --color-primary-900: #0c4a6e;
  
  /* Neutral Colors - Warm Grays */
  --color-white: #ffffff;
  --color-gray-50: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e5e5;
  --color-gray-300: #d4d4d4;
  --color-gray-400: #a3a3a3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;
  

  
  /* Typography */
  --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --line-height-base: 1.6;

  /* Text color (used by body) */
  --color-text-primary: var(--color-white);
}

/* ==========================================
   Reset and Base Styles
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-base);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 25%, #0ea5e9 50%, #38bdf8 75%, #7dd3fc 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ==========================================
   Enhanced Visual Effects
   ========================================== */

/* Glassmorphism Effect */
.glass {
  background: transparent;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 50%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Profile Animation */
@keyframes gentle-breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.95;
  }
}

.profile-animation {
  animation: gentle-breathe 8s ease-in-out infinite;
}

/* Profile Glow Effect */
.profile-image {
  transition: all 0.3s ease;
}

.profile-image:hover {
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
  transform: scale(1.05);
}

/* Slide In Up Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}



/* ==========================================
   Profile Section Styles
   ========================================== */
.profile-section {
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.1) 0%, rgba(3, 105, 161, 0.05) 25%, rgba(14, 165, 233, 0.02) 50%, rgba(56, 189, 248, 0.01) 75%, rgba(125, 211, 252, 0.005) 100%);
  box-shadow: none;
  border: none;
  margin: 0;
  padding: 0;
}

/* Combined profile-image rules (position, transition, hover and ::before) */
.profile-image {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.profile-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(56, 189, 248, 0.05));
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-image:hover {
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
  transform: scale(1.05);
}

.profile-image:hover::before {
  opacity: 1;
}

/* ==========================================
   Shimmer Animation
   ========================================== */
@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* ==========================================
   Enhanced Card Styles
   ========================================== */
.enhanced-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1), 0 4px 16px rgba(14, 165, 233, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.enhanced-card:hover::before {
  left: 100%;
}

.enhanced-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.2), 0 10px 20px -5px rgba(14, 165, 233, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ==========================================
   Contact Button Styles
   ========================================== */
.contact-button {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-button::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #0ea5e9, #38bdf8, #7dd3fc, #0ea5e9);
  border-radius: 50px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-button:hover::before {
  opacity: 1;
}

.contact-button-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  min-width: 140px;
  height: 48px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  justify-content: center;
}

.contact-button:hover .contact-button-inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.contact-button:hover .contact-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
  transform: scale(1.1);
}

.contact-text {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.contact-button:hover .contact-text {
  transform: translateX(2px);
}



/* ==========================================
   Section Header Enhancements
   ========================================== */
.section-header {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
}



/* ==========================================
   Timeline Enhancement
   ========================================== */
.timeline-item {
  position: relative;
  padding-left: 0;
}

/* ==========================================
   Responsive Enhancements
   ========================================== */
@media (max-width: 768px) {
  .glass {
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.8) 0%, rgba(3, 105, 161, 0.7) 50%, rgba(14, 165, 233, 0.6) 100%);
  }
  
  .enhanced-card {
    margin-bottom: 1rem;
  }

  .contact-button-inner {
    min-width: 120px;
    height: 44px;
    padding: 10px 16px;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .grid {
    gap: 1.5rem;
  }

  .text-2xl {
    font-size: 1.5rem;
  }

  .text-lg {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .contact-button-inner {
    min-width: 100px;
    height: 40px;
    padding: 8px 12px;
  }

  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .py-8 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* ==========================================
   Print Optimizations
   ========================================== */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .shadow-lg,
  .shadow-md,
  .shadow-sm {
    box-shadow: none !important;
  }
  
  .glass,
  .enhanced-card {
    background: white !important;
    backdrop-filter: none !important;
  }
}

/* ==========================================
   Accessibility Improvements
   ========================================== */
@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;
  }
}

:focus-visible,
.focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* ==========================================
   Custom Scrollbar
   ========================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
}

/* ==========================================
   Trello Iframe Styles
   ========================================== */
iframe[src*="trello.com"] {
  width: 100% !important;
  margin: 0 auto;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
