@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Patrick+Hand&display=swap');

/* Doodle styles */
.doodle-bg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e0e7ff' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.doodle-text {
    font-family: 'Patrick Hand', cursive;
    position: relative;
    display: inline-block;
}

.doodle-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'%3E%3Cpath d='M0,10 Q25,15 50,10 T100,10' fill='none' stroke='%23a5b4fc' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
    background-size: 100px 15px;
    z-index: -1;
}

.doodle-underline {
    position: relative;
    display: inline-block;
}

.doodle-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #c7d2fe;
    z-index: -1;
    transform: skewY(-2deg);
}

.doodle-highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.doodle-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    right: -5px;
    bottom: 0;
    background-color: #c7d2fe;
    z-index: -1;
    transform: rotate(-1deg);
    border-radius: 3px;
}

.doodle-highlight-light {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.doodle-highlight-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    right: -5px;
    bottom: 0;
    background-color: #4f46e5;
    z-index: -1;
    transform: rotate(-1deg);
    border-radius: 3px;
}

.doodle-frame {
    position: relative;
    display: inline-block;
}

.doodle-frame::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid #a5b4fc;
    z-index: -1;
    border-radius: 8px;
}

.doodle-scribble {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cpath d='M30,50 Q50,30 70,50 T110,50 Q130,30 150,50 T190,50' fill='none' stroke='%23a5b4fc' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.doodle {
    position: fixed;
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.2;
}

.doodle-1 {
    top: 20%;
    left: 5%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%234f46e5' stroke-width='2' stroke-dasharray='5,5'/%3E%3C/svg%3E");
}

.doodle-2 {
    top: 60%;
    right: 10%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M20,20 L80,20 L80,80 L20,80 Z' fill='none' stroke='%234f46e5' stroke-width='2'/%3E%3C/svg%3E");
}

.doodle-3 {
    bottom: 10%;
    left: 15%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50,10 L90,90 L10,90 Z' fill='none' stroke='%234f46e5' stroke-width='2'/%3E%3C/svg%3E");
}

.doodle-4 {
    top: 30%;
    right: 5%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50,10 A40,40 0 1,0 50,90 A40,40 0 1,0 50,10' fill='none' stroke='%234f46e5' stroke-width='2'/%3E%3C/svg%3E");
}

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

.radial-progress {
    --value: 0;
    --size: 6rem;
    --thickness: 6px;
    animation: radial-progress-animation 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.radial-progress * {
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes radial-progress-animation {
    from {
        --value: 0;
    }
    to {
        --value: attr(data-value);
    }
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #818cf8;
}

/* GSAP ScrollTrigger animations */
[data-scroll] {
    opacity: 0;
    will-change: transform, opacity;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .doodle {
        display: none;
    }
    
    .doodle-text::after {
        height: 10px;
    }
}