/*
Theme Name: Gravity Projex 2026
Theme URI: https://gravityprojex.com
Author: Gravity Projex
Author URI: https://gravityprojex.com
Description: Custom theme with Tailwind CSS and custom PHP templates.
Version: 3.4.0
Text Domain: gravityprojex
License: Gravity Projex - Intellectual Property (Framework,software,scripts,codes,and all other material)
 *PROPRIETARY SOFTWARE LICENSE- GRAVITY PROJEX
 *Copyright (c) 2025 Gravity Projex. All Rights Reserved.
 *Business located in Australia.
 *
 * This software and associated documentation files (the "Software") are proprietary
 * and confidential to Gravity Projex. The source code contained or described herein and all documents related
 * to the source code ("Material") and website framework are owned by Gravity Projex or its
 * licensors and authorised representatives. Title to the Material remains with Gravity Projex
 * or its licensors and authorised representatives. The Material contains trade
 * secrets and proprietary and confidential information of Gravity Projex or its
 * licensors and authorised representatives.
 *
 * RESTRICTIONS:
 * 1. You may NOT copy, modify, distribute, or sell copies of the Software or coding, scripts or framework
 * 2. You may NOT reverse engineer, decompile, or disassemble the Software or coding, scripts or framework
 * 3. You may NOT remove any proprietary notices or labels on the Software or coding, scripts or framework
 * 4. Unauthorized use may result in legal action and monetary damages
 * The Material is protected by worldwide copyright
 * and trade secret laws and treaty provisions. No part of the Material may
 * be used, copied, reproduced, modified, published, uploaded, posted,
 * transmitted, distributed, or disclosed in any way without Gravity Projex prior
 * express written permission.
 * No license under any patent, copyright, trade secret or other intellectual
 * property right is granted to or conferred upon you by disclosure or
 * delivery of the Materials, either expressly, by implication, inducement,
 * estoppel or otherwise. Any license under such intellectual property rights
 * must be expressed and approved by Gravity Projex in writing.
 * OWNERSHIP:
 * The Software is owned by Gravity Projex and is protected by Australian copyright
 * laws and international treaty provisions.
 * CONTACT:
 * For licensing enquiries: admin@gravityprojex.com
 * Website: https://gravityprojex.com
 * VIOLATIONS:
 * Unauthorized copying or use of this Software will result in:
 * - Immediate cease and desist notice
 * - Legal action under Australian Copyright Act 1968
 * - Monetary damages and legal fees
 *  Last Updated: February 2026
 */


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

html {
    scroll-behavior: smooth;
    margin-top: 0 !important;
}

body {
    margin: 0;
    padding: 0;
    background-color: #020617;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


/* ========================================
   CUSTOM SCROLLBAR (Webkit)
   ======================================== */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }


/* ========================================
   SELECTION COLOUR
   ======================================== */

::selection { background-color: rgba(139, 92, 246, 0.3); color: #ffffff; }
::-moz-selection { background-color: rgba(139, 92, 246, 0.3); color: #ffffff; }


/* ========================================
   FOCUS STYLES (Accessibility)
   ======================================== */

a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}


/* ========================================
   WORDPRESS ADMIN BAR OFFSET
   ======================================== */

.admin-bar #main-navigation { top: 32px; }
.admin-bar #mobile-menu { top: 112px; }
@media screen and (max-width: 782px) {
    .admin-bar #main-navigation { top: 46px; }
    .admin-bar #mobile-menu { top: 126px; }
}


/* ========================================
   WORDPRESS BLOCK OVERRIDES
   ======================================== */

.wp-block-image img { border-radius: 0.5rem; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }


/* ========================================
   UTILITY CLASSES
   ======================================== */

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.services-wrapper { width: 100%; max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }

.cta-wrapper * { box-sizing: border-box; }
.cta-wrapper h2, .cta-wrapper p, .cta-wrapper a { margin: 0; padding: 0; text-decoration: none; }


/* ========================================
   ANIMATIONS — Floating / Pulsing
   ======================================== */

@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(50px, 30px); } }
@keyframes float-slow { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 50px); } }
@keyframes pulse-slow { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.2); } }

.animate-float { animation: float 20s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 15s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse-slow 10s ease-in-out infinite; }


/* ========================================
   ANIMATIONS — Fade In
   ======================================== */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.fade-in { animation: fadeIn 0.6s ease-out; }
