/* ============================================
   dev-adam.com - Professional Dark Mode Styles
   ============================================
   Clean, modular CSS for the personal portfolio site.
   Dark aesthetic with deep grays and subtle indigo accents.
   ============================================ */

/* CSS Variables for easy theming */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-card: #18181b;
  --bg-elevated: #27272a;
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #818cf8;
  
  --border: #27272a;
  --border-light: #3f3f46;
  
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
  
  --radius: 12px;
  --radius-sm: 8px;
}

/* Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem 0;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
  color: var(--text-secondary);
  margin: 0 0 1.25rem 0;
}

/* Layout Helpers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Header / Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(63, 63, 70, 0.3);
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo .logo-brand {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active,
.nav-links a.nav-anchor-active {
  color: var(--text-primary);
}

.nav-links a.active::after,
.nav-links a.nav-anchor-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: 99px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--text-primary), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px -4px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #3b3dbb 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(99, 102, 241, 0.05);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(99, 102, 241, 0.3);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  margin-bottom: 1.5rem;
}

.about-text .highlight {
  color: var(--accent-light);
  font-weight: 600;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 1.1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 50%);
  opacity: 0.1;
  pointer-events: none;
}

/* Projects & Products Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(63, 63, 70, 0.5);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 24px -4px rgba(99, 102, 241, 0.15);
  border-color: var(--accent-light);
}

.project-card-header {
  padding: 1.75rem 1.75rem 1rem;
}

.project-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-card .project-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Status Badges */
.status-badge {
  font-size: 0.72rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-elevated);
  border-radius: 9999px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.025em;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
}

.status-featured {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.05) 100%);
  color: var(--accent-light);
  border-color: rgba(99, 102, 241, 0.3);
}

.status-live {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.status-price {
  background-color: rgba(250, 250, 250, 0.05);
  color: var(--text-primary);
}

.status-dev {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.project-card-body {
  padding: 0 1.75rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.project-tags span {
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  background-color: rgba(99, 102, 241, 0.05);
  color: var(--accent-light);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.2s ease;
}

.project-card:hover .project-tags span {
  background-color: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
  color: #fafafa;
}

.project-card-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border);
  background-color: var(--bg-secondary);
  display: flex;
  gap: 0.75rem;
}

.product-card-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border);
  background-color: var(--bg-secondary);
  display: flex;
  gap: 0.75rem;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 3rem;
  margin-top: 6rem;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-light);
}

/* Utility */
.text-accent {
  color: var(--accent);
}

.mt-8 { margin-top: 2rem; }

/* Responsive Design */
@media (max-width: 768px) {
  h1 { font-size: 2.75rem; }
  .hero h1 { font-size: 3rem; }
  .hero { min-height: 70vh; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a.active::after,
  .nav-links a.nav-anchor-active::after {
    display: none; /* Hide line highlights on mobile viewports */
  }

  .mobile-menu-btn {
    display: block;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image {
    aspect-ratio: 1.2 / 1;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 4rem 0;
  }
}

/* Accessibility & Polish */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-card:focus-within {
  border-color: var(--accent);
}

/* Print styles */
@media print {
  .nav-actions, .mobile-menu-btn {
    display: none;
  }
}