/* General */
/* Global */
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: #0d0d0f;
  color: #f3f3f3;
  margin: 0;
}

/* Homepage only */
/* Landing page layout fix */
/* Landing Page Layout */
.landing-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  /* background:
    linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url("/personal-website/assets/images/landing_pagev2.jpeg") no-repeat center center/cover; */
  overflow: hidden;
  z-index:0;
}
.landing-body::before {
  content: "";
  position: absolute;
  inset: 0;
  
  z-index: 1;
  pointer-events: none;
}
/* Dark overlay box behind text */
#landing {
  background: rgba(0, 0, 0, 0.3);
  padding: 3rem 5rem;
  position:relative;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
  text-align: center;
  z-index: 2;
}

/* Make sure the footer stays above the image */
.landing-body .site-footer {
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 3;
}

/* Inner pages (like Photography) */
.page-body {
  padding: 3rem 5vw;
  line-height: 1.6;
}

a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: #FF0000;
}

/* Landing Page */
.landing {
  text-align: center;
}

.hero-name {
  font-size: 8rem;
  margin: 0;
  color: #FFFFFF;
}

.tagline {
  margin: 2rem 0 4rem;
  color: #FFFFFF;
  font-size: 2rem;
}

.main-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.main-menu a {
  font-weight: 500;
  font-size: 2rem;
  position: relative;
}

.main-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: #FFFFFF;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-out;
}

.main-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Photography page */
.photo-grid {
  columns: 3; /* number of columns – adjust for screen size */
  column-gap: 1.2rem;
  padding: 1rem 0;
}

@media (max-width: 900px) {
  .photo-grid {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .photo-grid {
    columns: 1;
  }
}

/* Cards inside a masonry layout */
.photo-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.2rem;
  position: relative;
  break-inside: avoid; /* prevents splitting across columns */
  border-radius: 10px;
  background-color: #0d0d0f;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

.photo-card figcaption {
  padding: 0.8rem 1rem;
  color: #ddd;
  font-size: 0.9rem;
  background-color: #111114;
}
.photo-card strong {
  color: #a855f7;
}
.photo-card em {
  color: #c084fc;
  font-style: normal;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5vw;
  position: sticky;
  top: 0;
  background: #0d0d0f;
  z-index: 100;
  border-bottom: 1px solid #222;
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: #a855f7;
  text-decoration: none;
}

.header-nav a {
  margin-left: 1.2rem;
  font-size: 0.95rem;
  color: #f3f3f3;
  text-decoration: none;
  transition: color 0.3s;
}
.header-nav a:hover {
  color: #c084fc;
}

/* Photography slider */
.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.slider-container input[type="range"] {
  width: 200px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #a855f7, #c084fc);
  outline: none;
  cursor: pointer;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f3f3f3;
  border: 2px solid #a855f7;
  transition: background 0.3s, transform 0.2s;
}
.slider-container input[type="range"]::-webkit-slider-thumb:hover {
  background: #c084fc;
  transform: scale(1.1);
}

.subtitle {
  text-align: center;
  color: #aaa;
}

/* Gallery fade transition */
.photo-section {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.photo-section.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  position: absolute;
  width: 100%;
}

.photo-section.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  position: relative;
}

/* ========== Sketchbook Gallery ========== */
/* Sketchbook Grid Layout */
/* ===============================
   SKETCHBOOK PAGE (MASONRY LAYOUT)
=============================== */

.sketch-grid {
  columns: 3; /* number of columns */
  column-gap: 1.2rem;
  padding: 1rem 0;
}

@media (max-width: 900px) {
  .sketch-grid {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .sketch-grid {
    columns: 1;
  }
}

.sketch-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.2rem;
  position: relative;
  break-inside: avoid; /* prevents card splitting */
  border-radius: 10px;
  overflow: hidden;
  background-color: #0d0d0f;
  transition: transform 0.3s ease;
}

.sketch-card:hover {
  transform: scale(1.02);
}

.sketch-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

/* Overlay styling */
.sketch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.8);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sketch-card:hover .sketch-overlay {
  opacity: 1;
  pointer-events: auto;
}

.sketch-overlay h3,
.sketch-overlay p {
  color: #f3f3f3;
  margin: 0.2rem 0;
  text-align: center;
}

