/* Modern Portfolio Website Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Custom CSS Variables for Modern Design */
:root {
  /* Brand Colors */
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #64748b 0%, #475569 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  
  /* 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);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Base Styles */
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'liga' 1, 'kern' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Custom Utility Classes */
.min-vh-75 {
  min-height: 75vh;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Section Styling */
section {
  padding: 4rem 0;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.03) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-contact a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.hero-contact a:hover {
  color: var(--primary-dark);
}

.hero-image {
  position: relative;
  z-index: 2;
}

.profile-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid white;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-normal);
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Stats Section */
.stats-section {
  background: var(--bg-secondary);
  padding: 3rem 0;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid #e2e8f0;
  opacity: 0;
  transform: translateY(30px);
}

.stat-card.animate {
  opacity: 1;
  transform: translateY(0);
}

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

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}

/* Contact Section */
.contact-section {
  background: var(--bg-primary);
  padding: 5rem 0;
}

.contact-form-wrapper {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
}

.contact-form .form-floating {
  margin-bottom: 0;
}

.contact-form .form-control {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 1rem;
  transition: var(--transition-fast);
  background: var(--bg-secondary);
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.1);
  background: white;
}

.contact-form label {
  color: var(--text-secondary);
  font-weight: 500;
}

.recaptcha-wrapper {
  display: flex;
  justify-content: center;
}

/* Navigation Cards */
.nav-links-section {
  background: var(--bg-secondary);
  padding: 3rem 0;
}

.nav-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid #e2e8f0;
  height: 100%;
}

.nav-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.nav-card-content {
  display: flex;
  align-items: center;
  padding: 2rem;
  gap: 1.5rem;
}

.nav-card-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.nav-card-text {
  flex-grow: 1;
}

.nav-card-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.nav-card-text p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
}

.nav-card-arrow {
  flex-shrink: 0;
  color: var(--primary-color);
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.nav-card:hover .nav-card-arrow {
  transform: translateX(5px);
}

/* Employment Section */
.employment-section {
  background: var(--bg-primary);
  padding: 5rem 0;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: white;
  border: 3px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-status {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.timeline-status.current {
  background: var(--primary-color);
  animation: pulse 2s infinite;
}

.timeline-status.completed {
  background: #10b981;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.timeline-content {
  margin-left: 1rem;
}

.experience-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
  transition: var(--transition-normal);
}

.experience-card:hover {
  box-shadow: var(--shadow-lg);
}

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

.experience-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.experience-title h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.company-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin: 0;
}

.experience-description p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.experience-projects {
  margin: 1.5rem 0;
}

.experience-projects h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

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

.project-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: #f8fafc;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Training Section */
.training-section {
  background: var(--bg-secondary);
  padding: 4rem 0;
}

.training-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: var(--transition-normal);
}

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

.training-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.training-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.training-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Certifications Section */
.certifications-section {
  background: var(--bg-primary);
  padding: 5rem 0;
}

.certification-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
  max-width: 500px;
  margin: 0 auto;
  transition: var(--transition-normal);
}

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

.certification-image {
  padding: 2rem;
  background: var(--bg-secondary);
  text-align: center;
}

.cert-logo {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
}

.certification-content {
  padding: 2rem;
}

.certification-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.certification-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Carousel Styling */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
}

.carousel-indicators {
  margin-bottom: -3rem;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--primary-color);
  border: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

/* Modern Button Styles */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

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

.btn-outline-primary {
  background: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Modal Enhancements */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem 2rem;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem 2rem;
}

/* Navbar Enhancements */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
  transition: var(--transition-fast);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background: #f8fafc;
}

/* Footer Enhancements */
footer {
  background: var(--bg-dark) !important;
  padding: 3rem 0 2rem !important;
}

footer a {
  color: #d1d5db !important;
  transition: var(--transition-fast);
}

footer a:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    justify-content: center;
  }
  
  .profile-image {
    width: 220px;
    height: 220px;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  .nav-card-content {
    padding: 1.5rem;
  }
  
  .experience-card {
    padding: 1.5rem;
  }
  
  .training-card {
    flex-direction: column;
    text-align: center;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline::before {
    left: 0.75rem;
  }
  
  .timeline-marker {
    left: -1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .profile-image {
    width: 180px;
    height: 180px;
  }
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
  .stat-card {
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .stat-card:nth-child(1) { animation-delay: 0.1s; }
  .stat-card:nth-child(2) { animation-delay: 0.2s; }
  .stat-card:nth-child(3) { animation-delay: 0.3s; }
  .stat-card:nth-child(4) { animation-delay: 0.4s; }
}

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