/* Custom Properties */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* Base Styles */
body {
    background-color: #FAFBFC;
    font-family: 'Inter', sans-serif;
}

.font-serif-custom {
    font-family: 'Newsreader', serif;
}

/* Text Reveal Animation */
.text-reveal {
    opacity: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transform: translateY(100%);
    animation: text-slide-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes text-slide-up {
    to {
        opacity: 1;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translateY(0);
    }
}

/* Delay Utilities */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Fade Up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

/* Border Gradient Animation */
@keyframes border-spin {
    to { --gradient-angle: 360deg; }
}

.animated-border {
    position: relative;
    background: white;
    border-radius: 1.5rem;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.5rem;
    background: conic-gradient(from var(--gradient-angle), transparent 0%, #0EA5E9 10%, #22C55E 30%, transparent 50%);
    z-index: -1;
    animation: border-spin 3s linear infinite;
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Glow Effects Light Mode */
.glow-sky { box-shadow: 0 10px 40px rgba(14, 165, 233, 0.25); }
.glow-green { box-shadow: 0 10px 40px rgba(34, 197, 94, 0.25); }
.glow-purple { box-shadow: 0 10px 40px rgba(139, 92, 246, 0.25); }
.glow-orange { box-shadow: 0 10px 40px rgba(249, 115, 22, 0.25); }

/* Pulse Animation */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.3); }
    50% { box-shadow: 0 0 40px rgba(14, 165, 233, 0.5); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Background Pattern */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0EA5E9, #22C55E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}