:root {
    --primary: #00FAB3;
    --primary-dark: #00C999;
    --primary-light: rgba(0, 250, 179, 0.15);
    --background: #000000;
    --card-bg: rgba(0, 0, 0, 0.85);
    --text: #00FAB3;
    --text-secondary: rgba(0, 250, 179, 0.7);
    --border: rgba(0, 250, 179, 0.3);
    --border-light: rgba(0, 250, 179, 0.2);
    --shadow: 0 0 30px rgba(0, 250, 179, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Particles Container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--background);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(0.5rem, 3vw, 2rem);
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow);
    position: relative;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    border-left: 3px solid var(--primary);
    border-right: 3px solid var(--primary);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

h1 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 250, 179, 0.5);
}

.subtitle {
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    font-weight: 300;
}

.agent-code {
    display: inline-block;
    background: rgba(0, 250, 179, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: clamp(1rem, 2.5vw, 2rem);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-left: 2px solid var(--primary);
}

.card:hover {
    box-shadow: 0 0 40px rgba(0, 250, 179, 0.2);
    border-color: var(--primary);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transition: left 0.5s ease;
}

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

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.photo-container {
    width: min(100%, 220px);
    aspect-ratio: 1;
    margin-bottom: 1.5rem;
    border: 2px solid var(--primary);
    position: relative;
    background: #000;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 250, 179, 0.2);
}

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

.photo-container:hover img {
    transform: scale(1.03);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.2rem 0;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--primary);
}

.affiliation {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0);
    border: 0px solid var(--border-light);
    width: 100%;
    font-size: 0.9rem;
}

.affiliation img {
    max-width: 150px;
    height: auto;
    filter: brightness(1.5);
}

/* Badges */
.badge {
    max-width: 88px;
    height: 31px;
    margin: 0.5rem;
}

/* QR Code */
.qr-code {
    width: 150px;
    height: 150px;
    margin: 0.5rem 0;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.info-item {
    background: rgba(0, 250, 179, 0.05);
    border: 1px solid var(--border-light);
    padding: 1rem;
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(0, 250, 179, 0.1);
    border-color: var(--primary);
}

.info-item h3 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.6rem;
    font-weight: 400;
}

.info-item p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--primary);
    cursor: text;
    min-height: 2rem;
    display: flex;
    align-items: center;
    font-family: 'Courier New', monospace;
}

/* Networks Grid */
.networks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.network-item {
    background: rgba(0, 250, 179, 0.05);
    border: 1px solid var(--border-light);
    padding: 0.8rem;
    transition: var(--transition);
    text-align: center;
}

.network-item:hover {
    background: rgba(0, 250, 179, 0.1);
    border-color: var(--primary);
}

.network-item h3 {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 400;
}

.network-item p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--primary);
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
}

/* Interests */
.interests-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.interest-tag {
    background: rgba(0, 250, 179, 0.1);
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    transition: var(--transition);
    cursor: default;
    font-family: 'Courier New', monospace;
}

.interest-tag:hover {
    background: rgba(0, 250, 179, 0.2);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 2px solid var(--primary);
    margin-top: 1.5rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Section Title */
.section-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 300;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0px;
    height: 1px;
    background: var(--primary);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 1.5rem 0;
}

/* Loading Bar */
.loading-bar {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transform: translateX(-100%);
    animation: loading 2s infinite;
    display: none;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Terminal Effect */
.terminal-text {
    border-right: 2px solid var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* Responsive Design - Desktop First */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .info-grid,
    .networks-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .photo-container {
        width: min(100%, 200px);
    }
}

@media (max-width: 992px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 1.2rem;
    }
    
    .main-grid {
        gap: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .photo-container {
        width: min(100%, 180px);
    }
    
    .affiliation img {
        max-width: 140px;
    }
    
    .qr-code {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    h1 {
        font-size: 1.4rem;
        letter-spacing: 0.15em;
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .info-grid,
    .networks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .info-item,
    .network-item {
        padding: 0.8rem;
    }
    
    .info-item h3,
    .network-item h3 {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .info-item p,
    .network-item p {
        font-size: 0.9rem;
        min-height: 1.8rem;
    }
    
    .photo-container {
        width: min(100%, 160px);
        margin-bottom: 1.2rem;
    }
    
    .affiliation {
        padding: 1rem;
        margin-top: 1.2rem;
    }
    
    .affiliation img {
        max-width: 120px;
    }
    
    .status-indicator {
        margin: 1rem 0;
        font-size: 0.85rem;
    }
    
    .badge {
        max-width: 80px;
        height: 28px;
    }
    
    .qr-code {
        width: 110px;
        height: 110px;
    }
    
    .footer {
        padding: 1.2rem;
        margin-top: 1.2rem;
        font-size: 0.75rem;
    }
    
    .divider {
        margin: 1rem 0;
    }
    
    .interest-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }
    
    .header {
        padding: 1rem 0.8rem;
        margin-bottom: 1rem;
        border-left-width: 2px;
        border-right-width: 2px;
    }
    
    h1 {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }
    
    .card {
        padding: 1rem;
        border-left-width: 2px;
    }
    
    .info-grid,
    .networks-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .info-item,
    .network-item {
        padding: 0.7rem;
    }
    
    .info-item p,
    .network-item p {
        font-size: 0.85rem;
        min-height: 1.5rem;
    }
    
    .photo-container {
        width: min(100%, 140px);
        margin-bottom: 1rem;
    }
    
    .affiliation {
        padding: 0.8rem;
    }
    
    .affiliation img {
        max-width: 100px;
    }
    
    .qr-code {
        width: 90px;
        height: 90px;
    }
    
    .badge {
        max-width: 70px;
        height: 25px;
    }
    
    .footer {
        padding: 1rem;
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .status-indicator {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .status-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 0.85rem;
    }
    
    .photo-container {
        width: min(100%, 120px);
    }
    
    .qr-code {
        width: 80px;
        height: 80px;
    }
    
    .affiliation img {
        max-width: 80px;
    }
    
    .badge {
        max-width: 60px;
        height: 21px;
    }
}
