/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for reusable transitions, animations, and theme colors */
:root {
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-standard: 0.3s ease;
    --transition-cubic: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-color: color 250ms ease;
    --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadow patterns */
    --shadow-small: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* Light Mode Color Palette */
    --bg-primary: #1a1410;
    --bg-secondary: #f7ecd9;
    --text-primary: #f7ecd9;
    --text-secondary: #1a1410;
    --border-primary: #f7ecd9;
    --surface: #f7ecd9;
    --selection-bg: rgba(247, 236, 217, 0.5);
    --toggle-bg: #f7ecd9;
    --toggle-border: #1a1410;
    --toggle-knob: #1a1410;
}

/* Dark Mode Color Palette */
body.dark-mode {
    --bg-primary: #f7ecd9;
    --bg-secondary: #1a1410;
    --text-primary: #1a1410;
    --text-secondary: #f7ecd9;
    --border-primary: #1a1410;
    --surface: #1a1410;
    --selection-bg: rgba(26, 20, 16, 0.4);
    --toggle-bg: #1a1410;
    --toggle-border: #f7ecd9;
    --toggle-knob: #f7ecd9;
}

/* Security: Prevent text selection and drag on images only */
img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth theme transition helper: temporarily applied on toggle */
body.theme-animating,
body.theme-animating *,
body.theme-animating *::before,
body.theme-animating *::after {
    transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, fill 300ms ease, stroke 300ms ease, box-shadow 300ms ease !important;
}

@media (prefers-reduced-motion: reduce) {
    body.theme-animating,
    body.theme-animating *,
    body.theme-animating *::before,
    body.theme-animating *::after {
        transition: none !important;
    }
}

/* Text selection styling - Light mode (white text on black bg) */
::selection {
    background: var(--selection-bg);
    color: inherit;
}

::-moz-selection {
    background: var(--selection-bg);
    color: inherit;
}

/* Security: Disable print styles */
@media print {
    * {
        display: none !important;
    }
}

/* Disable text selection globally by default */
* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Allow text selection only on readable content for accessibility */
.about-section p,
.project-description,
.contact-subtitle {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

body {
    font-family: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 0 10px 10px;
    transition: background-color var(--transition-standard), color var(--transition-standard);
}


.container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 2px solid var(--border-primary);
    transition: background-color var(--transition-standard), border-color var(--transition-standard);
    overflow: hidden;
}

/* Desktop layout: full-width with no container border */
@media screen and (min-width: 769px) {
    body {
        padding: 0;
    }
    .container {
        max-width: none;
        width: 100%;
        margin: 0;
        border: none;
        transition: background-color var(--transition-standard);
    }
    body.dark-mode .container {
        border: none;
    }
}

/* Theme toggle styles - Modern sliding toggle switch */
.theme-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 20;
}

.theme-checkbox {
    display: none;
}

/* Toggle switch track (pill-shaped background) */
.theme-label {
    display: block;
    cursor: pointer;
    position: relative;
    width: 54px;
    height: 28px;
    background: var(--toggle-bg);
    border: 2px solid var(--toggle-border);
    border-radius: 28px;
    transition: var(--transition-cubic);
    box-shadow: var(--shadow-medium);
}

/* Hover effects */
.theme-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .theme-label:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.theme-label:active {
    transform: scale(0.98);
}

/* Toggle knob (circle that slides) */
.theme-label::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--toggle-knob);
    transition: var(--transition-cubic);
    box-shadow: var(--shadow-small);
}

/* Knob position when checked (dark mode) */
.theme-checkbox:checked + .theme-label::before {
    left: 28px;
}

/* Header styles */
.header {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: background-color var(--transition-standard), color var(--transition-standard);
}

.ascii-bg {
    position: absolute;
    inset: 0;
    z-index: 0; /* beneath content, above header background */
    opacity: 0.18;
    pointer-events: none;
    padding: 0; /* full-bleed background */
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1; /* ensure content sits above ASCII background */
}

