/* ==========================================================================
   Hassan Platform - Page-Specific Styles & Interactive Widgets
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Section (Home Page)
   -------------------------------------------------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseGlow 2s infinite;
}

.status-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--accent-green);
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: var(--font-extrabold);
  line-height: 1.15;
  margin-bottom: var(--space-5);
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-8);
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

/* Hero Grid with Profile Image */
.hero-grid-with-image {
  grid-template-columns: 1.1fr 0.9fr;
}

/* Hero Profile Image Container */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-profile-container {
  position: relative;
  width: 340px;
  height: 340px;
}

.hero-profile-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent-cyan),
    var(--accent-green),
    var(--accent-blue),
    var(--accent-purple),
    var(--accent-cyan)
  );
  opacity: 0.6;
  filter: blur(12px);
  animation: rotateGlow 6s linear infinite;
  z-index: 0;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border-accent);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.15), 0 0 80px rgba(0, 229, 255, 0.05);
  animation: floatProfile 6s ease-in-out infinite;
}

@keyframes floatProfile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-profile-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 19, 34, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
  white-space: nowrap;
  box-shadow: var(--shadow-cyan-glow);
}

/* Service Card Enhancements for Clean Layout */
.service-icon-wrapper {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}

.service-card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.service-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.service-card-tags {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

/* Hero Terminal / Live Algorithmic Dashboard Preview */
.hero-terminal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 229, 255, 0.06);
  position: relative;
}

.terminal-header {
  background: var(--bg-tertiary);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.terminal-body {
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.7;
}

.code-line {
  display: flex;
  gap: var(--space-3);
  margin-bottom: 4px;
}

.line-num {
  color: var(--text-dim);
  user-select: none;
  width: 20px;
  text-align: right;
}

.code-text {
  color: var(--text-secondary);
}

.token-keyword { color: var(--accent-purple); font-weight: 600; }
.token-function { color: var(--accent-cyan); }
.token-string { color: var(--accent-green); }
.token-number { color: var(--accent-amber); }
.token-comment { color: var(--text-dim); font-style: italic; }

/* Real-Time Market Simulation Card in Terminal */
.terminal-live-feed {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  font-size: 11px;
  color: var(--text-muted);
}

.feed-trade-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.feed-trade-row:last-child {
  border-bottom: none;
}

.feed-profit { color: var(--accent-green); font-weight: 600; }
.feed-loss { color: var(--accent-rose); font-weight: 600; }

/* --------------------------------------------------------------------------
   2. Tech Stack Matrix
   -------------------------------------------------------------------------- */
.tech-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-4);
}

.tech-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  transition: all var(--transition-fast);
}

.tech-pill:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.15);
}

.tech-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.tech-name {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.tech-desc {
  font-size: 10px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   3. Interactive Strategy ROI / Backtest Simulation Widget
   -------------------------------------------------------------------------- */
.calculator-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.calc-control {
  margin-bottom: var(--space-5);
}

.calc-control-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.calc-label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
}

.calc-val-display {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--accent-cyan);
}

.calc-slider {
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  cursor: pointer;
}

.calc-results-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-kpi-main {
  text-align: center;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.calc-kpi-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.calc-kpi-val {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--accent-green);
}

.calc-kpi-sub {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 4px;
}

.calc-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.calc-mini-stat {
  display: flex;
  flex-direction: column;
}

.calc-mini-label {
  font-size: 11px;
  color: var(--text-muted);
}

.calc-mini-val {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   4. Products Catalog & Cards
   -------------------------------------------------------------------------- */
.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.product-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.product-visual {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-4);
}

.product-badge-float {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

.product-content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.product-version {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.product-title {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.product-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.product-features-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-6);
}

.product-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.feature-check {
  color: var(--accent-green);
  font-weight: bold;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-amount {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   5. Portfolio / Projects Showcase & Filters
   -------------------------------------------------------------------------- */
.filter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-cyan-subtle);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.project-preview {
  height: 200px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.project-info {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.project-title {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 10px;
  color: var(--text-muted);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--accent-green);
}

/* --------------------------------------------------------------------------
   6. Reviews & Testimonials
   -------------------------------------------------------------------------- */
.review-stats-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-12);
}

.review-aggregate {
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  padding-right: var(--space-8);
}

.rating-big {
  font-family: var(--font-mono);
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  color: var(--accent-amber);
}

.stars-row {
  color: var(--accent-amber);
  margin: var(--space-2) 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.review-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-base);
}

.review-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
}

.review-quote {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  color: var(--accent-cyan);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.author-location {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.author-service {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   7. Contact Page Layout & Channels
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-10);
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.contact-channel-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: all var(--transition-fast);
}

.contact-channel-item:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface);
  transform: translateX(4px);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan-subtle);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.channel-content {
  display: flex;
  flex-direction: column;
}

.channel-title {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: var(--font-semibold);
}

.channel-value {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   8. CTA Banner (Sitewide Conversion)
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.08);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
