/*
  UDAAR Studio Website Styles
  This stylesheet defines a dark, digital-inspired design using
  gradient accents and crisp typography. It is shared across all
  pages for consistency. Feel free to tweak the variables in the
  :root selector to adjust colours and spacing.
*/

:root {
  /* Primary background colours */
  --color-bg: #0e1320;
  --color-bg-alt: #17202f;
  /* Accent gradient colours for buttons and highlights */
  --color-accent-start: #5365e5;
  --color-accent-end: #00c8a4;
  /* Text colours */
  --color-text: #e5e8f0;
  --color-text-muted: #9ba3c3;
  /* Card background */
  --color-card-bg: #131b2d;

  /* Neon glow effect colours */
  --color-neon: #00ffc8;
  --color-neon-secondary: #5365ff;
}

/* Reset default spacing and box sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top navigation bar */
.header {
  background: linear-gradient(45deg, var(--color-accent-start), var(--color-accent-end));
  padding: 0.8rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-bg);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.header .logo img {
  height: 72px;
  /* Make the logo stand out with a subtle neon drop shadow */
  filter: drop-shadow(0 0 8px var(--color-neon));
}

/* Hide the text label next to the logo – the symbol alone is sufficient */
.header .logo span {
  display: none;
}

.header nav {
  display: flex;
  gap: 1.3rem;
}

.header nav a {
  color: var(--color-bg);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.header nav a:hover {
  opacity: 0.7;
}

/* Hero section */
.hero {
  background: radial-gradient(circle at top left, #213760 0%, #0e1320 70%);
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  max-width: 800px;
  margin: 0.5rem auto 2rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.btn-primary {
  background: linear-gradient(45deg, var(--color-accent-start), var(--color-accent-end));
  color: var(--color-bg);
  box-shadow: 0 0 12px var(--color-neon);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-accent-start);
  color: var(--color-accent-start);
  box-shadow: 0 0 8px var(--color-accent-start);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 16px var(--color-neon);
}

/* Generic section styling */
section {
  padding: 3rem 2rem;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 0 10px var(--color-neon-secondary);
}

section p.lead {
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* Gallery grid used for project thumbnails and approach cards */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
  /* Neon glow border effect on hover */
  border: 1px solid transparent;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px var(--color-neon);
  border-color: var(--color-neon);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item figcaption {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.gallery-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 6px var(--color-neon-secondary);
}

.gallery-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-grow: 1;
}

/* Footer styling */
footer {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  margin-top: auto;
}

footer a {
  color: var(--color-accent-end);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Pagination controls */
.pagination-btn {
  background: transparent;
  color: var(--color-accent-end);
  border: 1px solid var(--color-accent-end);
  padding: 0.4rem 0.8rem;
  margin: 0 0.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Container for the enlarged image and project details */
.modal-content {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  text-align: center;
  position: relative;
  box-shadow: 0 0 20px var(--color-neon);
}

.modal-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.modal-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  text-shadow: 0 0 10px var(--color-neon-secondary);
}

.modal-content .modal-location {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--color-accent-end);
}

.modal-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}

/* Close button for modal */
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-accent-end);
}

.modal-close:hover {
  color: var(--color-neon);
}
.pagination-btn:hover {
  background: var(--color-accent-end);
  color: var(--color-bg);
  box-shadow: 0 0 10px var(--color-neon-secondary);
}

.pagination-btn.active {
  background: var(--color-accent-end);
  color: var(--color-bg);
  box-shadow: 0 0 12px var(--color-neon);
}

/* Location styling within gallery captions */
.gallery-location {
  display: block;
  font-size: 0.75rem;
  color: var(--color-accent-end);
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}