
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Rajdhani', sans-serif;
    background:
        radial-gradient(ellipse at top, #0a0a1a 0%, #000000 70%),
        linear-gradient(135deg, #0a0a1a 0%, #000000 100%);
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    font-weight: 400;
}

.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.1;
    background:
        linear-gradient(90deg, transparent 79%, rgba(0, 195, 255, 0.1) 80%, transparent 81%),
        linear-gradient(transparent 79%, rgba(0, 195, 255, 0.1) 80%, transparent 81%);
    background-size: 100px 100px;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.15; }
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f0ff, transparent);
    box-shadow: 0 0 15px #00f0ff;
    z-index: -2;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

#topblock {
    background: rgba(10, 15, 30, 0.95);
    border-bottom: 1px solid rgba(0, 195, 255, 0.3);
    padding: 12px 0;
    backdrop-filter: blur(10px);
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 50px;
}

#topblock::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        #00f0ff,
        #ff0080,
        #00f0ff,
        transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

#donntu {
    margin-right: 30px;
}

#donntu a {
    color: #8b9db3;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-family: 'Orbitron', monospace;
}

#donntu a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #00f0ff, #ff0080);
    transition: width 0.3s ease;
}

#donntu a:hover {
    color: #00f0ff;
}

#donntu a:hover::before {
    width: 100%;
}

#header {
    background: linear-gradient(135deg, rgba(15, 25, 45, 0.9) 0%, rgba(10, 15, 30, 0.9) 100%);
    border: 1px solid rgba(0, 195, 255, 0.2);
    margin: 30px auto;
    padding: 30px;
    max-width: 1200px;
    backdrop-filter: blur(15px);
    position: relative;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        #00f0ff,
        #ff0080,
        #00f0ff,
        transparent);
}

#photomag {
    float: left;
    margin-right: 30px;
    position: relative;
}

#photomag::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(0, 195, 255, 0.3);
    z-index: -1;
    border-radius: 2px;
}

#photomag img {
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
    display: block;
}

#photomag:hover img {
    filter: brightness(1.2) contrast(1.2);
    box-shadow:
        0 0 30px rgba(0, 195, 255, 0.3),
        0 0 60px rgba(255, 0, 128, 0.2);
}

#headertext {
    overflow: hidden;
}

.hdr {
    margin-bottom: 12px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hdr:first-child {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #00f0ff;
    font-size: 2.2em;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hdr:nth-child(2), .hdr:nth-child(3) {
    color: #8b9db3;
    font-size: 1.3em;
}

.hdr:nth-child(4), .hdr:nth-child(5) {
    color: #b8c7d8;
    font-size: 1.1em;
}

.hdr:last-child {
    color: #ff0080;
    font-size: 1em;
    margin-top: 20px;
}

.hdr a {
    color: #00f0ff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.hdr a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff0080;
    transition: width 0.3s ease;
}

.hdr a:hover {
    color: #ff0080;
}

.hdr a:hover::after {
    width: 100%;
}

#middleblock {
    margin: 30px auto;
    max-width: 1200px;
}

#menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(15, 25, 45, 0.8);
    border: 1px solid rgba(0, 195, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 2px;
    padding: 10px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 15px 25px;
    text-decoration: none;
    color: #8b9db3;
    background: transparent;
    border: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    border-radius: 2px;
}

.button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f0ff, #ff0080);
    transition: width 0.3s ease;
}

.button:hover {
    color: #00f0ff;
    background: rgba(0, 195, 255, 0.1);
}

.button:hover::before {
    width: 80%;
}

.button.colorfix {
    color: #00f0ff;
    background: rgba(0, 195, 255, 0.15);
}

.button.colorfix::before {
    width: 80%;
    background: #ff0080;
}

#maintext {
    background: rgba(15, 25, 45, 0.8);
    border: 1px solid rgba(0, 195, 255, 0.2);
    padding: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    border-radius: 2px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#maintext::before {
    content: '/// SYSTEM_ACTIVE';
    position: absolute;
    top: 15px;
    right: 20px;
    color: #00f0ff;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    opacity: 0.7;
    letter-spacing: 1px;
}

