/* Index Page Specific Styles */
.gradient-text {
    background: linear-gradient(135deg, #09A780 0%, #348AEF 50%, #09A780 100%);
    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%; }
}

.hero-gradient {
    background: linear-gradient(135deg, rgba(9, 167, 128, 0.05) 0%, rgba(52, 138, 239, 0.1) 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-active {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(9, 167, 128, 0.3);
    border: 2px solid rgba(9, 167, 128, 0.3);
}

/* Hide number input spinners completely */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

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

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

.special-counter {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Interactive Elements & Micro-interactions */
.interactive-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(9, 167, 128, 0.3);
}

.interactive-btn:active {
    transform: translateY(0);
}

/* Enhanced Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, 
        rgba(9, 167, 128, 0.05) 0%, 
        rgba(52, 138, 239, 0.05) 50%, 
        rgba(9, 167, 128, 0.05) 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, 
        rgba(52, 138, 239, 0.03) 0%, 
        rgba(9, 167, 128, 0.03) 50%, 
        rgba(52, 138, 239, 0.03) 100%);
}

/* Form Styles */
.form-input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(9, 167, 128, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(9, 167, 128, 0.5);
    box-shadow: 0 0 0 3px rgba(9, 167, 128, 0.1);
    background: rgba(255, 255, 255, 1);
}

.form-input.error {
    border-color: #ef4444;
    background: rgba(254, 242, 242, 0.9);
}

.dark .form-input {
    background: rgba(17, 24, 39, 0.9);
    border-color: rgba(156, 163, 175, 0.2);
    color: #f3f4f6;
}

.dark .form-input:focus {
    border-color: rgba(52, 138, 239, 0.5);
    box-shadow: 0 0 0 3px rgba(52, 138, 239, 0.1);
    background: rgba(17, 24, 39, 1);
}

.dark .form-input.error {
    border-color: #ef4444;
    background: rgba(127, 29, 29, 0.3);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #09A780, #348AEF);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    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(9, 167, 128, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(9, 167, 128, 0.3);
    border-radius: 12px;
    padding: 12px 24px;
    color: #09A780;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(9, 167, 128, 0.1);
    border-color: rgba(9, 167, 128, 0.5);
    transform: translateY(-2px);
}

.dark .btn-secondary {
    background: rgba(17, 24, 39, 0.9);
    border-color: rgba(52, 138, 239, 0.3);
    color: #348AEF;
}

.dark .btn-secondary:hover {
    background: rgba(52, 138, 239, 0.1);
    border-color: rgba(52, 138, 239, 0.5);
}

/* Animation States */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading-state {
    opacity: 0.7;
    pointer-events: none;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Dark Mode Specific Styles */
.dark-toggle-icon {
    transition: transform 0.3s ease;
}

.dark-toggle-icon.rotate {
    transform: rotate(180deg);
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .hero-mobile-text {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .mobile-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .gradient-text {
        background-size: 150% 150%;
    }
    
    .card-hover:hover {
        transform: translateY(-2px);
    }
    
    .interactive-btn:hover {
        transform: translateY(-1px);
    }
}

/* Error Message Styles */
.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message::before {
    content: '⚠️';
    font-size: 12px;
}

/* Success Message Styles */
.success-message {
    color: #10b981;
    font-size: 14px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.success-message::before {
    content: '✅';
    font-size: 12px;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Custom Scrollbar for specific elements */
.scrollable::-webkit-scrollbar {
    width: 6px;
}

.scrollable::-webkit-scrollbar-track {
    background: rgba(9, 167, 128, 0.1);
    border-radius: 3px;
}

.scrollable::-webkit-scrollbar-thumb {
    background: rgba(9, 167, 128, 0.3);
    border-radius: 3px;
}

.scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(9, 167, 128, 0.5);
}