/* Modern Dark Theme Styles for [COMPANY_NAME] */

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

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

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #06b6d4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #818cf8, #22d3ee);
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

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

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    to {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6), 0 0 80px rgba(6, 182, 212, 0.3);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.8;
        filter: brightness(1.2);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

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

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

.animate-gradient {
    animation: gradient 8s ease infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Scroll animation - elements start invisible */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glassmorphism card effect */
.glass-card {
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(90deg, #6366f1, #06b6d4, #f472b6, #6366f1);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 4s linear infinite;
}

/* Neon glow effects */
.neon-glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3),
                0 0 40px rgba(99, 102, 241, 0.1);
}

.neon-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5),
                0 0 60px rgba(99, 102, 241, 0.2),
                0 0 100px rgba(6, 182, 212, 0.1);
}

/* Button hover effects */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active {
    transform: scale(0.98);
}

/* Form input focus effects */
input:focus, textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2),
                0 0 20px rgba(99, 102, 241, 0.1) !important;
}

/* Selection color */
::selection {
    background-color: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Card hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Gradient border effect */
.gradient-border {
    position: relative;
    background: linear-gradient(#1a1a2e, #1a1a2e) padding-box,
                linear-gradient(135deg, #6366f1, #06b6d4, #f472b6) border-box;
    border: 2px solid transparent;
}

/* Shimmer loading effect */
.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Toast notification styles */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #1a1a2e, #12121a);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: fadeInUp 0.3s ease;
    backdrop-filter: blur(20px);
}

.toast.success {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.1);
}

.toast.error {
    border-color: rgba(244, 114, 182, 0.3);
    box-shadow: 0 0 30px rgba(244, 114, 182, 0.1);
}

/* Floating particles effect */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(20px);
    }

    #hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .tech-item {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    #navbar, #mobile-menu-btn, .animate-on-scroll {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}

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

    html {
        scroll-behavior: auto;
    }

    .animate-float,
    .animate-gradient,
    .animate-glow {
        animation: none;
    }
}

/* Focus visible styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card,
    .tech-item,
    .glass-card {
        border: 2px solid #6366f1;
    }
}

/* Cursor glow effect (optional - can be enabled with JS) */
.cursor-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

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

.loading button {
    cursor: not-allowed;
}

/* Animated underline for links */
.animated-underline {
    position: relative;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    transition: width 0.3s ease;
}

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

/* Blob animation for backgrounds */
.blob {
    border-radius: 50%;
    filter: blur(80px);
    mix-blend-mode: multiply;
}

/* Tech card gradient border on hover */
.tech-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #6366f1, #06b6d4, #f472b6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-item:hover::before {
    opacity: 1;
}
