body {
    background-color: #f8fafc;
    color: #0f172a;
}

.bg-grid-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.06) 1px, transparent 0);
    background-size: 24px 24px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}
.glass-panel:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    transition: all 0.3s ease;
}

.perspective-1000 { perspective: 1000px; }
.card-tilt {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}
.card-tilt:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(-3deg);
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.2);
}

@keyframes animationIn {
    0% { opacity: 0; transform: translateY(30px); filter: blur(12px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0px); }
}

.animate-on-scroll { 
    animation-play-state: paused !important;
    opacity: 0;
}
.animate-on-scroll.animate { 
    animation: animationIn 0.8s ease-out both !important;
    animation-play-state: running !important; 
}

.border-gradient-element { position: relative; }
.border-gradient-element::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: var(--border-radius-before, inherit);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background: var(--border-gradient);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

@keyframes pulseSlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}
.animate-pulse-slow { animation: pulseSlow 6s ease-in-out infinite; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@keyframes clipReveal {
    0% { clip-path: inset(100% 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
.clip-img { clip-path: inset(100% 0 0 0); }
.clip-img.animate { animation: clipReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards !important; }

/* Accordion CSS */
.accordion-content {
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, padding 0.4s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
}
.accordion-item.active .accordion-content {
    max-height: 500px;
    opacity: 1;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}
