body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: rgb(25, 25, 25);
    overflow-x: hidden;
}

main {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 0 20px;
}

.container {
    padding-top: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Profile section adjustments */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    /* Adjust this value to control space above profile */
}

h1,
h2 {
    margin: 0;
    /* Remove default heading margins */
}

/* Reusable components */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.card {
    background: white;
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0.25rem;
}

/* Project Cards */
.project-card {
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.project-content {
    padding: var(--spacing-md);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
    font-size: 0.875rem;
    padding-bottom: 40px;
    margin-bottom: 10px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
}

.social-link:hover {
    color: var(--text-primary);
}

.social-link::after {
    color: var(--text-primary);
}

/* Sidebar Navigation */
/* Desktop Navigation */
.sidebar {
    width: 65px;
    height: 100vh;
    z-index: 1;
    top: 0;
    left: 0;
    position: fixed;
    will-change: transform;
    top: 0;
    flex: none;
}

.nav-border {
    position: sticky;
    height: 100vh;
    width: 65px;
    top: 0;
    left: 0;
    overflow: visible;
    opacity: 1;
}

.nav-inline {
    background-color: #343434;
    opacity: 1;
    flex: none;
    height: 100%;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
}

.nav-items {
    position: fixed;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 24px;
}

.nav-item {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Icon Styles */
.icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    left: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    z-index: 101;
    color: var(--text-primary);
    transform: translateX(-8px) translateY(-50%);
    transition: all 0.1s ease-out;
}

.shortcut {
    background: #2a2a2a;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    line-height: 1;
    color: var(--text-secondary);
    box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.3);
}

/* Hover States */
.nav-item:hover {
    color: var(--text-primary);
}

.nav-item.active {
    color: var(--text-primary);
}

.nav-item:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Fix for Safari mobile bottom bar */
@supports (-webkit-touch-callout: none) {
    .mobile-nav {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* Fix for very small screens */
@media (max-height: 600px) {
    .nav-items {
        gap: 24px;
    }
}

/* Fix for ultra-wide screens */
@media (min-width: 100%) {
    .sidebar {
        left: calc((100vw - 1920px) / 2);
    }
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.social-link .social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    /* Default color */
    transition: color 0.2s ease;
}

.social-link .social-icon svg {
    width: 100%;
    height: 100%;
}

.social-link .social-icon svg path {
    fill: currentColor;
    /* This will use the parent's color */
    transition: fill 0.2s ease;
}

/* Hover effects */
.social-link:hover .social-icon {
    color: var(--text-primary);
    /* Lighter color on hover */
}

.social-link:hover .social-icon svg path {
    fill: var(--text-primary);
    /* Lighter color for SVG on hover */
}

/* Label on hover */
.social-link::after {
    content: attr(data-label);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 5px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: max-content;
}

.social-link:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Buttons */
.contact-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-background);
    padding: 12px 24px;
    border-radius: 24px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    padding: 12px 24px;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Work Cards */
.work-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 540px;
    /* Exact width */
}

.work-card {
    position: relative;
    display: block;
    width: 100%;
    height: 316px;
    /* Exact height */
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-4px);
}

.work-title {
    position: absolute;
    top: 32px;
    left: 32px;
    z-index: 2;
    font-weight: 500;
    color: var(--color-text);
    font-size: 18px;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.work-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.03);
}

/* Add a subtle gradient overlay to ensure title readability */
.work-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0) 30%);
    z-index: 1;
}

.work-content {
    padding: 24px;
}

