/* Quanta Future Technologies - Apple-inspired Design */

/* Custom Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
}

p {
    letter-spacing: -0.004em;
}

/* Product Card Enhancements */
.product-card img {
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Button States */
.btn-primary, .btn-secondary {
    letter-spacing: 0.01em;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.btn-primary:hover, .btn-secondary:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-text {
    position: relative;
    padding-right: 15px;
}

.btn-text::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: right 0.3s ease;
}

.btn-text:hover::after {
    right: -5px;
}

/* Navigation Enhancements */
.nav-link {
    letter-spacing: 0.01em;
}

/* Image Hover Effects */
img {
    transition: filter 0.3s ease;
}

img:hover {
    filter: contrast(1.05);
}

/* Section Animations */
section {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
section:nth-child(7) { animation-delay: 0.7s; }
section:nth-child(8) { animation-delay: 0.8s; }

/* Form Enhancements */
input[type="email"] {
    transition: all 0.3s ease;
}

input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

/* Social Media Icons */
li a:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .section-padding {
        padding: 120px 0;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #c7c7cc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #86868b;
}

/* Loading Animation for Images */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0066cc;
        --color-text-primary: #000000;
        --color-text-secondary: #333333;
    }
}

/* Reduce Motion Support */
@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;
    }
}