/*
Theme Name: Giggle Technology
Theme URI: https://giggletechnology.com
Author: Reach Digital Group
Description: Single-page landing theme for Giggle Technology — Technology & Credit Advisory.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary
Text Domain: giggle-technology
*/

/* CSS RESET & TECH THEME VARIABLES */
:root {
  --bg-dark: #07090e;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(26, 38, 66, 0.85);

  --cyan-bright: #00e5ff;
  --cyan-muted: #00b4d8;
  --pink-neon: #ff2a85;

  --border-glow: rgba(0, 229, 255, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

html, body {
  overflow-x: clip;
}

/* INTERACTIVE CANVAS BACKGROUND */
#tech-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* GLASS HEADER / NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Keep the sticky header below the WP admin bar when logged in */
.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.site-logo {
  height: 50px;
  width: auto;
  display: block;
  overflow: visible;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cyan-bright);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-glow,
.nav-links a.btn-glow {
  background: linear-gradient(135deg, var(--cyan-muted) 0%, var(--pink-neon) 100%);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 42, 133, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glow:hover,
.nav-links a.btn-glow:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 42, 133, 0.6);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* HERO SECTION */
.hero {
  position: relative;
  padding: 8rem 2rem 6rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Ambient Radial Glow behind Hero Title */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, 90vw);
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.15), rgba(255, 42, 133, 0.1), transparent 70%);
  z-index: -1;
  filter: blur(50px);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--cyan-bright);
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--cyan-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan-bright);
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--cyan-bright) 20%, #ffffff 50%, var(--pink-neon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* SECTION CONTAINERS */
.section {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .tag {
  font-family: var(--font-mono);
  color: var(--cyan-bright);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* TECH CARDS GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2rem;
}

.card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-bright), var(--pink-neon), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--cyan-bright);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ABOUT BLOCK */
.about-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(7, 9, 14, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 3.5rem;
  position: relative;
}

.about-box p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-box strong {
  color: var(--text-main);
}

/* CONTACT / CTA */
.cta-container {
  text-align: center;
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.08) 0%, var(--bg-card) 70%);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 5rem 2rem;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
}

.cta-container h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-container p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  border-radius: 8px;
  background: #ffffff;
  color: #07090e;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-btn:hover {
  background: var(--cyan-bright);
  color: #07090e;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.6);
  transform: scale(1.02);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .hero { padding: 5rem 1.25rem 4rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .hero p { font-size: 1.05rem; }
  .site-logo { height: 42px; }
  .navbar { padding: 0.85rem 1.25rem; }
  .nav-links .btn { padding: 0.6rem 1.1rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links li:not(:last-child) { display: none; }
  .about-box { padding: 2rem 1.5rem; }
  .card { padding: 1.75rem; }
  .section { padding: 4rem 1.25rem; }
  .cta-container { padding: 3.5rem 1.25rem; }
  .cta-container h2 { font-size: 1.75rem; }
  .contact-btn { font-size: 0.85rem; padding: 0.9rem 1rem; gap: 0.5rem; }
}
