/* ==========================================================================
   VERCEL / LINEAR STYLE - COMPACT FULL-PAGE CURTAIN DECK
   bariscodefx // Software Architect & Web Developer
   ========================================================================== */

:root {
  --bg-black: #000000;
  --bg-surface: #0a0a0a;
  --bg-surface-2: #111111;
  --bg-surface-3: #161616;
  
  --text-white: #ededed;
  --text-muted: #888888;
  --text-subtle: #555555;
  --text-dark: #000000;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-active: rgba(255, 255, 255, 0.35);

  --accent-blue: #0070f3;
  --accent-cyan: #00f0ff;
  --accent-green: #00ff9d;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1020px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-black);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-black);
  color: var(--text-white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Vercel Dot Grid Background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Top Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), #ffffff, var(--accent-green));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Floating Right-Side Section Navigator */
.scroll-nav-indicator {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

.scroll-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.scroll-nav-dot:hover, .scroll-nav-dot.active {
  background: #ffffff;
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.scroll-nav-dot::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: #111111;
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.scroll-nav-dot:hover::before {
  opacity: 1;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Compact Sticky Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.85);
}

.nav-inner {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-triangle {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Compact Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-white {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.btn-white:hover {
  background: #eaeaea;
  border-color: #eaeaea;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 9px 18px;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-decoration: none;
  transition: border-color var(--transition);
}

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

.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff9d;
  box-shadow: 0 0 6px rgba(0, 255, 157, 0.4);
}

/* ==========================================================================
   Full-Page Curtain Deck Stacking (Compact & Fit-to-Screen)
   ========================================================================== */
.page-stack-wrapper {
  position: relative;
  width: 100%;
}

.deck-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 35px;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  transform-origin: center top;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
  background-color: var(--bg-black);
}

/* First section (Hero) has no top border or rounded corners */
.deck-section:first-child {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: none;
}

/* Layered Z-Indices & Distinct Background Tones */
.deck-section.layer-1 { z-index: 10; background: #000000; }
.deck-section.layer-2 { z-index: 20; background: #070707; }
.deck-section.layer-3 { z-index: 30; background: #0b0b0b; }
.deck-section.layer-4 { z-index: 40; background: #070707; }
.deck-section.layer-5 { z-index: 50; background: #0b0b0b; }
.deck-section.layer-6 { z-index: 60; background: #000000; }

/* When a section is covered by the next one sliding over it */
.deck-section.is-covered {
  transform: scale(0.96) translateY(-15px);
  opacity: 0.35;
  filter: blur(2px);
}

/* Content Container */
.deck-content {
  width: 100%;
}

/* Hero Section Specifics (Compact Typography) */
.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto 16px;
  background: linear-gradient(180deg, #FFFFFF 40%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.55;
  font-weight: 400;
  text-align: center;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Stats Row (Compact) */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-top: 16px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Section Headings (Compact) */
.section-head {
  margin-bottom: 22px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.section-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.45;
}

/* Bento Grid (Compact) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-2);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  margin-bottom: 12px;
}

.bento-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text-white);
}

.bento-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  color: #ccc;
}

/* Projects Grid (Compact) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.project-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-2);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.project-arrow {
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.project-card:hover .project-arrow {
  color: var(--text-white);
  transform: translate(2px, -2px);
}

.project-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 6px;
}

.project-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}

.project-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.pstat {
  display: flex;
  flex-direction: column;
}

.pstat-val {
  color: var(--text-white);
  font-weight: 600;
}

.pstat-lbl {
  color: var(--text-subtle);
  font-size: 0.65rem;
}

/* Code Window (Compact) */
.code-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-header {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.01);
}

.code-tabs {
  display: flex;
  gap: 14px;
}

.code-tab {
  cursor: pointer;
  padding: 3px 0;
  position: relative;
  transition: color var(--transition);
}

.code-tab.active {
  color: var(--text-white);
}

.code-tab.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
}

.code-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #a1a1a1;
  overflow-x: auto;
  max-height: 320px;
}

.code-line {
  display: flex;
}

.code-num {
  width: 28px;
  color: #444;
  user-select: none;
}

.token-kw { color: #ff7b72; }
.token-fn { color: #d2a8ff; }
.token-str { color: #a5d6ff; }
.token-cm { color: #8b949e; }
.token-type { color: #79c0ff; }

/* Engagement / Services Compact Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

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

.pricing-card.featured {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-surface-2);
}

.plan-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  min-height: 34px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.plan-price {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.plan-period {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  flex: 1;
}

.plan-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: #ccc;
  line-height: 1.35;
}

.plan-feat-item svg {
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}

/* FAQ Accordion (Compact) */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  padding-bottom: 14px;
}

/* Minimalist Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #0d0d0d;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 26px;
  position: relative;
  transform: scale(0.96);
  transition: all var(--transition);
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  background: #141414;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-input:focus {
  border-color: #fff;
}

/* Footer (Slim) */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 30px 0 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 30px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-link:hover {
  color: #fff;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .deck-section {
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
  .projects-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links, .scroll-nav-indicator {
    display: none;
  }
  .deck-section {
    min-height: auto;
    padding: 50px 0;
    position: relative;
    box-shadow: none;
    border-radius: 0;
  }
}
