/* ==========================================
   General Styles & Reset
   ========================================== */

:root {
  --primary-color: #010;
  --secondary-color: #f3f3f3;
  --accent-color: #fff;
  --card-color: #e8e8e8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  line-height: 1.6;
}

.invert {
  filter: invert(1) hue-rotate(180deg);
}

/* ==========================================
   Navigation
   ========================================== */

.navbar {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: var(--card-color) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-link {
  font-weight: 500;
  margin-left: 1rem;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent !important;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  border-bottom: 2px solid var(--primary-color) !important;
}

@media (max-width: 992px) {
  .nav-item:nth-last-child(2) {
    margin-bottom: 8px;
  }
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 0.5rem;
}

.language-switcher .btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.language-switcher .btn.active {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.language-switcher .btn-outline-dark:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* ==========================================
   Main Content & Sections
   ========================================== */

main {
  padding: 2rem 0;
}

.section {
  scroll-margin-top: 100px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* ==========================================
   About Section
   ========================================== */

.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border-radius: 10px;
}

@media (max-width: 992px) {
  .about-image {
    min-height: 0;
  }
}

.about-image img {
  width: 100%;
  height: auto;
}

.placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ==========================================
   Timeline (Career Section)
   ========================================== */

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 170px;
  width: 2px;
  background-color: var(--primary-color);
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 100px;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background-color: var(--accent-color);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-marker.now {
  background: #e73874;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.15);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.timeline-content {
  background-color: var(--card-color);
  padding: 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.timeline-content h4 {
  font-weight: 700;
  color: var(--primary-color);
}

.timeline-content p {
  margin: 0.5rem 0 0 0;
}

@media (max-width: 768px) {
  .timeline::before {
    bottom: 230px;
  }
}

@media (max-width: 405px) {
  .timeline::before {
    bottom: 280px;
  }
}

@media (max-width: 330px) {
  .timeline::before {
    bottom: 320px;
  }
}

/* ==========================================
   Diplomas Section
   ========================================== */

.diploma-link {
  text-decoration: none;
  color: inherit;
}

.diploma-card {
  transition: all 0.3s ease;
  height: 100%;
}

.diploma-card img {
  height: 40px;
  width: auto;
}

.diploma-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

/* ==========================================
   Projects Section
   ========================================== */

.project-card {
  background-color: var(--card-color);
  border-radius: 8px;
  border: 2px solid black;
  transition: all 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.project-image {
  width: 100%;
  height: 40%;
}

.project-image img {
  height: 100%;
  width: 100%;
  border-radius: 8px 8px 0 0;
}

.left-cover {
  object-fit: cover;
  object-position: 10% 100%;
}

.center-cover {
  object-fit: cover;
  object-position: center;
}

.project-card:hover .project-image {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
}

.btn-outline-dark {
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-dark:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--accent-color);
  transform: scale(1.05);
}

/* ==========================================
   Contact Section
   ========================================== */

.contact-item {
  align-items: center;
  font-size: 1rem;
}

.contact-item i {
  font-size: 1.25rem;
  width: 30px;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item a:hover {
  text-decoration: underline;
}

.github-section {
  margin-top: 2rem;
}

#github-graph-container {
  border-radius: 8px;
  padding: 1.5rem;
  overflow: hidden;
}

#github-graph-container img {
  max-width: 100%;
  height: auto;
}

/* ==========================================
   Footer
   ========================================== */

footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  margin: 0;
  font-weight: 500;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }

  main {
    padding: 1rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

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

/* ==========================================
   Utility Classes
   ========================================== */

.bg-light {
  background-color: var(--card-color) !important;
}

.bg-dark {
  background-color: var(--primary-color) !important;
}

.border-bottom {
  border-bottom: 1px solid var(--primary-color) !important;
}

/* Smooth transitions */
a,
button {
  transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
  background: var(--card-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}
