
:root {
  --primary-accent: #64ffda;
  --secondary-accent: #bb86fc;
  --text-primary: #ffffff;
  --text-secondary: #e8e5e5;
  --text-muted: #f9cfcf;
  --background-primary: #0f1419;
  --background-secondary: #1a1f2e;
  --background-card: #151b26;
  --border-color: #2d3748;
  --hover-bg: rgba(100, 255, 218, 0.08);
  --shadow-color: rgba(100, 255, 218, 0.15);
}

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

body {
  background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%);
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(ellipse at center, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.3)); }
  to { filter: drop-shadow(0 0 30px rgba(187, 134, 252, 0.4)); }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cyber-btn {
  background: rgba(100, 255, 218, 0.05);
  color: var(--primary-accent);
  border: 1px solid rgba(100, 255, 218, 0.3);
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.cyber-btn:hover {
  background: var(--hover-bg);
  border-color: var(--primary-accent);
  box-shadow: 0 8px 25px var(--shadow-color);
  transform: translateY(-3px);
  color: var(--primary-accent);
  text-decoration: none;
}

.cyber-btn.secondary {
  background: rgba(187, 134, 252, 0.05);
  color: var(--secondary-accent);
  border-color: rgba(187, 134, 252, 0.3);
}

.cyber-btn.secondary:hover {
  background: rgba(187, 134, 252, 0.08);
  border-color: var(--secondary-accent);
  box-shadow: 0 8px 25px rgba(187, 134, 252, 0.15);
  color: var(--secondary-accent);
}

/* Floating particles background */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%2364ffda" opacity="0.3"/><circle cx="80" cy="40" r="0.5" fill="%23bb86fc" opacity="0.4"/><circle cx="40" cy="80" r="0.8" fill="%2364ffda" opacity="0.2"/></svg>');
  animation: float 20s linear infinite;
  opacity: 0.6;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-100vh) rotate(360deg); }
}

/* Featured Work Section */
.featured-work {
  padding: 100px 0;
  background: rgba(0, 0, 0, 0.2);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-accent);
  margin-bottom: 3rem;
  font-weight: 600;
}

/* Expandable featured project with markdown */
.featured-project {
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.featured-project.collapsed {
  max-height: 400px;
}

.featured-project.expanded {
  max-height: none;
}

.featured-project:hover {
  border-color: var(--primary-accent);
  box-shadow: 0 20px 40px rgba(100, 255, 218, 0.15);
  transform: translateY(-5px);
}

.expand-indicator {
  position: absolute;
  top: 25px;
  right: 25px;
  color: var(--secondary-accent);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  z-index: 10;
}

.featured-project.expanded .expand-indicator {
  transform: rotate(180deg);
}

.featured-project:hover .expand-indicator {
  color: var(--primary-accent);
}

/* Markdown content styling for featured project */
.featured-project-markdown {
  padding: 40px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.featured-project-markdown h1,
.featured-project-markdown h2,
.featured-project-markdown h3 {
  color: var(--primary-accent);
  margin-bottom: 16px;
}

.featured-project-markdown h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.featured-project-markdown h2 {
  font-size: 1.4rem;
}

.featured-project-markdown h3 {
  font-size: 1.2rem;
}

.featured-project-markdown p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.featured-project-markdown img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin: 15px 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.featured-project-markdown ul,
.featured-project-markdown ol {
  padding-left: 2em;
  margin-bottom: 16px;
}

.featured-project-markdown li {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.featured-project-markdown code {
  background-color: var(--background-card);
  color: var(--primary-accent);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

.featured-project-markdown pre {
  background-color: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}

/* Fade effect for collapsed content */
.featured-project.collapsed .featured-project-markdown::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--background-card));
  pointer-events: none;
}

.featured-project.expanded .featured-project-markdown::after {
  display: none;
}

/* Tech tags styling */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tech-tag {
  background: rgba(100, 255, 218, 0.1);
  color: var(--primary-accent);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(100, 255, 218, 0.3);
}

/* Other Projects Grid */
.other-projects {
  padding: 100px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.project-card {
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--primary-accent);
  box-shadow: 0 15px 30px rgba(100, 255, 218, 0.1);
  transform: translateY(-5px);
}

.project-card i {
  font-size: 3rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.project-card:hover i {
  color: var(--primary-accent);
  transform: scale(1.1);
}

.project-card h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.contact-link:hover {
  color: var(--primary-accent);
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--primary-accent);
  background: rgba(100, 255, 218, 0.05);
}

.contact-link i {
  font-size: 1.3rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary-accent);
  animation: bounce 2s infinite;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Last updated - keeping your original styling */
#last-updated {
  font-size: 0.9rem;
  color: var(--text-primary) !important; 
  font-style: italic;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: rgba(100, 255, 218, 0.03); 
  border: 1px solid rgba(100, 255, 218, 0.1);
  display: inline-block;
  backdrop-filter: blur(10px);
}

#last-updated i {
  margin-right: 0.5rem;
  color: var(--primary-accent);
}

/* Modal styles */
.modal-content {
  background-color: var(--background-primary); 
  border: 1px solid var(--border-color); 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); 
  max-height: 90vh;
  border-radius: 12px; 
}

.modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.modal-header {
  border-bottom: 1px solid var(--border-color); 
  background: rgba(100, 255, 218, 0.02); 
}

