/* =============================================
   SHAYAN PORTFOLIO - Main Stylesheet
   Design: Dark (#0A0A0F) + Electric Green (#00FF94)
   Fonts: Syne (display) + Inter (body)
   ============================================= */

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

:root {
  --bg: #0A0A0F;
  --bg-card: #111118;
  --bg-card-hover: #16161F;
  --accent: #00FF94;
  --accent-dim: rgba(0, 255, 148, 0.12);
  --text: #F0F0F5;
  --text-muted: #888899;
  --border: rgba(255,255,255,0.07);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body.shayan-page,
body.shayan-single-project {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.shayan-page .site-header,
body.shayan-page header.elementor-location-header,
body.shayan-single-project .site-header,
body.shayan-single-project header.elementor-location-header,
body.shayan-page .elementor-location-header,
body.shayan-single-project .elementor-location-header { display: none !important; }

/* NAV */
.sp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 48px;
}

.sp-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.sp-nav__logo {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
}

.sp-nav__logo img { height: 38px; width: auto; display: block; }

.sp-nav__logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.sp-nav__logo-text span { color: var(--accent); }

.sp-nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.sp-nav__links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  cursor: pointer;
}

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

/* BANNER */
.sp-banner {
  margin-top: var(--nav-h);
  width: 100%;
  aspect-ratio: 21/6;
  overflow: hidden;
  background: var(--bg-card);
}

.sp-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sp-banner__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #111118 0%, #1a1a28 50%, #0f1420 100%);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
  opacity: 0.6;
}

/* PROJECTS SECTION */
.sp-projects {
  padding: 100px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.sp-projects__heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 48px;
}

.sp-projects__heading span { color: var(--accent); }

/* Filter Tabs */
.sp-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.sp-filter__btn {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}

.sp-filter__btn:hover { border-color: var(--accent); color: var(--accent); }

.sp-filter__btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0A0A0F;
  font-weight: 600;
}

/* Project Grid */
.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* PROJECT CARD */
.sp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 148, 0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,255,148,0.1);
}

.sp-card__thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1a1a28;
}

.sp-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}

.sp-card:hover .sp-card__thumb img { transform: scale(1.04); }

.sp-card__thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a28, #0f1420);
  color: var(--text-muted); font-size: 40px; opacity: 0.4;
}

.sp-card__body { padding: 20px 22px 22px; }

.sp-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.sp-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.sp-card__tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sp-grid-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

/* FOOTER */
.sp-footer {
  border-top: 1px solid var(--border);
  padding: 80px 48px;
  text-align: center;
  background: var(--bg);
}

.sp-footer__label {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.sp-footer__sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 48px;
}

.sp-footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
}

.sp-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sp-contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.sp-footer__copy { color: var(--text-muted); font-size: 12px; opacity: 0.5; }

/* SINGLE PROJECT */
.sp-single { padding-top: var(--nav-h); min-height: 100vh; background: var(--bg); }

.sp-single__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 32px 100px;
}

.sp-single__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.sp-single__back:hover { color: var(--accent); }

.sp-single__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.sp-single__tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-single__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 32px;
}

.sp-single__desc {
  color: #BBBBC8;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.sp-single__desc p { margin-bottom: 16px; }

.sp-single__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

.sp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  background: var(--accent);
  color: #0A0A0F;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.sp-btn-primary:hover {
  background: #00e085;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 255, 148, 0.3);
}

.sp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.sp-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

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

.sp-single__gallery-img { display: block; width: 100%; overflow: hidden; }
.sp-single__gallery-img:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.sp-single__gallery-img:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.sp-single__gallery-img:only-child { border-radius: var(--radius); }
.sp-single__gallery-img img { width: 100%; display: block; height: auto; }

/* Responsive */
@media (max-width: 900px) { .sp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .sp-nav { padding: 0 24px; }
  .sp-projects { padding: 60px 24px; }
  .sp-footer { padding: 60px 24px; }
  .sp-single__inner { padding: 48px 20px 80px; }
  .sp-banner { aspect-ratio: 16/7; }
  .sp-nav__links { gap: 24px; }
}
@media (max-width: 580px) { .sp-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sp-banner { aspect-ratio: 4/3; } }