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

/* ==========================================================
   TOKENS
   ========================================================== */
:root {
  --bg:        #0C0E14;
  --bg-2:      #13161F;
  --bg-card:   #1A1D28;
  --border:    #252836;
  --accent:    #4F8EF7;
  --accent-dim:#2D5FAA;
  --text:      #E2E8F0;
  --text-muted:#64748B;
  --text-dim:  #94A3B8;
  --mono:      'JetBrains Mono', monospace;
  --display:   'Space Grotesk', sans-serif;
  --body:      'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.2;
}

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* ==========================================================
   LAYOUT HELPERS
   ========================================================== */
.section {
  padding: 100px 8%;
}

.section.dark {
  background: var(--bg-2);
}

.container {
  max-width: 1100px;
  margin: auto;
}

.center { text-align: center; }

.section-label {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 56px;
  color: var(--text);
}

@media (max-width: 768px) {
  .section { padding: 70px 6%; }
}

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 8%;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(12, 14, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav { padding: 16px 6%; }
}

/* ==========================================================
   HERO  (single block — text on top, code window below)
   ========================================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  margin: 0 auto;
  padding: 120px max(8%, calc((100% - 1100px) / 2)) 80px;
  position: relative;
  overflow: hidden;
}

.hero-stats {
  grid-column: 1 / -1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79,142,247,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  width: 100%;
}

.hero-label {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 32px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 670px;
  line-height: 1.7;
  margin-bottom: 40px;
}

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

/* code window sits below hero text, modest width */
.hero-code {
  width: 100%;
  max-width: 560px;
}

.hero-stats {
  width: 100%;
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .hero { padding: 100px 6% 60px; gap: 40px; grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -2px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .hero-code { max-width: 100%; }
}

/* ==========================================================
   HERO — CODE WINDOW (visual)
   ========================================================== */
.code-window {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}

.code-titlebar {
  background: #161b22;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #30363d;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.code-filename {
  margin-left: 8px;
  font-size: 12px;
  color: #8b949e;
}

.code-body {
  padding: 20px;
  color: #e6edf3;
  line-height: 1.8;
  min-height: 200px;
  white-space: pre;
}

.c-kw  { color: #ff7b72; }
.c-kn  { color: #febc2e; }
.c-fn  { color: #79c0ff; }
.c-str { color: #a5d6ff; }
.c-cm  { color: #28c840; font-style: italic; }
.cursor { color: var(--accent); animation: blink 1s infinite; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s;
  font-family: var(--body);
}

.btn-primary:hover {
  background: #3d7ae8;
  transform: translateY(-2px);
}

.btn-primary.large {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s;
  font-family: var(--body);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn-outline.large {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-outline-dark:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn-service {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: 0.2s;
  text-align: center;
}

.btn-service:hover {
  background: #3d7ae8;
  transform: translateY(-2px);
}

/* ==========================================================
   TAGS
   ========================================================== */
.tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}


/* ==========================================================
   ABOUT
   ========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 100px;
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.75;
}

.about-photo {
  margin-top: 0;
}

.photo-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: 100% 50%;
  border-radius: 12px;
  filter: grayscale(20%);
  border: 1px solid var(--border);
}

@media (max-width: 1200px) {
  .tag {
    font-size: 12px;
    padding: 4px 11px;
  }
  
  .about-grid {
	gap: 60px;  
  }
  
  .about-text p {
    margin-bottom: 9px;
	font-size: 15px;
  }	
}

@media (max-width: 768px) {
  .tag {
    font-size: 11px;
    padding: 4px 10px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
	gap: 20px;
  }
  .about-photo {
    margin-top: 0;
  }
  .photo-img {
    height: 300px;
    aspect-ratio: unset;
    object-fit: cover;
  }
  .about-text p {
    margin-bottom: 5px;
	font-size: 14px;
  }
}

/* ==========================================================
   DIRECTIONS
   ========================================================== */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.direction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: 0.25s;
}

.direction-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
}

.direction-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.direction-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.direction-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.direction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.direction-tags .tag {
  font-size: 11px;
  padding: 3px 8px;
}

@media (max-width: 1024px) {
  .directions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .directions-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services-note {
  font-size: 13px;
  color: var(--accent);
  margin-top: -36px;
  margin-bottom: 48px;
  letter-spacing: 0.5px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: 0.25s;
}

.service-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
}

.service-num {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.service-card > p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.service-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.service-list li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
}

.service-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-family: var(--mono);
}

.service-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.secondary-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.service-secondary h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.service-secondary p {
  color: var(--text-muted);
  font-size: 15px;
}

.service-price {
  font-size: 14px;
  color: var(--accent);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
  text-align: center;
}

.service-price-secondary {
  font-size: 14px;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-secondary {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
   .service-secondary .btn-service {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================
   PROJECTS
   ========================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
  grid-auto-rows: auto;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
   height: fit-content;
}

.project-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  min-height: 56px;
}

.project-card > p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  min-height: 70px;
}

.project-result {
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding: 16px 0px;
  line-height: 1.6;
  min-height: 110px;
}

.project-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
}

.project-details {
  display: none;
  margin-top: 16px;
}

.project-details.open {
  display: block;
}

.project-details h4 {
  font-size: 13px;
  color: var(--accent);
  font-family: var(--mono);
  margin: 16px 0 8px;
  letter-spacing: 0.5px;
}

.project-details ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-details ul li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.project-details ul li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-family: var(--mono);
}

.project-effect {
  margin: 16px 0px;
  padding: 16px;
  background: rgba(79,142,247,0.05);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

.project-toggle {
  background: none;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-size: 13px;
  font-family: var(--mono);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  text-align: left;
  transition: 0.2s;
  width: 100%;
}

.project-toggle:hover {
  background: rgba(79,142,247,0.08);
  border-color: var(--accent);
}

.project-tag {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.project-card > p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-result {
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  line-height: 1.6;
}

.project-result .mono {
  color: var(--accent);
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-desc {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 28px 8%;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
