/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --accent-color: #2d2d2d;
    --text-color: #333;
    --line-color: rgba(0, 0, 0, 0.1);
    --highlight-color: #000;
    --bg-color: #fafafa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated line art background */
.line-art-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.05;
    pointer-events: none;
}

.line-svg {
    width: 100%;
    height: 100%;
    color: var(--primary-color);
}

.line-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 8s ease-in-out forwards;
}

.line-1 { animation-delay: 0s; }
.line-2 { animation-delay: 0.5s; }
.line-3 { animation-delay: 1s; }
.line-4 { animation-delay: 1.5s; }

.circle-1, .circle-2 {
    stroke-dasharray: 628;
    stroke-dashoffset: 628;
    animation: drawLine 6s ease-in-out forwards;
}

.circle-1 { animation-delay: 2s; }
.circle-2 { animation-delay: 2.5s; }

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

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

/* Profile section */
.profile-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Line art portrait */
.line-portrait {
    width: 250px;
    height: 250px;
    position: relative;
    animation: floatAnimation 6s ease-in-out infinite;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--line-color);
}

.line-portrait svg {
    width: 100%;
    height: 100%;
    color: var(--primary-color);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.05));
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.3s ease;
}

.line-portrait:hover .portrait-image {
    filter: grayscale(0%) contrast(1);
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Introduction content */
.intro-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.line-text {
    display: block;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    opacity: 0;
    animation: slideIn 0.8s ease-out 0.3s forwards;
}

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

.name {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    opacity: 0;
    animation: slideIn 0.8s ease-out 0.5s forwards;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--highlight-color);
    animation: expandLine 1s ease-out 1.5s forwards;
}

@keyframes expandLine {
    to {
        width: 100px;
    }
}

.tagline {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.7s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
    max-width: 500px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.9s forwards;
}

/* Social links */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.1s forwards;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-color);
    border-radius: 50%;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* CTA Button */
.cta-section {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.3s forwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: #fff;
}

.cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* Decorative lines */
.decorative-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.dec-line {
    position: absolute;
    background: var(--line-color);
}

.line-horizontal {
    width: 0;
    height: 1px;
    top: 30%;
    left: 0;
    animation: expandHorizontal 2s ease-out 1s forwards;
}

.line-vertical {
    width: 1px;
    height: 0;
    top: 0;
    right: 20%;
    animation: expandVertical 2s ease-out 1.5s forwards;
}

@keyframes expandHorizontal {
    to {
        width: 40%;
    }
}

@keyframes expandVertical {
    to {
        height: 60%;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .name {
        font-size: 2rem;
    }

    .highlight {
        font-size: 2.5rem;
    }

    .line-portrait {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }
}

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

    .name {
        font-size: 1.5rem;
    }

    .highlight {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .description {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
