/* ============================================
   NocturneUX Portfolio - Main Stylesheet
   Modern, Professional Design with Soft Pastels
   ============================================ */

/* ============================================
   CSS VARIABLES - Brand Identity
   ============================================ */
:root {
  /* Primary Colors */
  --deep-navy: #1a2332;
  --charcoal: #2d3748;
  --soft-white: #f7fafc;
  
  /* Accent Colors (Professional Pastels) */
  --lavender: #b794f6;
  --sage: #9ae6b4;
  --soft-coral: #fc8181;
  --powder-blue: #90cdf4;
  --warm-cream: #fef5e7;
  
  /* Semantic Colors */
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --background-primary: #ffffff;
  --background-secondary: #f7fafc;
  --background-dark: #1a2332;
  
  /* Typography */
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  
  /* Container Width */
  --container-width: 1200px;
  --content-width: 800px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--background-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--deep-navy);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
  max-width: 65ch;
}

a {
  color: var(--powder-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--lavender);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   LAYOUT - Container
   ============================================ */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.content-container {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background-color: var(--background-primary);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-accent {
  color: var(--lavender);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-menu a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lavender), var(--powder-blue));
  transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 80%;
}

.nav-menu a:hover {
  color: var(--lavender);
}

.nav-menu a.active {
  color: var(--lavender);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--deep-navy);
  border-radius: 2px;
  transition: all var(--transition-base);
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--charcoal) 100%);
  position: relative;
  overflow: hidden;
  padding: var(--spacing-xl) 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(183,148,246,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--soft-white);
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--soft-white);
  margin-bottom: var(--spacing-sm);
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--powder-blue);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(247, 250, 252, 0.9);
  margin-bottom: var(--spacing-lg);
  max-width: 100%;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-align: center;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--lavender), var(--powder-blue));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: var(--soft-white);
  border: 2px solid var(--soft-white);
}

.btn-secondary:hover {
  background-color: var(--soft-white);
  color: var(--deep-navy);
}

.btn-outline {
  background-color: transparent;
  color: var(--lavender);
  border: 2px solid var(--lavender);
}

.btn-outline:hover {
  background-color: var(--lavender);
  color: white;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--lavender), var(--powder-blue));
  margin: var(--spacing-md) auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
}

/* Alternating Background Sections */
section:nth-child(even) {
  background-color: var(--background-secondary);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background-color: var(--background-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--deep-navy);
}

.card-description {
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: var(--spacing-sm);
}

.card-meta {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: auto;
}

.card-tag {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--warm-cream);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.card-tag.primary {
  background-color: rgba(183, 148, 246, 0.2);
  color: var(--lavender);
}

.card-tag.secondary {
  background-color: rgba(144, 205, 244, 0.2);
  color: var(--powder-blue);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============================================
   ARTIFACT CARDS (Work Page)
   ============================================ */
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.artifact-card {
  background-color: var(--background-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
}

.artifact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.artifact-image-container {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: linear-gradient(135deg, var(--deep-navy), var(--charcoal));
}

.artifact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.artifact-card:hover .artifact-image {
  transform: scale(1.05);
}

.artifact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(26, 35, 50, 0.8));
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-md);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.artifact-card:hover .artifact-overlay {
  opacity: 1;
}

.artifact-overlay .btn {
  width: 100%;
}

.artifact-content {
  padding: var(--spacing-md);
}

.artifact-type {
  font-size: 0.875rem;
  color: var(--lavender);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-xs);
}

.artifact-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--deep-navy);
}

.artifact-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.artifact-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--spacing-sm);
}

.tool-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--warm-cream);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ============================================
   FILTERS (Work Page)
   ============================================ */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--background-primary);
  color: var(--text-primary);
  border: 2px solid var(--background-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
  font-family: var(--font-body);
}

.filter-btn:hover {
  border-color: var(--lavender);
  color: var(--lavender);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--lavender), var(--powder-blue));
  color: white;
  border-color: transparent;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-image-container {
  position: relative;
}

.about-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-text h2 {
  margin-bottom: var(--spacing-md);
}

.about-text p {
  margin-bottom: var(--spacing-md);
  max-width: 100%;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--warm-cream);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.skill-item::before {
  content: '?';
  color: var(--sage);
  font-weight: bold;
  font-size: 1.25rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
  background: linear-gradient(135deg, var(--deep-navy), var(--charcoal));
  color: var(--soft-white);
}

.contact-section .section-title,
.contact-section h2 {
  color: var(--soft-white);
}

.contact-section .section-subtitle {
  color: rgba(247, 250, 252, 0.8);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: start;
  gap: var(--spacing-sm);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--lavender);
}

.contact-item h4 {
  color: var(--powder-blue);
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: rgba(247, 250, 252, 0.9);
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--soft-white);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--soft-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(247, 250, 252, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--lavender);
  background-color: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-message {
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  display: none;
}

.form-message.success {
  background-color: rgba(154, 230, 180, 0.2);
  color: var(--sage);
  border: 1px solid var(--sage);
}

.form-message.error {
  background-color: rgba(252, 129, 129, 0.2);
  color: var(--soft-coral);
  border: 1px solid var(--soft-coral);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--deep-navy);
  color: var(--soft-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: var(--powder-blue);
  margin-bottom: var(--spacing-sm);
}

.footer-section p {
  color: rgba(247, 250, 252, 0.8);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(247, 250, 252, 0.8);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--lavender);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft-white);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--lavender);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(247, 250, 252, 0.6);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.fade-in {
  animation: fadeIn 0.6s ease both;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--lavender), var(--powder-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.hidden {
  display: none !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .navbar .container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 4;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--background-secondary);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: var(--spacing-lg) 0;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .artifact-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}