/* Personal Website specific color scheme */
:root {
  --personal-primary-blue: #007bff;
  --personal-secondary-blue: #0056b3;
  --personal-light-blue: #b3d9ff;
  --personal-gradient-start: #007bff;
  --personal-gradient-mid: #4dabf7;
  --personal-gradient-end: #74c0fc;
}

/* Personal Website container styling */
.personal-website .container {
  max-width: 1140px;
  width: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.personal-website section {
  padding: 30px 0;
}

/* Hero section specific padding */
.personal-website .personal-hero {
  padding: 120px 0 80px;
}

/* Personal Website metallic blue box styling for cards */
.personal-website .personal-details-card,
.personal-website .personal-features-card,
.personal-website .personal-tech-card,
.personal-website .personal-timeline-card,
.personal-website .personal-deployment-card {
  background: linear-gradient(145deg,
    rgba(179, 217, 255, 0.95) 0%,
    rgba(192, 224, 255, 0.9) 25%,
    rgba(204, 231, 255, 0.85) 50%,
    rgba(192, 224, 255, 0.9) 75%,
    rgba(179, 217, 255, 0.95) 100%);
  border-radius: 12px;
  box-shadow:
    0 4px 15px rgba(0, 123, 255, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
  position: relative;
  color: #000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.personal-website .personal-details-card::before,
.personal-website .personal-features-card::before,
.personal-website .personal-tech-card::before,
.personal-website .personal-timeline-card::before,
.personal-website .personal-deployment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 50%,
    rgba(0, 123, 255, 0.1) 100%);
  border-radius: 12px;
  pointer-events: none;
}

.personal-website .personal-details-card:hover,
.personal-website .personal-features-card:hover,
.personal-website .personal-tech-card:hover,
.personal-website .personal-deployment-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(0, 123, 255, 0.3),
    0 3px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 123, 255, 0.4);
}

/* Remove hover effect from timeline card specifically */
.personal-website .personal-timeline-card:hover {
  transform: none;
  box-shadow:
    0 4px 15px rgba(0, 123, 255, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 123, 255, 0.3);
}

/* Ensure text readability on blue backgrounds */
.personal-website .personal-details-card h5,
.personal-website .personal-features-card h5,
.personal-website .personal-tech-card h5,
.personal-website .personal-timeline-card h5,
.personal-website .personal-deployment-card h5 {
  color: #000;
  font-weight: 600;
}

.personal-website .personal-details-card h6,
.personal-website .personal-features-card h6,
.personal-website .personal-tech-card h6,
.personal-website .personal-timeline-card h6,
.personal-website .personal-deployment-card h6 {
  color: #000;
  font-weight: 500;
}

.personal-website .personal-details-card .text-muted,
.personal-website .personal-features-card .text-muted,
.personal-website .personal-tech-card .text-muted,
.personal-website .personal-timeline-card .text-muted,
.personal-website .personal-deployment-card .text-muted {
  color: #333;
}

/* Ensure icons have proper contrast */
.personal-website .personal-details-card i,
.personal-website .personal-features-card i,
.personal-website .personal-tech-card i,
.personal-website .personal-timeline-card i,
.personal-website .personal-deployment-card i {
  color: var(--personal-primary-blue);
}

.personal-hero {
  background: linear-gradient(135deg,
    var(--personal-gradient-start) 0%,
    var(--personal-gradient-mid) 35%,
    var(--personal-gradient-end) 100%);
  color: #000;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.personal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.personal-section {
  padding: 20px 0;
  margin: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.personal-feature-box {
  padding: 25px;
  margin-bottom: 25px;
  height: 100%;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: linear-gradient(145deg,
    rgba(179, 217, 255, 0.95) 0%,
    rgba(192, 224, 255, 0.9) 25%,
    rgba(204, 231, 255, 0.85) 50%,
    rgba(192, 224, 255, 0.9) 75%,
    rgba(179, 217, 255, 0.95) 100%);
  border-radius: 12px;
  box-shadow:
    0 4px 15px rgba(0, 123, 255, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 123, 255, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Remove the gradient overlay completely */
.personal-feature-box::before {
  display: none;
}

.personal-feature-box > * {
  position: static;
  z-index: auto;
}

.personal-feature-box:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(0, 123, 255, 0.3),
    0 3px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 123, 255, 0.4);
}

.personal-feature-box i {
  font-size: 2.5rem;
  color: var(--personal-primary-blue);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.personal-feature-box h4 {
  margin-bottom: 12px;
  text-align: center;
  color: #000;
  width: 100%;
}

.personal-feature-box p {
  margin-bottom: 0;
  line-height: 1.5;
  color: #333;
  text-align: center;
  width: 100%;
}

.personal-tech-badge {
  margin: 5px;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--personal-primary-blue), var(--personal-secondary-blue));
  color: white;
  border: none;
  transition: all 0.3s ease;
  display: inline-block;
  white-space: nowrap;
}

.personal-tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Equal-height rows for card layouts */
.row-equal-height {
  display: flex;
  align-items: stretch;
}

.row-equal-height > [class*="col-"] {
  display: flex;
}

.row-equal-height .personal-feature-box,
.row-equal-height .personal-tech-card,
.row-equal-height .personal-details-card,
.row-equal-height .personal-features-card {
  flex: 1;
}

