/* Dynamic Designs — Modern redesign */

:root {
  --bg: #0f1117;
  --bg-elevated: #1a1d27;
  --bg-card: #222633;
  --border: #2e3345;
  --text: #e8eaef;
  --text-muted: #9aa3b8;
  --accent: #f0a313;
  --accent-hover: #ffc04d;
  --accent-dim: rgba(240, 163, 19, 0.12);
  --link: #6eb5ff;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(240, 163, 19, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(110, 181, 255, 0.04), transparent);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* Layout */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--accent-dim);
}

.nav a.active {
  color: var(--accent);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Hero */

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

.hero-logo {
  max-width: min(100%, 420px);
  height: auto;
  margin: 0 auto 1.25rem;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-tagline strong {
  color: var(--accent);
  font-weight: 600;
}

/* Grid sections */

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-dim);
}

.section-title span {
  color: var(--accent);
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.home-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Site cards — vertical portfolio layout */

.site-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.site-card:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.site-card-preview-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0c10;
  border-bottom: 1px solid var(--border);
}

.site-card-preview-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.site-card-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.site-card:hover .site-card-preview {
  transform: scale(1.03);
}

.site-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.15rem 1.1rem;
  flex: 1;
}

.site-card-name {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text);
}

.site-card-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
}

.site-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.site-card-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.site-card-arrow {
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.site-card:hover .site-card-arrow {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


.page-header {
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
  max-width: 640px;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.content-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 1rem;
  color: var(--accent);
}

.content-card h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
}

.content-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.content-card li {
  margin-bottom: 0.4rem;
}

.content-card li strong {
  color: var(--text);
}

/* Timeline */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Product grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.product-card h4 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1rem;
}

.product-card p {
  margin: 0;
  font-size: 0.85rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer-counter img {
  border-radius: 4px;
}

/* Utilities */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
