/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Open+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

/* CSS Variables */
:root {
  --bg-primary: #ffffff;
  --bg-dark: #282828;
  --bg-light: #f9f9f9;
  --text-dark: #191919;
  --text-muted: #666666;
  --text-light: #ffffff;
  --text-gray: #bababa;
  
  --accent-purple: #7f4563;
  --accent-pink: #ff8ac7;
  --accent-pink-hover: #e57cb3;
  --accent-muted-purple: #bf6795;
  --accent-dark-purple: #402232;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
  --max-width: 1200px;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

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

/* Utility Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

/* Sticky Header & Navigation */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition-smooth);
  padding: 20px 0;
}

#site-header.sticky {
  background-color: var(--accent-purple);
  box-shadow: var(--shadow-subtle);
  padding: 12px 0;
}

#site-header .inside {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent-purple);
  transition: var(--transition-smooth);
}

#site-header.sticky .site-title {
  color: var(--text-light);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav ul li a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-purple);
  padding: 5px 0;
  position: relative;
}

#site-header.sticky .main-nav ul li a {
  color: var(--text-light);
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-pink-hover);
  transition: var(--transition-smooth);
}

.main-nav ul li a:hover {
  color: var(--accent-pink-hover) !important;
}

.main-nav ul li a:hover::after {
  width: 100%;
}

/* Mobile Toggle */
.menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--accent-purple);
  margin-bottom: 5px;
  transition: var(--transition-smooth);
}

.menu-toggle-btn span:last-child {
  margin-bottom: 0;
}

#site-header.sticky .menu-toggle-btn span {
  background-color: var(--text-light);
}

/* Slide-out Mobile Panel */
#slide-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100%;
  background-color: var(--bg-primary);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: var(--transition-smooth);
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow-y: auto;
}

#slide-panel.open {
  right: 0;
}

#slide-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

#slide-panel-overlay.show {
  opacity: 1;
  visibility: visible;
}

.close-panel-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--accent-purple);
  cursor: pointer;
}

.close-panel-btn:hover {
  color: var(--accent-pink-hover);
}

#slide-mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#slide-mobile-menu ul li a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--accent-purple);
}

#slide-mobile-menu ul li a:hover {
  color: var(--accent-pink-hover);
}

.sidebar-about-widget h3 {
  font-family: var(--font-heading);
  color: var(--accent-purple);
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--accent-pink);
  padding-bottom: 5px;
}

.sidebar-about-widget p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Hello / Hero Section */
#hello {
  background-color: var(--bg-light);
  padding-top: 140px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: start;
}

.hero-left {
  position: sticky;
  top: 100px;
}

.hero-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--bg-primary);
  box-shadow: var(--shadow-medium);
  margin: 0 auto 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-name-tags {
  text-align: center;
}

.hero-name-tags h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-purple);
  font-weight: 900;
  margin-bottom: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tag-badge {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  background-color: var(--accent-pink);
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-purple);
  line-height: 1.2;
}

.hero-title span {
  display: block;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--accent-muted-purple);
  margin-top: 5px;
}

.hero-intro-text {
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.7;
}

/* History Images Columns */
.history-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.history-card {
  background-color: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.history-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.history-img-wrapper {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.history-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition-smooth);
}

.history-card:hover .history-img-wrapper img {
  scale: 1.05;
}

.history-caption {
  padding: 15px;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-purple);
  text-align: center;
  border-top: 3px solid var(--accent-pink);
}

/* Lucille Ball Block */
.lucille-block {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
  background-color: var(--bg-primary);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
}

.lucille-text-block {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lucille-text {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.lucille-image-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  position: relative;
}

.lucille-caption {
  background-color: var(--accent-purple);
  color: var(--text-light);
  padding: 10px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
}

/* General Page Section: About Me (from sidebar content) */
#about-me {
  background-color: var(--bg-primary);
  border-top: 1px solid #eee;
}

.about-intro-title {
  text-align: center;
  margin-bottom: 40px;
}

.about-intro-title h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--accent-purple);
}

.about-intro-title h2 span {
  color: var(--accent-pink);
}

.about-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.about-content-col p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content-col p:last-child {
  margin-bottom: 0;
}

/* My Work Section */
#my-work {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.work-title {
  text-align: center;
  margin-bottom: 45px;
}

.work-title h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: 2px;
}

.work-title h2 span.first-word {
  color: var(--accent-purple);
}

.work-title h2 span.second-word {
  color: var(--accent-pink);
}

/* Filter Nav */
#filter-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  list-style: none;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

#filter-nav li a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 20px;
  border: 2px solid var(--accent-purple);
  border-radius: 30px;
  color: var(--text-light);
  background: transparent;
}

#filter-nav li a.selected,
#filter-nav li a:hover {
  background-color: var(--accent-purple);
  color: var(--text-light);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}

.portfolio-item.hidden {
  display: none;
  opacity: 0;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Overlay Hover */
.portfolio-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(191, 103, 149, 0.9); /* #bf6795 */
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  transition: var(--transition-smooth);
}

.portfolio-item:hover {
  transform: scale(1.03);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.portfolio-item .overlay h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-light);
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item:hover .overlay h3 {
  transform: translateY(0);
}

.portfolio-item .overlay .category {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-pink);
  margin-top: 5px;
  font-weight: bold;
}

/* Contact Me Section */
#contact-me {
  background-color: var(--bg-dark);
  border-top: 1px solid #333;
  color: var(--text-light);
  text-align: center;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-container h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.5rem;
}

.contact-container h2 span.first {
  color: var(--text-light);
}

.contact-container h2 span.second {
  color: var(--accent-purple);
}

.contact-container p {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.contact-email-img {
  max-width: 280px;
  margin-top: 10px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.contact-email-img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 15px rgba(255, 138, 199, 0.3));
}

/* Footer Styles */
#footer {
  background-color: var(--bg-dark);
  border-top: 1px solid #1a1a1a;
  padding: 30px 0;
  color: var(--text-gray);
  text-align: center;
  font-size: 0.85rem;
}

#footer a {
  color: var(--accent-pink-hover);
}

#footer a:hover {
  color: var(--text-light);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 15, 0.95);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  border: 3px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-modal.active .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  font-family: var(--font-heading);
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-close-btn:hover {
  color: var(--accent-pink);
  transform: scale(1.1);
}

/* Scroll to Top Button */
#scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--accent-purple);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
  opacity: 0;
  visibility: hidden;
  z-index: 99;
}

#scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

#scroll-to-top:hover {
  background-color: var(--accent-pink-hover);
  transform: translateY(-3px);
}

#scroll-to-top::before {
  content: '^';
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.4rem;
  margin-top: -4px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid {
    grid-template-columns: 240px 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .main-nav {
    display: none; /* Hide standard nav on mobile/tablet */
  }
  
  .menu-toggle-btn {
    display: block; /* Show hamburger toggle */
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-left {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-avatar {
    max-width: 200px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-title span {
    font-size: 1.4rem;
  }
  
  .history-cols {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .lucille-block {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .lucille-image-card {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .about-content-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox-close-btn {
    right: 0;
    top: -50px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-title span {
    font-size: 1.15rem;
  }
  .work-title h2,
  .contact-container h2 {
    font-size: 2rem;
  }
  #slide-panel {
    width: 280px;
  }
}

/* Intro Animations */
.animate-slide-fade {
  opacity: 0;
  animation: slideFadeIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-only {
  opacity: 0;
  animation: fadeInOnly 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInOnly {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
