/* Configuring Custom Colors for Tailwind via CSS Variables for easier tweaks */
:root {
    --gum-pink: #ff90e8;
    --gum-yellow: #ffc900;
    --gum-green: #23a094; /* Darker green for text readability or accents */
    --gum-blue: #dbeafe;
    --gum-purple: #c084fc;
}

/* Utility Classes */
.font-space {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}
.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Gumroad-style Button with improved effects */
.gum-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    border: 2px solid black;
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,1);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gum-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.gum-btn:hover::before {
    left: 100%;
}

.gum-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
}

.gum-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,1);
}

/* Gumroad-style Shadow for Cards */
.shadow-gum {
    box-shadow: 6px 6px 0px 0px rgba(0,0,0,1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shadow-gum:hover {
    box-shadow: 8px 8px 0px 0px rgba(0,0,0,1);
}

.shadow-gum-sm {
    box-shadow: 3px 3px 0px 0px rgba(0,0,0,1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shadow-gum-sm:hover {
    box-shadow: 5px 5px 0px 0px rgba(0,0,0,1);
}

/* Tailwind config injection for the CDN script (simulated via CSS classes) */
.bg-gum-pink { background-color: var(--gum-pink); }
.bg-gum-yellow { background-color: var(--gum-yellow); }
.bg-gum-blue { background-color: var(--gum-blue); }
.bg-gum-purple { background-color: var(--gum-purple); }
.text-gum-pink { color: var(--gum-pink); }
.text-gum-yellow { color: var(--gum-yellow); }
.text-gum-blue { color: #0ea5e9; }
.text-gum-purple { color: var(--gum-purple); }
.bg-gum-green { background-color: #bbf7d0; color: black; } /* Light green for badges */
.decoration-gum-yellow { text-decoration-color: var(--gum-yellow); }
.decoration-gum-green { text-decoration-color: var(--gum-green); }

/* Gradient backgrounds */
.gradient-section {
    background: linear-gradient(135deg, #f4f4f0 0%, #ffffff 100%);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.animate-slide-in {
    animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Floating animation for icons */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Skill Tags */
.skill-tag {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border: 2px solid black;
    background: white;
    box-shadow: 2px 2px 0px 0px black;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}
.skill-tag:hover {
    background: black;
    color: white;
    transform: translate(-2px, -2px) rotate(-2deg);
    box-shadow: 5px 5px 0px 0px var(--gum-pink);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-hover:hover {
    transform: translateY(-8px) rotate(-1deg);
}

/* Link underline animation */
a.link-underline {
    position: relative;
    text-decoration: none;
}

a.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 0;
    background-color: var(--gum-pink);
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a.link-underline:hover::after {
    width: 100%;
}

/* Form Input Focus Animation */
input:focus, textarea:focus {
    animation: inputPulse 0.3s ease-in-out;
}

@keyframes inputPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Selection styling */
::selection {
    background-color: var(--gum-pink);
    color: white;
}

::-moz-selection {
    background-color: var(--gum-pink);
    color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f4f4f0;
    border-left: 2px solid black;
}

::-webkit-scrollbar-thumb {
    background: var(--gum-pink);
    border: 2px solid black;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gum-yellow);
}

/* Navbar shadow on scroll */
nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Badge pulse animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}