:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary-color: #64748b;
  --accent-color: #0f172a;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
  --gray-text: #64748b;
  --white: #fff;
  --text-dark: #1e293b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Sections Spacing */
section {
  padding: 5rem 0;
}

section.container {
  padding: 5rem 1rem;
}

/* Navigation & Header */
header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.navbar-brand {
  letter-spacing: 0.5px;
  font-size: 1.3rem;
  font-weight: 700;
}
.nav-item .nav-link {
  color: var(--white);
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
}
.nav-item .nav-link:hover {
  color: var(--primary-light);
}
.nav-item .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-light);
  transition: width 0.3s ease;
}
.nav-item .nav-link:hover::after {
  width: 100%;
}
.hero {
  height: 70vh;
  background: url("../images/home-bg.jpg") no-repeat center/cover fixed;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.4);
}
.hero > div {
  position: relative;
  z-index: 1;
}
.hero h1 {
  letter-spacing: 1px;
  font-size: 2.5rem;
}
.hero h2 {
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

/* Skills Section */
.skill-card {
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
  background-color: var(--white);
  border-radius: 12px;
}
.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
  border-color: var(--primary-light);
}
.skill-card h3 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}
.skill-card p {
  color: var(--gray-text);
  font-size: 0.95rem;
}
.skill-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 12px;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
}
.skill-card .badge {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border: none;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Project Cards */
.project-card {
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
  border-color: var(--primary-light);
}
.project-card-img {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.project-card:hover .project-card-img {
  transform: scale(1.04);
}
.project-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}
.project-technologies {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.project-title {
  color: var(--text-dark);
  transition: color 0.3s ease;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.project-card:hover .project-title {
  color: var(--primary-color);
}
.project-description {
  color: var(--gray-text);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.6;
}
.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
.project-link:hover {
  color: var(--white);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* CV and About Sections */
.cv-container {
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}
.profile-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  border-radius: 12px;
}
.timeline-item {
  position: relative;
  padding: 1.5rem;
  background-color: var(--white);
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.timeline-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
  border-color: var(--primary-light);
}
.timeline-item h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.timeline-item p {
  color: var(--gray-text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Social Icons */
.social-icons a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  margin: 0 0.6rem;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  font-size: 1.1rem;
  border: 2px solid var(--primary-color);
}
.social-icons a:hover {
  transform: translateY(-4px);
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

/* Footer */
.footer {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 3rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer p, .footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}
.footer a:hover {
  color: var(--white);
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.75rem 2rem;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

/* Section Headings */
h2.display-6 {
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

/* Portfolio Section */
#portfolio h2 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
#portfolio h5 {
  color: var(--gray-text);
  font-size: 1.1rem;
  font-weight: 400;
}
#portfolio .row.p-5 {
  padding: 2rem 0 !important;
  gap: 2rem;
}
#portfolio .col-lg-4 {
  padding: 0 !important;
}

/* About Section */
#about {
  background-color: var(--white);
}
#about h2 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
#about h5 {
  color: var(--gray-text);
  font-size: 1.1rem;
  font-weight: 400;
}
.about-section {
  padding: 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.timeline-image {
  width: 200px;
  height: 200px;
  border: 4px solid var(--primary-color);
  object-fit: cover;
  transition: transform 0.3s ease;
}
.timeline-item:hover .timeline-image {
  transform: scale(1.05);
}
.timeline-content h3 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
}
.timeline-content h4 {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
}
.timeline-content p {
  color: var(--gray-text);
  line-height: 1.8;
}

/* CV Section */
.cv-container {
  margin-top: 3rem;
}
.cv-container .col-lg-4 {
  background-color: var(--light-bg);
  border-right: 1px solid var(--border-color);
}
.cv-container h2 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.5rem;
}
.cv-container h3 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.cv-container h5 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.cv-container p {
  color: var(--gray-text);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.contact-info p {
  font-size: 0.9rem;
  color: var(--gray-text);
}
.contact-info i {
  width: 20px;
}
.section-divider {
  border: none;
  border-top: 2px solid var(--border-color);
  margin: 1rem 0 1.5rem;
}
.skills-section .badge {
  background-color: var(--primary-light);
  /* color: var(--primary-color); */
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border: none;
}

/* Skills Section Improvements */
#skills {
  background-color: var(--light-bg);
}
#skills h2 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
#skills .lead {
  color: var(--gray-text);
  font-size: 1.1rem;
  font-weight: 400;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  section.container {
    padding: 3rem 1rem;
  }
  
  .timeline-item {
    text-align: center;
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  #portfolio h2,
  #about h2,
  #skills h2 {
    font-size: 2rem;
  }
  
  .cv-container .col-lg-4 {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
  }
  
  .timeline-image {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
  }
}
.hire-badge {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  margin: 3rem auto;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
}
.hire-badge:hover {
  transform: scale(1.08);
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

/* Additional Spacing & Polish */
.container {
  max-width: 1200px;
}

/* Section Spacing Consistency */
#skills,
#portfolio,
#about {
  margin-top: 2rem;
}

/* Text Utilities */
.text-primary {
  color: var(--primary-color) !important;
}

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

.text-secondary {
  color: var(--secondary-color) !important;
}

/* Link Styling */
a {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Improved Readability */
p {
  margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}