/*
Theme Name: Edgecore Technologies
Theme URI: https://www.edgecore.co.zm
Author: Edgecore Technologies
Author URI: https://www.edgecore.co.zm
Description: A modern, dark-themed WordPress theme for Edgecore Technologies - Enterprise IT Solutions provider based in Lusaka, Zambia. Features a stunning 3D WebGL icosahedron hero effect, smooth scroll animations, and a professional dark aesthetic.
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: edgecore
*/

/* ============================================
   FONTS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

@font-face {
  font-family: 'Geist Sans';
  src: url('css/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('css/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: auto;
}

body {
  background-color: #050a14;
  color: #e8ecf1;
  font-family: 'Geist Sans', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.0;
  word-break: keep-all;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  padding: 0 5vw;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}

.site-nav.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.site-nav .nav-links {
  display: none;
  align-items: center;
  gap: 40px;
}

.site-nav .nav-link {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7d94;
  transition: color 0.3s ease;
  padding: 0;
}

.site-nav .nav-link:hover {
  color: #00d4ff;
}

.site-nav .nav-cta {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: transparent;
  padding: 8px 20px;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.site-nav .nav-cta:hover {
  background: rgba(0, 212, 255, 0.08);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1px;
  background: #e8ecf1;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 20, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

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

.mobile-menu a {
  font-family: 'Geist Mono', monospace;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e8ecf1;
}

.mobile-menu .mobile-cta {
  font-family: 'Geist Mono', monospace;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: transparent;
  padding: 12px 32px;
  border-radius: 100px;
}

@media (min-width: 768px) {
  .site-nav .nav-links {
    display: flex;
  }
  .hamburger {
    display: none;
  }
}

@media (max-width: 1023px) {
  .site-nav .nav-cta {
    display: none;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(5, 10, 20, 0.8) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 5vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00d4ff;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: #e8ecf1;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}

.hero-title .accent {
  color: #00d4ff;
}

.hero-title span {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: #6b7d94;
  max-width: 480px;
  margin-top: 24px;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta {
  margin-top: 40px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #e8ecf1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  padding: 14px 32px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta:hover {
  border-color: #00d4ff;
  color: #00d4ff;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  opacity: 0;
}

.hero-scroll span {
  font-family: 'Geist Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7d94;
  animation: pulse 2s ease-in-out infinite;
}

.hero-scroll svg {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  position: relative;
  z-index: 2;
  background: #050a14;
  padding: 140px 5vw;
}

.services-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(5, 10, 20, 0.95), #050a14);
  pointer-events: none;
}

.services-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  flex-direction: column;
}

.services-left {
  flex: 0 0 auto;
}

.services-left.sticky {
  position: sticky;
  top: 140px;
  align-self: flex-start;
}

.section-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00d4ff;
}

.section-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: #e8ecf1;
  line-height: 1.15;
  margin-top: 20px;
}

.section-desc {
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #6b7d94;
  max-width: 360px;
  margin-top: 24px;
  line-height: 1.7;
}

.services-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1 1 auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 40px;
  transition: border-color 0.4s ease;
  opacity: 0;
  transform: translateY(60px);
}

.service-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
}

.service-num {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  color: rgba(107, 125, 148, 0.4);
}

.service-title {
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #e8ecf1;
  margin-top: 16px;
  line-height: 1.3;
}

.service-desc {
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  color: #6b7d94;
  line-height: 1.6;
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .services-inner {
    flex-direction: row;
  }
  .services-left {
    width: 35%;
  }
}

/* ============================================
   CAPABILITIES SECTION
   ============================================ */

.capabilities {
  position: relative;
  z-index: 2;
  background: #07111f;
  padding: 140px 5vw;
}

.capabilities-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.capabilities-header {
  text-align: center;
}

.capabilities-subtitle {
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #6b7d94;
  max-width: 500px;
  margin: 16px auto 64px;
  line-height: 1.7;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}

.capability-item {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: scale(0.95);
}

.capability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d4ff;
  flex-shrink: 0;
}

.capability-name {
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  color: #e8ecf1;
}

@media (min-width: 640px) {
  .capabilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   WHY EDGECORE SECTION
   ============================================ */

.why-edgecore {
  position: relative;
  z-index: 2;
  background: #050a14;
  padding: 140px 5vw;
}

.why-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.why-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
  color: #e8ecf1;
  margin-top: 20px;
  line-height: 1.1;
}

.why-values {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 64px;
}

.why-value {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 280px;
  margin: 0 auto;
}

.why-value-title {
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: #e8ecf1;
  margin-top: 20px;
}

.why-value-desc {
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: #6b7d94;
  line-height: 1.6;
  margin-top: 8px;
  text-align: center;
}

.why-cta {
  margin-top: 64px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #e8ecf1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  padding: 14px 32px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s ease;
  display: inline-block;
}

.why-cta:hover {
  border-color: #00d4ff;
  color: #00d4ff;
}

@media (min-width: 768px) {
  .why-values {
    flex-direction: row;
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  position: relative;
  z-index: 2;
  background: #07111f;
  padding: 140px 5vw;
}

.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  flex-direction: column;
}

.contact-left,
.contact-right {
  flex: 1;
}

.contact-info {
  margin-top: 48px;
}

.contact-info-item {
  margin-bottom: 20px;
}

.contact-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7d94;
  margin-bottom: 8px;
  display: block;
}

.contact-value {
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #e8ecf1;
}

.contact-value.email {
  color: #00d4ff;
}

.contact-value.address {
  font-size: 0.9375rem;
  color: #6b7d94;
  max-width: 300px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7d94;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8ecf1;
  padding: 16px 0;
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #00d4ff;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  background: #00d4ff;
  color: #050a14;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-submit:hover {
  background: #33ddff;
}

.form-submit.sent {
  background: #00aa44;
}

@media (min-width: 1024px) {
  .contact-inner {
    flex-direction: row;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  position: relative;
  z-index: 2;
  background: #050a14;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 5vw;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
  border-radius: 3px;
}

.footer-copy {
  font-family: 'Geist Mono', monospace;
  font-size: 0.625rem;
  color: #6b7d94;
}

.footer-link {
  font-family: 'Geist Mono', monospace;
  font-size: 0.625rem;
  color: #6b7d94;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #00d4ff;
}

/* ============================================
   CANVAS (WebGL Background)
   ============================================ */

#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in-up {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up-delay-1 { transition-delay: 0.15s; }
.fade-in-up-delay-2 { transition-delay: 0.3s; }
.fade-in-up-delay-3 { transition-delay: 0.45s; }
.fade-in-up-delay-4 { transition-delay: 0.6s; }
.fade-in-up-delay-5 { transition-delay: 0.75s; }

.scale-in {
  opacity: 1 !important;
  transform: scale(1) !important;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */

.wp-block {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
