/* Additions to style.css for custom vanilla animations that replace Framer Motion */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), 
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Modal animations */
.modal-overlay {
    transition: opacity 0.3s ease;
}

.modal-content {
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Blinking cursor for typing animation */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--color-text-muted);
    animation: blink 1s step-end infinite;
    margin-left: 4px;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Glassmorphism utility */
.glass-panel {
    background-color: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* Custom Tailwind Classes (JIT compile fallbacks) */
.bg-\[\#14151B\] { background-color: #14151B; }
.bg-\[\#1A1C23\] { background-color: #1A1C23; }
.bg-\[\#32f08c\] { background-color: #32f08c; }
.bg-\[\#2A2C32\] { background-color: #2A2C32; }
.border-\[\#2B2D31\] { border-color: #2B2D31; }
.border-\[\#32f08c\] { border-color: #32f08c; }
.text-\[\#32f08c\] { color: #32f08c; }
.text-\[\#0F1115\] { color: #0F1115; }
.text-\[\#5865F2\] { color: #5865F2; }
.hover\:bg-\[\#2B2D31\]:hover { background-color: #2B2D31; }
.hover\:bg-\[\#5865F2\]\/10:hover { background-color: rgba(88, 101, 242, 0.1); }
.hover\:text-\[\#5865F2\]:hover { color: #5865F2; }
.hover\:text-\[\#32f08c\]:hover { color: #32f08c; }
.hover\:border-\[\#32f08c\]:hover { border-color: #32f08c; }
.focus\:border-\[\#32f08c\]:focus { border-color: #32f08c; }
.border-\[\#2B2D31\]\/50 { border-color: rgba(43, 45, 49, 0.5); }

/* Plugin request modal */
.plugin-modal-panel {
    position: relative;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.plugin-modal-panel::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: calc(1rem + 8px);
    border: 1px solid rgba(50, 240, 140, 0.3);
    box-shadow: 0 0 0 1px rgba(50, 240, 140, 0.08);
    pointer-events: none;
    opacity: 0.9;
}

.plugin-form-row {
    position: relative;
    align-items: start;
}

.plugin-field {
    position: relative;
}

.plugin-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d1d5db;
}

.plugin-input,
.plugin-select-trigger,
.plugin-textarea {
    border: 1px solid #2b2d31;
    background: linear-gradient(180deg, rgba(20, 21, 27, 0.98), rgba(16, 18, 24, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.plugin-input,
.plugin-select-trigger {
    min-height: 52px;
}

.plugin-input::placeholder,
.plugin-textarea::placeholder,
#category-selected-text {
    color: #8b90a0;
}

.plugin-input:focus,
.plugin-textarea:focus,
.plugin-select-trigger:focus,
.plugin-select-trigger.is-open {
    border-color: #32f08c;
    box-shadow: 0 0 0 4px rgba(50, 240, 140, 0.08);
}

.plugin-textarea {
    min-height: 136px;
    line-height: 1.65;
}

#custom-category-dropdown {
    z-index: 20;
}

#custom-category-dropdown.dropdown-open {
    z-index: 80;
}

.plugin-select-menu {
    margin-top: 0.25rem;
    max-height: 220px;
    overflow-y: auto;
    border-color: rgba(67, 71, 82, 0.95);
    background: linear-gradient(180deg, rgba(27, 29, 36, 0.98), rgba(17, 19, 24, 0.98));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
}

.category-option {
    position: relative;
}

.category-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.plugin-submit {
    letter-spacing: 0.18em;
}

@media (max-width: 767px) {
    .plugin-modal-panel {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }

    .plugin-modal-panel::before {
        inset: -5px;
        border-radius: calc(1.25rem + 5px);
    }

    .plugin-input,
    .plugin-select-trigger {
        min-height: 48px;
    }
}

/* Experience list */
.experience-list {
    border-top: 1px solid var(--color-border);
}

.experience-entry {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.experience-entry-image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
}

.experience-entry-image--contain {
    object-fit: contain;
    padding: 0.45rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.experience-entry-main {
    min-width: 0;
}

.experience-entry-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.experience-entry-title {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.05;
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.35rem;
}

.experience-entry-role {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.experience-entry-meta {
    flex-shrink: 0;
}

.experience-status {
    display: inline-flex;
    align-items: center;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.experience-status-active {
    color: #32f08c;
}

.experience-status-inactive {
    color: #9ca3af;
}

.experience-status-project {
    color: #818cf8;
}

.experience-entry-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-entry-links a,
.experience-entry-links span {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.experience-entry-links a:hover {
    color: var(--color-text-primary);
}

@media (max-width: 767px) {
    .experience-entry {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 1rem;
        padding: 1.25rem 0;
    }

    .experience-entry-image {
        width: 56px;
        height: 56px;
        border-radius: 0.9rem;
    }

    .experience-entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }
}

/* Contact section */
.contact-clean-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-radius: 1.75rem;
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, rgba(18, 20, 25, 0.92), rgba(12, 14, 18, 0.96));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.contact-clean-kicker {
    margin: 0 0 0.8rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.contact-clean-title {
    margin: 0 0 0.9rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 0.98;
    font-weight: 900;
    color: #fff;
}

.contact-clean-text {
    margin: 0;
    max-width: 38rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.contact-clean-actions {
    display: grid;
    gap: 0.9rem;
}

.contact-clean-link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.contact-clean-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.16);
    background-color: rgba(255, 255, 255, 0.04);
}

.contact-clean-link-label {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.contact-clean-link-subtext {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
}

@media (max-width: 900px) {
    .contact-clean-card {
        grid-template-columns: 1fr;
    }
}
