/*
Theme Name: iKnowMe Sovereign Engine
Theme URI: https://iknowme.example.com
Author: iKnowMe Development Team
Author URI: https://iknowme.example.com
Description: A premium, dark cyber-oasis WordPress theme for iKnowMe Pty Ltd – The Quiet Engine of Human Capability. Features a one-page layout with fixed navigation (including Zenith Aperture logo), hero, Corporate Manifesto, governance cards, four cornerstone product brands in a responsive 2x2 grid, investor modal, and modern glassmorphism aesthetics. Built with pure CSS (no frameworks) and vanilla JS. Fully responsive, accessibility-ready, and optimized for performance.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iknowme
Tags: one-column, custom-menu, featured-images, full-width-template, dark, business, portfolio
*/

/**
 * ==========================================================================
 * iKnowMe Sovereign Engine – Main Stylesheet (v1.1.0)
 * ==========================================================================
 *
 * DOCUMENTATION:
 * This is the primary stylesheet for the iKnowMe theme. All visual styling
 * is contained here. The design uses a "Cyber-Oasis" color palette with
 * bioluminescent emerald (#00FF9D) and prism cyan (#00E5FF) accents on a
 * deep abyss background (#030708).
 *
 * Key design principles:
 * - Glassmorphism cards with subtle borders and backdrop blur
 * - Soft radial gradients for ambient lighting
 * - Smooth hover transitions and elevation effects
 * - Fully responsive breakpoints at 992px and 768px
 * - CSS custom properties (variables) for easy theming
 *
 * File Structure:
 * 1. CSS Custom Properties (Root Variables)
 * 2. Reset & Base Styles
 * 3. Navigation (incl. logo SVG)
 * 4. Buttons
 * 5. Hero Section
 * 6. Manifesto Section (NEW in v1.1)
 * 7. Governance Section
 * 8. Brands / Product Portfolio Section
 * 9. Modal (Investor Portal)
 * 10. Footer
 * 11. Media Queries
 *
 * How to customize:
 * - Change colors via the :root variables at the top.
 * - All spacing uses rem units for scalability.
 * - Font stack is system-native for performance.
 * ==========================================================================
 */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties – Cyber-Oasis Palette
   -------------------------------------------------------------------------- */
:root {
  --bg-abyss: #030708;
  --bg-card: rgba(10, 37, 44, 0.4);
  --bg-card-hover: rgba(10, 37, 44, 0.75);
  --biolum-emerald: #00FF9D;
  --prism-cyan: #00E5FF;
  --solar-titanium: #E0E8E6;
  --text-muted: #809C96;
  --border-glow: rgba(0, 255, 157, 0.25);
  --border-color: rgba(224, 232, 230, 0.1);
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-abyss);
  color: var(--solar-titanium);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 255, 157, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
}

body.home,
body.front-page {
  /* Homepage-specific styles if needed */
}

/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */
nav,
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 7, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glow);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-container svg {
  flex-shrink: 0;
  display: block;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FFF 0%, var(--biolum-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.badge-2017 {
  background: rgba(0, 255, 157, 0.1);
  color: var(--biolum-emerald);
  border: 1px solid var(--border-glow);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.nav-links a:hover,
.nav-links a:focus {
  color: var(--biolum-emerald);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  padding: 0.85rem 1.75rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
  border: none;
  font-family: inherit;
}

.btn-emerald {
  background: var(--biolum-emerald);
  color: #030708;
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.4);
}

.btn-emerald:hover,
.btn-emerald:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 255, 157, 0.7);
  color: #030708;
}

.btn-outline {
  background: transparent;
  color: var(--solar-titanium);
  border: 1px solid var(--border-color);
}