#maintext h1 {
    color: #00f0ff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 2.5em;
    margin-bottom: 30px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

#maintext h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00f0ff, #ff0080);
}

#maintext h2 {
    color: #ff0080;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1.8em;
    margin: 35px 0 20px 0;
    letter-spacing: 0.5px;
}

#maintext h3 {
    color: #00f0ff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.3em;
    margin: 25px 0 15px 0;
}

#maintext p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #b8c7d8;
    font-size: 18px;
    text-align: justify;
}

#maintext a {
    color: #00f0ff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

#maintext a:hover {
    color: #ff0080;
    border-bottom-color: #ff0080;
}

#resume {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(20, 30, 50, 0.6);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#resume tr {
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#resume tr:hover {
    background: rgba(0, 195, 255, 0.05);
}

#resume tr:last-child {
    border-bottom: none;
}

#resume td {
    padding: 18px 20px;
    vertical-align: top;
}

#resume .c1 {
    width: 220px;
    color: #00f0ff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    font-family: 'Rajdhani', sans-serif;
    border-right: 1px solid rgba(0, 195, 255, 0.2);
    background: rgba(0, 195, 255, 0.05);
}

#resume .c2 {
    color: #b8c7d8;
    line-height: 1.6;
}

#resume ol, #resume ul {
    margin-left: 0;
    padding-left: 20px;
}

#resume li {
    margin: 10px 0;
    position: relative;
}

#resume li::marker {
    color: #ff0080;
}

.lib {
    background: rgba(20, 30, 50, 0.6);
    border: 1px solid rgba(0, 195, 255, 0.1);
    padding: 25px;
    margin: 20px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.lib::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00f0ff, #ff0080);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lib:hover {
    border-color: rgba(0, 195, 255, 0.3);
    transform: translateX(5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.lib:hover::before {
    opacity: 1;
}

.lib a {
    color: #00f0ff;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.lib a:hover {
    color: #ff0080;
    border-bottom-color: #ff0080;
}

.cat {
    color: #ff0080;
    font-weight: 600;
}

#menub {
    text-align: center;
    margin: 30px auto;
    padding: 20px;
    max-width: 1200px;
    background: rgba(15, 25, 45, 0.8);
    border: 1px solid rgba(0, 195, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 2px;
}

.mitemb {
    display: inline-block;
    margin: 0 15px;
    padding: 12px 25px;
    color: #8b9db3;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
}

.mitemb::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #00f0ff, #ff0080, #00f0ff);
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mitemb:hover {
    color: #00f0ff;
    transform: translateY(-2px);
}

.mitemb:hover::before {
    opacity: 1;
    animation: borderGlow 2s linear infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#maintext > * {
    animation: fadeInUp 0.6s ease-out;
}

.cyber-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 195, 255, 0.3),
        rgba(255, 0, 128, 0.3),
        rgba(0, 195, 255, 0.3),
        transparent);
    margin: 25px 0;
    position: relative;
}

.cyber-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff0080;
    background: #0a0a1a;
    padding: 0 10px;
    font-size: 12px;
}

.img {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.img img {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.05) contrast(1.05);
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    flex-shrink: 0;
}

.img img:hover {
    filter: brightness(1.15) contrast(1.1);
    transform: translateY(-5px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 195, 255, 0.2);
}

.imgcaption {
    color: #8b9db3;
    font-style: italic;
    margin-top: 15px;
    font-size: 18px;
    text-align: center;
    width: 100%;
    max-width: fit-content;
}

.imgcaption {
    color: #8b9db3;
    font-style: italic;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    width: 100%;
    max-width: fit-content;
}


#maintext ul, #maintext ol {
    margin: 20px 0;
    padding-left: 30px;
    color: #b8c7d8;
    line-height: 1.7;
}

#maintext li {
    margin: 12px 0;
    padding-left: 8px;
    font-size: 18px;
}

#maintext ul li::marker {
    color: #ff0080;
    font-size: 1.2em;
}

#maintext ol li::marker {
    color: #00f0ff;
    font-weight: 600;
}


.content {
    margin: 20px 0;
    padding-left: 20px;
    list-style: none;
}

