/* --- JMKN Tech Brand Style System --- */

:root {
  /* OPTION A: SKY CYAN & MACBOOK GOLD (LIGHT THEME DEFAULT) */
  --jmkn-bg-primary: #F5F5F7;          /* Apple anodized silver */
  --jmkn-bg-card: rgba(255, 255, 255, 0.85);
  --jmkn-bg-well: #FFFFFF;             /* Pure white well */
  
  --jmkn-gold-primary: #FFC107;        /* MacBook Gold */
  --jmkn-gold-gradient: linear-gradient(135deg, #FFE082 0%, #FFC107 40%, #FF8F00 100%);
  
  --jmkn-violet-primary: #0EA5C4;      /* Sky Cyan for Light theme contrast */
  --jmkn-violet-gradient: linear-gradient(135deg, #52C5D9 0%, #0EA5C4 100%);
  --jmkn-violet-glow: rgba(14, 165, 196, 0.08);

  --jmkn-border: #D2D2D7;              /* Apple clean silver border */
  --jmkn-border-hover: #86868B;

  --jmkn-text-primary: #1D1D1F;        /* Deep obsidian black */
  --jmkn-text-secondary: #515154;      /* Soft slate gray */
  --jmkn-text-muted: #86868B;          /* Muted gray */

  --jmkn-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --jmkn-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(14, 165, 196, 0.08);
  
  --logo-well: #EFEFEF;
  --logo-key: #1C1C1E;
  --logo-key-border: #2C2C2E;
  --logo-key-text: #D1D1D6;

  --jmkn-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --jmkn-font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  
  --jmkn-radius-large: 20px;
  --jmkn-radius-medium: 12px;
  --jmkn-radius-small: 8px;
  
  --transition-speed: 0.3s;
}

[data-theme="dark"] {
  /* OPTION A: SKY CYAN & MACBOOK GOLD (DARK THEME ACTIVE) */
  --jmkn-bg-primary: #09090C;          /* Obsidian dark background */
  --jmkn-bg-card: rgba(18, 18, 26, 0.75);
  --jmkn-bg-well: #12121A;             /* Charcoal well */
  
  --jmkn-gold-primary: #FFC107;        
  --jmkn-gold-gradient: linear-gradient(135deg, #FFE082 0%, #FFC107 40%, #FF8F00 100%);
  
  --jmkn-violet-primary: #92E2EC;      /* Vibrant Sky Cyan for Dark mode */
  --jmkn-violet-gradient: linear-gradient(135deg, #BDEDF3 0%, #92E2EC 100%);
  --jmkn-violet-glow: rgba(146, 226, 236, 0.15);

  --jmkn-border: #21222D;              /* Dark slate border */
  --jmkn-border-hover: #3E4057;
  
  --jmkn-text-primary: #FFFFFF;        /* Space white */
  --jmkn-text-secondary: #FFF8E7;      /* Champagne white */
  --jmkn-text-muted: #8E8E93;
  
  --jmkn-shadow: none;
  --jmkn-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px var(--jmkn-violet-glow);

  --logo-well: #111215;
  --logo-key: #1C1C1E;
  --logo-key-border: #2C2C2E;
  --logo-key-text: #D1D1D6;
}

/* --- BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--jmkn-bg-primary);
  color: var(--jmkn-text-secondary);
  font-family: var(--jmkn-font-family);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

h1, h2, h3, h4 {
  color: var(--jmkn-text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

/* --- NETWORK BACKGROUND CANVAS --- */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* --- BACKGROUND GLOWING ORBS --- */
.bg-orb {
  position: fixed; /* fixed boxes never extend document scroll width -> no horizontal overflow */
  border-radius: 50%;
  filter: blur(150px);
  z-index: -3;
  opacity: 0.12;
  transition: background var(--transition-speed) ease;
  pointer-events: none;
}

.orb-left {
  width: 500px;
  height: 500px;
  background: var(--jmkn-violet-primary);
  top: -100px;
  left: -150px;
}

.orb-right {
  width: 600px;
  height: 600px;
  background: var(--jmkn-gold-primary);
  top: 500px;
  right: -250px;
}

/* --- HEADER & NAVIGATION --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--jmkn-border);
  background: rgba(245, 245, 247, 0.7);
  transition: background var(--transition-speed) ease, border var(--transition-speed) ease;
}

[data-theme="dark"] header {
  background: rgba(9, 9, 12, 0.7);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Adapt SVG properties through custom class mappings */
.logo-mark .logo-well {
  fill: var(--logo-well);
  transition: fill var(--transition-speed) ease;
}

.logo-mark .logo-key {
  fill: var(--logo-key);
  stroke: var(--logo-key-border);
}

.logo-mark .logo-key-text {
  fill: var(--logo-key-legend);
}

.logo-mark .logo-key-highlight {
  fill: var(--logo-key);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--jmkn-text-primary);
}

.logo-accent {
  background: var(--jmkn-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
}

.nav-links a:hover {
  color: var(--jmkn-violet-primary);
  opacity: 1;
}

.btn-nav-cta {
  background: var(--jmkn-text-primary);
  color: var(--jmkn-bg-primary) !important;
  padding: 8px 16px;
  border-radius: var(--jmkn-radius-small);
  font-weight: 600 !important;
  transition: background var(--transition-speed) ease, transform 0.2s ease !important;
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  background: var(--jmkn-violet-primary);
}

.btn-theme-toggle {
  background: none;
  border: 1px solid var(--jmkn-border);
  color: var(--jmkn-text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition-speed) ease, border var(--transition-speed) ease;
}

.btn-theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 110;
}

.mobile-menu-btn .bar {
  width: 22px;
  height: 2px;
  background-color: var(--jmkn-text-primary);
  transition: var(--transition-speed) ease;
}

/* --- MOBILE NAVIGATION OVERLAY --- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--jmkn-bg-primary);
  border-left: 1px solid var(--jmkn-border);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 100px 30px 30px;
  gap: 24px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--jmkn-text-primary);
}

.btn-mobile-cta {
  background: var(--jmkn-text-primary);
  color: var(--jmkn-bg-primary) !important;
  text-align: center;
  padding: 12px;
  border-radius: var(--jmkn-radius-small);
  margin-top: 20px;
}

/* Mobile Menu Active animation */
.mobile-menu-btn.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 120px 24px;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(146, 226, 236, 0.08);
  border: 1px solid var(--jmkn-violet-primary);
  font-family: var(--jmkn-font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--jmkn-violet-primary);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.text-gradient {
  background: var(--jmkn-violet-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--jmkn-text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.btn {
  padding: 14px 28px;
  border-radius: var(--jmkn-radius-small);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-speed) ease, transform 0.2s ease, border var(--transition-speed) ease;
}

.btn-primary {
  background: var(--jmkn-gold-gradient);
  color: #1D1D1F;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--jmkn-text-primary);
  border: 1px solid var(--jmkn-border);
}

.btn-secondary:hover {
  border-color: var(--jmkn-text-primary);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* --- LAYOUT SECTIONS --- */
section {
  padding: 100px 24px;
  position: relative;
}

.section-header {
  max-width: 600px;
  margin-bottom: 60px;
}

.section-number {
  display: block;
  font-family: var(--jmkn-font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--jmkn-violet-primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 750;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--jmkn-text-muted);
}

/* --- TILT CARD / GLASSMORPHISM --- */
.tilt-card {
  background: var(--jmkn-bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--jmkn-border);
  border-radius: var(--jmkn-radius-large);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s ease, border var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  will-change: transform;
}

.tilt-card:hover {
  border-color: var(--jmkn-violet-primary);
  box-shadow: var(--jmkn-shadow-hover);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--jmkn-violet-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  z-index: 5;
}

/* Flagship offering: span the full grid width for a balanced 5-card layout */
.service-card-wide {
  grid-column: 1 / -1;
}

.card-pricing-note {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--jmkn-text-muted);
}
.card-pricing-note strong {
  color: var(--jmkn-violet-primary);
  font-weight: 600;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 24px;
  display: inline-block;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--jmkn-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card-bullets li {
  font-size: 13px;
  font-weight: 500;
  color: var(--jmkn-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-bullets li::before {
  content: "•";
  color: var(--jmkn-violet-primary);
  font-size: 16px;
}

/* --- TEAM SECTION --- */
.team-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  align-items: start;
}

.team-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-tab-btn {
  background: var(--jmkn-bg-card);
  border: 1px solid var(--jmkn-border);
  border-radius: var(--jmkn-radius-medium);
  padding: 16px 20px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border var(--transition-speed) ease, background var(--transition-speed) ease, transform 0.2s ease;
}

.team-tab-btn:hover {
  border-color: var(--jmkn-border-hover);
  transform: translateX(4px);
}

.team-tab-btn.active {
  border-color: var(--jmkn-violet-primary);
  background: rgba(146, 226, 236, 0.06);
  box-shadow: 0 0 15px rgba(146, 226, 236, 0.05);
}

.tab-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--jmkn-text-primary);
}

.tab-subtitle {
  font-size: 12px;
  color: var(--jmkn-text-muted);
}

/* Member detail layout */
.profile-detail-card {
  padding: 48px;
}

.profile-card-header {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.profile-image-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--jmkn-bg-well);
  border: 2px solid var(--jmkn-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

.profile-role-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid var(--jmkn-gold-primary);
  color: var(--jmkn-gold-primary);
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.profile-tagline {
  font-size: 14px;
  font-style: italic;
  color: var(--jmkn-text-muted);
}

.profile-divider {
  border: 0;
  height: 1px;
  background: var(--jmkn-border);
  margin-bottom: 28px;
}

.profile-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.profile-column h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--jmkn-violet-primary);
  margin-bottom: 12px;
}

.profile-column p {
  font-size: 14px;
  color: var(--jmkn-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.achievements-list {
  list-style: none;
}

.achievements-list li {
  font-size: 13px;
  color: var(--jmkn-text-secondary);
  margin-bottom: 10px;
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.achievements-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--jmkn-gold-primary);
}

.tech-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-stack-pills span {
  font-family: var(--jmkn-font-mono);
  font-size: 12px;
  font-weight: 500;
  background: var(--jmkn-bg-well);
  border: 1px solid var(--jmkn-border);
  color: var(--jmkn-text-primary);
  padding: 4px 10px;
  border-radius: 6px;
}

/* --- STRATEGY SECTION --- */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.strategy-card {
  background: var(--jmkn-bg-well);
  border: 1px solid var(--jmkn-border);
  border-radius: var(--jmkn-radius-large);
  padding: 40px;
  transition: border var(--transition-speed) ease;
}

.strategy-card:hover {
  border-color: var(--jmkn-violet-primary);
}

.strat-number {
  font-family: var(--jmkn-font-mono);
  font-size: 32px;
  font-weight: 600;
  color: var(--jmkn-violet-primary);
  margin-bottom: 20px;
}

.strategy-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.strategy-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--jmkn-text-secondary);
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding-bottom: 120px;
}

.contact-card {
  padding: 0;
  z-index: 5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.contact-info-panel {
  padding: 60px;
  background: rgba(146, 226, 236, 0.02);
  border-right: 1px solid var(--jmkn-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-panel h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.contact-info-panel p {
  font-size: 15px;
  color: var(--jmkn-text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.domain-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.domain-info span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--jmkn-text-muted);
}

.domain-info a {
  font-size: 20px;
  font-weight: 600;
  color: var(--jmkn-violet-primary);
}

.contact-form-panel {
  padding: 60px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--jmkn-text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--jmkn-radius-small);
  border: 1px solid var(--jmkn-border);
  background: var(--jmkn-bg-well);
  color: var(--jmkn-text-primary);
  font-family: var(--jmkn-font-family);
  font-size: 14px;
  transition: border-color var(--transition-speed) ease, outline var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--jmkn-violet-primary);
  outline: 2px solid var(--jmkn-violet-primary);
  outline-offset: 2px;
}

.btn-submit {
  width: 100%;
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--jmkn-border);
  padding: 40px 24px;
  background: var(--jmkn-bg-well);
  text-align: center;
  font-size: 13px;
  color: var(--jmkn-text-muted);
  transition: background var(--transition-speed) ease, border var(--transition-speed) ease;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .team-container {
    grid-template-columns: 1fr;
  }

  .team-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .team-tab-btn {
    flex: 1 1 200px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info-panel {
    border-right: none;
    border-bottom: 1px solid var(--jmkn-border);
    padding: 40px;
  }
  
  .contact-form-panel {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  header {
    position: relative;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .services-grid, 
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .profile-card-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-bullets {
    grid-template-columns: 1fr;
  }
}

/* --- ACCESSIBILITY: VISIBLE KEYBOARD FOCUS --- */
a:focus-visible,
button:focus-visible,
.team-tab-btn:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--jmkn-violet-primary);
  outline-offset: 3px;
  border-radius: var(--jmkn-radius-small);
}

/* --- ACCESSIBILITY: RESPECT REDUCED-MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Disable the interactive 3D tilt + node canvas drift */
  .tilt-card {
    transform: none !important;
  }

  #network-canvas,
  .bg-orb {
    display: none;
  }
}

/* --- CONTACT FORM STATUS MESSAGE --- */
.form-status {
  margin-top: 14px;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.5;
}
.form-status[data-state="pending"] { color: var(--jmkn-text-muted); }
.form-status[data-state="success"] { color: var(--jmkn-violet-primary); }
.form-status[data-state="error"]   { color: #ff6b6b; }
