/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #333;
  /* Diagonal gradient with your color palette */
  background: linear-gradient(135deg, 
    #7E8DA6 0%, 
    #7F8BA1 15%,
    #808693 25%,
    #7F8898 35%,
    #7E8EAB 50%,
    #7F8898 65%,
    #808693 75%,
    #7F8BA1 85%,
    #7E8DA6 100%);
  min-height: 100vh;
  background-attachment: fixed;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
  background: linear-gradient(to right, #808389, #80858E);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #808080;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: #F5F5F5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #7D90B0;
  text-shadow: 
    1px 1px 2px rgba(0, 0, 0, 0.9),
    -1px -1px 2px rgba(0, 0, 0, 0.9),
    1px -1px 2px rgba(0, 0, 0, 0.9),
    -1px 1px 2px rgba(0, 0, 0, 0.9);
}

/* ===== MAIN CONTENT ===== */
main {
  padding: 3rem 0;
}

/* ===== HOMEPAGE TWO-COLUMN LAYOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.avatar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-wrapper {
  width: 400px;
  height: 500px;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 8px;
  /* Faded edges - REDUCED TO HALF */
  mask-image: linear-gradient(to bottom, 
    transparent 0%, 
    black 4%, 
    black 96%, 
    transparent 100%),
    linear-gradient(to right, 
    transparent 0%, 
    black 4%, 
    black 96%, 
    transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, 
    transparent 0%, 
    black 4%, 
    black 96%, 
    transparent 100%),
    linear-gradient(to right, 
    transparent 0%, 
    black 4%, 
    black 96%, 
    transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.avatar-info {
  text-align: center;
  width: 100%;
}

.name-under-photo {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 0.2rem;
}

.role {
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  color: #7D90B0;
  transition: all 0.3s;
}

.social-links a:hover {
  color: #808389;
  transform: translateY(-3px);
}

.social-links svg,
.social-links i {
  width: 36px !important;
  height: 36px !important;
  font-size: 36px !important;
}

/* ===== BIO CONTENT ===== */
.bio-column {
  text-align: left;
}

.bio-content p {
  margin-bottom: 1.3rem;
  color: #444;
}

.bio-content a {
  color: #7D90B0;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.bio-content a:hover {
  color: #808389;
  text-decoration: underline;
}

/* ===== SINGLE PAGES ===== */
.single-page {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.single-page h1 {
  font-size: 2.5rem;
  color: #808389;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #7D90B0;
}

.single-page h2 {
  font-size: 1.8rem;
  color: #808389;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.single-page h3 {
  font-size: 1.3rem;
  color: #7D90B0;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.single-page p {
  margin-bottom: 1.2rem;
  color: #444;
}

.single-page a {
  color: #7D90B0;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.single-page a:hover {
  color: #808389;
  text-decoration: underline;
}

.single-page ul,
.single-page ol {
  margin-left: 2rem;
  margin-bottom: 1.2rem;
}

.single-page li {
  margin-bottom: 0.5rem;
}

/* ===== MEDIA PAGE VIDEO GRID ===== */
.video-item {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #ddd;
}

.video-item:last-child {
  border-bottom: none;
}

.video-info h3 {
  font-size: 1.2rem;
  color: #808389;
  margin-bottom: 0.5rem;
}

.video-info h3 a {
  color: #7D90B0;
  text-decoration: none;
  font-weight: 600;
}

.video-info h3 a:hover {
  color: #808389;
  text-decoration: underline;
}

.video-info p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.video-thumbnail {
  width: 280px;
  height: 158px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(to right, #808285, #808080);
  backdrop-filter: blur(10px);
  border-top: 2px solid #808080;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: #F5F5F5;
  font-size: 0.95rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .avatar-wrapper {
    width: 300px;
    height: 375px;
  }
  
  .nav-menu {
    gap: 1rem;
    font-size: 0.95rem;
  }
  
  .video-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .video-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .site-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
  
  .avatar-wrapper {
    width: 250px;
    height: 313px;
  }
  
  .single-page {
    padding: 2rem 1.5rem;
  }
  
  .single-page h1 {
    font-size: 2rem;
  }
}

/* ===== IMPROVED MOBILE MENU FIX - NO FLASH ===== */

/* This media query targets devices that CANNOT hover (touch devices) */
@media (hover: none) {
  /* Completely disable all hover effects on touch devices */
  .nav-menu a:hover,
  .nav-menu a:active,
  .nav-menu a:focus {
    color: #F5F5F5 !important; /* Keep default color always */
    text-shadow: 
      1px 1px 2px rgba(0, 0, 0, 0.8),
      -1px -1px 2px rgba(0, 0, 0, 0.8),
      1px -1px 2px rgba(0, 0, 0, 0.8),
      -1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  }
  
  .social-links a:hover,
  .social-links a:active,
  .social-links a:focus {
    color: #7D90B0 !important; /* Keep default color always */
    transform: none !important; /* No movement */
  }
}

/* Keep existing mobile layout fixes */
@media (max-width: 768px) {
  /* Center content */
  .container {
    max-width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
  }
  
  .about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .avatar-column,
  .bio-column {
    width: 100%;
    max-width: 100%;
  }
  
  .bio-column {
    text-align: left;
  }
  
  /* Scale down avatar */
  .avatar {
    width: 200px !important;
    height: 200px !important;
    max-width: 50vw;
  }
  
  .avatar-wrapper {
    width: 200px;
    height: 200px;
    max-width: 50vw;
  }
  
  /* Make menu items easier to tap */
  .nav-menu {
    gap: 1.5rem;
  }
  
  .nav-menu a {
    padding: 0.5rem 0.25rem; /* Larger tap targets */
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .avatar,
  .avatar-wrapper {
    width: 150px !important;
    height: 150px !important;
  }
  
  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .social-links svg,
  .social-links i {
    width: 32px !important;
    height: 32px !important;
    font-size: 32px !important;
  }
}
