/* -------------------------------------------------
   RESET & BASE
------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #020617;         /* deep navy */
  color: #e5e7eb;              /* light gray text */
  line-height: 1.6;
}

a {
  color: #38bdf8;              /* cyan */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------
   NAVBAR
------------------------------------------------- */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;

  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f2937;
}

nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: #e5e7eb;
  opacity: 0.85;
  padding-bottom: 0.1rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  border-bottom-color: #38bdf8;
}

.nav-spacer {
  height: 56px;  /* same as navbar height */
}

/* -------------------------------------------------
   HERO
------------------------------------------------- */
.hero {
  position: relative;
  height: 50vh;
  min-height: 420px;

  background-image: url("images/aragon.jpg");
  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 0 1.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at top, rgba(15,23,42,0.2), rgba(15,23,42,0.85)),
    linear-gradient(to bottom, rgba(15,23,42,0.8), rgba(15,23,42,0.95));
}

.hero-content {
  position: relative;
  max-width: 1000px;
  z-index: 5;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0.5rem auto 1.4rem;
  color: #e5e7eb;
}

.hero-cta {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;

  border-radius: 999px;
  border: 1px solid #38bdf8;

  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: #38bdf8;
  color: #020617;
}

.btn-primary:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
}

.btn-outline:hover {
  background: rgba(15,23,42,0.8);
}

/* -------------------------------------------------
   LAYOUT
------------------------------------------------- */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

section {
  margin-top: 2.5rem;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;

  border-bottom: 1px solid #1f2937;
  padding-bottom: 0.3rem;
}

/* -------------------------------------------------
   TIMELINE LAYOUT (with dates + dots)
------------------------------------------------- */
.timeline {
  position: relative;
  margin-top: 1.5rem;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;

  left: 80px;      /* align with dots */
  top: 0;
  bottom: 0;

  width: 2px;
  background: #1f2937;
}

/* One project entry */
.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 1.2rem;
  margin-bottom: 2rem;
}

/* Column containing date + dot */
.timeline-col {
  position: relative;
}

/* Date */
.timeline-date {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  
  width: 70px;               /* space for the text on the left */
  text-align: right;
  
  font-size: 0.8rem;
  opacity: 0.75;
  padding-right: 8px;        /* small spacing before the dot */
}


/* Dot */
.timeline-dot {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translate(-50%, -50%);

  width: 14px;
  height: 14px;
  background: #38bdf8;
  border-radius: 999px;
  border: 2px solid #0f172a;
}

/* -------------------------------------------------
   PROJECT CARD
------------------------------------------------- */
.timeline-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;

  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid #1f2937;

  background: radial-gradient(circle at top left,
              rgba(56,189,248,0.08),
              rgba(15,23,42,0.95));
}

/* Image */
.project-image img {
  /*width: 150px;*/
  aspect-ratio: 4 / 3;
  height: 150px;
  object-fit: cover;

  border-radius: 0.6rem;
  cursor: pointer;

  transition: transform 0.15s ease, opacity 0.15s ease;
}

.project-image img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Text */
.project-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.project-meta {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.4rem;
}

.project-desc {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  text-align: justify;
}

.project-readmore {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* -------------------------------------------------
   CONTACT
------------------------------------------------- */
.contact-links p {
  margin-top: 0.3rem;
}

/* -------------------------------------------------
   FOOTER
------------------------------------------------- */
footer {
  border-top: 1px solid #1f2937;
  padding: 1.2rem 1.5rem 1.5rem;

  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

footer a {
  color: #9ca3af;
}

/* -------------------------------------------------
   RESPONSIVE BEHAVIOR
------------------------------------------------- */
@media (max-width: 700px) {

  .timeline-item {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .timeline-card {
    flex-direction: column;
  }

  .project-image img {
    width: 100%;
    height: auto;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

/* -----------------------------------------
   PROJECT PAGES: LAYOUT (TEXT + IMAGES)
------------------------------------------ */

.project-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.project-body p {
  text-align: justify;
  margin-bottom: 0.9rem;
}

.project-body h2 {
  margin-bottom: 1.2rem;
}

.project-body h3 {
  margin-bottom: 0.5rem;
/*margin-top: 1.6rem;*/
}

/* Two-column layout: text left, images right */
.project-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Right column: stacked images */
.project-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 1.2rem;
  border-radius: 0.8rem;
  border: 1px solid #1f2937;
}

.project-images img:last-child {
  margin-bottom: 0;
}

/* Optional: full-width insight block below the columns */
.project-insight {
  margin-top: 2.5rem;
}

.project-insight h3 {
  margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
  .project-columns {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------
   PROJECT IMAGE LIGHTBOX
------------------------------------------ */

.project-images img {
  cursor: zoom-in;
}

/* Fullscreen overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;              /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Image inside lightbox */
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.6rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  cursor: zoom-out;
}

/* -----------------------------------------
   ABOUT SECTION
------------------------------------------ */

.about-content {
  text-align: justify;
}

/* -----------------------------------------
   SECTION HEADING
------------------------------------------ */

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;

  border-bottom: 1px solid #1f2937;
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
}

.section-heading h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.section-heading span {
  font-size: 0.95rem;
  color: #9ca3af;
  white-space: nowrap;
}