/*
Theme Name: Zynix Studio
Theme URI: https://zynixstudio.com/
Author: Zynix Studio
Author URI: https://zynixstudio.com/
Description: A bold dark-themed one-page WordPress theme for Zynix Studio — creative agency with neon-green accents, smooth animations, and modern typography. Built for performance and impact.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: zynix-studio
Tags: one-page, dark, portfolio, agency, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========== Design Tokens ========== */
:root {
  --background: #0f0f0f;
  --surface: #1a1a1a;
  --surface-elevated: #232323;
  --foreground: #f5f5f5;
  --muted-foreground: #a3a3a3;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #00e676;       /* neon green from logo */
  --primary-glow: #4dffa1;
  --primary-foreground: #0f0f0f;
  --gradient-primary: linear-gradient(135deg, #00e676, #4dffa1);
  --gradient-radial: radial-gradient(circle at 50% 0%, rgba(0, 230, 118, 0.18), transparent 60%);
  --shadow-glow: 0 0 60px -10px rgba(0, 230, 118, 0.55);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --radius: 1rem;
}

/* ========== Reset / Base ========== */
* { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--primary); color: var(--primary-foreground); }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 700; line-height: 1.05; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-label {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--primary);
}
.section-label::before { content: ""; display: inline-block; width: 2.5rem; height: 1px; background: var(--primary); }

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  border-radius: 999px; transition: all 0.3s ease;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { box-shadow: var(--shadow-glow); }
.btn-ghost { border: 1px solid var(--border); color: var(--foreground); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ========== Header / Nav ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.5rem; height: 5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.site-brand { display: flex; align-items: center; gap: 0.5rem; }
.site-brand img { height: 2rem; width: auto; }
.site-brand .brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }

.nav-menu { display: flex; gap: 2.5rem; list-style: none; }
.nav-menu a {
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--muted-foreground);
}
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--primary); }

.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; padding: 0.625rem 1.25rem; } }

.menu-toggle {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--border); border-radius: 999px;
}
.menu-toggle:hover { border-color: var(--primary); color: var(--primary); }
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }

@media (min-width: 768px) { .menu-toggle { display: none; } }
@media (max-width: 767px) { .nav-menu { display: none; } }

.mobile-menu {
  position: fixed; left: 0; right: 0; top: 5rem; bottom: 0;
  background: rgba(15, 15, 15, 0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transform: translateX(100%); transition: transform 0.3s ease;
  z-index: 40;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; }
.mobile-menu a {
  display: block; padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 600;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .btn { margin-top: 2rem; justify-content: center; padding: 1rem 2rem; }

/* ========== Hero ========== */
.hero {
  position: relative; overflow: hidden;
  padding: 10rem 1.5rem 8rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gradient-radial); pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.3; pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}
.hero-inner { position: relative; max-width: 1280px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 1rem; margin-bottom: 2.5rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(26,26,26,0.6); backdrop-filter: blur(8px);
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--muted-foreground);
}
.hero-badge .dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--primary); animation: pulse 2s infinite; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 700; line-height: 0.92;
}
.hero p {
  margin-top: 2rem; max-width: 36rem;
  font-size: 1.125rem; color: var(--muted-foreground);
  font-weight: 300; line-height: 1.6;
}
.hero-cta { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ========== Marquee ========== */
.marquee {
  position: relative;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(26,26,26,0.4);
  padding: 2rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 4rem; white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 3rem);
  text-transform: uppercase;
  color: rgba(163,163,163,0.8);
  display: flex; align-items: center; gap: 4rem;
}
.marquee-track .bullet { width: 0.75rem; height: 0.75rem; border-radius: 999px; background: var(--primary); }

/* ========== Sections ========== */
.section { padding: 8rem 1.5rem; }
.section-head {
  display: flex; flex-direction: column; gap: 1.5rem;
  margin-bottom: 5rem;
}
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.section-head h2 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  max-width: 48rem;
}
.section-head .link {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--primary); border-bottom: 1px solid var(--primary); padding-bottom: 0.25rem;
}

/* Services */
.services-grid {
  display: grid; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border); border-radius: 1.5rem; overflow: hidden;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service-card {
  background: var(--surface); padding: 3.5rem;
  transition: background 0.3s ease;
}
.service-card:hover { background: var(--surface-elevated); }
.service-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 3rem;
}
.service-card .num { font-family: var(--font-display); color: var(--primary); font-weight: 600; font-size: 0.875rem; }
.service-card .arrow {
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--border); border-radius: 999px;
  display: grid; place-items: center;
  transition: all 0.3s ease;
}
.service-card:hover .arrow { border-color: var(--primary); color: var(--primary); }
.service-card h3 { font-size: 2rem; margin-bottom: 1rem; }
.service-card p { color: var(--muted-foreground); max-width: 28rem; }

/* Work */
.work { background: rgba(26,26,26,0.3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.work-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card:nth-child(even) { transform: translateY(0); }
@media (min-width: 768px) { .work-card:nth-child(even) { margin-top: 5rem; } }
.work-card .thumb {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 1rem;
  background: var(--surface); aspect-ratio: 4/5;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.work-card:hover img { transform: scale(1.05); }
.work-card .meta { margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.work-card .tag { color: var(--primary); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.5rem; }
.work-card h3 { font-size: 1.5rem; transition: color 0.3s ease; }
.work-card:hover h3 { color: var(--primary); }
.work-card .meta .arrow {
  flex-shrink: 0; width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--border); border-radius: 999px;
  display: grid; place-items: center;
  transition: all 0.3s ease;
}
.work-card:hover .meta .arrow { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

/* CTA */
.cta-section { padding: 8rem 1.5rem; }
.cta-inner {
  position: relative; max-width: 1280px; margin: 0 auto;
  border: 1px solid var(--border); border-radius: 2rem;
  background: var(--surface);
  padding: clamp(2rem, 6vw, 6rem);
  text-align: center; overflow: hidden;
}
.cta-inner::before { content: ""; position: absolute; inset: 0; background: var(--gradient-radial); }
.cta-inner::after {
  content: ""; position: absolute; top: -10rem; right: -10rem;
  width: 24rem; height: 24rem; border-radius: 999px;
  background: rgba(0,230,118,0.2); filter: blur(120px);
}
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(2.25rem, 7vw, 5rem); max-width: 56rem; margin: 0 auto 2.5rem; }

/* ========== Contact ========== */
.contact-form { max-width: 640px; margin: 0 auto; display: grid; gap: 1.25rem; }
.contact-form label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); margin-bottom: 0.5rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem;
  color: var(--foreground); font: inherit;
  transition: border-color 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { min-height: 8rem; resize: vertical; }

/* ========== Footer ========== */
.site-footer { padding: 5rem 1.5rem 2.5rem; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid; gap: 3rem; margin-bottom: 4rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 5fr 2fr 2fr 3fr; } }
.footer-brand { grid-column: span 2; }
@media (min-width: 768px) { .footer-brand { grid-column: span 1; } }
.footer-brand img { height: 2.5rem; margin-bottom: 2rem; }
.footer-brand p { color: var(--muted-foreground); max-width: 24rem; }
.footer-col h4 {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--primary); margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a, .footer-col p { font-size: 0.875rem; color: var(--muted-foreground); }
.footer-col a:hover { color: var(--foreground); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 1rem;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ========== Animations ========== */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ========== WordPress Defaults ========== */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 0.85rem; color: var(--muted-foreground); text-align: center; margin-top: 0.5rem; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.sticky, .bypostauthor { display: block; }
