:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #f8f9fa;
  --card-bg: #dce6ee;
  --section-light: #fcfdff;
  --text-light: #333;
  --text-muted: #6c757d;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-light);
  background-color: #ffffff;
  line-height: 1.65;
  scroll-behavior: smooth;
}

  .navbar .nav-link.active {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

.section-padding {
  padding: 60px 0;
}

.section-title {
  margin-bottom: 2.5rem;
  position: relative;
  text-align: center;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 2rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--secondary-color), #5dade2);
  margin: 12px auto 0;
  border-radius: 2px;
}

.navbar {
  background-color: var(--primary-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

.navbar-brand,
.nav-link {
  color: #fff !important;
  font-weight: 600;
  transition: color 0.2s ease;
}

.navbar-brand:hover,
.nav-link:hover {
  color: var(--secondary-color) !important;
}

.hero {
  background: linear-gradient(135deg, #6fb3e8, #3d566e);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
  z-index: 0;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.hero p.lead {
  font-size: 1.25rem;
  opacity: 0.95;
}

.hero .btn {
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: all 0.3s ease;
  border: none;
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.hero .btn-light {
  color: var(--primary-color) !important;
}

.profile-img {
  width: 85%;
  max-width: 340px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: all 0.35s ease;
  border: 3px solid #fff;
}

.profile-img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.card {
  background: var(--card-bg); 
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
  height: 100%;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--secondary-color), #5dade2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.card:hover::before {
  opacity: 1;
}

.card .card-body {
  padding: 1.5rem;
}

.card .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.card .card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card .badge {
  font-size: 0.75rem;
  padding: 0.4em 0.7em;
  background-color: #eef4ff;
  color: var(--secondary-color);
  border: none;
  border-radius: 20px;
  font-weight: 600;
}

.card-img-top {
  height: 190px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img-top {
  transform: scale(1.03);
}

.timeline {
  position: relative;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary-color), #5dade2);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: var(--secondary-color);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
  position: relative;
}

.timeline-item {
  position: relative;
  margin-top: 1.5rem;
  transition: transform 0.2s ease;
}

.timeline-item:hover {
  transform: scale(1.01);
}

.education-card {
  background: rgb(221, 231, 236); 
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--secondary-color);
  transition: all 0.25s ease;
}

.education-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.accordion-item {
  border: 1px solid #eaeef5;
  border-radius: 12px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.accordion-button {
  background-color: #f8f9fa;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.1rem 1.25rem;
  border: none;
}

.accordion-button:not(.collapsed) {
  background-color: #e3f2fd;
  color: var(--secondary-color);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}

.accordion-body {
  background-color: #fafcff;
  padding: 1.25rem;
}

.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}


.form-control,
.form-select {
  border: 1px solid #ced4da;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  border-color: var(--secondary-color);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.alert {
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.footer {
  background-color: var(--primary-color);
  color: white;
}

.footer a {
  color: #bcc8d9;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.carousel-item img {
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

#about p {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;
}

.modal-img-fixed {
    width: 100%;
    max-height: 350px;
    object-fit: contain; 
    background-color: #ffffff; 
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }
  .modal-img-fixed {
        height: 200px; 
    }
  .section-title {
    font-size: 1.75rem;
  }
  .profile-img {
    max-width: 260px;
  }
  .hero .btn {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  .timeline::before,
  .timeline-dot {
    display: none;
  }
  .education-card {
    padding-left: 40px;
    position: relative;
  }
  .education-card::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  .section-padding {
    padding: 40px 0;
  }
}