/* ==========================================================================
   SyntaxPrime Software Solutions - Master Stylesheet
   ========================================================================== */

/* ===== 1. CSS VARIABLES (Brand Colors) ===== */
:root {
  --bg: #050505; 
  --bg-alt: #0a0a0a; 
  --surface: #121212;
  --surface-hover: #1a1a1a;
  --border: #262626;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --accent: #007BFF; 
  --accent-glow: rgba(0, 123, 255, 0.2);
  --gradient: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
}

/* ===== 2. RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== 3. TYPOGRAPHY & UTILITIES ===== */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: clamp(2rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 16px; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; font-weight: 600; display: block; }
.text-accent { color: var(--accent); }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ===== 4. BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; transition: all 0.25s ease; cursor: pointer; border: none; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface); border-color: var(--accent); }
.btn svg { width: 16px; height: 16px; }

/* ===== 5. NAVBAR ===== */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: all 0.3s ease; }
nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo-img { width: 40vw; max-width: 350px; display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 10px 22px; border-radius: 8px; font-weight: 600 !important; transition: all 0.2s; }
.nav-cta:hover { box-shadow: 0 0 24px var(--accent-glow); transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ===== 6. SUBPAGE HEROES ===== */
.page-hero { padding: 160px 0 60px; text-align: center; position: relative; }
.page-hero::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, transparent 70%); pointer-events: none; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; position: relative; }

/* ===== 7. HOMEPAGE HERO & CODE CARD ===== */
.hero { position: relative; padding: 180px 0 120px; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -200px; right: -150px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(0, 123, 255, 0.12) 0%, transparent 65%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -300px; left: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(0, 123, 255, 0.08) 0%, transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 520px; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 100px; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); background: var(--surface); margin-bottom: 26px; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.code-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); transform: perspective(1000px) rotateY(-4deg) rotateX(2deg); transition: transform 0.4s ease; }
.code-card:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.code-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.code-title { margin-left: 10px; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-muted); }
.code-body { padding: 22px; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; line-height: 1.85; overflow-x: auto; }
.c-key { color: #c792ea; } .c-fn { color: #82aaff; } .c-str { color: #c3e88d; } .c-num { color: #f78c6c; }
.c-com { color: #546e7a; } .c-var { color: #ffcb6b; } .c-punc { color: #89ddff; }

/* ===== 8. HOMEPAGE STATS, SERVICES & PROCESS ===== */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 48px 0; }
.stat { text-align: center; padding: 0 20px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 2.4rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.02em; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 34px 28px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient); opacity: 0; transition: opacity 0.3s; }
.service-card:hover { transform: translateY(-4px); border-color: #333; background: var(--surface-hover); }
.service-card:hover::before { opacity: 1; }
.service-icon { width: 48px; height: 48px; border-radius: 11px; background: rgba(0, 123, 255, 0.1); border: 1px solid rgba(0, 123, 255, 0.2); display: grid; place-items: center; margin-bottom: 22px; color: var(--accent); }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { position: relative; padding: 28px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 16px; display: block; }
.process-step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 0.87rem; color: var(--text-muted); }

/* ===== 9. HOMEPAGE ABOUT STRIP ===== */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.check-list { margin-top: 26px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.check-list svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.terminal { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.terminal-body { padding: 24px; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; line-height: 2; }
.term-line { display: flex; gap: 10px; } .term-prompt { color: var(--accent); } .term-cmd { color: var(--text); }
.term-out { color: var(--text-muted); padding-left: 22px; } .term-ok { color: var(--accent); }

/* ===== 10. PORTFOLIO PAGE ===== */
.filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); padding: 8px 20px; border-radius: 100px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-6px); border-color: #333; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.project-img { width: 100%; height: 220px; background: var(--bg-alt); display: grid; place-items: center; border-bottom: 1px solid var(--border); color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; position: relative; }
.project-content { padding: 28px; display: flex; flex-direction: column; flex-grow: 1; }
.project-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 4px; background: rgba(0, 123, 255, 0.1); color: var(--accent); border: 1px solid rgba(0, 123, 255, 0.2); }
.project-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.project-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; flex-grow: 1; }

