/* Custom CSS for NeonCraft Pro */

/* Reset and Base Styles */
* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Navigation Styles */
#navbar {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 0, 128, 0.3);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0080, #00ffff);
    transition: width 0.3s ease;
}

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

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #ff0080, #8a2be2);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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 ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #ff0080;
    border-radius: 12px;
    color: #ff0080;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #ff0080;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.3);
}

/* Neon Text Effects */
.neon-text {
    font-weight: bold;
    animation: neonGlow 2s ease-in-out infinite alternate;
}

/* Background Grid Animation */
.neon-grid {
    background-image:
        linear-gradient(rgba(255, 0, 128, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 128, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 128, 0.3);
    box-shadow: 0 15px 35px rgba(255, 0, 128, 0.2);
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
}

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

/* Customizer Styles */
.customizer-section {
    margin-bottom: 2rem;
}

.size-btn, .color-btn, .font-btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.size-btn.active,
.size-btn:hover,
.font-btn.active,
.font-btn:hover {
    border-color: #ff0080 !important;
    transform: scale(1.05);
}

.font-btn {
    width: 100%;
}

.font-btn.active .bg-luxury-dark,
.font-btn:hover .bg-luxury-dark {
    background-color: #2a2a2a !important;
}

.color-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.color-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, white, transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-btn.active::before,
.color-btn:hover::before {
    opacity: 1;
}

.color-btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: inherit;
}

/* Font Button Styles - Each font displays in its actual style */
.font-btn[data-font="passionate"] .text-sm { font-family: 'Balistany', cursive; }
.font-btn[data-font="dreamy"] .text-sm { font-family: 'Brush Script MT', cursive; }
.font-btn[data-font="flowy"] .text-sm { font-family: 'Dancing Script', cursive; }
.font-btn[data-font="original"] .text-sm { font-family: 'Freeflow', sans-serif; }
.font-btn[data-font="classic"] .text-sm { font-family: 'Neoneon', serif; }
.font-btn[data-font="boujee"] .text-sm { font-family: 'Playfair Display', serif; font-weight: 600; }
.font-btn[data-font="funky"] .text-sm { font-family: 'Funky Signature', cursive; }
.font-btn[data-font="chic"] .text-sm { font-family: Helvetica, sans-serif; font-weight: 300; }
.font-btn[data-font="delight"] .text-sm { font-family: 'AmandaVinola', cursive; }
.font-btn[data-font="classy"] .text-sm { font-family: 'Butterland', serif; }
.font-btn[data-font="romantic"] .text-sm { font-family: 'Bastogne', cursive; }
.font-btn[data-font="robo"] .text-sm { font-family: 'Courier New', monospace; font-weight: bold; }
.font-btn[data-font="charming"] .text-sm { font-family: 'CharlesSebastian', cursive; }
.font-btn[data-font="quirky"] .text-sm { font-family: Impact, sans-serif; font-weight: 900; }
.font-btn[data-font="stylish"] .text-sm { font-family: 'Cosmodrome', sans-serif; }
.font-btn[data-font="sassy"] .text-sm { font-family: 'Geraldyne', cursive; }
.font-btn[data-font="glam"] .text-sm { font-family: 'Rocket', cursive; }
.font-btn[data-font="dope"] .text-sm { font-family: 'GoldenHopes', sans-serif; font-weight: 900; text-transform: uppercase; }
.font-btn[data-font="chemistry"] .text-sm { font-family: 'Higher', cursive; }
.font-btn[data-font="acoustic"] .text-sm { font-family: 'Acoustica', sans-serif; }
.font-btn[data-font="sparky"] .text-sm { font-family: Rockwell, serif; font-weight: bold; }
.font-btn[data-font="vibey"] .text-sm { font-family: 'Segoe UI', sans-serif; }
.font-btn[data-font="lofi"] .text-sm { font-family: Monaco, monospace; }
.font-btn[data-font="bossy"] .text-sm { font-family: 'Arial Narrow', sans-serif; font-weight: bold; text-transform: uppercase; }
.font-btn[data-font="iconic"] .text-sm { font-family: Futura, sans-serif; font-weight: bold; text-transform: uppercase; }
.font-btn[data-font="jolly"] .text-sm { font-family: Optima, sans-serif; }
.font-btn[data-font="modern"] .text-sm { font-family: Inter, sans-serif; font-weight: 500; text-transform: uppercase; }
.font-btn[data-font="bryce"] .text-sm { font-family: 'AceSans', monospace; }
.font-btn[data-font="livya"] .text-sm { font-family: 'Handestonie', sans-serif; }
.font-btn[data-font="humble"] .text-sm { font-family: 'Foundry-Font', cursive; }
.font-btn[data-font="adelya"] .text-sm { font-family: 'Adelya', cursive; }

/* Enhanced font button styling */
.font-btn {
    transition: all 0.3s ease;
}

.font-btn .text-sm {
    transition: all 0.3s ease;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-btn:hover .text-sm {
    transform: scale(1.05);
}

.font-btn.active .text-sm {
    color: #ff0080;
    text-shadow: 0 0 5px rgba(255, 0, 128, 0.5);
}

/* Form Styles */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 0, 128, 0.1);
}

.form-checkbox:checked {
    background-color: #ff0080;
    border-color: #ff0080;
}

/* Back to Top Button */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 128, 0.4);
}

/* Animations */
@keyframes neonGlow {
    from {
        text-shadow:
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px currentColor;
    }
    to {
        text-shadow:
            0 0 2px currentColor,
            0 0 5px currentColor,
            0 0 8px currentColor,
            0 0 12px currentColor;
    }
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Parallax Effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Responsive Design */
@media (max-width: 768px) {
    .neon-text {
        font-size: 2rem !important;
    }

    .feature-card,
    .product-card {
        margin-bottom: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 3rem !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Dark Mode Specific Styles */
@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

/* Light Mode Option */
.light-mode {
    background-color: #ffffff;
    color: #000000;
}

.light-mode .bg-luxury-dark {
    background-color: #f8f9fa;
}

.light-mode .bg-luxury-medium {
    background-color: #e9ecef;
}

.light-mode .bg-luxury-light {
    background-color: #dee2e6;
}

.light-mode .text-white {
    color: #000000;
}

.light-mode .text-gray-400 {
    color: #6c757d;
}

.light-mode .border-luxury-light {
    border-color: #dee2e6;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #ff0080;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .neon-text {
        text-shadow: none !important;
        font-weight: 900 !important;
    }

    .btn-primary {
        background: #ff0080 !important;
        border: 2px solid #ffffff !important;
    }

    .btn-secondary {
        background: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .neon-text {
        text-shadow: none !important;
        color: black !important;
    }
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff0080, #8a2be2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8a2be2, #ff0080);
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ff0080, #00ffff, #39ff14);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

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

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Effects for Interactive Elements */
.interactive:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .text-5xl {
        font-size: 2.5rem !important;
    }

    .text-7xl {
        font-size: 3rem !important;
    }

    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .gap-8 {
        gap: 1rem !important;
    }
}
