:root {
    --matrix-green: #00ff41;
    --hacker-red: #ff003c;
    --hacker-blue: #00f0ff;
    --bg-dark: #0d0d0d;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --font-main: 'Share Tech Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Matrix Background Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-left: 1px solid var(--glass-highlight);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hacker-border {
    position: relative;
}
.hacker-border::before, .hacker-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}
.hacker-border::before { top: -2px; left: -2px; border-top: 2px solid var(--matrix-green); border-left: 2px solid var(--matrix-green); }
.hacker-border::after { bottom: -2px; right: -2px; border-bottom: 2px solid var(--matrix-green); border-right: 2px solid var(--matrix-green); }

header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 20px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.gradient-text {
    font-weight: bold;
    background: linear-gradient(90deg, #00ff00, #008f11, #00ff00);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: blinkGradient 2s linear infinite;
}

@keyframes blinkGradient {
    0% { background-position: 0% 50%; opacity: 1; }
    50% { opacity: 0.8; }
    100% { background-position: 100% 50%; opacity: 1; }
}

.intro-text {
    font-size: 1.2rem;
    min-height: 1.5em;
    margin-bottom: 20px;
}

.winking-smile {
    display: inline-block;
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.2s;
    position: relative;
}

.winking-smile:hover {
    transform: scale(1.2);
}

@keyframes winkAnim {
    0%, 90%, 100% { clip-path: inset(0 0 0 0); }
    95% { clip-path: inset(40% 0 0 0); }
}

.winking-smile i {
    animation: winkAnim 4s infinite;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid;
    padding-bottom: 10px;
    display: inline-block;
}

.theme-red {
    background: rgba(255, 0, 60, 0.05);
    border-color: rgba(255, 0, 60, 0.3);
}
.theme-red .section-title { color: var(--hacker-red); border-color: var(--hacker-red); }
.theme-red.hacker-border::before, .theme-red.hacker-border::after { border-color: var(--hacker-red); }

.theme-blue {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.3);
    animation: flickerBlue 4s infinite alternate;
}
.theme-blue .section-title { color: var(--hacker-blue); border-color: var(--hacker-blue); }
.theme-blue.hacker-border::before, .theme-blue.hacker-border::after { border-color: var(--hacker-blue); }

@keyframes flickerBlue {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(0, 240, 255, 0.1); }
    50% { opacity: 0.95; box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
    52% { opacity: 1; }
    54% { opacity: 0.9; }
}

.info-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.info-item:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.05);
}

.theme-red .info-item:hover {
    border-color: var(--hacker-red);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
}

.theme-blue .info-item:hover {
    border-color: var(--hacker-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    animation: flickerBlue 1s infinite;
}

.info-year {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: block;
}

.theme-red .info-year { color: var(--hacker-red); }
.theme-blue .info-year { color: var(--hacker-blue); }

.edu-icon {
    margin-right: 10px;
    font-size: 1.2rem;
    vertical-align: middle;
}

.contacts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.contact-sticker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-width: 200px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.sticker-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.contact-sticker:hover {
    transform: rotateY(360deg);
}

.contact-sticker:hover .sticker-icon {
    color: var(--matrix-green);
}

#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: rgba(0, 255, 65, 0.9);
    color: #000;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 100;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    opacity: 0;
    transition: opacity 0.5s, top 0.5s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    top: 50px;
}

.emoji {
    position: fixed;
    top: -50px;
    z-index: 9999;
    font-size: 2rem;
    animation: fall linear forwards;
    pointer-events: none;
}

@keyframes fall {
    to { transform: translateY(110vh) rotate(360deg); }
}

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    .intro-text { font-size: 1rem; }
    .contacts-grid { flex-direction: column; }
    .contact-sticker { width: 100%; }
}