/* ============================================
   Nasim.dev — Global Styles
   Aesthetic: Linear / Cursor / Raycast
   ============================================ */

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

/* Variables */
:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-subtle: #F2F9FF;
  --text-primary: #0a0a0a;
  --text-secondary: #525252;
  --text-tertiary: #a3a3a3;
  --border: #e0e7ee;
  --border-hover: #c8d4e0;
  --accent: #0030C1;
  --accent-dark: #001076;
  --accent-subtle: #F2F9FF;
  --link: #0030C1;
  --link-hover: #001076;
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1080px;
  --nav-height: 64px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --transition: 150ms ease;
}

/* Base */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

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

h3 {
  font-size: 1.125rem;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--link-hover);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 450;
  transition: color var(--transition);
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  margin: 4px 0;
  transition: var(--transition);
}

/* Main content offset for fixed nav */
main {
  padding-top: var(--nav-height);
  min-height: calc(100vh - 97px);
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  border-bottom: none;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero .currently {
  margin-bottom: 40px;
}

.hero .currently p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 4px 0;
}

.hero .currently p::before {
  content: '\2192';
  margin-right: 8px;
  color: var(--text-tertiary);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-subtle);
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  transition: border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.card-body {
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.card:hover {
  border-color: var(--border-hover);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  transition: color var(--transition);
}

.card-link:hover {
  color: var(--accent-dark);
}

.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.card-link:hover svg {
  transform: translateX(2px);
}

/* Section headers */
.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 560px;
}

/* Project list (for home page preview) */
.project-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--transition);
}

.project-row:first-child {
  border-top: 1px solid var(--border);
}

.project-row:hover {
  opacity: 0.7;
}

.project-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-info h3 {
  font-size: 0.9375rem;
  font-weight: 500;
}

.project-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.project-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 450;
}

/* Press / Social proof */
.press-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.press-item {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: 450;
}

.press-item a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.press-item a:hover {
  color: var(--text-primary);
}

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

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

.footer-left {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color var(--transition);
}

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

/* Forms */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

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

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

.text-sm {
  font-size: 0.875rem;
}

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  section {
    padding: 56px 0;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero > .container > div {
    flex-direction: column !important;
  }

  .hero-image {
    margin-top: 32px;
  }

  .hero-image img {
    width: 100% !important;
    height: 280px !important;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-actions {
    flex-direction: row;
  }

  .press-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