.btn-outline:hover,
.btn-outline:focus {
  border-color: var(--prism-cyan);
  color: var(--prism-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 12rem 5% 5rem;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  color: var(--prism-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 1.5px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. Manifesto Section (NEW)
   -------------------------------------------------------------------------- */
.manifesto-section {
  padding: 6rem 5%;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border-glow);
}

.manifesto-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3.5rem;
  border-radius: 24px;
  margin-bottom: 2rem;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.manifesto-block:hover {
  border-color: var(--border-glow);
  box-shadow: 0 8px 24px rgba(0, 255, 157, 0.08);
  transform: translateY(-3px);
}

.manifesto-block h3 {
  font-size: 1.3rem;
  color: var(--biolum-emerald);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.manifesto-block p {
  color: var(--solar-titanium);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.manifesto-list {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
}

.manifesto-list li {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(224, 232, 230, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.manifesto-list li::before {
  content: "—";
  color: var(--prism-cyan);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   7. Governance Section
   -------------------------------------------------------------------------- */
.gov-section {
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
  background: rgba(10, 37, 44, 0.2);
  padding: 5rem 5%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gov-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.gov-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 3rem;
  border-radius: 20px;
}

.gov-card h3 {
  color: var(--biolum-emerald);
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.gov-card p {
  font-size: 1.05rem;
  color: var(--solar-titanium);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   8. Brands / Product Portfolio Section
   -------------------------------------------------------------------------- */
.brands-section {
  padding: 8rem 5%;
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--solar-titanium);
}

.section-header p {
  color: var(--text-muted);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--biolum-emerald);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 157, 0.15);
}

.brand-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--biolum-emerald), var(--prism-cyan));
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.brand-number {
  font-size: 0.8rem;
  color: var(--prism-cyan);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.brand-title {
  font-size: 2rem;
  color: #FFF;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.brand-subtitle {
  font-size: 1rem;
  color: var(--biolum-emerald);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.brand-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.brand-pill {
  align-self: flex-start;
  display: inline-block;
  background: rgba(224, 232, 230, 0.05);
  border: 1px solid var(--border-color);
  color: var(--solar-titanium);
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   9. Portfolio Focus Section
   -------------------------------------------------------------------------- */
.portfolio-section {
  padding: 8rem 5%;
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-kicker {
  display: inline-block;
  color: var(--prism-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--solar-titanium);
}

.section-header p {
  max-width: 820px;
  margin: 0 auto 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.portfolio-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.portfolio-title-row h3 {
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -1px;
  margin: 0;
}

.portfolio-title-row p {
  color: var(--text-muted);
  margin: 0;
}

.portfolio-bridge {
  border-top: 1px solid var(--border-glow);
  margin-top: 3.5rem;
  padding-top: 2rem;
}

.portfolio-bridge strong {
  display: block;
  color: var(--solar-titanium);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: .5rem;
}

.portfolio-bridge span {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Modal (Investor Portal) – with smooth fade + scale transitions
   -------------------------------------------------------------------------- */
.modal {
  display: flex;                 /* always flex so we can animate */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 8, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  /* Transitionable properties */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  background: rgba(10, 37, 44, 0.95);
  border: 1px solid var(--biolum-emerald);
  border-radius: 20px;
  padding: 3rem;
  max-width: 520px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 255, 157, 0.2);
  /* Entrance animation */
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
}

.modal.is-open .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.25s ease, transform 0.25s ease;
}

.close-modal:hover {
  color: var(--biolum-emerald);
  transform: scale(1.15);
}

.modal-content h3 {
  margin-bottom: 0.5rem;
  color: var(--biolum-emerald);
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.modal-content input[type="text"],
.modal-content input[type="email"] {
  width: 100%;
  padding: 0.85rem;
  background: rgba(3, 7, 8, 0.8);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--biolum-emerald);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.modal-content .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
footer,
.site-footer {
  border-top: 1px solid var(--border-glow);
  padding: 4rem 5% 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo-text {
  font-size: 1.2rem;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. Media Queries – Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3.2rem;
  }

  .brands-grid {
    gap: 1.5rem;
  }

  .brand-card {
    padding: 2rem;
  }

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

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

  .portfolio-title-row {
    display: block;
  }

  .portfolio-title-row p {
    margin-top: 0.75rem;
  }

  .nav-links {
    display: none; /* Simple mobile: hide links; can be extended with hamburger later */
  }

  .hero {
    padding-top: 9rem;
  }

  .manifesto-block {
    padding: 2rem;
  }

  .badge-2017 {
    display: none; /* Hide badge on very small screens */
  }
}

/**
 * END OF STYLESHEET
 * ==========================================================================
 * Additional notes for developers:
 * - To add a mobile hamburger menu, extend the nav with a button and JS toggle.
 * - All colors are CSS variables – change them once and the whole theme updates.
 * - The modal uses a class .is-open for accessibility and easier JS control.
 * - WordPress will automatically load this file via wp_enqueue_style in functions.php.
 * - Manifesto section added in v1.1.0 to match updated brand narrative.
 */
