/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    padding: 80px 0 30px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

/* Footer Background Effects */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 40% 80%, rgba(0, 238, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 60% 20%, rgba(255, 105, 180, 0.05) 0%, transparent 30%);
    animation: footerGradientShift 20s ease infinite;
    z-index: 0;
}

.main-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, 
            transparent 0%,
            rgba(212, 175, 55, 0.03) 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.02) 75%,
            transparent 100%);
    background-size: 200% 200%;
    animation: shimmer 8s ease infinite;
    z-index: 0;
}

@keyframes footerGradientShift {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, 5px) rotate(90deg); }
    50% { transform: translate(5px, -10px) rotate(180deg); }
    75% { transform: translate(8px, 8px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

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

/* Light Beams in Footer */
.light-beam-footer {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(212, 175, 55, 0.6), 
        rgba(255, 255, 255, 0.4), 
        rgba(0, 238, 255, 0.6),
        transparent);
    top: 0;
    animation: lightSweepFooter 12s linear infinite;
    filter: blur(0.5px);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    z-index: 1;
}

.light-beam-footer:nth-child(1) { left: 5%; animation-delay: 0s; }
.light-beam-footer:nth-child(2) { left: 20%; animation-delay: 2s; }
.light-beam-footer:nth-child(3) { left: 35%; animation-delay: 4s; }
.light-beam-footer:nth-child(4) { left: 50%; animation-delay: 6s; }
.light-beam-footer:nth-child(5) { left: 65%; animation-delay: 8s; }
.light-beam-footer:nth-child(6) { left: 80%; animation-delay: 10s; }

@keyframes lightSweepFooter {
    0% { transform: translateY(-100%) scaleY(0); opacity: 0; }
    10% { opacity: 0.7; transform: translateY(-50%) scaleY(1); }
    90% { opacity: 0.7; transform: translateY(50%) scaleY(1); }
    100% { transform: translateY(100%) scaleY(0); opacity: 0; }
}

/* Floating Particles */
.particle-footer {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: floatFooter 15s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    z-index: 1;
}

.particle-footer:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle-footer:nth-child(2) { top: 40%; left: 90%; animation-delay: 3s; }
.particle-footer:nth-child(3) { top: 60%; left: 20%; animation-delay: 6s; }
.particle-footer:nth-child(4) { top: 80%; left: 80%; animation-delay: 9s; }
.particle-footer:nth-child(5) { top: 30%; left: 70%; animation-delay: 12s; }

@keyframes floatFooter {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    25% { transform: translate(15px, -20px) scale(1.3); opacity: 1; }
    50% { transform: translate(-10px, 15px) scale(0.7); opacity: 0.5; }
    75% { transform: translate(8px, 10px) scale(1.1); opacity: 0.9; }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 1px;
    animation: glowLine 3s ease infinite;
}

@keyframes glowLine {
    0%, 100% { opacity: 0.6; width: 30px; }
    50% { opacity: 1; width: 70px; }
}

.footer-section h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), rgba(212, 175, 55, 0.3), transparent);
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.footer-section p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), #00eeff);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.social-links a:hover::before {
    opacity: 0.2;
}

.social-links a:hover {
    background: linear-gradient(45deg, var(--primary-color), #00eeff);
    color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 10px 20px rgba(212, 175, 55, 0.4),
        0 0 20px rgba(212, 175, 55, 0.3),
        0 0 30px rgba(0, 238, 255, 0.2);
    border-color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding: 5px 0;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 15px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.footer-section ul li a:hover::before {
    width: 15px;
}

.contact-info li {
    display: flex;
    gap: 12px;
    color: #aaa;
    align-items: flex-start;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.contact-info li:hover {
    color: #fff;
    transform: translateX(5px);
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.contact-info li:hover i {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 30px;
    margin-top: 30px;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.copyright p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.copyright p:hover {
    color: #aaa;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover {
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.footer-links a:hover::after {
    width: 80%;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .main-footer {
        padding: 60px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .footer-links {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .light-beam-footer {
        display: none; /* Hide light beams on mobile for performance */
    }
    
    .particle-footer {
        display: none; /* Hide particles on mobile for performance */
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 40px 0 15px;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Section Padding Utility */
.section-padding {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 50px;
    font-weight: 300;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin: 0 0 15px;
    font-size: 1.1rem;
    color: #fff;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.category-card {
    padding: 15px 30px;
    background-color: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    font-weight: 500;
    letter-spacing: 1px;
}

.category-card:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: scale(1.05);
}

.bg-dark {
    background-color: #0a0a0a;
}
