:root {
  --lavender: #C7B8EA;     /* lavender accent */
  --deep-purple: #6B4FA3;  /* richer purple for text/nav */
  --navy: #203864;         /* navy secondary accent */
  --beige-bg: #F9F8F6;     /* neutral background */
  --charcoal: #2E2E2E;     /* dark text */
  --white: #FFFFFF;
  --text-dark: #2E2E2E;
  --text-muted: #555555;
  --surface-border: #E2E2DD;
}

*{ 
  box-sizing: border-box; margin: 0; padding: 0; 
}

body{
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(90deg, #f3effc, #dfe7f6); 
}

/* ========== Navigation (white bar card) ========== */
nav{
  background-color: var(--white);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.nav-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  box-shadow: none;
}

.logo{
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--deep-purple);
}

.nav-links{ 
  display: flex; gap: 2rem; 
}

nav a, .nav-links a{
  text-decoration: none;
  color: var(--deep-purple);
  font-weight: 600;
}

nav a:hover, .nav-links a:hover{ 
  color: var(--lavender); 
}

nav a:focus{ 
  outline: 2px solid var(--lavender); outline-offset: 2px; 
}

/* ========== Header (lavender border card) ========== */
header{
  display: flex; 
  align-items: center; 
  gap: 2rem;
  min-height: 60vh;
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 2rem;
}

