/* ═══════════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════════ */
:root {
    --bg-main:            #0B0F19;
    --bg-darker:          #060911;
    --bg-card:            rgba(18, 24, 38, 0.65);
    --primary:            #2563eb;
    --primary-soft:       rgba(37, 99, 235, 0.12);
    --secondary:          #94A3B8;
    --border-glass:       rgba(255, 255, 255, 0.07);
    --border-glass-hover: rgba(37, 99, 235, 0.25);
    --text-main:          #F8FAFC;
}

/* ═══════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════ */
body {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.max-w-container { max-width: 1200px; }

.section-padding {
    padding-top:    clamp(60px, 8vw, 100px) !important;
    padding-bottom: clamp(60px, 8vw, 100px) !important;
}

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
.bg-navbar {
    background-color: rgba(6, 9, 11, 0.8) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: border-color 0.3s ease;
}

.nav-link {
    color: var(--secondary) !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.25s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1.5px;
    background: #60a5fa;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}
.nav-link:hover::after,
.nav-link:focus::after  { width: 100%; }
.nav-link:hover,
.nav-link:focus         { color: #FFF !important; }

/* ═══════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════ */
.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-primary        { color: #60a5fa !important; }
.text-primary-link   { color: #60a5fa !important; text-decoration: none; }
.text-primary-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   HERO ENTRANCE ANIMATIONS
═══════════════════════════════════════════════════ */
.hero-badge {
    opacity: 0; transform: translateY(-16px);
    animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.hero-headline {
    opacity: 0; transform: translateY(24px);
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}
.hero-subtext {
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}
.hero-cta {
    opacity: 0; transform: translateY(16px);
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.82s forwards;
}
.hero-image {
    opacity: 0; transform: scale(0.94) translateY(12px);
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* Cursor blink on accent text */
.text-primary.cursor-blink::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    color: #60a5fa;
    animation: cursorBlink 1.1s step-end infinite;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity  0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.reveal--left  { transform: translateX(-32px); }
.reveal.reveal--right { transform: translateX(32px);  }
.reveal.is-visible    { opacity: 1; transform: translate(0, 0); }

.reveal-stagger > *:nth-child(1) { transition-delay: 0s;   }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; }

/* Section title underline sweep */
.section-title-line {
    display: inline-block;
    position: relative;
}
.section-title-line::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #2563eb, #60a5fa, transparent);
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-title-line.is-visible::after { width: 100%; }

/* ═══════════════════════════════════════════════════
   PULSE
═══════════════════════════════════════════════════ */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1);    }
    50%       { opacity:.5; transform: scale(0.92); }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ═══════════════════════════════════════════════════
   GLASS CARDS
═══════════════════════════════════════════════════ */
.glass-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover) !important;
    box-shadow: 0 12px 40px 0 rgba(37, 99, 235, 0.12);
}
.glass-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(-4deg);
}

/* ═══════════════════════════════════════════════════
   SKILL TAGS
═══════════════════════════════════════════════════ */
.skill-tag {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    display: inline-block;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    cursor: default;
}
.skill-tag:hover {
    background-color: rgba(37, 99, 235, 0.18) !important;
    color: #93c5fd !important;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════
   WORK - TAB BAR
═══════════════════════════════════════════════════ */
.work-tab-bar {
    display: inline-flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 5px;
}

.work-tab-btn {
    background: transparent;
    border: none;
    color: var(--secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.work-tab-btn:hover {
    color: #FFF;
    background: rgba(255, 255, 255, 0.05);
}
.work-tab-btn.active {
    background: var(--primary);
    color: #FFF;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

/* Tab panels */
.work-tab-panel {
    animation: fadeTabIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes fadeTabIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ═══════════════════════════════════════════════════
   PROJECT CARDS
═══════════════════════════════════════════════════ */
.project-eyebrow {
    color: #60a5fa;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-badge-tag {
    background: var(--primary-soft);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

/* Bullet list */
.project-bullets {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.project-bullets li {
    color: var(--secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
}
.project-bullets li::before {
    content: '';
    position: absolute;
    left: 0; top: 9px;
    width: 6px; height: 6px;
    background: #2563eb;
    border-radius: 50%;
    flex-shrink: 0;
}
.project-bullets li strong { color: #FFF; }

/* Tech tag chips */
.tech-tag {
    background: rgba(37, 99, 235, 0.08);
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    display: inline-block;
}

/* Divider between projects */
.project-divider {
    border: none;
    border-top: 1px solid var(--border-glass);
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   UX CASE STUDY - META ROW
═══════════════════════════════════════════════════ */
.ux-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
}
.ux-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ux-meta-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #60a5fa;
}
.ux-meta-value {
    font-size: 0.88rem;
    color: var(--secondary);
}

/* ═══════════════════════════════════════════════════
   UX CASE STUDY - PROCESS GRID
═══════════════════════════════════════════════════ */
.ux-process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .ux-process-grid { grid-template-columns: 1fr; }
}

.ux-process-step {
    background: rgba(18, 24, 38, 0.55);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ux-process-step:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
}

.ux-step-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.ux-step-icon {
    background: var(--primary-soft);
    color: #60a5fa;
    padding: 10px;
    border-radius: 10px;
    display: inline-flex;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ux-process-step:hover .ux-step-icon {
    transform: scale(1.1) rotate(-4deg);
}

.ux-step-number {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #60a5fa;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.ux-step-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #FFF;
    margin: 0;
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════
   UX CASE STUDY - PROBLEM / GOAL
═══════════════════════════════════════════════════ */
.ux-pg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 0;
}
@media (max-width: 767px) {
    .ux-pg-grid { grid-template-columns: 1fr; }
}
.ux-pg-card {
    background: rgba(18, 24, 38, 0.55);
    border: 1px solid var(--border-glass);
    border-left: 3px solid #2563eb;
    border-radius: 12px;
    padding: 20px 22px;
}
.ux-pg-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #60a5fa;
    margin-bottom: 8px;
}
.ux-pg-text {
    color: var(--secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   UX CASE STUDY - OUTCOMES
═══════════════════════════════════════════════════ */
.ux-outcome-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 8px;
}
@media (max-width: 991px) {
    .ux-outcome-grid { grid-template-columns: repeat(2, 1fr); }
}
.ux-outcome-card {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
}
.ux-outcome-value {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFF;
    line-height: 1.2;
    margin-bottom: 4px;
}
.ux-outcome-label {
    display: block;
    font-size: 0.78rem;
    color: var(--secondary);
    line-height: 1.4;
}

.ux-section-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFF;
    margin: 0 0 14px;
}

/* ═══════════════════════════════════════════════════
   CHATBOT WIDGET
═══════════════════════════════════════════════════ */
.chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chatbot-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
}
.chatbot-toggle .chatbot-icon-close { display: none; }
.chatbot-widget.chatbot-open .chatbot-icon-open { display: none; }
.chatbot-widget.chatbot-open .chatbot-icon-close { display: block; }

.chatbot-panel {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 500px;
    max-height: calc(100vh - 140px);
    background: var(--bg-darker);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.chatbot-widget.chatbot-open .chatbot-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-glass);
    background: var(--bg-card);
    flex-shrink: 0;
}
.chatbot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    flex-shrink: 0;
}
.chatbot-header-title {
    margin: 0;
    color: #FFF;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.chatbot-header-status {
    margin: 2px 0 0;
    color: var(--secondary);
    font-size: 0.74rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.chatbot-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}
.chatbot-close-btn {
    background: transparent;
    border: none;
    color: var(--secondary);
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}
.chatbot-close-btn:hover {
    color: #FFF;
    background: rgba(255, 255, 255, 0.06);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chatbot-messages::-webkit-scrollbar { width: 6px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--border-glass-hover); border-radius: 10px; }

.chatbot-msg {
    max-width: 84%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.5;
    white-space: pre-line;
}
.chatbot-msg.bot {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: #E2E8F0;
    border-bottom-left-radius: 4px;
}
.chatbot-msg.user {
    align-self: flex-end;
    background: var(--primary);
    color: #FFF;
    border-bottom-right-radius: 4px;
}

.chatbot-typing {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
}
.chatbot-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    animation: chatbot-bounce 1.2s infinite ease-in-out;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatbot-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-5px); opacity: 1; }
}

.chatbot-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 14px;
    flex-shrink: 0;
}
.chatbot-chip {
    background: var(--primary-soft);
    border: 1px solid var(--border-glass-hover);
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.chatbot-chip:hover {
    background: var(--primary);
    color: #FFF;
}

.chatbot-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-card);
    flex-shrink: 0;
}
.chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    color: #FFF;
    padding: 10px 16px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}
