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

:root {
  --bg-primary: #0e0e0e;
  --bg-secondary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #ffffff;
  --border: #2a2a2a;
  --max-width: 800px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.nav-logo {
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

/* Main Content */
.main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 4rem 0 3rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

/* Sections */
.section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Link List */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.link-item:last-child {
  border-bottom: none;
}

.link-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.link-item-title {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-item-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.link-arrow {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* Newsletter CTA */
.newsletter-cta {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem 0;
}

.newsletter-cta h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.newsletter-cta p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.newsletter-cta a {
  display: inline-block;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}

.newsletter-cta a:hover {
  opacity: 0.9;
}

/* Page Header */
.page-header {
  padding: 3rem 0 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-desc {
  color: var(--text-secondary);
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--border);
}

.project-info {
  padding: 1.25rem;
}

.project-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Gallery (migrated from original) */
.gallery-section {
  margin-top: 3rem;
}

.gallery-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.gallery-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.gallery-btn:hover,
.gallery-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.gallery-grid img:hover {
  opacity: 0.8;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Coming Soon */
.coming-soon {
  text-align: center;
  padding: 6rem 2rem;
}

.coming-soon h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.coming-soon p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  opacity: 1;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    padding: 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .main {
    padding: 0 1.5rem 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
}
