/*--------------------------------------------------------------
# Custom Portfolio Style - Tim Cheng
# Original Design by Tim Cheng
# Created: 2025
--------------------------------------------------------------*/

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

/* Modern CSS Variables */
:root {
  /* Typography */
  --primary-font: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --heading-font: 'Playfair Display', 'Times New Roman', serif;
  --mono-font: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Colors - Modern Gradient Theme */
  --primary-bg: #0f0f23;
  --secondary-bg: #1a1a2e;
  --accent-bg: #16213e;
  --surface-bg: rgba(255, 255, 255, 0.1);
  
  --primary-text: #e0e6ed;
  --secondary-text: #a8b2d1;
  --accent-text: #4dabf7;
  --highlight-text: #90ccfd;
  
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  
  /* Shadows */
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.2);
  --shadow-hard: 0 30px 80px rgba(0, 0, 0, 0.3);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Typography */
body {
  font-family: var(--primary-font);
  background: var(--primary-bg);
  color: var(--primary-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Color */
::selection {
  background: var(--accent-text);
  color: var(--primary-bg);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-text);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--highlight-text);
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary-text);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

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

.section {
  padding: 5rem 0;
  position: relative;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

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

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  flex-direction: column;
}

/* Modern Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--primary-font);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: var(--surface-bg);
  color: var(--accent-text);
  border: 2px solid var(--accent-text);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hard);
}

.btn:active {
  transform: translateY(-1px);
}

/* Card Components */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Navigation Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.nav-link {
  color: var(--secondary-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition-smooth);
}

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

/* Navigation fixed colors - not affected by theme switching */
.nav-logo {
  color: #e0e6ed !important;
}

.nav-link {
  color: #a8b2d1 !important;
}

.nav-toggle {
  color: #e0e6ed !important;
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.1;
  z-index: -1;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
}

.hero-subtitle {
  color: var(--accent-text);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-title {
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--secondary-text);
  margin-bottom: 3rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Typing Animation */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--accent-text);
  white-space: nowrap;
  animation: typing 3s steps(30) infinite, blink 1s infinite;
}

