/* 
  ShorePerformance.com — Premium Dark Theme V4
  Complete Overhaul: Rich, Layered, Conversion-Focused
*/

:root {
  --bg-primary: #050a14;
  --bg-secondary: #0a1128;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-glass: rgba(15, 23, 42, 0.6);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --accent-glow: rgba(14, 165, 233, 0.4);
  --accent-subtle: rgba(14, 165, 233, 0.08);
  
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(14, 165, 233, 0.4);
  
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --radius: 16px;
  --radius-sm: 8px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg-primary); color: var(--text-primary); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 200ms; }
a:hover { color: #38bdf8; }

/* === Typography === */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); }
h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
p { color: var(--text-secondary); }
em { color: var(--accent); font-style: normal; font-weight: 700; }
.accent-text { color: var(--accent); -webkit-text-fill-color: var(--accent); }

/* === Layout === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; }
.section-dark { background: var(--bg-primary); }
.section-gradient { 
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.35rem 1rem;
  background: var(--accent-subtle);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 50px;
}
.section-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 250ms ease;
  border: none;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }
.btn-xl { padding: 1.3rem 3rem; font-size: 1.15rem; border-radius: var(--radius); }
.btn-nav { padding: 0.6rem 1.5rem; font-size: 0.85rem; }

/* === Glass === */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* === Navigation === */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000; padding: 0.8rem 0;
  border-radius: 0; border-left: none; border-right: none; border-top: none;
  background: rgba(5, 10, 20, 0.85);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; }
.logo-accent { color: var(--accent); }
.logo:hover { color: var(--text-primary); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a:not(.btn) { color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; transition: color 200ms; }
.nav-links a:not(.btn):hover { color: var(--text-primary); }
.mobile-menu-btn {
  display: none; flex-direction: column; justify-content: space-around;
  width: 28px; height: 22px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001;
}
.mobile-menu-btn span { width: 100%; height: 2px; background: var(--text-primary); transition: all 300ms; }
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 400px; height: 100vh;
    background: var(--bg-primary); flex-direction: column; justify-content: center;
    padding: 2rem; transition: right 300ms; border-left: 1px solid var(--border);
  }
  .nav-links.active { right: 0; }
  .mobile-menu-btn.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
}

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

.hero-bg-layer {
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14, 165, 233, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(6, 95, 70, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  z-index: 0;
}

#hero-particles {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.4rem 1.2rem;
  background: var(--accent-subtle);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 50px;
  margin-bottom: 2rem;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-headline { margin-bottom: 1.5rem; }
.hero-sub {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Social Proof Bar */
.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem 2.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 60px;
}
.proof-item { text-align: center; }
.proof-item strong { display: block; font-size: 1.3rem; color: var(--accent); font-weight: 800; }
.proof-item span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.proof-divider { width: 1px; height: 30px; background: var(--border); }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 2px; height: 40px; background: var(--border); position: relative; overflow: hidden; border-radius: 2px;
}
.scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 50%;
  background: var(--accent); border-radius: 2px;
  animation: scroll-down 2s infinite;
}
@keyframes scroll-down {
  0% { top: -50%; }
  100% { top: 150%; }
}

/* === CHALLENGES === */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.challenge-card {
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: all 350ms ease;
}

.challenge-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 350ms;
}

.challenge-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.challenge-card:hover::before { opacity: 1; }

.challenge-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(14, 165, 233, 0.08);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

.challenge-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.2rem;
  color: var(--accent);
}
.challenge-icon svg { width: 100%; height: 100%; }

.challenge-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.challenge-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* CTA variant of challenge card */
.challenge-card-cta {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0.04));
  border-color: rgba(14, 165, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.challenge-cta-inner { text-align: center; }
.challenge-cta-inner h3 { font-size: 1.3rem; color: var(--text-primary); margin-bottom: 0.75rem; }
.challenge-cta-inner p { margin-bottom: 1.5rem; }

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

/* === SOLUTIONS === */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-card {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: all 350ms ease;
}

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

.solution-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.solution-num {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(14, 165, 233, 0.06);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.solution-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.solution-card > p { margin-bottom: 1.5rem; font-size: 0.95rem; }

.solution-list {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}
.solution-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.solution-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 992px) {
  .solutions-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
}

/* === PORTFOLIO === */
.portfolio-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 350ms ease;
}
.portfolio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.portfolio-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 1rem; left: 1rem;
}
.portfolio-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(5, 10, 20, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portfolio-info {
  padding: 1.5rem 1.8rem 2rem;
}
.portfolio-info h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.portfolio-info p { font-size: 0.9rem; }

@media (max-width: 992px) {
  .portfolio-showcase { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .portfolio-showcase { grid-template-columns: 1fr; }
}

/* === FINAL CTA === */
.section-cta {
  padding: 8rem 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(14, 165, 233, 0.1) 0%, transparent 60%),
    var(--bg-secondary);
}

.cta-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-block h2 { margin-bottom: 1.5rem; }
.cta-block p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.cta-note { font-size: 0.85rem; color: var(--text-muted); }

/* === FOOTER === */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-brand { text-align: center; }
.footer-brand h3 { font-size: 1.3rem; margin-bottom: 0.3rem; font-weight: 800; color: var(--text-primary); }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; }
.footer-location { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.25rem; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copyright {
  width: 100%; text-align: center; padding-top: 1.5rem;
  border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem;
}

/* === Cookie Banner === */
.cookie-banner {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(150%);
  width: 90%; max-width: 550px; padding: 1.5rem; z-index: 2000; transition: transform 500ms;
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-content h4 { margin-bottom: 0.4rem; font-size: 1rem; }
.cookie-content p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.cookie-content a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.8rem; justify-content: flex-end; }
.cookie-actions .btn { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive Utilities === */
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .hero { padding: 120px 0 60px; }
  .hero-headline br { display: none; }
  .hero-proof { flex-direction: column; gap: 1rem; border-radius: var(--radius); padding: 1.5rem; }
  .proof-divider { width: 40px; height: 1px; }
  .hero-cta-row { flex-direction: column; align-items: center; }
  .hero-cta-row .btn { width: 100%; max-width: 320px; }
  .section-header h2 br { display: none; }
}

/* === NEW: Solution Pricing & Deliverables === */
.solution-price {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.solution-deliverable {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* === NEW: Portfolio Grid === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.portfolio-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 350ms ease;
}
.portfolio-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.portfolio-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 12px;
}
.portfolio-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.portfolio-content p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.portfolio-tech {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  opacity: 0.7;
}

/* === NEW: About / Credentials === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.about-text strong {
  color: var(--text-primary);
}
.about-creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cred-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 300ms ease;
}
.cred-card:hover {
  border-color: var(--border-hover);
}
.cred-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.cred-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}
.cred-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #FCD34D;
  background: rgba(252, 211, 77, 0.1);
  border: 1px solid rgba(252, 211, 77, 0.25);
  border-radius: 50px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
}
.cred-card p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

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