/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #888888;
    --dark-gray: #333333;
    --lighter-gray: #aaaaaa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Logo Flip Effect */
.logo-flip-container {
    perspective: 1000px;
    width: 120px;
    height: 120px;
    cursor: pointer;
}

.logo-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.logo-flip-container:hover .logo-flipper {
    transform: rotateY(180deg);
}

.logo-front,
.logo-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-front {
    z-index: 2;
}

.logo-back {
    transform: rotateY(180deg);
}

.logo {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dark-gray);
}

/* Code Window */
.code-window {
    width: 100%;
    max-width: 500px;
    background: var(--black);
    border: 1px solid var(--dark-gray);
    border-radius: 8px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--black);
    border-bottom: 1px solid var(--dark-gray);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27ca3f;
}

.filename {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--gray);
}

.code-content {
    padding: 20px;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
}

.code-content code {
    font-family: inherit;
}

/* Python Syntax Highlighting - Black & White */
.comment {
    color: var(--gray);
}

.keyword {
    color: var(--white);
    font-weight: 500;
}

.class-name {
    color: var(--white);
    font-weight: 500;
}

.docstring {
    color: var(--gray);
    font-style: italic;
}

.variable {
    color: var(--lighter-gray);
}

.string {
    color: var(--white);
}

/* Clickable link in code */
.code-link {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.code-link:hover {
    opacity: 0.7;
}

.code-link:hover .string {
    text-decoration: underline;
}

/* Blinking Cursor */
.cursor {
    animation: blink 1s step-end infinite;
    color: var(--white);
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 20px;
}

.social-link {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

/* Footer */
footer {
    padding-top: 40px;
    text-align: center;
}

footer p {
    color: var(--gray);
    font-size: 12px;
    font-weight: 300;
}

/* Fade-in Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 40px 16px;
        gap: 32px;
    }

    .logo-flip-container {
        width: 100px;
        height: 100px;
    }

    .logo {
        width: 60px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .code-content {
        font-size: 11px;
        padding: 16px;
    }

    .code-window {
        border-radius: 6px;
    }

    .social-links {
        gap: 20px;
    }
}

/* Selection styling */
::selection {
    background: var(--white);
    color: var(--black);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}
