/* Custom Styles for Czarsu Shopping App */

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

/* Navigation Styles */
.nav-link {
    @apply text-gray-700 hover:text-indigo-600 font-medium transition-colors duration-300 relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(to right, #6366f1, #a855f7);
    transition: width 0.3s ease;
}

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

.mobile-nav-link {
    @apply block px-3 py-2 text-gray-700 hover:text-indigo-600 hover:bg-indigo-50 rounded-md font-medium transition-all duration-300;
}

/* Button Styles */
.btn-primary {
    @apply inline-flex items-center px-8 py-4 bg-gradient-to-r from-indigo-600 to-purple-600 text-white rounded-full font-semibold text-lg shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300;
}

.btn-secondary {
    @apply inline-flex items-center px-8 py-4 bg-white text-indigo-600 border-2 border-indigo-600 rounded-full font-semibold text-lg hover:bg-indigo-600 hover:text-white transition-all duration-300;
}

/* Hero Section Animations */
.hero-image-container {
    animation: float 6s ease-in-out infinite;
}

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

/* Feature Cards */
.feature-card {
    @apply bg-white p-8 rounded-2xl shadow-lg hover:shadow-2xl transition-all duration-300 transform hover:-translate-y-2;
}

.feature-icon {
    @apply w-16 h-16 rounded-2xl flex items-center justify-center text-2xl mb-4;
}

/* Screenshot Cards */
.screenshot-card {
    @apply transform transition-all duration-300 hover:scale-105;
}

/* Contact Icons */
.contact-icon {
    @apply w-12 h-12 rounded-xl flex items-center justify-center text-xl;
}

/* Form Inputs */
.form-input {
    @apply w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:border-indigo-600 focus:outline-none transition-colors duration-300;
}

.form-input:focus {
    @apply ring-4 ring-indigo-100;
}

/* Social Icons */
.social-icon {
    @apply w-10 h-10 bg-gray-800 hover:bg-indigo-600 rounded-full flex items-center justify-center transition-all duration-300 transform hover:scale-110;
}

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

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

/* Responsive Images */
img {
    @apply max-w-full h-auto;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #6366f1, #a855f7);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #4f46e5, #9333ea);
}

/* Section Transitions */
section {
    @apply transition-all duration-500;
}

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

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

/* Mobile Menu Transition */
#mobile-menu {
    @apply transition-all duration-300 ease-in-out;
}

#mobile-menu.show {
    @apply block;
}

/* Button Ripple Effect */
button, .btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

button::before, .btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::before, .btn-primary:active::before, .btn-secondary:active::before {
    width: 300px;
    height: 300px;
}

/* Card Hover Glow Effect */
.feature-card:hover {
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

/* Screenshot Gallery Hover Effect */
.screenshot-card img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.screenshot-card:hover img {
    filter: brightness(1.1);
}

/* Form Submit Button Hover */
form button[type="submit"]:hover {
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        @apply text-xl;
    }
    h2 {
        @apply text-3xl;
    }
    h3 {
        @apply text-xl;
    }
}

/* Accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    @apply outline-none ring-2 ring-indigo-600 ring-offset-2;
}

/* Print Styles */
@media print {
    nav, footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}
