* {
    font-family: 'Tajawal', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.5);
}

/* Background Orbs */
.orb-1 {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 78, 59, 0.6) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}
.orb-2 {
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(20, 83, 45, 0.5) 0%, transparent 70%);
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

/* Glass Effect */
.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Neon Glow Effects */
.neon-glow:hover {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2);
}
.neon-glow-cyan:hover {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4), 0 0 40px rgba(34, 211, 238, 0.2);
}
.active-glow {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Input Focus Glow */
.input-glow:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.5);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Active Nav Indicator */
.nav-active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: linear-gradient(180deg, #10b981, #4ade80);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Pulsing Animation */
@keyframes pulse-border {
    0%, 100% { border-color: rgba(16, 185, 129, 0.3); }
    50% { border-color: rgba(16, 185, 129, 0.6); }
}
.pulse-border:hover {
    animation: pulse-border 1.5s ease-in-out infinite;
}

/* Loading Spinner */
@keyframes spin-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-orb {
    animation: spin-glow 1.5s linear infinite;
}
@keyframes pulse-scale {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}
.pulse-scale {
    animation: pulse-scale 1.5s ease-in-out infinite;
}

/* Style Card Selected */
.style-selected {
    background: linear-gradient(135deg, #10b981, #4ade80) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    color: #000000 !important;
    font-weight: 700;
}

/* Canvas Container */
.canvas-container {
    touch-action: none;
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Tab Hidden */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Range Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
}
input[type="range"]::-webkit-slider-track {
    height: 6px;
    background: rgba(51, 65, 85, 0.8);
    border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #10b981, #4ade80);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
input[type="range"]::-moz-range-track {
    height: 6px;
    background: rgba(51, 65, 85, 0.8);
    border-radius: 3px;
}
input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #10b981, #4ade80);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Landing Page Styles */
.landing-page {
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.landing-page.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}
.app-container {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.app-container.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Stagger Fade In */
@keyframes staggerFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.stagger-1 { animation: staggerFadeIn 0.6s ease-out 0.1s both; }
.stagger-2 { animation: staggerFadeIn 0.6s ease-out 0.2s both; }
.stagger-3 { animation: staggerFadeIn 0.6s ease-out 0.3s both; }
.stagger-4 { animation: staggerFadeIn 0.6s ease-out 0.4s both; }
.stagger-5 { animation: staggerFadeIn 0.6s ease-out 0.5s both; }

/* Glow Pulse for CTA */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.3); }
}
.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Feature Icon Glow */
.feature-icon {
    transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}
