/* Interior Design Studio - Custom Styles with Tailwind CSS */

/* Smooth animations */
* {
    transition: all 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c89560;
}

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

/* Hero Background Image Styles */
.hero-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Hero Section Overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7) 0%, rgba(212, 165, 116, 0.4) 100%);
}

/* Scroll Indicator Animation */
@keyframes scrollIndicator {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-scroll {
    animation: scrollIndicator 2s ease-in-out infinite;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Apply animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out;
}

/* Custom button hover effects */
button, .btn, a[class*="bg-"] {
    position: relative;
    overflow: hidden;
}

button::before, .btn::before, a[class*="bg-"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before, .btn:hover::before, a[class*="bg-"]:hover::before {
    width: 300px;
    height: 300px;
}

/* Material Icons alignment fix */
.material-icons {
    vertical-align: middle;
    line-height: 1;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
    outline: none;
}

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

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Pixel-perfect alignment */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive table */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
    
    table th, table td {
        padding: 0.5rem;
    }
}

/* Custom gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #2c3e50 0%, #3d5a80 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #d4a574 0%, #c89560 100%);
}

/* Toast notifications */
.toast {
    animation: slideInRight 0.3s ease-out;
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
}
