:root {
  --primary-color: #00e5ff;
  --secondary-color: #002fff;
  --dark-color: #f0f0f0;
  --light-color: #1c1c1c;
  --bg-color: #121212;
  --border-color: #2a2a2a;
  --max-width: 1000px;
  --spacing: 1.5rem;
  --radius: 8px;
  --shadow: rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: url("../images/dark-background.png") no-repeat center center fixed;
  color: var(--dark-color);
  line-height: 1.6;
}

a{
    color: var(--dark-color);
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.pdf-container,
.landing-page-container {
  background: var(--light-color);
  max-width: var(--max-width);
  margin: 50px auto;
  padding: var(--spacing);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px #bdbdbd;
  overflow: hidden;
}

/* =====================
   PDF Header Styling
===================== */
.pdf-header {
  position: relative;
  text-align: center;
  padding: calc(var(--spacing) * 2) var(--spacing);
  margin-bottom: var(--spacing);
  color: var(--light-color);
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .pdf-header {
    flex-direction: column-reverse;
    align-items: center;
  }
}

.header-text{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 400px;
}

.pdf-header img{
    height: 250px;
    width: auto;
    border-radius: 50%;
}

.pdf-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg, #41119b 0%, #196972 100%
  );
  transform-origin: top left;
  z-index: -1;
}

.pdf-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.9;
  color: #e0e0e0;
}

.pdf-intro p {
  font-size: 1rem;
  margin-bottom: var(--spacing);
}

/* =====================
   Navigation & Footer
===================== */
.project-nav {
  margin-bottom: var(--spacing);
}

.project-nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.pdf-footer {
  text-align: right;
  padding-top: var(--spacing);
  font-size: 0.85rem;
  color: #999;
  border-top: 1px solid var(--border-color);
}

.pdf-footer p {
  margin: 0;
}

/* =====================
   Project Highlight
===================== */
.project-highlight {
  position: relative;
  background: #232323;
  padding: var(--spacing);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: var(--spacing);
}

.project-main-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: var(--spacing);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.project-description p {
  margin-bottom: 0.75rem;
  color: #ccc;
}

/* =====================
   Project Table
===================== */
.project-overview .projects-table {
  width: 100%;
  border-collapse: collapse;
}

.projects-table th,
.projects-table td {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  text-align: left;
}

.projects-table th {
  background: var(--primary-color);
  color: var(--light-color);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.projects-table td {
  color: var(--dark-color);
  background: #1f1f1f;
}

.projects-table tbody tr:nth-child(even) {
  background: #2a2a2a;
}

/* ========================
   Card Grid — Index Only
========================= */
.project-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.project-card {
  display: block;
  background: #1f1f1f;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 2px 6px var(--shadow);
  text-decoration: none;
  color: var(--dark-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px var(--shadow);
  border-color: var(--primary-color);
}

.project-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}


.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--primary-color);
}

.project-card p {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.4;
}


.project-gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0;
}

.project-gallery .thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
}

.project-gallery .thumb:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.project-gallery .thumb.active {
  border-color: var(--secondary-color);
}
