/* ==========================================================================
   CSS Variables & Theming
   ========================================================================== */
   :root {
    --bg-dark: #050505;
    --bg-surface: rgba(20, 20, 22, 0.6);
    --bg-surface-hover: rgba(30, 30, 35, 0.8);
    
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    
    --accent-blue: #00E5FF;
    --accent-purple: #7B2CBF;
    --accent-glow: rgba(0, 229, 255, 0.4);
    
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .brand-logo {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Background & Glow Effects
   ========================================================================== */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a0a0c 0%, #000000 100%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(123,44,191,0.3) 0%, rgba(0,0,0,0) 70%);
}

.glow-2 {
    bottom: 10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0,229,255,0.2) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -5s;
}

.glow-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ==========================================================================
   Typography & Typography Utilities
   ========================================================================== */
.text-gradient {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.center {
    text-align: center;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--text-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.large {
    padding: 16px 32px;
    font-size: 1rem;
}

.glow-btn {
    position: relative;
}
.glow-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    border-radius: 100px;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.5;
    transition: var(--transition);
}
.glow-btn:hover::before {
    opacity: 1;
    filter: blur(15px);
}


/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.2);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 120px 24px 60px;
    gap: 64px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* 3D Visual in Hero */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.main-panel {
    width: 100%;
    aspect-ratio: 4/3;
    transform: rotateY(-10deg) rotateX(10deg);
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.main-panel:hover {
    transform: rotateY(-5deg) rotateX(5deg);
}

.panel-header {
    height: 32px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.panel-body {
    padding: 32px;
    position: relative;
    height: calc(100% - 32px);
}

.code-line {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-bottom: 16px;
}
.w-80 { width: 80%; }
.w-60 { width: 60%; }
.w-90 { width: 90%; }
.w-40 { width: 40%; }

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: floatingApp 6s infinite ease-in-out alternate;
}

.app-card {
    top: 50%;
    right: -20px;
    color: #fff;
}

.web-card {
    bottom: -20px;
    left: 20px;
    animation-delay: -3s;
}

.pulse-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-purple);
    box-shadow: 0 0 0 0 rgba(123, 44, 191, 0.7);
    animation: pulse 2s infinite;
}
.pulse-icon.blue {
    background: var(--accent-blue);
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

@keyframes floatingApp {
    0% { transform: translateY(0) translateZ(50px); }
    100% { transform: translateY(-20px) translateZ(50px); }
}

/* ==========================================================================
   Sections Formatting
   ========================================================================== */
section {
    padding: 100px 0;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.stat-card {
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: var(--bg-surface-hover);
    border-color: rgba(255,255,255,0.15);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.product-card {
    padding: 40px 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-blue);
    border: 1px solid var(--border-glass);
}

.church-icon { color: #f59e0b; }
.pets-icon { color: #10b981; }
.pay-icon { color: #8b5cf6; }

.product-icon svg {
    width: 32px;
    height: 32px;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.product-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.product-link {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-link span {
    transition: transform 0.3s ease;
}

.product-card:hover .product-link span {
    transform: translateX(4px);
    color: var(--accent-blue);
}

/* ==========================================================================
   CTA / Services Section
   ========================================================================== */
.container-cta {
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.container-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(0,229,255,0.1) 90deg, transparent 180deg, rgba(123,44,191,0.1) 270deg, transparent 360deg);
    animation: rotate 10s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: 1.125rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 40px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-glass);
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.hidden-onload {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.hidden-onload.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 140px;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 24px;
        border-bottom: 1px solid var(--border-glass);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
