/* === SPACE THEME STYLING === */

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #000010;
  background-image:
    url('https://www.transparenttextures.com/patterns/stardust.png'),
    radial-gradient(ellipse at top, #0a0f2c 0%, #000010 100%);
  background-repeat: repeat, no-repeat;
  background-attachment: fixed, fixed;
  background-size: auto, cover;
  color: #e0e0ff;
  margin: 0;
  padding: 0 15px;
  max-width: 900px;
  margin: auto;
}

header {
  text-align: center;
  padding: 40px 20px 20px;
}

header h1 {
  font-size: 2.2em;
  color: #ffffff;
  text-shadow: 0 0 5px #7f8cff;
}

header p {
  color: #aabbee;
}

nav {
  text-align: center;
  margin-bottom: 30px;
  background-color: rgba(20, 20, 40, 0.6);
  border-radius: 10px;
  padding: 10px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li a {
  text-decoration: none;
  color: #9dcfff;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: bold;
}

nav ul li a:hover {
  background: #283e72;
  border-color: #5fa8ff;
  box-shadow: 0 0 8px #5fa8ff;
  color: #ffffff;
}

main {
  padding: 20px;
  background-color: rgba(30, 30, 50, 0.5);
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* === Project Styles === */

.project-item {
  background: rgba(20, 25, 50, 0.6);
  border-left: 4px solid #5fa8ff;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
}

.project-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #cde3ff;
}

.project-desc {
  margin: 8px 0;
}

.project-item a {
  color: #5fa8ff;
  text-decoration: underline;
}

.project-item a:hover {
  color: #ffffff;
}

/* === Photo Styles === */

.photo-item {
  display: flex;
  gap: 15px;
  align-items: center;
  background: rgba(20, 25, 50, 0.6);
  border-left: 4px solid #8fbaff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.photo-item img {
  width: 120px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(120,180,255,0.4);
}

.photo-desc {
  flex: 1;
  color: #d8e7ff;
}

/* === Footer === */

footer {
  text-align: center;
  color: #8899cc;
  padding: 20px;
  font-size: 0.9em;
}

.project-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.project-thumb {
  width: 100px;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.project-info {
  flex: 1;
  min-width: 200px;
}

#projectSearch {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto 20px;
  padding: 10px 15px;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #5fa8ff;
  background-color: rgba(10, 15, 40, 0.8);
  color: #e0e0ff;
  box-shadow: 0 0 6px rgba(95,168,255,0.3);
}

#projectSearch::placeholder {
  color: #aabbee;
}

/* === Gallery Layout === */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.photo-card {
  background-color: rgba(20, 25, 50, 0.6);
  border-left: 4px solid #8fbaff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 8px rgba(120,180,255,0.2);
  color: #d8e7ff;
  text-align: center;
}

.photo-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 8px;
}

summary {
  cursor: pointer;
  font-size: 1.1em;
  color: #9dcfff;
  margin-bottom: 10px;
}

details[open] summary {
  color: #ffffff;
}

/* === Global Link Styling === */

a {
  color: #8fbaff;
  text-decoration: none;
  transition: color 0.3s ease, box-shadow 0.3s ease;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
  box-shadow: 0 0 8px rgba(120,180,255,0.4);
}