/* assets/css/style.css */

/* ===== RESET & BASE STYLES ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
  }
  body {
	font-family: Arial, sans-serif;
	background: #121212;
	color: #e0e0e0;
	line-height: 1.6;
  }
  a {
	color: #bb86fc;
	text-decoration: none;
  }
  a:hover {
	text-decoration: underline;
  }
  ul {
	list-style: none;
  }
  img {
	max-width: 100%;
	display: block;
  }
  
  /* ===== HEADER & NAVIGATION ===== */
  header {
	background: #1e1e1e;
	padding: 1rem 2rem;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 100;
  }
  nav ul {
	display: flex;
	gap: 1.5rem;
  }
  .nav-link {
	color: #e0e0e0;
	font-weight: bold;
	transition: color 0.3s ease;
  }
  .nav-link.active,
  .nav-link:hover {
	color: #bb86fc;
  }
  
  /* ===== MAIN CONTENT & PAGES ===== */
  main {
	padding-top: 80px; /* offset for fixed header */
  }
  .page {
	display: none;
	padding: 2rem;
	min-height: calc(100vh - 80px);
  }
  .page.active {
	display: block;
  }
  
  /* ===== PROJECTS GRID & CARD ===== */
  #projects-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
  }
  .project-card {
	background: #1e1e1e;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease;
	cursor: pointer;
  }
  .project-card:hover {
	transform: translateY(-5px);
  }
  .project-card img {
	width: 100%;
	height: 180px;
	object-fit: cover;
  }
  .card-content {
	padding: 1rem;
  }
  .card-content h2 {
	margin-bottom: 0.5rem;
	font-size: 1.25rem;
  }
  .card-content .project-year {
	font-size: 0.9rem;
	color: #aaa;
  }
  .card-content p {
	margin: 0.5rem 0;
  }
  .project-link {
	display: inline-block;
	margin-top: 0.5rem;
  }
  
  /* ===== PROJECT DETAIL VIEW ===== */
  #project-detail {
	padding: 2rem;
  }
  #detail-back {
	background: transparent;
	border: none;
	color: #bb86fc;
	font-size: 1rem;
	cursor: pointer;
	margin-bottom: 1rem;
  }
  #project-detail-content h2 {
	margin-bottom: 0.5rem;
  }
  #project-detail-content .gallery {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
  }
  #project-detail-content .gallery img {
	width: calc(50% - 0.5rem);
	border-radius: 4px;
  }
  .video-container {
	margin-top: 1rem;
	position: relative;
	padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
	height: 0;
  }
  .video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
  }
  
  /* ===== ANIMATIONS ===== */
  .fade-in {
	animation: fadeIn 0.5s forwards;
  }
  .fade-out {
	animation: fadeOut 0.5s forwards;
  }
  @keyframes fadeIn {
	from {
	  opacity: 0;
	  transform: translateY(10px);
	}
	to {
	  opacity: 1;
	  transform: translateY(0);
	}
  }
  @keyframes fadeOut {
	from {
	  opacity: 1;
	}
	to {
	  opacity: 0;
	  transform: translateY(-10px);
	}
  }
  
  /* ===== RESPONSIVE DESIGN ===== */
  @media (max-width: 600px) {
	header {
	  padding: 1rem;
	}
	nav ul {
	  flex-direction: column;
	  gap: 1rem;
	}
	main {
	  padding: 1rem;
	}
	#projects-container {
	  grid-template-columns: 1fr;
	}
	#project-detail-content .gallery img {
	  width: 100%;
	}
  }
  