/* ========================================
   WRITER PORTFOLIO - STYLESHEET
   Poetic, Calm & Professional Design
   ======================================== */

/* ===== CSS VARIABLES & RESET ===== */
:root {
  /* Color Palette - Soft & Soothing */
  --bg-primary: #fafafa;
  --bg-secondary: #f8f9fc;
  --bg-tertiary: #f0f2f7;
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-light: #718096;
  
  /* Accent Colors */
  --accent-teal: #1864c7;
  --accent-teal-dark: #5a73b8;
  --accent-lavender: #cf911e;
  --accent-lavender-dark: #b8a58d;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
  
  /* Neumorphism */
  --neumorph-light: #ffffff;
  --neumorph-dark: #e0e4f0;
  --neumorph-shadow: 8px 8px 16px var(--neumorph-dark), -8px -8px 16px var(--neumorph-light);
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing & Layout */
  --container-width: 1200px;
  --section-padding: 5rem 1.5rem;
  --border-radius: 16px;
  --border-radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(125, 211, 192, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 90% 80%, rgba(196, 168, 212, 0.08) 0%, transparent 25%);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-lavender));
  border-radius: 2px;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-teal-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-lavender-dark);
}

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.book-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .book-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.book-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}

.book-image-container {
  text-align: center;
}

.book-cover {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.book-publisher {
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.6;
}

#buyButton {
  width: 100%;
  justify-content: center;
  margin-bottom: 1rem;
}

.book-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: auto;
}

.book-social-links .social-link {
  width: 36px;
  height: 36px;
}

.book-main-content {
  display: flex;
  flex-direction: column;
}

.story-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-lavender));
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 211, 192, 0.4);
}

.filter-count {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}

.filter-btn:hover .filter-count,
.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.5);
}

/* Story/Novel Modal Enhancements */
#storyModal .modal-content {
  max-width: 800px;
  max-height: 85vh;
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

#storyModalTitle {
  margin: 0;
  font-size: 1.8rem;
}

#storyModalContent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 1rem;
}

.story-item,
.novel-item {
  background: rgba(255, 255, 255, 0.4);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-item h3,
.novel-item h3 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.story-item .genre-tag,
.novel-item .novel-status {
  margin-bottom: 0.75rem;
}

.story-item p,
.novel-item p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .story-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 200px;
    justify-content: center;
  }
  
  #storyModalContent {
    grid-template-columns: 1fr;
  }
}

/* ===== GLASSMORPHISM CARDS ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
  padding: 1.5rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.12);
}

/* ===== NEUMORPHISM FRAMES ===== */
.neumorph-circle,
.neumorph-frame {
  border-radius: 50%;
  background: var(--bg-secondary);
  box-shadow: var(--neumorph-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.neumorph-circle {
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.neumorph-frame {
  width: 280px;
  height: 320px;
  border-radius: var(--border-radius-lg);
}

.author-photo,
.profile-photo {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform var(--transition-slow);
}

.neumorph-circle:hover .author-photo,
.neumorph-frame:hover .profile-photo {
  transform: scale(1.03);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-lavender));
  color: white;
  box-shadow: 0 4px 15px rgba(125, 211, 192, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 211, 192, 0.6);
  color: white;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--accent-teal);
}

.btn-secondary:hover {
  background: var(--accent-teal);
  color: white;
  transform: translateY(-2px);
}

.btn-download {
  background: linear-gradient(135deg, var(--accent-lavender), var(--accent-teal));
  color: white;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 168, 212, 0.5);
  color: white;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(250, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-lavender));
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-teal-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  left: 0;
  transition: transform var(--transition-normal);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height:60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(125, 211, 192, 0.15), rgba(196, 168, 212, 0.15));
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 10%;
  animation-delay: -5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  right: 20%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
  max-width: 700px;
  padding: 0 1.5rem;
  z-index: 2;
  margin-left: 400px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--accent-teal-dark);
  margin-bottom: 1.5rem;
}

.hero-intro {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.hero-intro em {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-heading);
  color: var(--accent-lavender-dark);
  font-style: italic;
}

.hero-image {
  margin-top: 3rem;
  z-index: 2;
  margin-right: 500px;
}

/* ===== PROFILE SECTION ===== */
.profile-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.profile-details {
  margin: 1.5rem 0;
}

.detail-item {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-teal);
}

.profile-quote {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--accent-lavender-dark);
  padding: 1rem;
  border-left: 3px solid var(--accent-lavender);
  margin-top: 1.5rem;
  background: rgba(196, 168, 212, 0.08);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* ===== POEMS & STORIES GRIDS ===== */
.poems-grid,
.stories-grid,
.novels-grid,
.gallery-grid,
.books-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.poem-card,
.story-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.poem-excerpt,
.story-desc {
  flex-grow: 1;
  margin: 1rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.story-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin-bottom: 1rem;
}

.genre-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(125, 211, 192, 0.15);
  color: var(--accent-teal-dark);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* ===== NOVELS SECTION ===== */
.novel-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.novel-cover img {
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.novel-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.5rem 0;
}

.novel-status.published {
  background: rgba(125, 211, 192, 0.2);
  color: var(--accent-teal-dark);
}

.novel-status.progress {
  background: rgba(196, 168, 212, 0.2);
  color: var(--accent-lavender-dark);
}

.novel-cover-mini {
  width: 60px;
  height: 90px;
  margin-bottom: 0.75rem;
}