.ct1, .ct2 {
    margin: 8px 0;
    position: relative;
}

.ct1 {
    padding-left: 0;
    font-weight: 600;
    color: #00f0ff;
}

.ct2 {
    padding-left: 20px;
    color: #b8c7d8;
}

.ct1 a, .ct2 a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
}

.ct1 a:hover, .ct2 a:hover {
    color: #ff0080;
    transform: translateX(5px);
}


.itl {
    font-style: italic;
    color: #00f0ff;
}


#resume ol, #resume ul {
    margin: 10px 0;
    padding-left: 20px;
}

#resume li {
    margin: 8px 0;
    position: relative;
}

@media (max-width: 768px) {
    #topblock {
        justify-content: center;
    }

    #donntu {
        margin-right: 0;
    }

    #menu {
        flex-direction: column;
        gap: 5px;
    }

    .button {
        width: 100%;
        min-width: auto;
    }

    #header {
        text-align: center;
        margin: 20px;
        padding: 20px;
    }

    #photomag {
        float: none;
        margin-right: 0;
        margin-bottom: 20px;
        display: inline-block;
    }

    .img img {
        width: 100%;
        max-width: 100%;
    }

    #maintext ul, #maintext ol {
        padding-left: 20px;
    }

    .ct2 {
        padding-left: 15px;
    }

    .imgcaption {
        max-width: 100%;
        padding: 0 15px;
    }

    .mitemb {
        display: block;
        margin: 10px 0;
    }
}

.media-block {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
    background: rgba(15, 25, 45, 0.7);
    border: 1px solid rgba(0, 195, 255, 0.2);
    border-radius: 4px;
    padding: 25px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.media-video {
    flex: 1;
    min-width: 300px;
}

.media-video video {
    height: auto;
    border: 1px solid rgba(0, 195, 255, 0.3);
    border-radius: 3px;
    background: #000;
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 10px rgba(0, 195, 255, 0.1);
    transition: all 0.3s ease;
}

.media-video video:hover {
    border-color: rgba(0, 195, 255, 0.6);
    box-shadow:
        0 5px 30px rgba(0, 195, 255, 0.3),
        inset 0 0 15px rgba(0, 195, 255, 0.2);
}

.media-block {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    background: rgba(15, 25, 45, 0.7);
    border: 1px solid rgba(0, 195, 255, 0.2);
    border-radius: 4px;
    padding: 25px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}


.media-video {
    flex: 0 0 auto;
}

.media-video video {
    width: 270px;
    height: 360px;
    border: 1px solid rgba(0, 195, 255, 0.3);
    border-radius: 3px;
    background: #000;
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 10px rgba(0, 195, 255, 0.1);
    transition: all 0.3s ease;
}

.media-text {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.cyber-text-container {
    width: 100%;
    height: 100%;
}

.cyber-greeting {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 30px;
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
    letter-spacing: 2.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cyber-line {
    height: 2px;
    background: linear-gradient(90deg,
        rgba(0, 195, 255, 0.8),
        rgba(255, 0, 128, 0.8));
    margin: 15px 0 20px 0;
    width: 100%;
}

.text-content {
    color: #b8c7d8;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: justify;
}

@media (max-width: 768px) {
    .media-block {
        flex-direction: column;
        padding: 20px;
    }

    .media-video, .media-text {
        min-width: 100%;
    }

    .cyber-greeting {
        font-size: 1.5em;
    }
}

.cyber-terminal {
    margin-top: 25px;
    background: rgba(0, 10, 20, 0.8);
    border: 1px solid rgba(0, 195, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background: rgba(0, 195, 255, 0.1);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 195, 255, 0.2);
}

.terminal-title {
    color: #00f0ff;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    letter-spacing: 1px;
}

.terminal-time {
    color: #8b9db3;
    font-size: 11px;
}

.terminal-content {
    padding: 15px;
    font-size: 13px;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 8px;
    color: #b8c7d8;
}

.prompt {
    color: #00ff88;
    margin-right: 10px;
    font-weight: bold;
}

.success {
    color: #00ff88;
}

.active {
    color: #00f0ff;
    font-weight: bold;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

