/* Apple-style Minimal Design & Smooth Transitions */

/* Global Smooth Transitions */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Apple-style Blur Effects */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Premium Shadows */
.shadow-premium {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-premium:hover {
    box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.15), 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Shadows */
.dark .shadow-premium {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.dark .shadow-premium:hover {
    box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.4), 0 8px 16px -4px rgba(0, 0, 0, 0.3);
}

/* Apple-style Button Animations */
button, .btn {
    transform: translateY(0);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

button:active, .btn:active {
    transform: translateY(0);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Hover Effects */
.blog-post, .service-card, .portfolio-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post:hover, .service-card:hover, .portfolio-item:hover {
    transform: translateY(-8px);
}

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

/* Apple-style Focus States */
input:focus, textarea:focus, select:focus {
    outline: none;
    ring-width: 2px;
    ring-color: #3b82f6;
    border-color: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Input Focus */
.dark input:focus, .dark textarea:focus, .dark select:focus {
    ring-color: #60a5fa;
}

/* Navigation Smooth Transitions */
nav {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Animations */
.mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
    opacity: 0;
}

.mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
}

/* Theme Toggle Animation */
.theme-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Apple-style Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Animations */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradient 6s ease infinite;
}

/* Apple-style Typography */
.text-premium {
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img.loading {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Apple-style Border Radius */
.rounded-apple {
    border-radius: 16px;
}

.rounded-apple-lg {
    border-radius: 24px;
}

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

.dark .glass-effect {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Micro-interactions */
.interactive:hover {
    transform: scale(1.02);
}

.interactive:active {
    transform: scale(0.98);
}

/* Apple-style Section Spacing */
.section-spacing {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .section-spacing {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (min-width: 1024px) {
    .section-spacing {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Smooth Dark Mode Transition */
body {
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Apple-style Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

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