.fade-in-up { animation: fadeInUp 0.8s ease-out; }
.animate-fade-in { animation: fadeIn 0.4s ease; }

.animation-delay-200 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.animation-delay-400 { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }
.animation-delay-600 { animation-delay: 0.6s; opacity: 0; animation-fill-mode: forwards; }


/* ========================================
   ANIMATIONS — Spin (Pricing Section)
   ======================================== */

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

.animate-spin-slow { animation: spin-slow 60s linear infinite; }
.animate-spin-reverse { animation: spin-reverse 45s linear infinite; }


/* ========================================
   ANIMATIONS — Rocket (Launch Projex)
   ======================================== */

@keyframes rocketPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.animate-rocket { animation: rocketPulse 3s ease-in-out infinite; }


/* ========================================
   FORM STYLES (Contact & Launch Projex)
   ======================================== */

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-input::placeholder, .form-textarea::placeholder { color: #64748b; }

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-select option { background: #0f172a; color: #ffffff; }


/* ========================================
   PROSE TYPOGRAPHY (Blog / Single Post)
   ======================================== */

.gp-prose h1 { font-size: 2.25rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: #ffffff; line-height: 1.3; }
.gp-prose h2 { font-size: 1.875rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: #ffffff; line-height: 1.3; }
.gp-prose h3 { font-size: 1.5rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: #cbd5e1; line-height: 1.4; }
.gp-prose h4 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #cbd5e1; }
.gp-prose p { margin-bottom: 1.25rem; color: #94a3b8; line-height: 1.8; font-size: 1.0625rem; }
.gp-prose ul, .gp-prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.gp-prose ul { list-style-type: disc; }
.gp-prose ol { list-style-type: decimal; }
.gp-prose li { margin-bottom: 0.75rem; color: #94a3b8; line-height: 1.7; }
.gp-prose li::marker { color: #8B5CF6; }
.gp-prose strong, .gp-prose b { color: #e2e8f0; font-weight: 600; }
.gp-prose em, .gp-prose i { color: #cbd5e1; }
.gp-prose a { color: #22d3ee; text-decoration: underline; text-decoration-color: rgba(34, 211, 238, 0.3); transition: all 0.2s; }
.gp-prose a:hover { color: #67e8f9; text-decoration-color: rgba(34, 211, 238, 0.6); }
.gp-prose blockquote { border-left: 4px solid #8B5CF6; padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: #cbd5e1; }
.gp-prose blockquote p { color: #cbd5e1; }
.gp-prose pre { background: #0f172a; border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; padding: 1.5rem; overflow-x: auto; margin: 1.5rem 0; }
.gp-prose code { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.9em; }
.gp-prose pre code { background: transparent; color: #e2e8f0; padding: 0; }
.gp-prose img { max-width: 100%; height: auto; border-radius: 1rem; margin: 2rem 0; }
.gp-prose figure { margin: 2rem 0; }
.gp-prose figcaption { text-align: center; color: #64748b; font-size: 0.875rem; margin-top: 0.75rem; }
.gp-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.gp-prose th { background: rgba(139, 92, 246, 0.1); color: #e2e8f0; padding: 0.75rem 1rem; text-align: left; border-bottom: 2px solid rgba(255,255,255,0.1); }
.gp-prose td { padding: 0.75rem 1rem; color: #94a3b8; border-bottom: 1px solid rgba(255,255,255,0.05); }
.gp-prose hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 2.5rem 0; }
.gp-prose .wp-block-image { margin: 2rem 0; }
.gp-prose .wp-block-image img { border-radius: 1rem; }
.gp-prose .wp-block-quote { border-left: 4px solid #8B5CF6; padding-left: 1.5rem; margin: 2rem 0; }


/* ========================================
   GALAXY PAGE — Starfield Background
   ======================================== */

.galaxy-bg { position: relative; overflow: hidden; }

.galaxy-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 15% 75%, rgba(139,92,246,0.6) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 85% 25%, rgba(6,182,212,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 35%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 90%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 5% 55%, rgba(255,255,255,0.3) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}


/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    nav, footer, .no-print { display: none !important; }
}


/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.faq-item .chevron {
    transition: transform 0.3s ease;
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}


/* ========================================
   PORTFOLIO PAGE
   ======================================== */

@keyframes portfolioFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.portfolio-card {
    animation: portfolioFadeIn 0.4s ease forwards;
}