/* THE FIX: Reset button styles for project links */
.project-link { 
  display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.9rem; transition: gap 0.2s;
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; text-align: left; align-self: flex-start;
}
.project-link:hover { gap: 10px; }
.project-link svg { width: 16px; height: 16px; }

/* ===== 11. ABOUT PAGE ===== */
.founder-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.founder-image { width: 100%; aspect-ratio: 4/5; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; position: relative; overflow: hidden; }
.founder-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,123,255,0.1), transparent); z-index: 0; }
.founder-role { color: var(--accent); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.founder-name { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; line-height: 1.1; }
.founder-bio { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 20px; }
.founder-quote { border-left: 3px solid var(--accent); padding-left: 20px; margin-top: 32px; font-style: italic; font-size: 1.1rem; color: #ddd; }
.values-section { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value-card { background: var(--surface); border: 1px solid var(--border); padding: 40px 32px; border-radius: 16px; transition: transform 0.3s; }
.value-card:hover { transform: translateY(-5px); border-color: #333; }
.value-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(0, 123, 255, 0.1); border: 1px solid rgba(0, 123, 255, 0.2); display: grid; place-items: center; margin-bottom: 24px; color: var(--accent); }
.value-icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 700; }
.value-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== 12. SECTIONS, CTA & FOOTER ===== */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.cta-box { background: linear-gradient(135deg, rgba(0, 123, 255, 0.08), rgba(0, 0, 0, 0)); border: 1px solid var(--border); border-radius: 20px; padding: 70px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 500px; height: 500px; background: radial-gradient(circle, rgba(0, 123, 255, 0.15), transparent 70%); pointer-events: none; }
.cta-box h2 { margin-bottom: 18px; position: relative; }
.cta-box p { color: var(--text-muted); max-width: 520px; margin: 0 auto 34px; position: relative; }

footer { border-top: 1px solid var(--border); padding: 60px 0 32px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 18px; max-width: 300px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; color: var(--text); }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: var(--text-muted); }

/* ===== 13. FLOATING WHATSAPP ===== */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25D366; color: #fff; border-radius: 50px; padding: 12px 18px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); z-index: 9999; transition: all 0.3s ease; animation: floatPulse 2s infinite; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6); animation: none; }
.whatsapp-float svg { width: 24px; height: 24px; fill: currentColor; }
@keyframes floatPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ===== 14. ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 15. MODAL (CASE STUDIES) ===== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 650px; max-height: 90vh; overflow-y: auto; position: relative; transform: translateY(30px); transition: transform 0.3s ease; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.5); border: none; color: #fff; font-size: 1.5rem; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background 0.2s; z-index: 10; }
.modal-close:hover { background: var(--accent); }
.modal-img { width: 100%; height: 250px; background: var(--bg-alt); border-bottom: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; }
.modal-body { padding: 32px; }
.modal-body h2 { font-size: 1.8rem; margin-bottom: 24px; }
.case-study-details { display: grid; gap: 20px; }
.cs-section h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 6px; }
.cs-section p { font-size: 0.95rem; color: #ccc; line-height: 1.7; }

/* ===== 16. RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
  .hero-grid, .about-wrap { grid-template-columns: 1fr; gap: 48px; }
  .code-card { transform: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-image { max-width: 400px; margin: 0 auto; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { position: fixed; top: 80px; left: 0; right: 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); flex-direction: column; padding: 24px; gap: 20px; transform: translateY(-150%); transition: transform 0.3s ease; }
  .nav-links.open { transform: translateY(0); }
  .menu-toggle { display: block; }
  .hero { padding: 140px 0 80px; }
  .services-grid, .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .founder-name { font-size: 2rem; }
  .page-hero { padding: 140px 0 40px; }
  .whatsapp-float { bottom: 20px; right: 20px; padding: 12px; border-radius: 50%; }
  .whatsapp-float span { display: none; } 
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}