/* ============================================ */
/* AVCAP - Custom Styles                       */
/* Avril Capital Website                       */
/* ============================================ */

/* --- Logo Color Filter (orange → teal #0D9488) --- */
.logo-teal {
    filter: brightness(0) saturate(100%) invert(43%) sepia(92%) saturate(430%) hue-rotate(131deg) brightness(92%) contrast(93%);
}

/* --- Base & Reset --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

::selection {
    background: #0D9488;
    color: white;
}

/* --- Navigation --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-text-color { color: rgba(255, 255, 255, 0.9); }
.nav-subtext-color { color: rgba(255, 255, 255, 0.5); }

#navbar.scrolled .nav-text-color { color: rgba(255, 255, 255, 0.9); }

/* --- Hero Section --- */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(13, 148, 136, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 168, 67, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(13, 148, 136, 0.05) 0%, transparent 40%);
}

/* Floating node particles */
.hero-nodes {
    position: absolute;
    inset: 0;
}

.node {
    position: absolute;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.4);
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.3), 0 0 60px rgba(13, 148, 136, 0.1);
}

.node-1 { width: 6px; height: 6px; top: 15%; left: 10%; animation: float-node 8s ease-in-out infinite; }
.node-2 { width: 4px; height: 4px; top: 25%; left: 75%; animation: float-node 12s ease-in-out infinite reverse; }
.node-3 { width: 8px; height: 8px; top: 60%; left: 20%; animation: float-node 10s ease-in-out infinite 2s; }
.node-4 { width: 5px; height: 5px; top: 70%; left: 85%; animation: float-node 9s ease-in-out infinite 1s; }
.node-5 { width: 3px; height: 3px; top: 40%; left: 50%; animation: float-node 11s ease-in-out infinite 3s; background: rgba(212, 168, 67, 0.4); box-shadow: 0 0 20px rgba(212, 168, 67, 0.3); }
.node-6 { width: 7px; height: 7px; top: 85%; left: 40%; animation: float-node 7s ease-in-out infinite 4s; }

@keyframes float-node {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(30px, -20px) scale(1.3); opacity: 1; }
    50% { transform: translate(-15px, 25px) scale(0.8); opacity: 0.4; }
    75% { transform: translate(20px, 10px) scale(1.1); opacity: 0.8; }
}

/* Shield visualization */
.shield-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.shield-ring-1 {
    width: 100%;
    height: 100%;
    animation: ring-rotate 20s linear infinite;
    border-style: dashed;
}

.shield-ring-2 {
    width: 75%;
    height: 75%;
    animation: ring-rotate 15s linear infinite reverse;
    border-color: rgba(13, 148, 136, 0.15);
}

.shield-ring-3 {
    width: 50%;
    height: 50%;
    animation: ring-rotate 10s linear infinite;
    border-color: rgba(212, 168, 67, 0.15);
    border-style: dashed;
}

.shield-core {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.1);
    border: 2px solid rgba(13, 148, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 3s ease-in-out infinite;
}

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0D9488;
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.6);
}

.orbit-dot-1 { top: 10%; left: 50%; animation: orbit 8s linear infinite; }
.orbit-dot-2 { top: 50%; left: 90%; animation: orbit 12s linear infinite reverse; background: #D4A843; box-shadow: 0 0 15px rgba(212, 168, 67, 0.6); }
.orbit-dot-3 { top: 85%; left: 30%; animation: orbit 10s linear infinite 2s; }

@keyframes ring-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(13, 148, 136, 0.2), 0 0 60px rgba(13, 148, 136, 0.05); }
    50% { box-shadow: 0 0 40px rgba(13, 148, 136, 0.4), 0 0 80px rgba(13, 148, 136, 0.1); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

/* --- Animations --- */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fade-up 0.8s ease-out forwards;
}

.animate-fade-up-delay {
    animation: fade-up 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 4s ease-in-out 1s infinite;
}

@keyframes scroll-dot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(8px); opacity: 0; }
}

.animate-scroll-dot {
    animation: scroll-dot 1.5s ease-in-out infinite;
}

/* --- Scroll-triggered animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Service Cards --- */
.service-card {
    display: block;
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0D9488, #D4A843);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08), 0 4px 20px rgba(10, 22, 40, 0.04);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

/* --- Trust logos --- */
.trust-logo {
    text-align: center;
    transition: opacity 0.3s ease;
}

.trust-logo:hover {
    opacity: 1 !important;
}

/* --- Counter animation --- */
.counter {
    display: inline-block;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .shield-container {
        width: 280px;
        height: 280px;
    }
    
    @keyframes orbit {
        0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem !important;
    }
}

/* --- Smooth page transitions --- */
body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* --- Loading state --- */
.loading {
    opacity: 0;
}

/* --- Focus styles for accessibility --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0D9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Print styles --- */
@media print {
    nav, .hero-nodes, .shield-container, footer {
        display: none !important;
    }
}
