/* Custom styles for G-interior home designs */

:root {
    --primary-color: #5B2FBF;
    --primary-dark: #4A1FA0;
    --secondary-color: #FFD700;
    --accent-color: #FFC700;
    --dark-bg: #2D2D2D;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
}

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

/* Animated Hero Background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-animated-bg {
    background: linear-gradient(135deg, #5B2FBF, #4A1FA0, #312070, #4A1FA0, #5B2FBF);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Custom font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Sections don't grow */
section {
    flex-shrink: 0;
}

/* Footer sticks to bottom */
footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* Custom button hover effects */
.btn-primary {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6B3FD4, #5B2FBF);
    box-shadow: 0 4px 6px rgba(91, 47, 191, 0.3);
    color: white !important;
    text-decoration: none !important;
}

/* Gold accent button */
.btn-gold {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--dark-bg);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 6px rgba(255, 215, 0, 0.2);
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Custom card hover animation */
.card-hover {
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.card-hover:hover {
    box-shadow: 0 6px 12px rgba(91, 47, 191, 0.1);
    border-top-color: var(--secondary-color);
}

/* Product card animation */
.product-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 8px 16px rgba(91, 47, 191, 0.12);
}

/* Navigation sticky behavior */
nav {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Form input focus styles */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

button:active {
    transform: scale(0.98);
}

/* Fade in animation for page load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Scale up animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-up {
    animation: scaleUp 0.6s ease-out;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

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

.float {
    animation: float 3s ease-in-out infinite;
}

/* Glow animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(91, 47, 191, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(91, 47, 191, 0.8);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shadow utilities */
.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Product image sizing */
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Image containers with aspect ratios */
.img-container-square {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f3f4f6;
}

.img-container-landscape {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f3f4f6;
}

.img-container-portrait {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #f3f4f6;
}

/* Product card image */
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.3s ease;
}

.product-card:hover img {
    opacity: 0.95;
}

/* Link styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer link styles */
footer a {
    color: inherit;
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Product grid responsive */
@media (max-width: 768px) {
    .grid {
        grid-auto-rows: auto;
    }
}

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

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

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

/* Accessibility - skip to main content */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    border-radius: 0 0 4px 0;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

button,
input,
textarea,
select {
    transition: all 0.3s ease;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #20BA5F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 30px;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #20BA5F, #128C7E);
    transform: scale(1.15);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Responsive for mobile */
@media (max-width: 640px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}