.chatbot-input::placeholder { color: var(--secondary); }
.chatbot-input:focus { border-color: var(--border-glass-hover); }
.chatbot-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.chatbot-send-btn:hover { transform: scale(1.06); }

@media (max-width: 480px) {
    .chatbot-widget { bottom: 16px; right: 16px; }
    .chatbot-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 120px);
        bottom: 72px;
        right: -8px;
    }
}

/* ═══════════════════════════════════════════════════
   CONTACT INFO PILLS
═══════════════════════════════════════════════════ */
.contact-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    color: #FFF;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.contact-info-pill .material-symbols-outlined {
    color: #60a5fa;
}
.contact-info-pill:hover {
    border-color: var(--border-glass-hover);
    background: rgba(37, 99, 235, 0.08);
    color: #FFF;
    transform: translateY(-2px);
}
.contact-info-pill--static {
    cursor: default;
}
.contact-info-pill--static:hover {
    border-color: var(--border-glass);
    background: rgba(255, 255, 255, 0.03);
    transform: none;
}

/* ═══════════════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════════════ */
.timeline-row {
    background: rgba(18, 24, 38, 0.3);
    border: 1px solid var(--border-glass) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.timeline-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent);
    border-radius: 16px 0 0 16px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-row:hover::before      { width: 100%; }
