/* Dark Theme Portfolio Styles */
:root {
  --bg-color: #000000;
  --text-color: #ffffff;
	--accent: #EA1821;
  --highlight-color: #b4e04b; /* Green highlight from the image */
  --nav-height: 60px;
  --transition-speed: 0.4s;
}

body.dark-theme {
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Preserve the existing page overlay */
.page-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Navigation Styles - Preserve original styles and enhance with dark theme */
nav.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
}

.nav-logo a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Preserve the original double-text hover effect */
.nav-links a span {
  display: block;
  transition: transform var(--transition-speed);
}

.nav-links a span:nth-child(1) {
  transform: translateY(0);
}

.nav-links a span:nth-child(2) {
  position: absolute;
  top: 0;
  transform: translateY(100%);
}

.nav-links a:hover span:nth-child(1) {
  transform: translateY(-100%);
}

.nav-links a:hover span:nth-child(2) {
  transform: translateY(0);
}

.nav-links a.active {
  font-weight: bold;
}

/* Portfolio Layout */
.portfolio-container {
  display: flex;
  min-height: 80vh;
  padding-top: var(--nav-height);
}

.project-list {
  flex: 1;
  padding: 80px 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.project-item {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  transition: transform var(--transition-speed), color var(--transition-speed);
}

.project-item h2 {
  font-size: 48px;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.project-item:hover {
  color: var(--accent);
  transform: translateX(10px);
}

/* Project Preview */
.project-preview {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

.preview-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#preview-image {
  max-width: 100%;
  max-height: 70vh;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-speed), transform var(--transition-speed);
}

#preview-image.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Styles - Make compatible with dark theme */
footer {
  background-color: var(--bg-color);
  color: var(--text-color);
  margin-top: 40px;
  padding: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-col p, .footer-col ul {
  font-size: 14px;
  opacity: 0.8;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.footer-col a:hover {
  color: var(--accent);
}

.copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  opacity: 0.6;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .portfolio-container {
    flex-direction: column;
  }
  
  .project-list {
    width: 100%;
    padding: 60px 20px 30px;
  }
  
  .project-item h2 {
    font-size: 36px;
  }
  
  .project-preview {
    display: none; /* Hide previews on mobile */
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 20px;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .project-item h2 {
    font-size: 28px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