.sketch-overlay a {
  margin-top: 0.5rem;
  background: #a855f7;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.sketch-overlay a:hover {
  background: #c084fc;
}
/* ========== Writing / Blog Layout ========== */
.writing-page {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  background: #18181c;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
.post-card:hover {
  transform: translateY(-3px);
}
.post-card h2 a {
  color: #a855f7;
  text-decoration: none;
}
.post-card h2 a:hover {
  color: #c084fc;
}
.post-date {
  color: #aaa;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
.read-more {
  display: inline-block;
  margin-top: 0.8rem;
  color: #c084fc;
  text-decoration: none;
  font-weight: 500;
}
.read-more:hover {
  text-decoration: underline;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 5rem;
  align-self: start;
}
.book-card {
  background: #111114;
  padding: 1.2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.book-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.book-card h3 {
  color: #a855f7;
  margin-bottom: 0.5rem;
}
.book-card p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.4;
}
.btn-buy {
  display: inline-block;
  margin-top: 1rem;
  background: #a855f7;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}
.btn-buy:hover {
  background: #c084fc;
}

/* Mobile layout */
@media (max-width: 900px) {
  .writing-page {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    margin-top: 2rem;
  }
}

/* ========== Global Footer ========== */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  background: #0d0d0f;
  border-top: 1px solid #222;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #a855f7;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}
.footer-links a:hover {
  color: #c084fc;
  transform: scale(1.15);
}

.footer-text {
  color: #999;
  font-size: 0.9rem;
  margin: 0;
}

/* Tagline typewriter */
.tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-top: 0.8rem;
  position: relative;
  white-space: nowrap;          /* keep on one line */
}

/* blinking cursor */
.tagline::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.2em;
  margin-left: 6px;
  border-right: 2px solid #c084fc;
  animation: blink 0.9s steps(1) infinite;
  vertical-align: -0.2em;
}

/* stop blinking once typing finishes (optional) */
.tagline.done::after {
  animation: none;
  border-right-color: transparent;
}

@keyframes blink {
  0%, 49% { border-right-color: #c084fc; }
  50%, 100% { border-right-color: transparent; }
}

/* ========== Lightbox (shared by Photography & Sketchbook) ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  padding: 2rem;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain; /* preserve aspect ratio */
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.lightbox .close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #f3f3f3;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}
.lightbox .close:hover {
  color: #c084fc;
}

#lightbox-caption {
  color: #ddd;
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
  max-width: 80vw;
}

/* ===============================
   WRITING / BLOG INDEX PAGE
=============================== */

.blog-list {
  max-width: 750px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.blog-list h1 {
  font-family: 'Poppins', sans-serif;
  color: #c084fc;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.writing-page {
  max-width: 900px;
  margin: auto;
  padding: 60px 20px;
}

.page-title {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.page-subtitle {
  opacity: 0.7;
  margin-bottom: 40px;
}

.bulletin {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.bulletin-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 20px;
}

.bulletin-item h2 {
  margin: 0;
  font-size: 1.4rem;
}

.bulletin-item a {
  text-decoration: none;
  color: #a855f7;
}

.bulletin-meta {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 6px;
}

.bulletin-desc {
  margin-top: 8px;
  opacity: 0.85;
}

.bulletin-link a {
  font-size: 0.9rem;
  white-space: nowrap;
}

.blog-list{
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.blog-item{
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
    overflow: hidden;
  background: rgba(255,255,255,0.02);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
/* fixed thumbnail box */
.blog-thumb{
  width: 100%;
  height: 240px;              /* pick your target size */
  border-radius: 12px;
  overflow: hidden;

  display: flex;              /* centers the image */
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.06); /* optional: nice letterbox color */
}

/* image scales to fit inside the box */
.blog-thumb img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}


.blog-item:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.14);
}

.blog-top{
  display:flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.blog-title{
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.blog-title a{
  text-decoration: none;
  color: #a855f7;
}

.blog-title a:hover{
  color: rgba(255, 255, 255, 1);
}
.section-title{
  margin: 40px 0 16px;
  font-size: 1.4rem;
}


/* NEWS / PUBLICATIONS */

.news-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.news-item{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  background:rgba(255,255,255,0.02);
}

.news-title a{
  font-size:1.05rem;
  font-weight:600;
  text-decoration:none;
  color:#a855f7;
}

.news-title a:hover{
  color:rgba(255, 255, 255, 1);
}

.news-meta{
  margin-top:6px;
  font-size:0.9rem;
  opacity:0.65;
}

.news-right a{
  font-size:0.9rem;
  text-decoration:none;
  opacity:0.8;
  white-space:nowrap;
}

.news-right a:hover{
  opacity:1;
}
.blog-date{
  font-size: 0.9rem;
  opacity: 0.65;
  white-space: nowrap;
}

.blog-excerpt{
  margin: 10px 0 12px;
  opacity: 0.85;
  line-height: 1.55;
  max-width: 80ch;
}

.blog-read{
  text-decoration: none;
  font-size: 0.95rem;
  color: #a855f7;
  opacity: 0.9;
}

.blog-read:hover{ opacity: 1; }

/* ===============================
   BLOG CARD WITH IMAGE
=============================== */
.post-card {
  background: #111114;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 800px;
  margin-inline: auto;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

/* Thumbnail section */
.post-thumb {
  width: 100%;
  overflow: hidden;
  max-height: 140px; /* limit height for balance */
}

.blog-list.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* smart crop instead of stretching */
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

/* Text info section */
.post-info {
  padding: 1.5rem 2rem;
}

.post-info h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.post-info h2 a {
  color: #f3f3f3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-info h2 a:hover {
  color: #c084fc;
}

.post-info .post-date {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.post-info p {
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-info .read-more {
  color: #a855f7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.post-info .read-more:hover {
  color: #c084fc;
}

/* ===============================
   ABOUT PAGE
=============================== */

.about-section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
  color: #f3f3f3;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

.about-image img {
  width: 90%;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  object-fit: cover;
}

.about-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: #c084fc;
  margin-bottom: 1.2rem;
}

.about-text p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: #ddd;
}

.about-text a {
  color: #a855f7;
  text-decoration: none;
  font-weight: 500;
}
.about-text a:hover {
  color: #c084fc;
}

/* ===============================
   CONTACT FORM
=============================== */
.contact-form {
  background: #111114;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  max-width: 650px;
  margin: 0 auto;
}

.contact-form h2 {
  color: #c084fc;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #bbb;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  background: #18181c;
  border: 1px solid #333;
  border-radius: 6px;
  color: #f3f3f3;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #a855f7;
}

.btn {
  display: block;
  width: 100%;
  background-color: #a855f7;
  color: white;
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #c084fc;
}

/* Responsive layout */
@media (max-width: 800px) {
  .about-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto 2rem;
  }
}

/* Notebook-style post container */
.notebook{
  max-width: 760px;
  margin: 3rem auto;
  padding: 2.5rem 2.25rem;
  color: #1f2937;
    background-position-y: 9px;
    font-size: 18px;
    font-family: "Georgia", serif;
    line-height: 32px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);

  /* paper color */
  background-color: #fff2a8;

  /* ruled lines + grid lines */
  background-image:
    /* horizontal ruled lines */
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0.0) 0px,
      rgba(0,0,0,0.0) 30px,
      rgba(0,0,0,0.12) 32px
    );
    /* vertical grid lines */
    /*repeating-linear-gradient(*/
    /*  to right,*/
    /*  rgba(0,0,0,0.0) 0px,*/
    /*  rgba(0,0,0,0.0) 39px,*/
    /*  rgba(0,0,0,0.06) 40px*/
    /*);*/

  /* classic notebook left margin line */
  position: relative;
}

.notebook::before{
  content:"";
  position:absolute;
  top: 0;
  bottom: 0;
  left: 1.8rem;
  width: 2px;
  background: rgba(220, 38, 38, 0.45); /* subtle red margin */
  border-radius: 2px;
  pointer-events: none;
}
.blog-content img{
  display: block;
  margin: 1.5rem auto;
  max-width: 100%;
  height: auto;
}
/* Typography inside notebook */
.notebook h1, .notebook h2, .notebook h3{
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.notebook p{
  margin: 0 0 1.05rem 0;
  line-height: 1.85;
  text-align: justify;
}

/* Image formatting */
.notebook-img{
  display: block;
  margin: 0 auto 1.5rem auto;
  width: min(600px, 100%);
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
}

/* Optional: purple ink */
.ink-purple{
  color: #800000; /* similar to your #a855f7 but a touch darker */
}
