/* 
   BILLWOX SOLUTIONS - MASTER PREMIUM UI 
   Theme: Enterprise, Secure, High-Velocity
   Colors: Deep Slate Void, Emerald Velocity, Electric Platinum
*/

:root {
    --bg-void: #0B1121; /* Deep Slate Void */
    --accent-emerald: #10B981; /* Emerald Velocity */
    --accent-emerald-glow: rgba(16, 185, 129, 0.3);
    --text-platinum: #E2E8F0; /* Electric Platinum */
    --text-muted: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-void);
    color: var(--text-platinum);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--text-platinum);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-emerald);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* ═════ BUTTONS & BADGES ═════ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--accent-emerald);
    color: #0B1121;
}

.btn-primary:hover {
    background: #0ea5e9;
    color: #fff;
    box-shadow: 0 0 20px var(--accent-emerald-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-platinum);
    border-color: var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--accent-emerald);
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.premium-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid var(--accent-emerald-glow);
}

.accent-badge {
    background: rgba(226, 232, 240, 0.1);
    color: var(--text-platinum);
    border: 1px solid rgba(226, 232, 240, 0.2);
}

/* ═════ NAVBAR ═════ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(11, 17, 33, 0.85);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo-svg {
    height: 45px;
    width: auto;
    display: block;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-platinum);
    cursor: pointer;
    z-index: 1001;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-emerald);
}

/* ═════ HERO SECTION ═════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.4;
    transform-origin: center center;
    will-change: transform;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11,17,33,0.3) 0%, rgba(11,17,33,1) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

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

/* ═════ GLASS CARDS & SERVICES ═════ */
.services-section {
    padding: 6rem 0;
    position: relative;
}

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

.section-header h2 {
    font-size: 2.5rem;
}

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

.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.glass-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.15);
}

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

.glass-card > * {
    position: relative;
    z-index: 1;
}

.webgl-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0 !important;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.glass-card:hover .webgl-bg {
    opacity: 1;
}

/* Gradient overlay so the text remains clearly readable over the 3D animation */
.webgl-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(11, 17, 33, 0.95) 0%, rgba(11, 17, 33, 0.3) 100%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    pointer-events: none;
}

/* ═════ PORTFOLIO SECTION ═════ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.portfolio-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 17, 33, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    padding: 2rem;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    color: var(--text-platinum);
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tech-stack span {
    font-size: 0.75rem;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ═════ PREMIUM FOOTER ═════ */
.premium-footer {
    background: #060a14;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0 2rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    color: var(--text-platinum);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-emerald);
}

.contact-list li {
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

/* ═════ RESPONSIVE ADJUSTMENTS ═════ */
@media (max-width: 900px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ═════ ERP PRODUCT SHOWCASE ═════ */
.product-showcase {
    padding: 6rem 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, rgba(11, 17, 33, 1) 70%);
}

.feature-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.feature-split.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2rem;
    color: var(--text-platinum);
}

.check-list {
    list-style: none;
    margin-top: 1.5rem;
}

.check-list li {
    margin-bottom: 0.75rem;
    color: var(--text-platinum);
    font-weight: 500;
}

.feature-image-wrapper {
    flex: 1;
}

.premium-asset {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* ═════ VISION SECTION ═════ */
.vision-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at right center, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
}

.vision-header {
    text-align: center;
    margin-bottom: 5rem;
}

.vision-header h2 {
    font-size: 3rem;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--accent-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vision-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 3rem;
}

.vision-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-emerald) 0%, #0ea5e9 100%);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.65rem;
    top: 1.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-void);
    border: 4px solid var(--accent-emerald);
    box-shadow: 0 0 15px var(--accent-emerald-glow);
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item:hover::before {
    transform: scale(1.4);
    background: var(--accent-emerald);
    box-shadow: 0 0 25px var(--accent-emerald);
}

.timeline-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

.timeline-content:hover {
    transform: translateX(15px);
    border-left-color: var(--accent-emerald);
    border-top-color: rgba(16, 185, 129, 0.2);
    border-right-color: rgba(16, 185, 129, 0.2);
    border-bottom-color: rgba(16, 185, 129, 0.2);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.timeline-step {
    font-size: 0.9rem;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.timeline-content h3 {
    font-size: 2rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* ═════ RESPONSIVE DESIGN ═════ */
@media (max-width: 900px) {
    .mobile-menu-btn { display: block; }
    .brand-logo-svg { height: 38px; }
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(11, 17, 33, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }
    .nav-wrapper.active { right: 0; }
    .nav-links { flex-direction: column; text-align: center; gap: 2rem; }
    .nav-links a { font-size: 1.5rem; }
    .nav-cta { margin-top: 1rem; width: 250px; text-align: center; }
    
    .hero-title { font-size: 2.8rem; line-height: 1.1; }
    .hero-subtitle { font-size: 1.1rem; }
    .service-grid { grid-template-columns: 1fr; }
    .feature-split, .feature-split.reverse { flex-direction: column; text-align: center; gap: 2rem; }
    .check-list li { text-align: left; }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; text-align: center; margin-bottom: 0.5rem; }
    .vision-timeline { padding-left: 2.5rem; margin-top: 2rem; }
    .timeline-item::before { left: -3.1rem; width: 20px; height: 20px; }
    .timeline-content:hover { transform: translateX(5px); }
    .timeline-content { padding: 1.5rem; }
    .timeline-content h3 { font-size: 1.5rem; }
    .vision-header h2 { font-size: 2.2rem; }
}
