/* Custom CSS for animations, specific styles, pointer, and color palette integration */
body {
    font-family: 'Inter', sans-serif; /* Using Inter font */
    background-color: #F0F0D7; /* Lightest color for main background */
    color: #727D73; /* Darkest for primary text */
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Custom pointer styles */
.custom-pointer-ring {
    width: 25px;
    height: 25px;
    border: 2px solid #AAB99A; /* Accent color */
    border-radius: 50%;
    position: fixed;
    pointer-events: none; /* Allows clicking through the pointer */
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0; /* Hidden by default, shown by JS */
}
.custom-pointer-dot {
    width: 6px;
    height: 6px;
    background-color: #727D73; /* Primary text color */
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.08s ease-out, opacity 0.2s ease; /* Faster follow for dot */
    opacity: 0; /* Hidden by default, shown by JS */
}
/* Pointer active state (e.g., on hover over links) */
body.pointer-active .custom-pointer-ring {
    width: 35px;
    height: 35px;
    border-color: #727D73;
    background-color: rgba(170, 185, 154, 0.2); /* #AAB99A with alpha */
}

/* --- Animation Keyframes --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Text shine animation for headings */
@keyframes shine {
    0% { background-position: -250% center; }
    100% { background-position: 250% center; }
}
.text-shine {
    background-image: linear-gradient(to right, #727D73 20%, #AAB99A 40%, #D0DDD0 50%, #AAB99A 60%, #727D73 80%);
    background-size: 250% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shine 6s linear infinite;
    display: inline-block; /* Important for background-clip to work well */
}

/* Card flip animation */
.flip-card { perspective: 1200px; }
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother bezier curve */
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner, .flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0.75rem; /* Tailwind 'rounded-xl' */
    padding: 1.5rem; /* Tailwind 'p-6' */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* Tailwind 'shadow-lg' */
}
/* Using provided palette for card faces */
.flip-card-front { background-color: #D0DDD0; color: #727D73; }
.flip-card-back { background-color: #AAB99A; color: #F0F0D7; transform: rotateY(180deg); }

/* Profile image pulse on hover */
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(170, 185, 154, 0.4); } /* #AAB99A */
    50% { transform: scale(1.07); box-shadow: 0 0 0 10px rgba(170, 185, 154, 0); }
}
.img-pulse:hover {
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated gradient background for sections */
@keyframes animatedBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animated-gradient-bg {
    background: linear-gradient(135deg, #F0F0D7, #D0DDD0, #AAB99A, #D0DDD0, #F0F0D7);
    background-size: 400% 400%; /* Larger size for smoother transition */
    animation: animatedBackground 20s ease infinite;
}

/* Scroll animation helper classes (toggled by JS) */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none !important; /* Override initial transform */
}
/* Initial states for different scroll animations */
.scroll-fade-in-up { transform: translateY(40px); }
.scroll-fade-in-left { transform: translateX(-40px); }
.scroll-fade-in-right { transform: translateX(40px); }
.scroll-zoom-in { transform: scale(0.9); }

/* Initial state for load animations (JS will remove opacity) */
.animate-on-load {
    opacity: 0;
    animation-fill-mode: forwards; /* Keep final state */
}