.header_text{
  background-color: var(--white);
  color: var(--text-dark);
  flex: 1; 
  padding: 2rem;
  border-radius: 12px;
  border: 6px solid var(--navy); /* navy border */
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header_pic {
  flex: 1;
  min-height: 300px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.header_pic img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/* ========== Layout containers ========== */
main{
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 2rem;
  display: grid; 
  gap: 4rem;
}

.container { 
  max-width: 1000px; 
  margin: 0 auto; 
  padding: 0 1rem; 
}

@media (min-width: 768px){ .container{ padding: 0 2rem; } }

/* ========== Sections & headings ========== */
section{ 
  padding: 3rem 0; margin-bottom: 2rem; 
}

section h2 {
  text-align: center;          
  font-size: 2.5rem;       
  margin: 0 0 3rem 0;
  position: relative;            
  color: var(--deep-purple);
}

section h2::after {
  content: "";
  display: block;           
  width: 60px;                     
  height: 4px;
  margin: 0.75rem auto 0;   
  background: linear-gradient(90deg, var(--lavender), var(--navy));
  border-radius: 2px;
}

/* ========== Typography ========== */
p + p{ 
  margin-top: 1rem; 
}

h1{
  color: var(--deep-purple);
  font-size: 2.5rem; 
  font-weight: 700; 
  margin-bottom: 1rem; 
  line-height: 1.2;
}

.header_text h1{
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 0.02em;
}

h2{
  font-size: 2rem; 
  font-weight: 600; 
  color: var(--deep-purple);
  margin-bottom: 0.8rem; 
  line-height: 1.3;
}

h3{
  font-size: 1.5rem; 
  font-weight: 600; 
  color: var(--text-dark);
  margin-bottom: 0.6rem; 
  line-height: 1.4;
}

p{ 
  font-size: 1rem; 
  margin-bottom: 1rem; 
  color: var(--text-muted); 
}

/* ========== About (white image frame) ========== */
.about-section{
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 2rem; 
  align-items: center;
}

@media (min-width: 768px){
  .about-section{ 
    grid-template-columns: 250px 1fr; 
    gap: 3rem; 
  }
}

.about-image{ justify-self: center; }

.about-image img{
  width: 100%; 
  max-width: 250px; 
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  background: var(--white);
}

/* ========== Skills (white cards) ========== */
.skills-container{
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1rem; 
  margin-top: 2rem;
}
@media (min-width: 480px){
  .skills-container{ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (min-width: 768px){
  .skills-container{ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}
@media (min-width: 1024px){
  .skills-container{ grid-template-columns: repeat(4, 1fr); }
}

.skill-card{
  padding: 1.5rem; text-align: center; border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--surface-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.skill-card h3{ 
  color: var(--deep-purple); 
  margin-bottom: 0.5rem; 
}

/* ========== Projects (lavender border cards) ========== */
.projects-container{
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 2rem; 
  margin-top: 2rem;
}

@media (min-width: 768px){ .projects-container{ grid-template-columns: 1fr 1fr; } }

.project-card{
  padding: 2rem; 
  background: var(--white);
  border: 6px solid var(--lavender); /* lavender border */
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  border-color: var(--deep-purple);
}

.project-card h3{ 
  color: var(--deep-purple); 
  margin-bottom: 1rem; 
}

.project-gallery-vertical {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-gallery-vertical .thumb {
  max-width: 300px;   /* adjust size */
  margin: 0 auto;     /* keeps them centered */
}

.project-media .slides-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.project-media .slides-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ========== Contact (white content card + button) ========== */
.contact-section .contact-card{
  max-width: 720px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2rem;
  text-align: center;
}

.contact-section .contact-actions{
  margin-top: 1rem; 
  display: flex; 
  gap: 1rem; 
  justify-content: center; 
  flex-wrap: wrap;
}

/* buttons */
.btn{
  appearance: none; 
  border: none; 
  cursor: pointer;
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  font-weight: 600;
  text-decoration: none; 
  line-height: 1;
  border-radius: 999px; 
  padding: 0.85rem 1.25rem;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.btn-primary{
  background: var(--deep-purple); 
  color: var(--white);
}

.btn-primary:hover{ background: var(--lavender); box-shadow: 0 6px 14px rgba(0,0,0,0.12); transform: translateY(-1px); }
.btn-primary:focus{ outline: 3px solid var(--navy); outline-offset: 2px; }
.btn-primary:active{ transform: translateY(0); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }

/* ========== Footer widths to match ========== */
footer{
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 2rem; 
}

/* ========== Lightbox ========== */
.lightbox{
  display: none; 
  position: fixed; 
  z-index: 1000; 
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center; 
  align-items: center;
}
.lightbox-content{
  max-width: 90%; 
  max-height: 80%;
  border-radius: 12px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.lightbox .close{
  position: absolute; 
  top: 20px; 
  right: 35px;
  font-size: 40px; 
  color: var(--white); 
  cursor: pointer;
}

/* ========== Project media / thumbnails ========== */
.project-media{ 
  margin-top: 1rem; 
}

.project-gallery{
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 0.75rem;
}

.thumb{
  all: unset; 
  display: block; 
  width: 100%; 
  aspect-ratio: 4/3;
  overflow: hidden; 
  position: relative; 
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  cursor: zoom-in;
}

.thumb img{
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.thumb:hover img, .thumb:focus img{ transform: scale(1.03); }
.thumb:hover, .thumb:focus{
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  outline: 2px solid var(--deep-purple); 
  outline-offset: 2px;
}

.thumb::after{
  content: "Click to enlarge";
  position: absolute; 
  left: 0; 
  right: 0; 
  bottom: 0;
  padding: 0.4rem 0.6rem; 
  text-align: center; 
  font-size: 0.9rem; 
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.thumb::before{
  content: "🔍"; 
  position: absolute; 
  top: 8px; 
  right: 10px; 
  font-size: 1.1rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); 
  opacity: 0.9; 
  pointer-events: none;
}

.projects-container .project-card .project-gallery .thumb{ aspect-ratio: 4/3; }
@media (max-width: 480px){ .project-gallery{ grid-template-columns: 1fr; } }

/* PDF thumbnail styled like image thumbs */
.pdf-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: linear-gradient(135deg, #ffffff 40%, rgba(199,184,234,0.25) 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.pdf-thumb:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.pdf-thumb::before {
  content: "📄";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.1rem;
  opacity: 0.9;
  pointer-events: none;
}

.pdf-title {
  font-weight: 700;
  color: var(--deep-purple);
}

.pdf-chip {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: var(--deep-purple);
  color: var(--white);
}