.profile-image {
    width: 80px;
    height: 80px;
    border: 2px solid var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    transition: border-color var(--transition-standard);
    background: var(--bg-secondary); /* block ASCII from showing through image circle */
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
}

.name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: none;
}

.title {
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 0.2px;
}

.location {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.85;
}

/* Blinking caret for typing effect */
.title.typing {
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.title.typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 4px;
    background: var(--text-secondary);
    vertical-align: middle;
    animation: caret-fade 1s ease-in-out infinite;
}

@keyframes caret-fade {
    0% { opacity: 1; }
    50% { opacity: 0.15; }
    100% { opacity: 1; }
}

/* Main content styles */
.main-content {
    padding: 20px;
}

section {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(247, 236, 217, 0.15);
    padding-bottom: 25px;
    transition: border-color var(--transition-standard);
}

body.dark-mode section {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color var(--transition-standard);
}

/* ASCII canvas */
.ascii-canvas {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.15;
    white-space: pre;
    display: block;
    margin: 0;
    width: 100%;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(0,0,0,0.6);
    border-radius: 10px;
    padding: 12px 10px;
    overflow: hidden;
}

body.dark-mode .ascii-canvas {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.6);
}

/* When used as background, remove box/border visuals */
.ascii-canvas.ascii-bg {
    background: transparent;
    border: 0;
    border-radius: 0;
}

body.dark-mode .ascii-canvas.ascii-bg {
    background: transparent;
}

/* About section */
.about-section {
    text-align: left;
}

.about-section p {
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    text-align: left;
    transition: color var(--transition-standard);
    opacity: 0.95;
}

.about-section p:last-child {
    margin-bottom: 0;
}

/* Drop cap styling for first letter */
.drop-cap {
    display: inline-block;
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
    font-style: normal;
    color: var(--text-primary);
    margin-right: 2px;
    vertical-align: baseline;
    font-family: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color var(--transition-standard);
}

/* Style the apostrophe to be smaller and positioned properly */
.drop-cap-apostrophe {
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 400;
    color: var(--text-primary);
    vertical-align: super;
    margin-left: -2px;
    margin-right: 2px;
    transition: color var(--transition-standard);
}

/* Mobile adjustments for drop cap */
@media (max-width: 768px) {
    .drop-cap {
        font-size: 2.5rem;
        margin-right: 3px;
    }
}

@media (max-width: 480px) {
    .drop-cap {
        font-size: 2rem;
        margin-right: 2px;
    }
}

/* Skills section */
.skills-section {
    text-align: left;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.skill-category {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-category-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: rgba(247, 236, 217, 0.08);
    color: var(--text-primary);
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(247, 236, 217, 0.25);
    display: inline-block;
    transition: var(--transition-standard);
}

.skill-tag:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--bg-secondary);
}

body.dark-mode .skill-tag {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.2);
}

body.dark-mode .skill-tag:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--bg-secondary);
}

/* Projects section */
.projects-section {
    text-align: left;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-item {
    background: transparent;
    border-bottom: 1px solid rgba(247, 236, 217, 0.3);
    padding: 20px 0;
    transition: background-color var(--transition-color), color var(--transition-color), border-color var(--transition-color), transform 200ms ease;
}

.project-item:last-child {
    border-bottom: none;
}

body.dark-mode .project-item {
    background: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.2);
}

/* Project Header */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.project-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    letter-spacing: 0.5px;
    transition: color var(--transition-color);
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--text-primary);
    background: transparent;
    transition: background-color var(--transition-color), color var(--transition-color), transform var(--transition-fast);
    flex-shrink: 0;
}

.project-link:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transform: translateY(-2px);
}

