/* =====================
   Base / Reset
===================== */
:root {
  --bg: #0e0f12;
  --bg-soft: #14161c;
  --text: #ffffff;
  --muted: #cfd3ff;
  --accent: #9fd6ff; /* baby blue */
  --accent-soft: rgba(159, 214, 255, 0.15);
  --border: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #0b0c10, #0f1118);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =====================
   Buttons
===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn.primary {
  background: linear-gradient(180deg, #b8e6ff, var(--accent));
  color: #0a0d14;
  border-color: transparent;
}

.btn.secondary {
  background: rgba(159, 214, 255, 0.1);
  border-color: var(--accent);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(159, 214, 255, 0.25);
}

/* =====================
   Hero
===================== */
.hero {
  padding: 5rem 1.25rem 3rem;
  text-align: center;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  margin: 0;
}

.hero h2 {
  font-weight: 500;
  color: var(--accent);
  margin: 0.25rem 0 0.75rem;
}

.tagline {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}



/* =====================
   Framed Portrait
===================== */
.portrait-wrap.frame {
  display: inline-flex;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, #0f1118, #0a0c12);
  box-shadow: inset 0 0 0 2px rgba(159, 214, 255, 0.6),
              inset 0 0 0 6px rgba(255, 255, 255, 0.05),
              0 20px 50px rgba(0, 0, 0, 0.6);
}

.portrait {
  width: 260px;
  height: 340px;
  object-fit: cover;
}

/* =====================
   Nav
===================== */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 14, 20, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--text);
  transition: background 0.18s ease, color 0.18s ease;
}

.main-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* =====================
   Sections
===================== */
.section {
  padding: 3rem 1.25rem;
}

.section h3 {
  text-align: center;
  margin-bottom: 1.25rem;
}

.about p,
.links p,
.contact p {
  max-width: 720px;
  margin: 0.5rem auto 0;
  text-align: center;
  color: var(--muted);
}

/* =====================
   Cards / Projects
===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 1.25rem auto 0;
}

.card {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(159, 214, 255, 0.18);
  border-color: var(--accent);
}

.card h4 { margin-top: 0; }

.card-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent);
}



/* =====================
   Gallery (Photography)
===================== */
.gallery-grid {
  max-width: 95%;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0b0d14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-item::before {
  content: "";
  display: block;
  padding-top: 75%; /* 4:3 aspect ratio placeholder */
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(159, 214, 255, 0.18);
  border-color: rgba(159, 214, 255, 0.8);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.1);
}

.gallery-item .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

/* Masonry-style layout for larger screens */
@media (min-width: 900px) {
  .gallery-grid {
    grid-auto-rows: 180px;
  }
  .gallery-item.tall { grid-row: span 2; }
  .gallery-item.wide { grid-column: span 2; }
}



/* =====================
   Links
===================== */
.link-list {
  max-width: 520px;
  margin: 1rem auto 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  margin: 0.4rem 0;
}

.link-list a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.link-list a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(159, 214, 255, 0.18);
}

.links-note {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* =====================
   Footer
===================== */
.site-footer {
  padding: 1.25rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: #0b0d14;
}

/* =====================
   Animations (Tasteful)
===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero, .section, .site-footer {
  animation: fadeUp 0.5s ease both;
}

/* =====================
   Responsive
===================== */
@media (max-width: 480px) {
  .hero { padding-top: 4rem; }
  .cta-buttons { flex-direction: column; }
}
