/* =========================================
   CRYPTOGENIC SOFTWARE - CORE STYLES
   ========================================= */

:root {
    --bg-dark: #050505;
    --bg-card: #0c0c0c;
    --bg-nav: rgba(5, 5, 5, 0.7);
    --accent: #00ff99;
    --accent-glow: rgba(0, 255, 153, 0.4);
    --text-main: #fcfcfc;
    --text-muted: #8a8f98;
    --border-color: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography & Utilities */
.accent-text { 
    color: var(--accent); 
}
.text-muted { 
    color: var(--text-muted) !important; 
}
.tracking-wide {
    letter-spacing: 1.5px;
}
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* =========================================
   PREMIUM GLASSMORPHISM NAVBAR
   ========================================= */
.crypto-navbar {
    background-color: rgba(3, 3, 3, 0.65) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    transition: all 0.3s ease;
}

/* Base Link Styling */
.crypto-navbar .nav-link {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 8px; /* Creates the pill shape */
    transition: all 0.2s ease;
}

/* Hover State */
.crypto-navbar .nav-link:hover {
    color: var(--text-main) !important;
    background-color: rgba(255, 255, 255, 0.03);
}

/* THE ACTIVE TAB HIGHLIGHT */
.crypto-navbar .nav-link.active {
    color: var(--text-main) !important;
    background-color: rgba(0, 255, 153, 0.05); /* Faint neon background */
    border: 1px solid rgba(0, 255, 153, 0.1);  /* Subtle glowing border */
    font-weight: 600;
}

/* Adjust page padding so content isn't hidden under the fixed navbar */
body {
    padding-top: 80px; 
}

/* Navbar Logo Styling */
.logo-img {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05); /* Just a subtle pop, no rotation */
}

/* Buttons */
.btn-primary-crypto {
    background-color: var(--accent);
    color: #000;
    font-weight: 600;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 12px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.15);
}

.btn-primary-crypto:hover {
    background-color: #00cc7a;
    border-color: #00cc7a;
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
    color: #000;
}

.btn-outline-crypto {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 28px;
    transition: all 0.3s ease;
}

.btn-outline-crypto:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 255, 153, 0.05);
    transform: translateY(-2px);
}

/* Hero Section & Glowing Effects */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.glow-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    filter: blur(60px);
    z-index: -1;
    animation: pulseGlow 6s infinite alternate ease-in-out;
}

/* Typing Animation Cursor */
.typing-container::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

/* Cards (Portfolio/Services) */
.crypto-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Subtle inner glow on hover */
.crypto-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}

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

.crypto-card:hover {
    border-color: rgba(0, 255, 153, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 153, 0.08);
}

.crypto-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
    display: inline-block;
}

.crypto-link:hover { 
    color: #fff; 
    transform: translateX(4px);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* =========================================
   FORM STYLES
   ========================================= */
.crypto-input {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.crypto-input:focus {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(0, 255, 153, 0.1) !important;
}

.crypto-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

select.crypto-input option {
    background-color: var(--bg-card);
    color: var(--text-main);
}

.form-label {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Custom Alert for Success Messages */
.alert-crypto {
    background-color: rgba(0, 255, 153, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
}

/* =========================================
   PREMIUM FOOTER STYLES
   ========================================= */
.crypto-footer {
    background-color: #030303;
    font-size: 0.95rem;
}

.line-height-lg {
    line-height: 1.7;
}

/* Footer Links */
.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--text-main);
    transform: translateX(4px); /* Slight bump right on hover */
}

/* Social Icons */
.social-icon {
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.03);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent);
    background-color: rgba(0, 255, 153, 0.05);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 153, 0.1);
}

/* Newsletter Input Fix */
.footer-input {
    background-color: rgba(0,0,0,0.4) !important;
}

/* Bottom Legal Links */
.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--text-main);
}

/* =========================================
   PREMIUM SAAS UPGRADES
   ========================================= */

/* 1. Subtle Background Blueprint Grid */
.bg-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    z-index: -2;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* 2. Premium Text Gradients */
.text-gradient {
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 3. Glassmorphism Stats Bar */
.glass-panel {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* 4. Linear-Style Card Borders */
.crypto-card {
    /* Upgrading the old card style */
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%) border-box;
    border: 1px solid transparent;
}

/* 5. Infinite Scroll Marquee (Trusted By) */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 1rem 0;
}
.marquee-container::before, .marquee-container::after {
    content: '';
    position: absolute;
    top: 0; width: 150px; height: 100%;
    z-index: 2;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}
.marquee-content {
    display: inline-block;
    animation: marqueeScroll 35s linear infinite;
}
.marquee-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.marquee-item:hover { opacity: 1; color: var(--text-main); }

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   FLOATING WHATSAPP WIDGET
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Official WhatsApp Green */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float svg {
    margin-top: 1px;
    margin-left: 1px;
}

.whatsapp-float:hover {
    color: #FFF;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* Make it slightly smaller on mobile phones so it doesn't block content */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}