/* NKSCX Custom Styles */

/* Typography Hierarchy */
.font-display {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.font-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.font-subheading {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.font-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.font-elegant {
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Custom font sizes with improved spacing */
.text-display {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
}

.text-hero {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.15;
}

.text-section {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.2;
}

/* Loading Screen Animations */
@keyframes loading-bar {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }
    50% {
        width: 50%;
        transform: translateX(0%);
    }
    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: currentColor;
    }
}

.animate-loading-bar {
    animation: loading-bar 2s ease-in-out infinite;
}

#preloader.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Hide WOW elements during loading to prevent flash */
body:not(.loading-complete) .wow {
    opacity: 0;
}

body.loading-complete .wow {
    opacity: 1;
}

/* Custom gradient backgrounds */
.bg-gradient-sky {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
}

/* Dropdown styles */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    transform: translateY(-10px);
    z-index: 50;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom button hover effects */
.btn-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu transition */
.mobile-menu {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
.focus\:ring-blue-500:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Form styles */
input:focus, textarea:focus, select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Hero background pattern */
.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Stats animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Team member cards */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

/* Security icons */
.security-icon {
    transition: all 0.3s ease;
}

.security-icon:hover {
    transform: scale(1.1);
}

/* Navigation active states */
.nav-active {
    color: #1e40af;
    position: relative;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    border-radius: 1px;
}

/* Custom progress bar */
.progress-bar {
    height: 4px;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive typography */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

@media (min-width: 641px) {
    .text-responsive {
        font-size: 2rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 768px) {
    .text-responsive {
        font-size: 3rem;
        line-height: 1;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dropdown-content {
        border: 2px solid;
    }
    
    .card-hover {
        border: 1px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Enhanced Visual Effects */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fillBar {
    from {
        width: 0%;
    }
    to {
        width: var(--target-width, 80%);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation utility classes */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-fill {
    animation: fillBar 2s ease-out forwards;
}

.hover-glow:hover {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-gradient {
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* Enhanced button styles */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-enhanced:hover::before {
    left: 100%;
}

/* Card hover effects enhancement */
.card-enhanced {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.card-enhanced:hover::after {
    opacity: 1;
}

/* Glass morphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Text gradient effects */
.text-gradient-cyan {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
