:root {
    --primary-color: #333;
    --accent-color: #add8e6; 
    --accent-color-dark: #0069d2;
    --bg-color: #f8f9fa;
    --text-color: #555;
    --font-base: 'Helvetica Neue', Arial, sans-serif;
    --section-padding: 6rem;
    --container-padding: 4rem;
    --border-color: #e0e0e0;
    --card-radius: 4px;
    --header-offset: 2rem; 
}

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

body {
    font-family: var(--font-base);
    color: var(--primary-color);
    line-height: 1.6;
    background: #fff;
    scroll-behavior: smooth;
    padding-top: var(--header-offset); 
}

a {
    text-decoration: none;
    color: inherit;
}

p {
  color: var(--text-color);
}

.highlight-text {
  color: var(--accent-color-dark);
  font-weight: 700; 
}


img {
    display: block;
    width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

header {
    background: none; 
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--container-padding);
}

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

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
}
nav {
    display: flex;
    gap: 2rem;
}
nav a {
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
    position: relative;
    padding: 0.25rem 0;
}

nav a.active {
  font-weight: 700;      
}

.about-media {
  display: flex;
  flex-direction: column;
  align-items: center;   
  text-align: center;   
}

.about-media img {
  display: block;
  margin: 0 auto;        
}

.about-media h1 {
  margin-top: 0.75rem;   
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

#hero {
    margin-top: 0.5rem;  
    padding-top: 5rem;     
    padding-bottom: 1rem; 
}
#hero h1 {
    font-size: 1.1rem;
    max-width: 60%;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: normal
}
.highlight {
    background: var(--accent-color-dark);
    padding: 0 0.25rem;
}

#projects {
    margin-top: 3rem;       
    padding-top: 1.5rem; 
    padding-bottom: 3rem;
}

#projects h2,
#artwork h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  position: relative;
  text-align: left;
  padding-left: 14px;   
}

#projects h2::before,
#artwork h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); 
  width: 4px;                  
  height: 60%;                
  background: var(--accent-color-dark);
  border-radius: 2px;         
}

#artwork p {
  margin-bottom: 1.5rem; 
}


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.project {
    background: #fff;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    
}

.project img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}


.project-content {
    padding: 1.5rem;
}
.project-content h3 {
    font-family: var(--font-base);
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease; 
}

.project-content h3:hover {
  color: var(--accent-color-dark);
}

.project-content p {
    font-family: var(--font-base);
    font-size: 0.9rem;
    color: var(--text-color);
}

footer {
    background: none;
    text-align: center;
    padding: var(--section-padding) 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.subhero {
  margin-top: 0.5rem;
  padding-top: 3rem;
  padding-bottom: 1rem;
}
.subhero h1 {
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.02rem;
  margin-top: 1.2rem;
  font-size: 1.4rem;
}

.subhero p {
  margin-bottom: 0.75rem;
  text-align: justify;
}

.lead {
  color: var(--text-color);
  max-width: 60ch;
}

.artwork-grid {
  gap: 1rem;
}
.art-item {
  overflow: hidden;
  border-radius: var(--card-radius);
}
.art-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1; 
  transition: transform 0.3s ease;
}
.art-item:hover img {
  transform: scale(1.05); 
}

#hero.about-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
  text-align: justify;
}

#hero .about-media img {
  max-width: 240px;
  height: auto;
  border-radius: 50%; 
  border: 1px solid var(--border-color);
}

#hero .about-media h1 {
  max-width: none;   
  width: 100%;       
  text-align: center;
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.about-content p + p { 
  margin-top: 0.75rem; 
}

.about-media p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-color);
  text-align: center;
}

.about-role {
  font-size: 1.1rem;    
  font-weight: 600;     
  margin-top: 0.5rem;
  color: var(--primary-color);
}

.about-edu {
  font-size: 1rem;      
  font-weight: 400;     
  margin-top: 0.2rem;
  color: var(--text-color);
}

.about-email {
  font-size: 0.9rem;    
  font-style: italic;   
  margin-top: 0.4rem;
  color: var(--text-color);
}

.social-icons {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-icons a {
  font-size: 1.3rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-color-dark);
}

.btn {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--primary-color);
  font-size: 0.95rem;
}
.btn:hover { transform: translateY(-1px); }
.btn-secondary {
  border-color: var(--border-color);
  color: var(--primary-color);
}

.about-tiles .tile {
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  background: #fff;
  padding: 1.25rem;
}
.about-tiles h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.about-tiles ul {
  list-style: disc inside;
  color: var(--text-color);
}

nav a[aria-current="page"]::after {
  width: 100%;
}

@media (max-width: 900px) {
  #hero.about-wrap {
    grid-template-columns: 1fr; 
  }

  .about-media {
    order: 1; 
    max-width: 420px;
    margin: 0 auto; 
  }

  .about-content {
    order: 2; 
    margin-top: 1.5rem;
  }
}


@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }
}

.underline-animate {
  position: relative;
  padding-bottom: 0.25rem; 
}

.underline-animate::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 5px;
  background: var(--accent-color);
  width: 0; 
  animation: underlineGrow 0.5s ease forwards; 
}

@keyframes underlineGrow {
  to {
    width: 100%;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox .lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease; 
  backdrop-filter: blur(4px);
}


.lightbox .lb-close:hover,
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
}


.lightbox .lb-close { top: 1.2rem; right: 1.2rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.lightbox .lb-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.4);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

.lightbox .lb-close:focus,
.lightbox .lb-prev:focus,
.lightbox .lb-next:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .lightbox { padding: 1rem; }
  .lightbox .lb-prev, .lightbox .lb-next {
    padding: 0.5rem 0.7rem;
    font-size: 1.4rem;
  }
}

.about-content ul {
  margin-left: 1rem;   
  padding-left: 1rem;  
  color: var(--text-color);

}

#artwork .project img {
  aspect-ratio: 1 / 1;   
  object-fit: cover;     
}

#artwork .project:nth-child(1) img,
#artwork .project:nth-child(2) img {
  aspect-ratio: 1 / 1;          
  object-fit: contain;          
  background: #f0f0f0;         
}

.highlight-text {
  color: var(--accent-color-dark);
  font-weight: 700;   
}

#artGrid img { cursor: zoom-in; }

nav a.active {
  font-weight: 700; 
}

nav a:hover {
  font-weight: 700;  
}

.video-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;   
  font-weight: 500;
  position: relative;
  text-align: left;
  padding-left: 14px;   
}

.video-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--accent-color-dark);
  border-radius: 2px;
}

#projects h2,
#artwork h2,
#teaching h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  position: relative;
  text-align: left;
  padding-left: 14px;
}

#projects h2::before,
#artwork h2::before,
#teaching h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--accent-color-dark);
  border-radius: 2px;
}

#teaching h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  position: relative;
  text-align: left;
  padding-left: 14px;
}

#teaching h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--accent-color-dark);
  border-radius: 2px;
}

#teaching p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

#teaching {
  margin-bottom: 3rem;  
}