.novel-cover-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== PHOTO ALBUM SLIDER ===== */
.gallery-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-item {
  flex: 0 0 100%;
  padding: 1rem;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: transform var(--transition-normal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass-bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-fast);
  z-index: 10;
}

.gallery-btn:hover {
  background: var(--accent-teal);
  color: white;
}

.gallery-btn.prev { left: 1rem; }
.gallery-btn.next { right: 1rem; }

/* ===== PUBLISHED WRITINGS ===== */
.published-list {
  max-width: 800px;
  margin: 0 auto;
}

.published-item {
  margin-bottom: 1.5rem;
}

.published-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.pub-name {
  font-weight: 500;
  color: var(--accent-teal-dark);
}

.published-desc {
  margin-bottom: 1rem;
}

.published-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  color: var(--accent-teal-dark);
}

.published-link .icon {
  transition: transform var(--transition-fast);
}

.published-link:hover .icon {
  transform: translateX(3px);
}

/* ===== AWARDS TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  height: calc(100% - 20px);
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-teal), var(--accent-lavender));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -29px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-teal);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent-teal);
}

.timeline-year {
  display: inline-block;
  background: var(--accent-lavender);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-title {
  margin-bottom: 0.25rem;
}

.timeline-org {
  font-weight: 500;
  color: var(--accent-teal-dark);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  margin: 0;
  font-size: 0.95rem;
}

/* ===== GALLERY TILES ===== */
.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  height: 300px;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.tile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.gallery-tile:hover img {
  transform: scale(1.1);
}

.gallery-tile:hover .tile-overlay {
  transform: translateY(0);
  opacity: 1;
}

.tile-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
}

/* ===== BOOK DOWNLOADS ===== */
.book-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
}

.book-cover img {
  width: 100px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-tagline {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--bg-tertiary);
  border-radius: 12px;
  background: var(--bg-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(125, 211, 192, 0.2);
}

.error-msg {
  display: none;
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  padding-left: 0.5rem;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #e53e3e;
}

.form-group.error .error-msg {
  display: block;
}

.form-success {
  display: none;
  background: rgba(125, 211, 192, 0.15);
  color: var(--accent-teal-dark);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

.form-success.show {
  display: block;
  animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid var(--bg-tertiary);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.copyright {
  color: var(--text-light);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-link:hover {
  background: var(--accent-teal);
  color: white;
  transform: translateY(-3px);
}

.social-link .icon {
  width: 18px;
  height: 18px;
}

/* ===== MODALS ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 55, 72, 0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  z-index: 2001;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 2002;
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

#lightboxImage {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-teal);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(125, 211, 192, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent-teal-dark);
  transform: translateY(-3px);
}

.scroll-top .icon {
  width: 20px;
  height: 20px;
}

/* ===== ANIMATIONS & FADE-IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }

/* ===== DROPDOWN MENU STYLES ===== */
.nav-item.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding-right: 20px;
  position: relative;
}

.dropdown-toggle::after {
  content: '▼';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7em;
  transition: transform var(--transition-fast);
  pointer-events: none;
}

.dropdown:hover .dropdown-toggle::after {
  transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 1001;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--accent-teal);
  color: white;
  padding-left: 1.5rem;
}

/* Mobile dropdown - show expanded in mobile menu */
@media (max-width: 900px) {
  .nav-menu.active .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: rgba(255,255,255,0.05);
    margin-top: 0.5rem;
    max-height: none;
  }
  
  .nav-menu.active .dropdown {
    width: 100%;
  }
  
  .nav-menu.active .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (min-width: 768px) {
  .profile-card {
    grid-template-columns: 1fr 1.5fr;
  }
  
  .novel-card,
  .book-card {
    grid-template-columns: 140px 1fr;
  }
  
  .novel-cover img {
    width: 140px;
    height: 210px;
  }
  
  .book-cover img {
    width: 120px;
    height: 180px;
  }
  
  .gallery-item img {
    height: 400px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero {
    text-align: left;
    justify-content: space-between;
    padding: 6rem 0;
  }
  
  .hero-content {
    max-width: 550px;
    padding: 0;
    text-align: left;
  }
  
  .hero-image {
    margin-top: 0;
    margin-right: 500px;
  }
  
  .neumorph-circle {
    width: 260px;
    height: 260px;
  }
  
  .poems-grid,
  .stories-grid,
  .novels-grid,
  .gallery-grid,
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .novels-grid,
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Navigation */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: left var(--transition-normal);
    padding: 2rem;
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
  }
  
  /* Hamburger animation */
  .nav-toggle.active .hamburger {
    background: transparent;
  }
  
  .nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Adjust hero for mobile */
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
    min-height: auto;
    padding-bottom: 3rem;
  }
  
  .hero-image {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .neumorph-circle {
    width: 200px;
    height: 200px;
  }
  
  .novel-card,
  .book-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .novel-cover img,
  .book-cover img {
    margin: 0 auto;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 4rem 1rem;
  }
  
  .glass-card {
    padding: 1.25rem;
  }
  
  .neumorph-circle {
    width: 180px;
    height: 180px;
  }
  
  .neumorph-frame {
    width: 100%;
    height: auto;
    padding-bottom: 120%;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .scroll-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .scroll-top,
  .gallery-btn,
  .modal {
    display: none !important;
  }
  
  .glass-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}