body.dark-mode .project-link {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

body.dark-mode .project-link:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.project-link-icon {
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

/* Project Description */
.project-description {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
    transition: color var(--transition-color);
}

/* Tech Tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--bg-secondary);
    display: inline-block;
    transition: background-color var(--transition-color), color var(--transition-color), border-color var(--transition-color);
}

.tech-tag:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

body.dark-mode .tech-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--bg-secondary);
}

body.dark-mode .tech-tag:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Contact section - Modern Card Design */
.contact-section {
    text-align: left;
}

.contact-subtitle {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    opacity: 0.85;
    font-weight: 400;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(247, 236, 217, 0.03);
    border: 1px solid rgba(247, 236, 217, 0.2);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-cubic);
    position: relative;
    overflow: hidden;
}

body.dark-mode .contact-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

/* Hover gradient effect */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 236, 217, 0.1), transparent);
    transition: left 0.5s ease;
}

body.dark-mode .contact-card::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-primary);
    background: rgba(247, 236, 217, 0.08);
    box-shadow: var(--shadow-large);
}

body.dark-mode .contact-card:hover {
    border-color: var(--border-primary);
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1.5px solid var(--bg-secondary);
    transition: var(--transition-standard);
}

body.dark-mode .contact-card-icon {
    background: var(--bg-secondary);
    border-color: var(--bg-secondary);
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.08) rotate(5deg);
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
}

body.dark-mode .contact-card-icon svg {
    color: var(--text-secondary);
}

/* Reduce optical thickness of Gmail icon in dark mode to match light mode appearance */
body.dark-mode #email-link .contact-card-icon svg {
    transform: scale(0.92);
}

.contact-card-content {
    flex: 1;
    text-align: left;
}

.contact-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.contact-card-text {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.75;
    color: var(--text-primary);
}

.contact-card-arrow {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.5;
    transition: var(--transition-standard);
    color: var(--text-primary);
}

.contact-card:hover .contact-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.footer {
    background: var(--bg-secondary);
    padding: 15px 20px;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition-standard);
}

