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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #050505 0%, #0d0d0d 50%, #050505 100%);
    color: #e8e8e8;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 100vh;
    }
    
    body::before,
    body::after {
        position: fixed;
        height: 100%;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 25px 25px, rgba(255,255,255,1.0), transparent),
        radial-gradient(1px 1px at 75px 75px, rgba(135,206,250,0.9), transparent),
        radial-gradient(2px 2px at 125px 25px, rgba(255,192,203,0.8), transparent),
        radial-gradient(1px 1px at 175px 125px, rgba(255,255,255,1.0), transparent),
        radial-gradient(1px 1px at 225px 75px, rgba(173,216,230,0.9), transparent),
        radial-gradient(2px 2px at 50px 150px, rgba(255,218,185,0.8), transparent),
        radial-gradient(1px 1px at 150px 50px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 200px 150px, rgba(221,160,221,0.8), transparent);
    background-repeat: repeat;
    background-size: 250px 175px;
    animation: starTwinkle1 7s ease-in-out infinite, starTwinkle2 11s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 100px 50px, rgba(255,215,0,0.9), transparent),
        radial-gradient(1px 1px at 200px 100px, rgba(255,255,255,1.0), transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(100,149,237,0.8), transparent),
        radial-gradient(1px 1px at 50px 200px, rgba(255,105,180,0.9), transparent),
        radial-gradient(1px 1px at 250px 200px, rgba(255,255,255,1.0), transparent);
    background-repeat: repeat;
    background-size: 350px 250px;
    animation: starTwinkle3 13s ease-in-out infinite, starTwinkle4 9s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes starTwinkle1 {
    0% { opacity: 0.7; }
    23% { opacity: 1.0; }
    45% { opacity: 0.8; }
    67% { opacity: 1.0; }
    89% { opacity: 0.9; }
    100% { opacity: 0.7; }
}

@keyframes starTwinkle2 {
    0% { opacity: 0.8; }
    31% { opacity: 0.6; }
    58% { opacity: 1.0; }
    76% { opacity: 0.7; }
    100% { opacity: 0.8; }
}

@keyframes starTwinkle3 {
    0% { opacity: 0.8; }
    19% { opacity: 1.0; }
    42% { opacity: 0.6; }
    65% { opacity: 1.0; }
    84% { opacity: 0.8; }
    100% { opacity: 0.8; }
}

@keyframes starTwinkle4 {
    0% { opacity: 0.9; }
    27% { opacity: 0.7; }
    51% { opacity: 1.0; }
    73% { opacity: 0.8; }
    91% { opacity: 1.0; }
    100% { opacity: 0.9; }
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: 1fr;
    height: 100vh;
    padding: 35px 40px 40px 40px;
    grid-template-areas: 
        ". main .";
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .grid-container {
        min-height: 100vh;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

.nav {
    grid-area: nav;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #888;
}

.dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.main-content {
    grid-area: main;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    color: #666;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
}

.path {
    color: #00ff88;
}

.timestamp {
    color: #888;
}

.title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.3;
    margin: 5px 0 5px 0;
}

.subtitle {
    font-size: 16px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 5px;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.research-areas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

.area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #1a1a1a;
    min-height: 50px;
}

.label {
    color: #ffffff;
    letter-spacing: 0.5px;
}

.status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    color: #888;
}

.area:nth-child(1) .status {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.area:nth-child(2) .status {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.area:nth-child(3) .status {
    background: rgba(100, 149, 237, 0.2);
    color: #6495ed;
}

.bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 5px;
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.contact-label {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.contact a:hover {
    color: #00ff88;
}

.footer {
    font-size: 14px;
    color: #444;
}

@media (max-width: 768px) {
    .grid-container {
        padding: 30px 20px 30px 20px;
    }
    
    .main-content {
        gap: 20px;
        max-width: 100%;
        width: 100%;
    }
    
    .terminal-header {
        font-size: 11px;
    }
    
    .title {
        font-size: clamp(32px, 8vw, 40px);
    }
    
    .subtitle {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .research-areas {
        margin: 10px 0;
    }
    
    .bottom-section {
        margin-top: 5px;
    }
}