/* Gradient Text Animation */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient {
  background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* Skills Progress Bars */
.skill-item {
  margin-bottom: 2rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
  color: var(--primary-text);
}

.skill-percentage {
  color: var(--accent-text);
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  background: var(--secondary-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  transition: width 2s ease-in-out;
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  cursor: pointer;
}

/* Portfolio Show/Hide Animation */
.portfolio-item-hidden {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.portfolio-item-hidden.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item-initial {
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition-smooth);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.portfolio-overlay h4 {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 1.2rem;
}

.portfolio-overlay .btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.portfolio-overlay .btn:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

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

.portfolio-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}

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

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-title {
  color: var(--primary-text);
  margin-bottom: 0.5rem;
}

.portfolio-description {
  color: var(--secondary-text);
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

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

.form-input {
  width: 100%;
  padding: 1rem;
  background: var(--surface-bg);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--primary-text);
  font-family: var(--primary-font);
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--secondary-bg);
  padding: 3rem 0 1rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  margin-bottom: 2rem;
}

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

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

.social-links .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--surface-bg);
  color: var(--accent-text);
  border: 2px solid var(--accent-text);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-links .social-link:hover {
  background: var(--accent-text);
  color: var(--primary-bg);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-bg);
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-text);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fade In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Intersection Observer Classes */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stats Counter Animation */
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-label {
  color: var(--secondary-text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/*--------------------------------------------------------------
# Section Alt Styles (Light Theme)
--------------------------------------------------------------*/
.section-alt {
  background-color: #f8fafb;
}

/* 淺色區塊的文字顏色調整 */
.section-alt h2,
.section-alt h3,
.section-alt h4 {
  color: #1e293b !important;
}

.section-alt p,
.section-alt li {
  color: #475569 !important;
}

.section-alt .card {
  background: #f8f8f8;
  box-shadow: 0 4px 16px rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.section-alt .card h3,
.section-alt .card h4 {
  color: #1e293b;
}

.section-alt .card p,
.section-alt .card li {
  color: #64748b;
}

.section-alt .badge {
  color: #ffffff !important;
}

/* Portfolio overlay in light theme */
.section-alt .portfolio-overlay {
  background: rgba(0, 0, 0, 0.75);
}

.section-alt .portfolio-overlay h4 {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
  font-size: 1.25rem;
}

.section-alt .portfolio-overlay .btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.section-alt .portfolio-overlay .btn:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.section-alt .timeline-item::before {
  background: var(--gradient-primary);
}

.section-alt .timeline-item::after {
  background: linear-gradient(to bottom, #64748b, transparent);
}

/*--------------------------------------------------------------
# Tech Tags
--------------------------------------------------------------*/
.tech-tag {
  display: inline-block;
  background: rgba(77, 171, 247, 0.1);
  color: var(--accent-text);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(77, 171, 247, 0.3);
}

/*--------------------------------------------------------------
# Experience Timeline
--------------------------------------------------------------*/
.experience-timeline {
  position: relative;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 1rem;
  width: 12px;
  height: 12px;
  background: var(--gradient-primary);
  border-radius: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 2rem;
  width: 2px;
  height: calc(100% + 2rem);
  background: linear-gradient(to bottom, var(--accent-text), transparent);
}

.timeline-item:last-child::after {
  display: none;
}

@media (max-width: 768px) {
  .timeline-item::before,
  .timeline-item::after {
    display: none;
  }
}

/*--------------------------------------------------------------
# Portfolio Modal Styles
--------------------------------------------------------------*/

.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  padding: 2rem;
}

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

.portfolio-modal-content {
  background: var(--secondary-bg);
  border-radius: var(--radius-lg);
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: var(--transition-smooth);
}

.portfolio-modal.active .portfolio-modal-content {
  transform: translateY(0) scale(1);
}

.portfolio-modal-header {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10001;
}

.portfolio-modal-close {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.portfolio-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.portfolio-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 90vh;
  max-height: 800px;
}

.portfolio-modal-images {
  position: relative;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-modal-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.portfolio-modal-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.portfolio-modal-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-modal-slide.active {
  opacity: 1;
}

.portfolio-modal-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.portfolio-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
  z-index: 1000;
}

.portfolio-modal-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.portfolio-modal-nav.prev {
  left: 1rem;
}

.portfolio-modal-nav.next {
  right: 1rem;
}

.portfolio-modal-info {
  padding: 2rem;
  overflow-y: auto;
  background: var(--secondary-bg);
}

.portfolio-modal-title {
  color: var(--primary-text);
  font-family: var(--heading-font);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-modal-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.portfolio-info-section h3 {
  color: var(--accent-text);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-family: var(--heading-font);
}

.portfolio-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portfolio-info-list li {
  color: var(--secondary-text);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-info-list li strong {
  color: var(--primary-text);
  margin-right: 0.5rem;
}

.portfolio-description-section h2 {
  color: var(--highlight-text);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-family: var(--heading-font);
}

.portfolio-modal-description p {
  color: var(--secondary-text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.portfolio-modal-features h4 {
  color: var(--accent-text);
  font-size: 1.1rem;
  margin: 1.5rem 0 1rem 0;
  font-family: var(--heading-font);
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.features-list li {
  color: var(--secondary-text);
  padding-left: 1.5rem;
  position: relative;
}

.features-list li::before {
  content: "•";
  color: var(--highlight-text);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .portfolio-modal {
    padding: 1rem;
  }
  
  .portfolio-modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: 40% 60%;
    height: 80vh;
  }
  
  .portfolio-modal-info {
    padding: 1.5rem;
  }
  
  .portfolio-modal-title {
    font-size: 1.5rem;
  }
  
  .portfolio-modal-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .portfolio-modal-nav.prev {
    left: 0.5rem;
  }
  
  .portfolio-modal-nav.next {
    right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .portfolio-modal-body {
    grid-template-rows: 35% 65%;
  }
  
  .portfolio-modal-info {
    padding: 1rem;
  }
}