/* Modal navigation controls */
.modal-nav-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.modal-nav-btn {
  background: rgba(100, 255, 218, 0.05);
  border: 1px solid rgba(100, 255, 218, 0.3);
  color: var(--primary-accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-nav-btn:hover:not(:disabled) {
  background: var(--hover-bg);
  border-color: var(--primary-accent);
  transform: scale(1.1);
}

.modal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.modal-nav-btn i {
  font-size: 0.9rem;
}

.modal-title {
  color: var(--text-primary) !important; 
}

.custom-btn {
  background: rgba(100, 255, 218, 0.05) !important;
  color: var(--text-primary) !important; 
  border: 1px solid rgba(100, 255, 218, 0.3) !important; 
  transition: all 0.3s ease !important;
  border-radius: 8px; 
}

.custom-btn:hover {
  box-shadow: 0 4px 20px rgba(100, 255, 218, 0.15) !important; 
  border-color: var(--primary-accent) !important; 
  color: var(--text-primary) !important; 
}

.markdown-body {
  padding: 20px;
  line-height: 1.6;
  background-color: var(--background-primary);
  color: var(--text-secondary);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  color: var(--primary-accent);
  margin-bottom: 16px;
}

.markdown-body p,
.markdown-body li {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.markdown-body a {
  color: var(--primary-accent);
  text-decoration: none;
}

.markdown-body code {
  background-color: var(--background-card);
  color: var(--primary-accent);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

/* Standardize modal images */
.markdown-body img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin: 10px 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Image Slideshow Styles (for project modals) */
.cyber-slideshow {
  margin: 20px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--primary-accent);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--primary-accent);
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: var(--background-primary);
}

.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  border: 1px solid rgba(100, 255, 218, 0.2);
}

/* Slideshow navigation buttons */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--primary-accent);
  border: 1px solid var(--primary-accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.slide-nav:hover {
  opacity: 1;
  box-shadow: 0 0 10px var(--primary-accent);
  background: rgba(0, 0, 0, 0.9);
}

.slide-nav.prev {
  left: 10px;
}

.slide-nav.next {
  right: 10px;
}

.slide-nav i {
  font-size: 14px;
  color: var(--primary-accent);
}

/* Slideshow indicator */
.slide-indicator {
  position: absolute;
  bottom: 60px;
  right: 10px;
  color: var(--primary-accent);
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  border: 1px solid rgba(100, 255, 218, 0.3);
  z-index: 10;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: var(--primary-accent);
  padding: 10px;
  padding-top: 25px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  opacity: 0.9;
  z-index: 5;
  height: 60px;
}

/* Cyberpunk scan line effect */
.slideshow-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.15;
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .featured-work,
  .other-projects,
  .contact-section {
    padding: 60px 0;
  }

  .featured-project-markdown {
    padding: 30px;
  }

  .project-card {
    padding: 25px;
  }

  .modal-nav-controls {
    flex-direction: column;
    gap: 10px;
  }
}

/* Mini project sections */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 3rem;
}

.mini-project-section {
  background: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.mini-project-section.collapsed {
  max-height: 120px;
}

.mini-project-section.expanded {
  max-height: none;
  cursor: default;
}

.mini-project-section:hover {
  border-color: var(--primary-accent);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
  transform: translateY(-2px);
}

.mini-project-header {
  display: flex;
  align-items: center;
  padding: 25px 30px;
  gap: 20px;
  position: relative;
}

.mini-project-icon {
  background: rgba(100, 255, 218, 0.05);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.mini-project-icon i {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.mini-project-section:hover .mini-project-icon i {
  color: var(--primary-accent);
  transform: scale(1.1);
}

.mini-project-info {
  flex: 1;
}

.mini-project-info h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 600;
}

.mini-project-info p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.mini-expand-indicator {
  color: var(--secondary-accent);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.mini-project-section.expanded .mini-expand-indicator {
  transform: rotate(180deg);
}

.mini-project-section:hover .mini-expand-indicator {
  color: var(--primary-accent);
}

.mini-project-content {
  padding: 0 30px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease, padding 0.3s ease;
}

.mini-project-section.expanded .mini-project-content {
  opacity: 1;
  max-height: 2000px;
  padding: 0 30px 30px 30px;
}

/* Markdown styling for mini projects */
.mini-project-content h1,
.mini-project-content h2,
.mini-project-content h3,
.mini-project-content h4 {
  color: var(--primary-accent);
  margin-bottom: 12px;
}

.mini-project-content h1 {
  font-size: 1.6rem;
}

.mini-project-content h2 {
  font-size: 1.3rem;
}

.mini-project-content h3 {
  font-size: 1.1rem;
}

.mini-project-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.mini-project-content ul,
.mini-project-content ol {
  padding-left: 1.5em;
  margin-bottom: 12px;
}

.mini-project-content li {
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.mini-project-content img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin: 12px 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.mini-project-content code {
  background-color: rgba(100, 255, 218, 0.1);
  color: var(--primary-accent);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.mini-project-content pre {
  background-color: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
  margin: 12px 0;
}

/* Fade effect for collapsed mini projects */
.mini-project-section.collapsed .mini-project-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--background-card));
  pointer-events: none;
}

.mini-project-section.expanded .mini-project-content::after {
  display: none;
}