body.dark-mode .footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-top: 1px solid var(--text-secondary);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-content p {
    margin: 0;
    text-align: center;
    width: 100%;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    .container {
        border: none;
        background: transparent;
        transition: none;
        overflow: visible;
    }

    body.dark-mode .container {
        border: none;
        background: transparent;
    }

    /* Compact toggle for mobile */
    .theme-toggle {
        top: 10px;
        right: 10px;
    }

    .theme-label {
        width: 48px;
        height: 24px;
    }

    .theme-label::before {
        width: 18px;
        height: 18px;
        top: 1px;
        left: 1px;
    }

    .theme-checkbox:checked + .theme-label::before {
        left: 25px;
    }

    .header {
        padding: 20px 15px;
    }
    
    .profile-image {
        width: 70px;
        height: 70px;
    }
    
    .profile-pic {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .title {
        font-size: 0.9rem;
    }
    
    .location {
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 15px;
    }
    
    section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    .about-section p {
        font-size: 0.9rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .skill-category-title {
        font-size: 0.85rem;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .projects-list {
        gap: 15px;
    }

    .project-item {
        padding: 15px 0;
    }

    .project-title {
        font-size: 1rem;
    }

    .project-description {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .tech-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .contact-subtitle {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-card {
        padding: 12px 14px;
    }

    .contact-card-icon {
        width: 38px;
        height: 38px;
    }

    .contact-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-card-title {
        font-size: 0.9rem;
    }

    .contact-card-text {
        font-size: 0.75rem;
    }

    .footer {
        padding: 12px 15px;
        font-size: 0.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Extra compact toggle for very small screens */
    .theme-toggle {
        top: 8px;
        right: 8px;
    }

    .theme-label {
        width: 44px;
        height: 22px;
        border-width: 1.5px;
    }

    .theme-label::before {
        width: 16px;
        height: 16px;
        top: 1.5px;
        left: 1.5px;
    }

    .theme-checkbox:checked + .theme-label::before {
        left: 23px;
    }

    .name {
        font-size: 1.3rem;
    }

    .about-section p {
        font-size: 0.85rem;
        line-height: 1.65;
    }

    .skills-grid {
        gap: 12px;
    }

    .skill-category-title {
        font-size: 0.8rem;
    }

    .skills-list {
        gap: 6px;
    }

    .skill-tag {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .project-title {
        font-size: 0.95rem;
    }

    .project-description {
        font-size: 0.85rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .contact-subtitle {
        font-size: 0.8rem;
    }

    .contact-card {
        padding: 10px 12px;
    }

    .contact-card-icon {
        width: 36px;
        height: 36px;
    }

    .contact-card-icon svg {
        width: 18px;
        height: 18px;
    }

    .contact-card-title {
        font-size: 0.85rem;
    }

    .contact-card-text {
        font-size: 0.7rem;
    }

    .contact-card-arrow {
        font-size: 1.1rem;
    }
}

/* Open to Work Badge - Enhanced Modern Design */
.open-to-work-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 10px 20px;
    margin-top: 8px;
    border: 2px solid #1a1410;
    background: var(--surface);
    color: #1a1410;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: badge-pulse 2.5s ease-in-out infinite;
    cursor: pointer;
}

/* Pulsing animation for attention */
@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.1),
            0 0 0 0 rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.15),
            0 0 0 6px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* Animated gradient background */
.open-to-work-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.08),
        transparent
    );
    animation: badge-shine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes badge-shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Glowing dot indicator */
.open-to-work-badge::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 
        0 0 8px rgba(34, 197, 94, 0.6),
        0 0 16px rgba(34, 197, 94, 0.4);
    animation: badge-glow 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes badge-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 
            0 0 8px rgba(34, 197, 94, 0.6),
            0 0 16px rgba(34, 197, 94, 0.4);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
        box-shadow: 
            0 0 12px rgba(34, 197, 94, 0.8),
            0 0 24px rgba(34, 197, 94, 0.5);
    }
}

/* Hover effects */
.open-to-work-badge:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: #1a1410;
    box-shadow: 
        0 6px 20px rgba(26, 20, 16, 0.2),
        0 0 0 4px rgba(26, 20, 16, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: none;
}

/* Dark mode pulse animation with light shadows */
@keyframes badge-pulse-dark {
    0%, 100% {
        box-shadow: 
            0 2px 8px rgba(247, 236, 217, 0.15),
            0 0 0 0 rgba(247, 236, 217, 0.3),
            inset 0 1px 0 rgba(247, 236, 217, 0.1);
    }
    50% {
        box-shadow: 
            0 4px 16px rgba(247, 236, 217, 0.25),
            0 0 0 6px rgba(247, 236, 217, 0.15),
            inset 0 1px 0 rgba(247, 236, 217, 0.15);
    }
}

/* Dark mode styles for badge */
body.dark-mode .open-to-work-badge {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--text-secondary);
    box-shadow:
        0 2px 8px rgba(247, 236, 217, 0.15),
        inset 0 1px 0 rgba(247, 236, 217, 0.1);
    animation: badge-pulse-dark 2.5s ease-in-out infinite;
}

body.dark-mode .open-to-work-badge::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(247, 236, 217, 0.2),
        transparent
    );
}

body.dark-mode .open-to-work-badge:hover {
    border-color: var(--text-secondary);
    box-shadow:
        0 6px 20px rgba(247, 236, 217, 0.3),
        0 0 0 4px rgba(247, 236, 217, 0.2),
        inset 0 1px 0 rgba(247, 236, 217, 0.2);
}

/* Mobile responsiveness for badge */
@media (max-width: 768px) {
    .open-to-work-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
        letter-spacing: 1px;
    }
    
    .open-to-work-badge::after {
        width: 7px;
        height: 7px;
    }
}

@media (max-width: 480px) {
    .open-to-work-badge {
        font-size: 0.7rem;
        padding: 7px 14px;
        letter-spacing: 0.8px;
    }
    
    .open-to-work-badge::after {
        width: 6px;
        height: 6px;
    }
}



