/*
Theme Name: Hashbie_theme
Author: Jithuaswin
Description: A premium, ultra-modern custom landing page theme for Hashbie. Designed with rich glassmorphism, dynamic gradients, and responsive layouts.
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: hashbie
Tags: custom-background, custom-logo, one-column, dark, portfolio, responsive-layout
*/

/* ----------------------------------------------------
   1. CSS VARIABLES & DESIGN TOKENS
   ---------------------------------------------------- */
:root {
  --bg-main: #f8fafc;
  --bg-surface: rgba(255, 255, 255, 0.75);
  --bg-surface-hover: rgba(255, 255, 255, 0.9);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-hover: rgba(15, 23, 42, 0.16);

  --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #0891b2 100%);
  --text-gradient: linear-gradient(135deg, #0f172a 30%, #7c3aed 100%);
  --accent-glow: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, rgba(8, 145, 178, 0) 70%);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --white: #ffffff;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ----------------------------------------------------
   2. SYSTEM RESETS
   ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Glowing Accents */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, rgba(59, 130, 246, 0.03) 50%, rgba(6, 182, 212, 0) 100%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, rgba(168, 85, 247, 0) 70%);
  z-index: -2;
  pointer-events: none;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------------------
   3. REUSABLE UTILITIES
   ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-accent {
  background: linear-gradient(90deg, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #a855f7 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1;
}

.btn-primary>* {
  position: relative;
  z-index: 2;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 100px;
  color: #c084fc;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* ----------------------------------------------------
   4. NAVIGATION HEADER
   ---------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 10px #06b6d4;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--white);
}

/* Hamburger mobile menu toggler */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* ----------------------------------------------------
   5. HERO SECTION
   ---------------------------------------------------- */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 6rem;
  text-align: center;
  position: relative;
}

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

.hero-title {
  font-size: 4rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

/* Hero Dashboard Preview Card */
.hero-preview {
  margin-top: 2rem;
  perspective: 1000px;
}

.preview-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transform: rotateX(10deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1), 0 0 100px rgba(124, 58, 237, 0.05);
  background: #ffffff;
  aspect-ratio: 16/9;
}

.preview-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.preview-mockup {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.15), transparent),
    radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.1), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------------------------------
   6. CAPABILITIES (BENTO GRID)
   ---------------------------------------------------- */
.capabilities-section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #06b6d4;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-col-2 {
  grid-column: span 2;
}

.capability-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.capability-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.02), transparent);
  pointer-events: none;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.capability-card:hover .card-icon {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.card-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.card-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ----------------------------------------------------
   7. CALL TO ACTION (BANNER)
   ---------------------------------------------------- */
.cta-section {
  padding: 6rem 0;
}

.cta-container {
  padding: 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
}

.cta-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.cta-input {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-smooth);
}

.cta-input:focus {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}

.cta-form .btn-primary {
  padding: 0.875rem 2.25rem;
}

/* ----------------------------------------------------
   8. FOOTER
   ---------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  background: #f1f5f9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-info .logo {
  margin-bottom: 1.5rem;
}

.footer-info p {
  color: var(--text-secondary);
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-nav h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-weight: 700;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

.footer-socials {
  display: flex;
  gap: 1.25rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.social-link:hover {
  background: var(--text-primary);
  color: var(--white);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* ----------------------------------------------------
   9. RESPONSIVENESS
   ---------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.25rem;
  }

  .grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-col-2 {
    grid-column: span 2;
  }

  .footer-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .site-header {
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    display: none;
    /* Controlled by active class in JS */
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto 3rem auto;
  }

  .grid-layout {
    grid-template-columns: 1fr;
  }

  .grid-col-2 {
    grid-column: span 1;
  }

  .capability-card {
    min-height: 220px;
    padding: 2rem;
  }

  .cta-container {
    padding: 2.5rem 1.5rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-form {
    flex-direction: column;
    border-radius: 0;
  }

  .cta-input {
    border-radius: 50px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}