/* Custom CSS for Resume */

/* Global Styles */
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Prevent scroll accumulation */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* Profile Section - Left Column */
.profile-section {
  position: sticky;
  top: 100px;
  height: fit-content;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  z-index: 10;
}

.profile-image-main {
  border: 4px solid #f8f9fa;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Content Sections - Right Column */
.bg-white {
  background: #ffffff !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.rounded-3 {
  border-radius: 12px !important;
}

/* Key Achievements Section */
.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
  transition: all 0.2s ease;
}

.achievement-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.achievement-badge {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.achievement-content h6 {
  color: #212529;
  margin-bottom: 0.5rem;
}

.achievement-content p {
  color: #6c757d;
  line-height: 1.4;
  margin: 0;
}

.achievement-content strong {
  color: #007bff;
}

/* Experience Items */
.experience-item {
  border-bottom: 1px solid #f1f3f4;
  padding-bottom: 1.5rem;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.experience-item:last-child {
  border-bottom: none;
  padding-bottom: 1.5rem;
}

/* Experience Theme Colors */
.experience-theme-1 {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-left: 4px solid #1e40af;
}

.experience-theme-1 h5 {
  color: #1e40af;
}

.experience-theme-1 h6 {
  color: #1e40af !important;
}

.experience-theme-1 .badge {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
}

.experience-theme-2 {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border-left: 4px solid #16a34a;
}

.experience-theme-2 h5 {
  color: #16a34a;
}

.experience-theme-2 h6 {
  color: #16a34a !important;
}

.experience-theme-2 .badge {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%) !important;
}

.experience-theme-3 {
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
  border-left: 4px solid #ca8a04;
}

.experience-theme-3 h5 {
  color: #ca8a04;
}

.experience-theme-3 h6 {
  color: #ca8a04 !important;
}

.experience-theme-3 .badge {
  background: linear-gradient(135deg, #ca8a04 0%, #eab308 100%) !important;
}

.experience-theme-4 {
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
  border-left: 4px solid #dc2626;
}

.experience-theme-4 h5 {
  color: #dc2626;
}

.experience-theme-4 h6 {
  color: #dc2626 !important;
}

.experience-theme-4 .badge {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
}

.experience-theme-5 {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-left: 4px solid #0891b2;
}

.experience-theme-5 h5 {
  color: #0891b2;
}

.experience-theme-5 h6 {
  color: #0891b2 !important;
}

.experience-theme-5 .badge {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) !important;
}

.experience-theme-6 {
  background: linear-gradient(135deg, #ffffff 0%, #fdf4ff 100%);
  border-left: 4px solid #9333ea;
}

.experience-theme-6 h5 {
  color: #9333ea;
}

.experience-theme-6 h6 {
  color: #9333ea !important;
}

.experience-theme-6 .badge {
  background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%) !important;
}

.experience-theme-7 {
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
  border-left: 4px solid #059669;
}

.experience-theme-7 h5 {
  color: #059669;
}

.experience-theme-7 h6 {
  color: #059669 !important;
}

.experience-theme-7 .badge {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
}

.experience-theme-8 {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  border-left: 4px solid #ea580c;
}

.experience-theme-8 h5 {
  color: #ea580c;
}

.experience-theme-8 h6 {
  color: #ea580c !important;
}

.experience-theme-8 .badge {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
}

.experience-theme-9 {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-left: 4px solid #0ea5e9;
}

.experience-theme-9 h5 {
  color: #0ea5e9;
}

.experience-theme-9 h6 {
  color: #0ea5e9 !important;
}

.experience-theme-9 .badge {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%) !important;
}

.experience-theme-10 {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-left: 4px solid #6b7280;
}

.experience-theme-10 h5 {
  color: #6b7280;
}

.experience-theme-10 h6 {
  color: #6b7280 !important;
}

.experience-theme-10 .badge {
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%) !important;
}

/* Skill Badges */
.skill-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
  transition: all 0.15s ease-in-out;
}

.skill-badge:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
  transform: translateY(-1px);
}

/* Progress Bars */
.progress {
  height: 8px;
  border-radius: 4px;
  background-color: #f1f3f4;
  overflow: hidden;
}

.progress-bar {
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* Contact Card */
.contact-card {
  background: #ffffff;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Social Links */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

/* Navigation */
.navbar {
  z-index: 1030;
}

.navbar-brand img {
  border: 2px solid #e9ecef;
}

/* Nav download button - keep visible primary style */
.navbar .btn-primary {
  background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11);
}

.navbar .btn-primary:hover {
  color: #fff !important;
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.2);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .profile-section {
    position: static;
    margin-bottom: 2rem;
  }
  
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 767.98px) {
  .profile-section {
    text-align: center;
  }
  
  .profile-section .mb-4:nth-child(3),
  .profile-section .mb-4:nth-child(4),
  .profile-section .mb-4:nth-child(5),
  .profile-section .mb-4:last-child {
    text-align: left;
  }
  
  .experience-item {
    padding-bottom: 1rem;
    padding: 1rem;
  }
  
  .achievement-item {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .achievement-badge {
    font-size: 1.25rem;
  }
  
  .skill-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  
  .progress {
    height: 6px;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .profile-section,
  .bg-white {
    padding: 1rem !important;
  }
  
  .experience-item {
    padding-bottom: 0.75rem;
    padding: 0.75rem;
  }
  
  .achievement-item {
    padding: 0.5rem;
    gap: 0.5rem;
  }
}

/* iOS Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
  .profile-section {
    position: -webkit-sticky;
    position: sticky;
  }
}

/* Android Mobile Specific Overrides */
@media screen and (max-width: 768px) {
  .profile-section {
    position: relative;
    top: auto !important;
  }
}

/* Section Spacing */
section {
  scroll-margin-top: 100px;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

/* Hover Effects */
.experience-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Badge Styling */
.badge {
  font-weight: 500;
  letter-spacing: 0.025em;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.bg-gradient-info {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

.bg-gradient-danger {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #434343 0%, #000000 100%) !important;
}