.work-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.work-year,
.work-category {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.work-category::before {
    content: "•";
    margin-right: 12px;
}

.work-description {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.view-all {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all:hover {
    color: var(--color-text);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 24px auto;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 12px 16px;
    border-radius: 24px;
    color: var(--color-text);
    font-size: 14px;
}

.newsletter-form button {
    background: var(--color-text);
    color: var(--color-background);
    padding: 12px 24px;
    border-radius: 24px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Subscriber Count */
.subscriber-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.footer-links {
    margin-top: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.separator {
    margin: 0 var(--spacing-xs);
}

/* Store Cards */
.store-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.store-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.store-image {
    position: relative;
    padding-bottom: 66.67%;
    /* 3:2 aspect ratio */
    overflow: hidden;
}

.store-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.store-card:hover .store-image img {
    transform: scale(1.05);
}

.store-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-text);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.store-content {
    padding: 24px;
}

.store-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.store-category {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.store-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.store-description {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Hover animation for price */
.store-card:hover .store-price {
    color: #0066FF;
    /* Accent color on hover */
}

/* Store List Styles */
.store-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.store-item-main:hover {
    background: rgba(255, 255, 255, 0.03);
}

.store-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.store-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.store-icon img {
    width: 24px;
    height: 24px;
}

.store-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.store-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.store-description {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.store-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-price {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
}

.store-arrow {
    font-size: 18px;
    color: var(--color-text-secondary);
    transition: transform 0.2s ease;
}

.store-item-main:hover .store-arrow {
    transform: translateX(4px);
    color: var(--color-text);
}

/* Writing List Styles */
.writing-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.writing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.writing-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.writing-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.writing-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.writing-icon img {
    width: 24px;
    height: 24px;
}

.writing-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.writing-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.writing-description {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.writing-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.writing-date {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.writing-arrow {
    font-size: 18px;
    color: var(--color-text-secondary);
    transition: transform 0.2s ease;
}

.writing-item:hover .writing-arrow {
    transform: translateX(4px);
    color: var(--color-text);
}

.profile-image img {
    width: 100%;
    height: 130%;
    object-fit: cover;
}

/* Hero Content */
.hero-content {
    margin-bottom: 32px;
    width: 100%;
    max-width: 540px;
    /* Constrain text width */
}

.hero-content h1 {
    font-size: 35px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 12px;
}

.hero-content h2 {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text-secondary);
}

.hero-content p {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-secondary);
}

/* Hero Section Styles */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
    padding-top: 20px;
}

.profile-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 32px;
}

/* Contact Container */
.contact-container {
    width: 432px;
    height: 38.5px;
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.contact-button,
.copy-email {
    height: 38.5px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: 1px solid var(--color-border);
}

.contact-button {
    width: 192.67px;
    background: var(--color-text);
    color: var(--color-background);
    text-decoration: none;
}

.contact-button:hover {
    background: var(--color-text-secondary);
}

.contact-button svg {
    opacity: 0.7;
}

.contact-button:hover svg {
    opacity: 1;
}

.copy-email {
    width: 192.67px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    cursor: pointer;
}

.copy-email:hover {
    background: rgba(255, 255, 255, 0.1);
}

.copy-email svg {
    opacity: 0.5;
}

.copy-email:hover svg {
    opacity: 1;
}

/* Add animation for copy feedback */
.copy-email.copied {
    background: var(--color-success);
    color: var(--color-background);
}

.copy-email.copied svg {
    opacity: 1;
}

@media (max-width: 768px) {
    .contact-container {
        width: 100%;
        flex-direction: column;
        height: auto;
        gap: 16px;
    }

    .contact-button,
    .copy-email {
        width: 100%;
    }
}

/* About Section */
.about-content {
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

/* Dark theme specific styles */
@media (prefers-color-scheme: dark) {
    .about-content p {
        color: rgba(255, 255, 255, 0.9);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-content {
        gap: 20px;
    }

    .about-content p {
        font-size: 15px;
    }
}
.nav-item:hover::after {
    opacity: 0.5;
}

/* Show shortcuts when pressing Command/Ctrl */
body.show-shortcuts .nav-item::after {
    opacity: 0.5;
}

.nav-items {
    transform: translate(-50%, -50%);
    opacity: 1;
    align-content: center;
    align-items: center;
    display: flex;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px;
    height: min-content;
    justify-content: flex-start;
    left: 50%;
    overflow: visible;
    padding: 0;
    position: absolute;
    top: 50%;
    width: 24px;
}

.nav-item {
    position: relative;
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
}
.nav-item:hover .tooltip {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
}

/* Remove default tooltips */
.nav-item[data-shortcut] {
    pointer-events: auto;
}

.nav-item[data-shortcut]::before {
    display: none;
}

/* Remove any title attributes from HTML elements */
[title] {
    position: relative;
}

[title]:hover:after {
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
}

/* Add this to your existing nav styles */
.nav {
    position: fixed;
    top: 50%;
    left: 48px;
    transform: translateY(-50%);
    width: 200px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--nav-border);
    border-radius: 16px;
    z-index: 9999;
}

@media screen and (max-width: 100%) {
    .navbar {
        width: 70px;
        /* Adjust width for smaller resolutions */
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        position: fixed;
        width: 100%;
        /* Full width for smaller devices */
        height: auto;
        /* Adjust height for smaller devices */
        top: 0;
        left: 0;
    }
}

/* Mobile styles - just adjust position */
@media (max-width: 768px) {
    .nav {
        left: 16px;
        /* Smaller margin on mobile */
        transform: translateY(-50%);
        /* Keep vertical centering */
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .nav {
        left: 8px;
        /* Even smaller margin for very small screens */
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .nav {
        top: 50%;
        left: 48px;
        transform: translateY(-50%);
        width: 200px;
        border-radius: 16px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        padding: 16px 24px;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        background: rgba(0, 0, 0, 0.95);
        display: block !important;
        /* Force display */
    }

    .nav-links {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    .nav-item {
        flex: 1;
        text-align: center;
        padding: 8px;
        font-size: 14px;
        color: #fff;
        text-decoration: none;
        display: block;
    }

    /* Hide tooltips on mobile */
    .tooltip,
    .shortcut {
        display: none;
    }
}

/* Mobile Navigation Styles */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    /* Increased border radius for pill shape */
    z-index: 1000;
    padding: 0px;
    /* Reduced padding */
}

.mobile-nav .nav-items {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    padding: 8px 4px;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    /* Light background */
    border-radius: 100px;
    /* Matching border radius */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translate(-50%, 0%);
}

/* Remove the previous ::before element */
.mobile-nav .nav-item {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 8px;
    min-width: 44px;
    position: relative;
    z-index: 1;
}

.mobile-nav .nav-item .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav .nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.mobile-nav .nav-item.active {
    color: #fff;
}

.mobile-nav .nav-item:hover {
    color: #fff;
}

/* Show mobile nav on small screens */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    main {
        padding-bottom: 90px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .mobile-nav {
        bottom: 16px;
        width: calc(100% - 32px);
    }

    .mobile-nav .nav-items {
        padding: 6px 4px;
        gap: 4px;
    }

    .mobile-nav .nav-item {
        padding: 6px;
        min-width: 40px;
    }

    .mobile-nav .nav-item .icon {
        width: 22px;
        height: 22px;
    }

    .mobile-nav .nav-item svg {
        width: 18px;
        height: 18px;
    }
}

/* Search Overlay Styles */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

/* Mobile-friendly search styles */
@media (max-width: 768px) {
    .search-overlay {
        padding-top: 20px;
        /* Reduced padding for mobile */
    }

    .search-container {
        width: 100%;
        margin: 0 12px;
        /* Smaller margins on mobile */
        max-width: calc(100% - 24px);
        /* Account for margins */
    }

    .search-box {
        padding: 12px;
        /* Slightly smaller padding */
    }

    .search-input {
        font-size: 14px;
        /* Smaller font size for mobile */
    }

    .search-button {
        padding: 6px 12px;
        /* Smaller padding */
        font-size: 13px;
        /* Smaller font size */
    }

    .search-results {
        max-height: calc(100vh - 150px);
        /* Adjust max height for mobile */
        margin-bottom: 20px;
        /* Add some bottom margin */
    }

    .search-result {
        padding: 10px 12px;
        /* Slightly smaller padding */
    }

    .search-result-title {
        font-size: 14px;
    }

    .search-result-content {
        font-size: 13px;
    }

    .search-result-url {
        font-size: 11px;
    }

    /* Improve touch targets */
    .search-result {
        min-height: 44px;
        /* Minimum height for touch targets */
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    /* Add bottom padding to account for mobile nav */
    .search-results {
        padding-bottom: 80px;
    }

    /* Improve scrolling experience */
    .search-results {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    .search-results::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari and Opera */
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .search-overlay {
        padding-top: 16px;
    }

    .search-container {
        margin: 0 8px;
        max-width: calc(100% - 16px);
    }

    .search-box {
        padding: 10px;
    }

    .search-button span {
        display: none;
        /* Hide button text on very small screens */
    }
}

/* Keyboard visibility adjustments for mobile */
@media (max-width: 768px) {
    .search-overlay.keyboard-visible {
        padding-top: 10px;
    }

    .search-overlay.keyboard-visible .search-results {
        max-height: calc(100vh - 200px);
    }
}

.search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 20px;
}

.search-box {
    position: relative;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-icon {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1.5;
    fill: none;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    outline: none;
    padding: 0;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-button svg {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.search-button:hover svg {
    opacity: 1;
}

.search-results {
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
}

/* Show/Hide Search Overlay */
.search-overlay.active {
    display: flex;
}

/* Add this to your existing mobile nav styles */
.mobile-nav .nav-item[data-search] {
    cursor: pointer;
}

.opportunities {
    align-content: center;
    align-items: center;
    display: flex;
    flex: none;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    height: min-content;
    justify-content: center;
    overflow: visible;
    padding: 0;
    position: relative;
    width: 100%;
    opacity: 1;
    transform: perspective(1200px) translateX(0px) translateY(0px) scale(1) rotate(0deg) rotateX(0deg) rotateY(0deg) skewX(0deg) skewY(0deg) translateZ(0px);
    margin-top: 5%;
}

.opportunity-title {
    outline: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    transform: none;
    flex: none;
    height: auto;
    position: relative;
    white-space: pre;
    width: auto;
}


.green-dot {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: none;
    height: 16px;
    position: relative;
    width: 16px;
}

.signal-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(52, 211, 153, 1);
    border-radius: 50%;
    position: absolute;
}

.signal-wave-container {
    width: 20px;
    height: 20px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signal-wave {
    width: 20px;
    height: 20px;
    border: 10px solid rgba(52, 211, 153, 1);
    border-radius: 50%;
    opacity: 0;
    animation: waveEffect 1.5s infinite;
}

@keyframes waveEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.search-overlay.active {
    display: flex;
}

.search-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
}

.search-result-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
}

.search-result-content {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.search-result-url {
    color: rgba(52, 211, 153, 0.8);
    font-size: 12px;
}

.no-results {
    padding: 16px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.nav-item[data-search="true"] {
    cursor: pointer;
}

/* Ensure search overlay is properly layered */
.search-overlay {
    z-index: 9999;
}

.copy-email.copied {
    color: rgba(255, 255, 255, 0.9);
    /* Ensure text stays white when copied */
}

.copy-email span {
    color: rgba(255, 255, 255, 0.9);
    /* Ensure span text is also white */
}

.copy-email.copied span {
    color: rgba(255, 255, 255, 0.9);
    /* Ensure span text stays white when copied */
}