.timeline-row:hover              { border-color: var(--border-glass-hover) !important; transform: translateX(6px); }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn-primary {
    background-color: var(--primary) !important;
    border: none !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    background-color: #1d4ed8 !important;
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-custom {
    border: 2px solid var(--border-glass) !important;
    color: #FFF !important;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-outline-custom:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: #FFF !important;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   ICON WRAPPER
═══════════════════════════════════════════════════ */
.icon-wrapper {
    background-color: var(--primary-soft) !important;
    color: #60a5fa !important;
    padding: 12px;
    border-radius: 12px;
    display: inline-flex;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════
   PROJECT THUMBNAILS
═══════════════════════════════════════════════════ */
.project-thumbnail-wrapper {
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}
.project-thumbnail-wrapper:hover {
    box-shadow: 0 28px 56px rgba(37, 99, 235, 0.18);
}
.project-thumbnail-wrapper img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-thumbnail-wrapper:hover img {
    transform: scale(1.04);
}

/* ═══════════════════════════════════════════════════
   FORM
═══════════════════════════════════════════════════ */
.form-control {
    background-color: rgba(6, 9, 17, 0.7) !important;
    border: 1px solid var(--border-glass) !important;
    color: #FFF !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control::placeholder { color: #4b5563; }
.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.2) !important;
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.footer-link:hover { color: #FFF; }

/* ═══════════════════════════════════════════════════
   SURFACE UTILITIES
═══════════════════════════════════════════════════ */
.bg-surface-container-low  { background-color: var(--bg-darker) !important; }
.bg-surface-container-high { background-color: rgba(255, 255, 255, 0.05) !important; }
.bg-inverse-surface {
    background-color: #030712 !important;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

/* ═══════════════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0);    }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0);     }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0);       }
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal,
    .hero-badge, .hero-headline, .hero-subtext, .hero-cta, .hero-image {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════════
   CLICKABLE CARDS & MODALS
═══════════════════════════════════════════════════ */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.clickable-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-8px);
}

.clickable-card .project-thumbnail-wrapper img {
    height: 200px; /* Uniform height for cards */
}

.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Custom Modal Styling */
.custom-modal .modal-content {
    background-color: var(--bg-darker) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.custom-modal .modal-header {
    border-bottom: 1px solid var(--border-glass) !important;
}

.custom-modal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.custom-modal .btn-close-white:hover {
    opacity: 1;
}

/* Darken backdrop */
.modal-backdrop.show {
    opacity: 0.7;
    background-color: var(--bg-main);
}
