/**
 * Net View Security - Additional Style Enhancements
 * Advanced styling for premium look and feel
 */

/* ===== SECTION STYLING ===== */
.section {
    position: relative;
}

/* Alternating section backgrounds with subtle patterns */
.section.bg-light {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.03) 0%, transparent 50%);
}

.section.bg-primary {
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

/* ===== HERO ENHANCEMENTS ===== */
.hero {
    position: relative;
}

/* Floating animation for hero content */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

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

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ENHANCED CARDS ===== */
.card-hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Glassmorphism effect for special cards */
.card-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== IMPROVED SHADOWS ===== */
.shadow-soft {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.shadow-colored {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.shadow-colored-hover:hover {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

/* ===== LOADING ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

/* ===== BADGE STYLES ===== */
.badge {
    display: inline-block;
    padding: var(--spacing-2) var(--spacing-4);
    background: var(--color-secondary);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-accent {
    background: linear-gradient(135deg, var(--color-accent), #dc2626);
}

/* ===== DIVIDER LINES ===== */
.divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--color-gray-300),
        transparent
    );
    margin: var(--spacing-8) 0;
}

.divider-thick {
    height: 3px;
    background: linear-gradient(
        to right,
        var(--color-secondary),
        var(--color-primary)
    );
    border-radius: var(--radius-full);
    width: 60px;
    margin: var(--spacing-6) auto;
}

/* ===== PULSE ANIMATION FOR CTAs ===== */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ===== ICON BACKGROUND ANIMATIONS ===== */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.icon-bg-rotate {
    position: relative;
}

.icon-bg-rotate::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.icon-bg-rotate:hover::before {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

/* ===== TESTIMONIAL QUOTE MARK ===== */
.testimonial-quote {
    position: relative;
    padding-left: var(--spacing-6);
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 60px;
    color: var(--color-secondary);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: var(--radius-full);
    border: 3px solid var(--color-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: var(--color-secondary);
    color: white;
}

::-moz-selection {
    background: var(--color-secondary);
    color: white;
}

/* ===== LINK UNDERLINE EFFECT ===== */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width var(--transition-base);
}

.link-underline:hover::after {
    width: 100%;
}

/* ===== IMAGE HOVER EFFECTS ===== */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* ===== TOOLTIP STYLE ===== */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: var(--spacing-2) var(--spacing-3);
    background: var(--color-dark);
    color: white;
    font-size: var(--text-sm);
    white-space: nowrap;
    border-radius: var(--radius-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    height: 8px;
    background: var(--color-gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

/* ===== BACK TO TOP BUTTON ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

/* ===== STAGGER ANIMATION FOR LISTS ===== */
.stagger-animation > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--color-dark);
    }
    
    .btn {
        border-width: 3px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .site-footer,
    .cta-section,
    #backToTop {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
