/* =============================================
   jashan.me - Premium CSS
   Dark theme, no gradients, electric cyan accent
   ============================================= */

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

:root {
  --bg:        #08080E;
  --surface:   #0F0F1A;
  --surface2:  #14141F;
  --border:    rgba(255,255,255,0.06);
  --border-h:  rgba(0,229,255,0.3);
  --cyan:      #00E5FF;
  --cyan-dim:  rgba(0,229,255,0.12);
  --violet:    #8B5CF6;
  --text:      #EEEEF5;
  --muted:     #6A6A8A;
  --muted2:    #9898B8;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius:    12px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
em { font-style: normal; color: var(--cyan); }
img { max-width: 100%; display: block; }

/* === CUSTOM CURSOR === */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0,229,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
}

.cursor-spotlight {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9990;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear;
}

body:has(.magnetic:hover) .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--cyan);
}

/* === FLOATING ORBS === */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: var(--cyan);
  top: -150px; left: -100px;
  animation-delay: 0s;
  opacity: 0.06;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--violet);
  bottom: 20%; right: -120px;
  animation-delay: -4s;
  opacity: 0.08;
}
.orb-3 {
  width: 300px; height: 300px;
  background: var(--cyan);
  bottom: -100px; left: 30%;
  animation-delay: -8s;
  opacity: 0.05;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-40px) scale(1.05); }
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(8,8,14,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--cyan); }
.logo-bracket { color: var(--muted); }
.logo-accent  { color: var(--cyan); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted2);
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.cta-nav {
  color: var(--cyan) !important;
  border: 1px solid rgba(0,229,255,0.3);
  padding: 0.45rem 1.2rem;
  border-radius: 6px;
  transition: all 0.3s !important;
}
.cta-nav:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}
.cta-nav::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s; }

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cyan);
  color: var(--bg);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,229,255,0.25); }
.btn-primary:active { transform: translateY(0); }
.btn-icon { font-size: 1.1rem; transition: transform 0.3s; }
.btn-primary:hover .btn-icon { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-h); }

.full-width { width: 100%; justify-content: center; }

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-pad { padding: 8rem 0; position: relative; z-index: 1; }

/* === SECTION HEADER === */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0.75rem;
  color: var(--text);
}
.section-sub {
  margin-top: 1rem;
  color: var(--muted2);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 860px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.45rem 1.2rem;
  font-size: 0.8rem;
  color: var(--muted2);
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-accent { color: var(--cyan); display: inline-block; }

.hero-line { display: inline-block; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted2);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: inline-flex;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.stat-suffix { font-size: 1.2rem; color: var(--cyan); font-weight: 700; }
.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px; height: 36px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1.5s backwards;
}
.scroll-line {
  width: 1px; height: 40px;
  background: var(--muted);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 0; }
  50%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* === SERVICES === */
.services { background: var(--bg); }

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

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  overflow: hidden;
  cursor: none;
  transition: border-color 0.4s, transform 0.4s;
  transform-style: preserve-3d;
}
.service-card:hover { border-color: var(--border-h); }

.card-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.service-card:hover .card-glow { transform: scaleX(1); }

.card-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}

.card-icon {
  width: 44px; height: 44px;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  transition: transform 0.4s;
}
.service-card:hover .card-icon { transform: scale(1.1) rotate(-5deg); }

.card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.no-code-tag { color: var(--muted2); font-size: 0.85em; }

.card-desc {
  font-size: 0.875rem;
  color: var(--muted2);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.card-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,255,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.card-arrow {
  color: var(--cyan);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s;
}
.service-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* === PROCESS === */
.process { background: var(--surface); }

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  flex: 1;
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.step-icon-wrap {
  width: 60px; height: 60px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--cyan);
  transition: all 0.4s;
}
.step-icon-wrap svg { width: 28px; height: 28px; }
.process-step:hover .step-icon-wrap {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  transform: scale(1.1);
}

.step-content h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.step-content p {
  font-size: 0.875rem;
  color: var(--muted2);
  line-height: 1.7;
}

.step-connector {
  position: absolute;
  top: calc(2rem + 30px);
  right: -8%;
  width: 16%;
  height: 1px;
  background: var(--border);
}
.step-connector::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transform: rotate(45deg);
}

/* === ABOUT === */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
}

.about-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.avatar-placeholder {
  width: 90px; height: 90px;
  background: var(--surface2);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyan);
}

.about-terminal {
  background: #0A0A12;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.t-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.t-dot.red    { background: #FF5F57; }
.t-dot.yellow { background: #FEBC2E; }
.t-dot.green  { background: #28C840; }
.t-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.terminal-body {
  padding: 1rem;
  min-height: 60px;
}
.t-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
}
.t-prompt { color: var(--cyan); margin-right: 0.5rem; }
.t-cmd { color: #22c55e; }
.t-cursor {
  display: inline-block;
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.a-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted2);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
}

.about-text p {
  color: var(--muted2);
  line-height: 1.8;
  font-size: 0.975rem;
  margin-bottom: 1rem;
}
.about-text p strong { color: var(--text); }
.about-text .btn-primary { margin-top: 1rem; }

/* === CONTACT === */
.contact { background: var(--surface); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-text .section-title { text-align: left; }
.contact-text p { color: var(--muted2); line-height: 1.8; margin: 1rem 0 1.5rem; }

.contact-info { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted2);
  font-size: 0.9rem;
  transition: color 0.3s;
}
.contact-link:hover { color: var(--cyan); }
.cl-icon { font-size: 1rem; color: var(--cyan); }

.contact-form {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted2);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cyan); }
.form-group select { cursor: none; color: var(--text); }
.form-group textarea { resize: vertical; }

.form-success {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: #22c55e;
  font-size: 0.875rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}
.form-success.show { display: flex; }

/* === FOOTER === */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--cyan); }

/* === SCROLL REVEAL === */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--delay, 0s);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { max-width: 480px; margin: 0 auto; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .process-steps { flex-direction: column; max-width: 400px; }
  .step-connector { display: none; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 5rem 0; }
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem; font-size: 1.5rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 40px; height: 1px; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring, .cursor-spotlight { display: none; }
}
