/*
Theme Name: Digitalis
Theme URI: https://digitalis.dev
Author: Digitalis
Author URI: https://digitalis.dev
Description: Custom dark theme for Digitalis — App Development Studio. A sleek, modern homepage with service cards, app portfolio, process timeline, tech stack, and contact CTA.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digitalis
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ═══════════ CSS VARIABLES ═══════════ */
:root {
  --bg-primary: #08090c;
  --bg-secondary: #0d0f14;
  --bg-card: #12141c;
  --bg-elevated: #181b25;
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.1);
  --text-primary: #eaedf3;
  --text-secondary: #8b90a0;
  --text-muted: #5a5f72;
  --accent: #4f7cff;
  --accent-glow: rgba(79,124,255,0.15);
  --accent-green: #22c55e;
  --accent-orange: #ff6b35;
  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --gradient-1: linear-gradient(135deg, #4f7cff 0%, #a855f7 50%, #ff6b35 100%);
  --gradient-2: linear-gradient(135deg, #06b6d4 0%, #4f7cff 100%);
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════ WORDPRESS ADMIN BAR FIX ═══════════ */
body.admin-bar nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar nav {
    top: 46px;
  }
}

/* ═══════════ NAV ═══════════ */
nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  background: rgba(8,9,12,0.7);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  letter-spacing: -1px;
}

.nav-logo-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

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

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

.nav-cta {
  padding: 10px 24px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px !important;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 30px var(--accent-glow);
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 40px 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.12;
  pointer-events: none;
}

.hero-glow-1 { top: -200px; right: -200px; background: var(--accent); }
.hero-glow-2 { bottom: -300px; left: -200px; background: var(--accent-purple); }
.hero-glow-3 { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: var(--accent-cyan); opacity: 0.06; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.0;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 400;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  box-shadow: 0 0 30px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--accent-glow), 0 8px 30px rgba(0,0,0,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; height: 40px; }
  50% { opacity: 0.3; height: 20px; }
}

/* ═══════════ SECTIONS ═══════════ */
section { padding: 120px 40px; position: relative; }

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

/* ═══════════ SERVICES ═══════════ */
.services { background: var(--bg-secondary); }
.services-header { text-align: center; margin-bottom: 80px; }
.services-header .section-desc { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent, var(--accent));
  opacity: 0;
  transition: opacity 0.35s;
}

.service-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

.service-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ═══════════ PORTFOLIO ═══════════ */
.portfolio { background: var(--bg-primary); }
.portfolio-header { text-align: center; margin-bottom: 80px; }
.portfolio-header .section-desc { margin: 0 auto; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s;
}

.app-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.app-card-visual {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.app-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-card));
}

.app-mockup {
  width: 120px;
  height: 160px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.app-mockup-icon { font-size: 36px; }
.app-mockup-name { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: rgba(255,255,255,0.9); }

.app-card-content { padding: 28px 32px 32px; }

.app-card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.app-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 10px; }
.app-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }

.app-card-features { display: flex; flex-wrap: wrap; gap: 8px; }

.app-feature-tag {
  padding: 5px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ═══════════ PROCESS ═══════════ */
.process { background: var(--bg-secondary); }
.process-header { text-align: center; margin-bottom: 80px; }
.process-header .section-desc { margin: 0 auto; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 60px; right: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), var(--border-light), transparent);
}

.process-step { text-align: center; padding: 0 20px; position: relative; }

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 2;
}

.process-step h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.process-step p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ═══════════ TECH STACK ═══════════ */
.tech-stack { background: var(--bg-primary); text-align: center; }
.tech-header { margin-bottom: 60px; }
.tech-header .section-desc { margin: 0 auto; }

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.tech-pill:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.tech-pill-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ═══════════ CTA ═══════════ */
.cta { background: var(--bg-secondary); text-align: center; position: relative; overflow: hidden; }

.cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.1;
  pointer-events: none;
}

.cta-glow-1 { top: -200px; left: 50%; transform: translateX(-50%); background: var(--accent); }

.cta-content { position: relative; z-index: 2; }

.cta h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; letter-spacing: -2px; margin-bottom: 20px; }

.cta p { font-size: 17px; color: var(--text-secondary); line-height: 1.7; max-width: 500px; margin: 0 auto 40px; }

/* ═══════════ FOOTER ═══════════ */
footer.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 60px 40px 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand { max-width: 300px; }

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

.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p { font-size: 13px; color: var(--text-muted); }

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

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s;
}

.footer-socials a:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-light);
}

/* ═══════════ ANIMATIONS ═══════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════ HAMBURGER (MOBILE) ═══════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  nav.site-nav { padding: 16px 24px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(8,9,12,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .hero { padding: 120px 24px 80px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  section { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::before { display: none; }
}

@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════ WORDPRESS PAGE/POST STYLES ═══════════ */
.wp-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 160px 40px 120px;
}

.wp-page-content h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.wp-page-content h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 40px 0 16px;
}

.wp-page-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.wp-page-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.wp-page-content a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.wp-page-content a:hover {
  color: #7da3ff;
}

.wp-page-content ul, .wp-page-content ol {
  color: var(--text-secondary);
  margin: 0 0 20px 24px;
  line-height: 1.8;
}

.wp-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 24px 0;
}
