/* Base Styles and Variables */
:root {
  --primary-color: #64b5f6;
  --primary-dark: #2196f3;
  --secondary-color: #90caf9;
  --accent-color: #4caf50; /* Changed from #ff7043 (orange) to #4caf50 (green) */
  --dark-bg: #121212;
  --dark-surface: #1e1e1e;
  --dark-surface-light: #2d2d2d;
  --border-color: #333;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --border-radius: 8px;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s ease;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--text-primary);
  background-color: var(--dark-bg);
  line-height: 1.6;
}

.open-sans {
  font-family: "Open Sans", sans-serif;
}

/* Navigation Styles */
nav {
  background: var(--dark-surface);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  box-shadow: var(--box-shadow);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-home {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.nav-home:hover {
  color: var(--primary-color);
}

.nav-separator {
  color: var(--text-secondary);
  margin: 0 12px;
  opacity: 0.7;
}

.nav-project {
  color: var(--primary-color);
  font-weight: 700;
}

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  margin: 32px auto;
  max-width: 1000px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.mySlides {
  display: none;
  width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.mySlides.active {
  display: block;
  opacity: 1;
}

.slide-media {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: var(--transition);
  user-select: none;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prev {
  left: 12px;
}

.next {
  right: 12px;
}

.prev:hover,
.next:hover {
  background-color: var(--primary-dark);
}

/* Dot Indicators */
.dot-container {
  text-align: center;
  margin: 16px 0 32px;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: #555;
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition);
}

.active-dot,
.dot:hover {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Project Info Styles */
.project-info {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 24px;
  text-align: center;
}

.info-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.info-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 12px auto 0;
  border-radius: 2px;
}

.tech-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
}

.tech-icons img {
  width: 40px;
  height: 40px;
  transition: var(--transition);
  filter: drop-shadow(0 0 3px rgba(100, 181, 246, 0.5));
}

.tech-icons img:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 0 6px rgba(100, 181, 246, 0.8));
}

.project-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Content Section Styles */
.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.content-block {
  background-color: var(--dark-surface-light);
  padding: 24px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.content-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
  border-color: var(--primary-color);
}

.content-header {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.content-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 1.5px;
}

.content-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.content-list li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
}

.content-list li::before {
  content: "•";
  color: var(--accent-color); /* This bullet point color is now green */
  font-size: 24px;
  position: absolute;
  left: 0;
  top: -4px;
}

/* Footer Styles */
footer {
  background-color: var(--dark-surface);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Tooltip Styles */
.tooltip {
  position: absolute;
  background-color: var(--dark-surface);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 14px;
  z-index: 1000;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-section {
    grid-template-columns: 1fr;
  }

  .info-title {
    font-size: 28px;
  }

  .project-description {
    font-size: 16px;
  }

  nav {
    padding: 12px 16px;
  }

  .tech-icons {
    gap: 16px;
  }

  .tech-icons img {
    width: 32px;
    height: 32px;
  }
}

/* Animation for Slideshow */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mySlides {
  animation: fadeIn 0.8s ease;
}

/* Glow effects */
.nav-project,
.info-title {
  text-shadow: 0 0 5px rgba(100, 181, 246, 0.3);
}

/* Add subtle grain texture to background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: -1;
}
