/* Portfolio Site Styles */
/* Dark Academic - Linear-inspired */

/* CSS Reset and Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors - Dark Academic palette */
  --color-bg: #0a0a0a;
  --color-bg-elevated: #111111;
  --color-text: #e5e5e5;
  --color-text-muted: #888888;
  --color-text-bright: #ffffff;
  --color-border: #2a2a2a;
  --color-border-hover: #404040;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --line-height: 1.6;
  --letter-spacing: -0.01em;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 720px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--color-text-bright);
}

h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-xs);
}

h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-text-bright);
}

/* Header / Hero */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero h1 {
  margin-bottom: var(--space-xs);
}

.tagline {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  margin-bottom: 0;
}

/* Main content */
main {
  padding-bottom: var(--space-xl);
}

/* Sections */
section {
  margin-top: var(--space-2xl);
}

section:first-child {
  margin-top: var(--space-lg);
}

/* Cards */
.project-card,
.publication-card {
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.project-card:last-child,
.publication-card:last-child {
  margin-bottom: 0;
}

.project-card:hover,
.publication-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.project-card h3,
.publication-card h3 {
  color: var(--color-text-bright);
}

.project-card p,
.publication-card p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.project-links {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.project-links a {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.project-links a:hover {
  color: var(--color-text-bright);
  text-decoration: underline;
}

/* Publication-specific styles */
.authors {
  color: var(--color-text) !important;
}

.authors strong {
  color: var(--color-text-bright);
}

.journal {
  font-style: italic;
}

/* Research section */
.research-summary {
  color: var(--color-text);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.section-note {
  color: var(--color-text-muted);
  font-style: italic;
}

/* Video embeds */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 8px;
  overflow: hidden;
  background-color: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
}

footer p {
  margin-bottom: var(--space-xs);
}

footer a {
  color: var(--color-text-muted);
}

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

.credit {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Responsive - larger screens */
@media (min-width: 640px) {
  :root {
    --font-size-base: 1.0625rem;
    --font-size-3xl: 2.5rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .hero {
    padding: var(--space-xl) 0;
  }
}

@media (min-width: 1024px) {
  :root {
    --font-size-base: 1.125rem;
  }
}
