/**
 * ProfMission - Custom Styles
 * Additional styles that complement Tailwind CSS
 */

/* Navigation Links */
.nav-link {
    padding: 0.5rem 1rem;
    color: #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #fbbf24;
    background-color: rgba(251, 191, 36, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 25px 50px -12px rgba(251, 191, 36, 0.1);
}

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

/* Animated Background Gradient */
.animated-gradient {
    background: linear-gradient(-45deg, #0f1128, #1a1f3a, #1e3a8a, #0f172a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

/* Math Symbols Background Pattern */
.math-pattern {
    position: relative;
    overflow: hidden;
}

.math-pattern::before {
    content: '∫ ∑ π ∞ √ Δ α β γ ≈ ≠ ± × ÷';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 8rem;
    font-family: serif;
    color: rgba(255, 255, 255, 0.02);
    word-spacing: 2rem;
    line-height: 1.5;
    pointer-events: none;
    overflow: hidden;
    animation: float 20s linear infinite;
}

/* Glowing Button */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(251, 191, 36, 0.3), transparent 30%);
    animation: rotate 4s linear infinite;
}

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

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* Staggered Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(15, 17, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: #fff;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: #6b7280;
}

.form-input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

/* Select dropdown styling */
select.form-input {
    appearance: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%239ca3af%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpolyline points=%226 9 12 15 18 9%22%3E%3C/polyline%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select.form-input option {
    background-color: #0f1128;
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: #0f1128;
}

::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Selection Color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fff;
}

/* Floating Animation */
.float {
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Pulse Ring Animation */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(251, 191, 36, 0.5);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Testimonial Quote */
.quote-mark {
    font-size: 4rem;
    color: rgba(251, 191, 36, 0.3);
    font-family: serif;
    line-height: 1;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
}

/* Level Badge Colors */
.badge-college {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-lycee {
    background-color: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-prepa {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Counter Animation */
@property --num {
    syntax: '<integer>';
    initial-value: 0;
    inherits: false;
}

.counter {
    animation: counter 2s ease-out forwards;
    counter-reset: num var(--num);
}

.counter::after {
    content: counter(num);
}

@keyframes counter {
    from { --num: 0; }
    to { --num: var(--target); }
}

