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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-container {
    max-width: 95%;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .section-container {
        max-width: 1100px;
    }
}

/* Header */
header {
    background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%);
    border-bottom: 1px solid rgba(138, 180, 248, 0.2);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

nav h1 {
    color: #f0f0f0;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #b0b0b0;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

nav a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

nav a:hover {
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Main content */
main {
    padding: 3rem 0;
}

section {
    margin-bottom: 3rem;
    padding: 1.5rem 0;
}

h2 {
    color: #f0f0f0;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #666;
    border-radius: 2px;
}

/* About section - redesigned */
.profile-card {
    background: rgba(42, 42, 42, 0.6);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(138, 180, 248, 0.1);
}

.profile-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(138, 180, 248, 0.3);
}

.profile-info h3 {
    color: #f0f0f0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.current-role {
    color: #999;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.current-role strong {
    color: #f0f0f0;
    font-weight: 600;
}

.bio {
    margin-top: 0.5rem;
}

.bio p {
    color: #c0c0c0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 0.8rem 0;
}

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

.experience-section {
    margin: 1.5rem 0 1rem 0;
}

.experience-section h3 {
    color: #f0f0f0;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.experience-grid {
    display: grid;
    gap: 1.5rem;
}

.experience-item {
    display: flex;
    gap: 1rem;
    padding: 1.4rem;
    background: rgba(138, 180, 248, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(138, 180, 248, 0.1);
    transition: all 0.2s ease;
    align-items: flex-start;
}

.experience-item:hover {
    border-color: rgba(138, 180, 248, 0.2);
}

.company-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.05rem;
}

.company-logo-img[alt="Formal Land"] {
    background-color: #f0f0f0;
    padding: 6px;
}

.experience-details h4 {
    color: #f0f0f0;
    margin: 0 0 0.1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.experience-details .role {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin: 0.05rem 0 0.5rem 0;
    line-height: 1.1;
}

.experience-details p {
    color: #c0c0c0;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.experience-details a {
    color: #8ab4f8;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.experience-details a:hover {
    border-bottom-color: #8ab4f8;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.badge {
    background-color: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

/* Vulnerabilities section */
.filter-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #404040;
    color: #c0c0c0;
    border: 1px solid #606060;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

.filter-btn:hover {
    background-color: #505050;
    border-color: #707070;
}

.filter-btn.active {
    background-color: #f0f0f0;
    color: #1a1a1a;
    border-color: #f0f0f0;
}

/* Grid layout for vulnerability cards */
.vuln-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vuln-card {
    background-color: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 1.25rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.vuln-card:hover {
    border-color: #606060;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
    position: relative;
}

.header-content {
    flex-grow: 1;
    min-width: 0;
    padding-right: 1rem;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.header-content h3 {
    color: #f0f0f0;
    margin: 0 0 0.2rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.header-content h3 a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-content h3 a:hover {
    color: #8ab4f8;
}

.vuln-type {
    color: #888;
    font-size: 0.8rem;
    display: block;
    line-height: 1.3;
    word-break: break-word;
}

.card-content p {
    color: #b0b0b0;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    font-size: 0.9rem;
    flex-grow: 1;
}

.company-logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #fff;
    padding: 6px;
    flex-shrink: 0;
}

.company-logo[alt="Ethereum Foundation"] {
    object-fit: contain;
    padding: 2px;
}

.severity-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    flex-shrink: 0;
}

.severity-badge.critical {
    background-color: #dc3545;
    color: white;
}

.severity-badge.high {
    background-color: #e74c3c;
    color: white;
}

.severity-badge.medium {
    background-color: #f39c12;
    color: white;
}

.severity-badge.low {
    background-color: #8b5cf6;
    color: white;
}

.vuln-title h3 {
    color: #f0f0f0;
    margin: 0;
    font-size: 1.2rem;
}

.vuln-title h3 a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vuln-title h3 a:hover {
    color: #d0d0d0;
}

.vuln-type {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

.vuln-item p {
    color: #b0b0b0;
    margin: 0;
    line-height: 1.6;
}

.fix-status {
    margin-top: auto;
}

.fix-link {
    color: #10b981;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
}

.fix-link:hover {
    /* No hover effect - removed the shocking green */
}

.fix-status .pending {
    color: #f39c12;
    padding: 0.5rem 1rem;
    background-color: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
    font-size: 0.85rem;
}

.private-report {
    color: #666;
    padding: 0.5rem 1rem;
    background-color: rgba(102, 102, 102, 0.1);
    border: 1px solid rgba(102, 102, 102, 0.3);
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: not-allowed;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%);
    border-top: 1px solid rgba(138, 180, 248, 0.2);
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    color: #808080;
    text-align: center;
}

.contact-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.contact-button {
    display: inline-block;
    color: #b0b0b0;
    text-decoration: none;
    padding: 0.7rem 1.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-button:hover {
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #606060;
    transform: translateY(-1px);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    margin: 2rem 0;
}

.empty-content {
    max-width: 300px;
    margin: 0 auto;
}

.empty-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #f0f0f0;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.empty-state p {
    color: #888;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Contest vulnerabilities section */
.contest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contest-card {
    background-color: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 1.4rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.contest-card:hover {
    border-color: #606060;
}

.contest-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contest-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.contest-logo[alt="Code4rena"] {
    background-color: #f0f0f0;
    padding: 6px;
}

.contest-logo[alt="Cantina"] {
    background-color: #fff;
    padding: 6px;
}

.contest-info h3 {
    color: #f0f0f0;
    margin: 0 0 0.2rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.contest-info h3 a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contest-info h3 a:hover {
    color: #8ab4f8;
}

.contest-stats {
    color: #888;
    font-size: 0.9rem;
    display: block;
    line-height: 1.3;
    word-break: break-word;
}

.severity-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.severity-counter {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.severity-counter.high {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.2);
}

.severity-counter.medium {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border-color: rgba(243, 156, 18, 0.2);
}

.severity-counter.low {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
}

.severity-counter.informational {
    background-color: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.2);
}

/* Load more functionality */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    background-color: #8ab4f8;
    color: #1a1a1a;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background-color: #7aa3f0;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%);
        flex-direction: column;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        border: 1px solid rgba(138, 180, 248, 0.2);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-image img {
        width: 100px;
        height: 100px;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .experience-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .company-logo-img {
        align-self: center;
    }
    
    .filter-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-bottom: 1.5rem;
        justify-content: center;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .filter-btn:nth-child(1),
    .filter-btn:nth-child(2),
    .filter-btn:nth-child(3) {
        flex: 1;
        min-width: 80px;
    }
    
    .filter-btn:nth-child(4),
    .filter-btn:nth-child(5) {
        flex: 0 0 auto;
        min-width: 80px;
        margin: 0 10px;
    }
    
    .filter-btn {
        min-width: auto;
        font-size: 0.75rem;
        padding: 0.5rem 0.3rem;
        text-align: center;
    }
    
    .fix-status {
        text-align: center;
    }
    
    .vuln-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vuln-card {
        padding: 1rem;
        min-height: auto;
    }
    
    .severity-badge {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        min-width: 50px;
    }
    
    .contest-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contest-card {
        padding: 1rem;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .filter-controls {
        gap: 0.4rem;
    }
    
    .filter-btn {
        min-width: 75px;
        font-size: 0.85rem;
    }
    
    .vuln-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .contest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}