.personal-btn-primary {
  background: linear-gradient(135deg, var(--personal-primary-blue), var(--personal-secondary-blue));
  border: none;
  color: white;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  margin: 5px;
  position: relative;
  overflow: hidden;
}

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

.personal-btn-primary:hover::before {
  left: 100%;
}

.personal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
  background: linear-gradient(135deg, var(--personal-secondary-blue), var(--personal-primary-blue));
  color: white;
  text-decoration: none;
}

.personal-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

/* Modern Compact Timeline Styles */
.personal-timeline {
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;
}

.personal-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--light-blue) 0%, var(--blue) 50%, var(--very-light-blue) 100%);
}

.personal-timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-left: 50px;
}

.personal-timeline-item:last-child {
  margin-bottom: 0;
}

.personal-timeline-content {
  background: linear-gradient(135deg, var(--blue) 0%, var(--very-light-blue) 100%);
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid var(--light-blue);
}

.personal-timeline-content:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  border-left-color: var(--very-light-blue);
}

.personal-timeline-dot {
  position: absolute;
  left: 12px;
  top: 20px;
  width: 18px;
  height: 18px;
  background: var(--light-blue);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(227, 242, 253, 0.5);
  z-index: 10;
  transition: all 0.3s ease;
}

.personal-timeline-item:hover .personal-timeline-dot {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.4);
  transform: scale(1.2);
}

.personal-timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff !important;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.personal-timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 8px;
  line-height: 1.2;
}

.personal-timeline-description {
  margin-bottom: 0;
  line-height: 1.4;
  color: #000000;
  font-size: 0.9rem;
}

/* Timeline responsive adjustments */
@media (max-width: 768px) {
  .personal-timeline::before {
    left: 15px;
  }

  .personal-timeline-item {
    padding-left: 40px;
    margin-bottom: 15px;
  }

  .personal-timeline-content {
    padding: 12px 15px;
  }

  .personal-timeline-dot {
    left: 8px;
    top: 15px;
    width: 14px;
    height: 14px;
    border-width: 2px;
  }

  .personal-timeline-title {
    font-size: 0.9rem;
  }

  .personal-timeline-description {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .personal-timeline::before {
    left: 12px;
    width: 2px;
  }

  .personal-timeline-item {
    padding-left: 35px;
    margin-bottom: 12px;
  }

  .personal-timeline-content {
    padding: 10px 12px;
  }

  .personal-timeline-dot {
    left: 6px;
    top: 12px;
    width: 12px;
    height: 12px;
  }

  .personal-timeline-date {
    font-size: 0.7rem;
  }

  .personal-timeline-title {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }

  .personal-timeline-description {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .personal-hero {
    padding: 60px 0 40px;
  }

  .personal-section {
    padding: 15px 0;
  }

  .personal-feature-box {
    padding: 20px;
    margin-bottom: 20px;
  }

  .row {
    margin-bottom: 1.2rem;
  }

  .display-5 {
    margin-bottom: 0.6rem;
  }

  .title-underline {
    margin-bottom: 0.4rem;
  }

  .lead {
    margin-bottom: 0.4rem;
  }
}

@media (max-width: 480px) {
  .personal-hero {
    padding: 40px 0 20px;
  }

  .personal-section {
    padding: 10px 0;
  }

  .personal-feature-box {
    padding: 15px;
    margin-bottom: 15px;
  }

  .row {
    margin-bottom: 1rem;
  }

  .personal-tech-badge {
    margin: 2px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .display-5 {
    margin-bottom: 0.5rem;
  }

  .title-underline {
    margin-bottom: 0.3rem;
  }

  .lead {
    margin-bottom: 0.3rem;
  }
}

/* Project Details Card Styling */
.personal-details-header {
  background: linear-gradient(135deg, var(--personal-primary-blue), var(--personal-secondary-blue));
  color: white;
  font-weight: 700;
  border: none;
  padding: 20px;
  margin: 0;
}

.personal-details-body {
  padding: 20px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  margin-bottom: 0;
}

.detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-item:first-child {
  padding-top: 0;
}

.detail-label {
  font-weight: 600;
  color: var(--personal-primary-blue);
  font-size: 0.9rem;
  flex: 1;
}

.detail-value {
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
  text-align: right;
  flex: 1;
}

/* Hero Button Styling */
.personal-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-width: 180px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

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

.personal-hero-btn:hover::before {
  left: 100%;
}

.personal-hero-btn-primary {
  background: linear-gradient(135deg, var(--personal-primary-blue), var(--personal-secondary-blue));
  color: white;
  border-color: var(--personal-primary-blue);
}

.personal-hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  background: linear-gradient(135deg, var(--personal-secondary-blue), var(--personal-primary-blue));
  color: white;
  text-decoration: none;
}

.personal-hero-btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.personal-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--personal-primary-blue);
  border-color: var(--personal-primary-blue);
}

.personal-hero-btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
  background: white;
  color: var(--personal-primary-blue);
  text-decoration: none;
}

.personal-hero-btn-secondary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

/* Responsive adjustments for hero buttons */
@media (max-width: 768px) {
  .personal-hero-btn {
    padding: 12px 28px;
    font-size: 1rem;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .personal-hero-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    min-width: 140px;
  }
}

/* Override: Project Overview sidebar cards should have natural height */
/* Only affects cards within #overview section */
.personal-website #overview .personal-details-card {
  height: auto !important;
}
