* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

a {
    pointer-events: auto;
}

a[href]::before {
    content: attr(href);
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
}

@media screen {
    body {
        overflow-anchor: none;
    }
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #f97316;
    --accent-hover: #fb923c;
    --border: #222222;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    position: sticky;
    top: 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--text-primary);
}

.nav a:hover::after {
    width: 100%;
}

.hero {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-label {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.split-letters {
    display: flex;
    gap: 0;
    justify-content: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.letter {
    font-size: clamp(80px, 15vw, 200px);
    font-weight: 700;
    line-height: 1;
    color: transparent;
    background-color: rgba(139, 69, 19, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.5);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    transition: var(--transition);
    position: relative;
}

.letter.decrypted {
    color: var(--accent);
}

.letter:nth-child(1)::before {
    animation-delay: 0.3s;
}

.letter:nth-child(2)::before {
    animation-delay: 0.8s;
}

@keyframes glitchReveal {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.8);
    }
    10% {
        opacity: 0.3;
        filter: blur(8px);
    }
    20% {
        opacity: 0.5;
        filter: blur(6px);
    }
    30% {
        opacity: 0.7;
        filter: blur(4px);
    }
    40% {
        opacity: 0.8;
        filter: blur(3px);
    }
    60% {
        opacity: 0.9;
        filter: blur(2px);
    }
    80% {
        opacity: 1;
        filter: blur(1px);
        transform: scale(1);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes letterFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.letter:hover {
    background-color: rgba(139, 69, 19, 0.8);
    transform: scale(1.05);
}

.hero-description {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn {
    padding: 16px 32px;
    font-size: 13px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-card);
    border-color: var(--accent);
}

.section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-number {
    color: var(--accent);
}

.section-label {
    color: var(--text-secondary);
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 60px;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 0;
    border: 1px solid var(--border);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .about-card:hover {
        border-color: var(--accent);
        transform: translateY(-5px);
    }
}

@media (hover: none) and (pointer: coarse) {
    .about-card:active {
        border-color: var(--accent);
        transform: none;
        background-color: rgba(249, 115, 22, 0.05);
    }
}

.card-number {
    font-size: 14px;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 2px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.skill-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 0;
    border: 1px solid var(--border);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .skill-card:hover {
        border-color: var(--accent);
        transform: translateY(-5px);
    }
}

@media (hover: none) and (pointer: coarse) {
    .skill-card:active {
        border-color: var(--accent);
        transform: none;
        background-color: rgba(249, 115, 22, 0.05);
    }
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.skill-number {
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

.skill-type {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.skill-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.skill-id {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.skill-level {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.skill-level span {
    font-size: 12px;
    color: var(--text-secondary);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 40px;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .project-item:hover {
        border-color: var(--accent);
        transform: translateX(10px);
    }
}

@media (hover: none) and (pointer: coarse) {
    .project-item:active {
        border-color: var(--accent);
        transform: none;
        background-color: rgba(249, 115, 22, 0.05);
    }
}

.project-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.project-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.2;
    min-width: 80px;
}

.project-info {
    flex: 1;
}

.project-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.advantage-item {
    padding: 30px 0;
}

.advantage-number {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.advantage-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.advantage-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-link:hover {
    border-color: var(--accent);
    transform: translateX(10px);
}

.link-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.link-arrow {
    font-size: 24px;
    color: var(--accent);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-block h4 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.info-block p {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero {
        padding: 80px 0;
    }

    .section {
        padding: 60px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .project-content {
        flex-direction: column;
    }

    .project-number {
        font-size: 32px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav a {
        font-size: 11px;
    }

    .hero {
        padding: 60px 0;
    }

    .section {
        padding: 40px 0;
    }

    .btn {
        padding: 14px 24px;
        font-size: 12px;
    }

    .about-card,
    .skill-card,
    .project-item {
        padding: 24px;
    }

    .project-item:hover {
        transform: none !important;
    }

    .section-title {
        margin-bottom: 40px;
    }
}
.screenshot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-overlay.active {
    opacity: 1;
}

.screenshot-content {
    text-align: center;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.screenshot-button-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 200px;
    margin-top: 20px;
}

.screenshot-glitch {
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
    animation: glitch 0.5s infinite;
}

.screenshot-glitch::before,
.screenshot-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.screenshot-glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.screenshot-glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 31px, 0);
    }
    5% {
        clip: rect(70px, 9999px, 71px, 0);
    }
    10% {
        clip: rect(31px, 9999px, 91px, 0);
    }
    15% {
        clip: rect(85px, 9999px, 40px, 0);
    }
    20% {
        clip: rect(40px, 9999px, 66px, 0);
    }
    25% {
        clip: rect(10px, 9999px, 45px, 0);
    }
    30% {
        clip: rect(60px, 9999px, 95px, 0);
    }
    35% {
        clip: rect(68px, 9999px, 28px, 0);
    }
    40% {
        clip: rect(30px, 9999px, 90px, 0);
    }
    45% {
        clip: rect(15px, 9999px, 80px, 0);
    }
    50% {
        clip: rect(90px, 9999px, 15px, 0);
    }
    55% {
        clip: rect(5px, 9999px, 46px, 0);
    }
    60% {
        clip: rect(75px, 9999px, 26px, 0);
    }
    65% {
        clip: rect(42px, 9999px, 62px, 0);
    }
    70% {
        clip: rect(63px, 9999px, 84px, 0);
    }
    75% {
        clip: rect(22px, 9999px, 47px, 0);
    }
    80% {
        clip: rect(88px, 9999px, 38px, 0);
    }
    85% {
        clip: rect(17px, 9999px, 73px, 0);
    }
    90% {
        clip: rect(51px, 9999px, 23px, 0);
    }
    95% {
        clip: rect(33px, 9999px, 79px, 0);
    }
    100% {
        clip: rect(76px, 9999px, 20px, 0);
    }
}

.screenshot-subtext {
    font-size: clamp(16px, 2.5vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.screenshot-button {
    background-color: var(--accent);
    color: var(--text-primary);
    border: none;
    padding: 20px 50px;
    font-size: 14px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    border-radius: 0;
    transition: var(--transition);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.screenshot-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.screenshot-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.5);
}

.screenshot-button:hover::before {
    width: 300px;
    height: 300px;
}

.screenshot-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4);
}

@media (max-width: 768px) {
    .screenshot-content {
        padding: 20px;
    }
    
    .screenshot-button {
        padding: 16px 40px;
        font-size: 16px;
    }
}
