/* Enhanced CSS for SK Jewellers Landing Page */

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Advanced Animation Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes shine {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

@keyframes pulse-glow {
    0% { 
        box-shadow: 0 0 5px #D4AF37, 0 0 10px #D4AF37; 
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 20px #D4AF37, 0 0 30px #D4AF37, 0 0 40px #D4AF37; 
        transform: scale(1.02);
    }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Luxury gradient backgrounds */
.luxury-gradient {
    background: linear-gradient(-45deg, #D4AF37, #F4E7C1, #B8941F, #E6D3A3);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

/* Enhanced floating animations */
.float-jewelry {
    animation: float 6s ease-in-out infinite;
}

.float-jewelry:nth-child(2) { animation-delay: -2s; }
.float-jewelry:nth-child(3) { animation-delay: -4s; }

/* Sparkle effects for jewelry */
.sparkle::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    animation: sparkle 3s ease-in-out infinite;
}

/* Glass morphism effects */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Enhanced hover effects */
.hover-lift-xl:hover {
    transform: translateY(-8px) scale(1.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Magnetic button effect */
.magnetic-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.magnetic-btn:hover::before {
    left: 100%;
}

/* Premium shadow effects */
.shadow-luxury {
    box-shadow: 
        0 4px 6px -1px rgba(212, 175, 55, 0.1),
        0 2px 4px -1px rgba(212, 175, 55, 0.06),
        0 10px 15px -3px rgba(212, 175, 55, 0.1),
        0 20px 25px -5px rgba(212, 175, 55, 0.1);
}

.shadow-luxury-hover:hover {
    box-shadow: 
        0 20px 25px -5px rgba(212, 175, 55, 0.1),
        0 25px 50px -12px rgba(212, 175, 55, 0.25),
        0 0 0 1px rgba(212, 175, 55, 0.05);
}

/* Text shimmer effect */
.text-shimmer {
    background: linear-gradient(90deg, #D4AF37, #F4E7C1, #D4AF37);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s ease-in-out infinite;
}

/* Enhanced card designs */
.premium-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, #F4E7C1, #D4AF37);
    background-size: 200% 100%;
    animation: shine 3s ease-in-out infinite;
}

/* Testimonial enhancements */
.testimonial-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #fefefe);
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.2);
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px) rotate(1deg);
}

/* Service card glow effect */
.service-glow:hover {
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.3),
        0 0 40px rgba(212, 175, 55, 0.2),
        0 0 60px rgba(212, 175, 55, 0.1);
}

/* CTA pulse animation */
.cta-pulse {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

/* Background pattern */
.bg-pattern {
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(212, 175, 55, 0.15) 1px, transparent 0),
        radial-gradient(circle at 20px 20px, rgba(220, 38, 38, 0.1) 1px, transparent 0);
    background-size: 20px 20px, 40px 40px;
    background-position: 0 0, 10px 10px;
}

/* Luxury section dividers */
.section-divider {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 4rem 0;
}

.section-divider::before {
    content: '💎';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 1rem;
    font-size: 1.5rem;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #D4AF37;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Hover effects */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Button enhancements */
.btn-primary {
    background: linear-gradient(135deg, #D4AF37, #B8941F);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, #B8941F, #A0821B);
}

/* Simple FAQ Styles */
.faq-answer {
    display: none;
    padding: 0 24px 24px 24px;
}

.faq-answer.show {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

.faq-item button {
    transition: all 0.3s ease;
}

.faq-item button:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-secondary {
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #D4AF37;
    color: white;
    transform: translateY(-2px);
}

/* Form enhancements */
.form-group {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus {
    border-color: #D4AF37;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Trust indicators */
.trust-badge {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 500;
    margin: 4px;
}

.trust-badge i {
    color: #D4AF37;
    margin-right: 6px;
}

/* Star ratings */
.stars {
    color: #fbbf24;
    display: flex;
    gap: 2px;
}

/* Service cards */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: #D4AF37;
    margin-bottom: 16px;
}

/* Testimonial cards */
.testimonial {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid #D4AF37;
}

/* FAQ accordion */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    background: #f9fafb;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-answer {
    padding: 0 20px 20px;
    color: #6b7280;
    line-height: 1.6;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .service-card {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme for jewelry business - better for showcasing products */
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #D4AF37;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(212, 175, 55, 0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #D4AF37, #B8941F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced mobile optimizations */
@media (max-width: 768px) {
    /* Mobile-specific spacing improvements */
    .hero-showcase .grid {
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Mobile FAQ enhancements */
    .faq-item {
        margin-bottom: 1rem;
    }
    
    /* Portfolio scroll snap */
    .portfolio-scroll {
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        display: flex;
        padding-bottom: 1rem;
    }
    
    .portfolio-scroll > * {
        scroll-snap-align: center;
        flex: 0 0 85%;
        margin-right: 1rem;
    }
    
    /* Enhanced touch feedback */
    button:active, a:active, [onclick]:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Performance and loading optimizations */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Scroll-triggered animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Advanced glow effects */
.btn-glow:hover {
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.4),
        0 0 40px rgba(212, 175, 55, 0.2),
        0 0 60px rgba(212, 175, 55, 0.1);
}