@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600&display=swap');

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

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.logo {
    max-width: 400px;
    height: auto;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: fadeInDown 1s ease-out;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}


.content-area {
    width: min(100%, 640px);
    min-height: 220px;
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    position: relative;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.content-area.is-transitioning-out {
    opacity: 0;
    transform: translateY(25px);
}

.content-area.is-transitioning-in {
    opacity: 1;
    transform: translateY(0);
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.content-title {
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.content-lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.45s both;
}

.hero-typing {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.45rem, 4vw, 2.4rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    width: 100%;
    margin: 0 auto;
    position: relative;
    min-height: 3.25rem;
}

.hero-typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 6px;
    background-color: #ffffff;
    animation: blinkCaret 0.9s steps(2, start) infinite;
    vertical-align: middle;
}

.hero-typing.is-typing::after {
    animation: none;
}

.separator-line {
    width: 600px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    margin: 0.4rem 0;
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

.separator-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 3s infinite 2s;
}

.navbar {
    display: flex;
    gap: 2rem;
    margin-top: 0.2rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.projects-list {
    width: 100%;
    max-width: 600px;
    margin: 1rem 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.project-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    text-align: left;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-item:hover::before {
    transform: translateX(0);
}

.project-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.project-item:hover .project-title {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.project-description {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.project-item:hover .project-description {
    color: rgba(255, 255, 255, 0.9);
}

.project-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ffffff;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.project-link:hover::before {
    left: 0;
}

.project-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.project-link[aria-disabled="true"] {
    cursor: default;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.project-link[aria-disabled="true"]::before,
.project-link[aria-disabled="true"]::after {
    display: none;
}

@keyframes blinkCaret {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        padding: 2.5rem 1.5rem;
    }

    .container {
        width: min(100%, 480px);
        gap: 1.2rem;
    }

    .logo {
        max-width: 260px;
    }

    .content-area {
        padding: 1rem 1.25rem;
        min-height: 200px;
        text-align: center;
    }

    .content-section {
        align-items: center;
    }
    
    .separator-line {
        width: 100%;
    }
    
    .navbar {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        border-radius: 6px;
        padding: 0.65rem 1rem;
    }
    
    .projects-list {
        width: 100%;
        max-width: none;
        margin: 1.5rem 0 0;
    }

    .project-item {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 2rem 1rem;
    }

    .logo {
        max-width: 220px;
    }

    .content-area {
        padding: 0.85rem 1rem;
        min-height: 180px;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.6rem 0.9rem;
    }

    .project-item {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}