/* Custom Styles for DVP Systems Website */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 6px;
    border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #a78bfa 100%);
}

/* Navbar Scroll Effect */
#navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Navigation Link Animations */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

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

/* Mobile Menu Animations */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

button:hover,
a.button:hover {
    transform: translateY(-2px);
}

button:active,
a.button:active {
    transform: translateY(0);
}

/* Gradient Text Animation */
.gradient-text-animated {
    background: linear-gradient(
        90deg,
        #06b6d4,
        #3b82f6,
        #8b5cf6,
        #06b6d4
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Floating Animation for Hero Cards */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(-5deg);
    }
    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

.floating-card-front {
    animation: float 6s ease-in-out infinite;
}

.floating-card-mid {
    animation: float 7s ease-in-out infinite 0.5s;
}

.floating-card-back {
    animation: float 8s ease-in-out infinite 1s;
}

/* Pulse Animation for Background Blobs */
@keyframes pulse-slow {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Card Hover Effects */
.card-3d-hover {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d-hover:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Testimonial Quote Icon */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    animation: shimmer 2s infinite;
}

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

/* Form Focus Effects */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

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

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success Message */
.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease-out;
}

/* Grid Pattern Background */
.grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Dot Pattern Background */
.dot-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Product Card Glow Effect */
.product-card-glow {
    position: relative;
}

.product-card-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-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;
}

.product-card-glow:hover::after {
    opacity: 0.5;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Icon Glow Effect */
.icon-glow {
    transition: all 0.3s ease;
}

.icon-glow:hover {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    transform: scale(1.1) rotate(5deg);
}

/* Link Hover Effect */
a {
    transition: color 0.2s ease;
}

/* Backdrop Blur Support Check */
@supports not (backdrop-filter: blur(20px)) {
    .glass,
    #navbar.scrolled {
        background: rgba(15, 23, 42, 0.9);
    }
}

/* Selection Color */
::selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: #fff;
}

::-moz-selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: #fff;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu,
    footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* Dark Mode Optimizations */
@media (prefers-color-scheme: dark) {
    body {
        color-scheme: dark;
    }
}
