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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #666666;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #1f1f1f;
    --card-bg: #161616;
    --card-hover: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

.main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 100vh;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    flex-shrink: 0;
}

.profile-img {
    width: 290px;
    height: 290px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--border);
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.8s ease 0.3s forwards;
}

.profile-info {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below content size */
    margin-top: -20px; /* Move text content up slightly for better alignment */
}

.name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.1s forwards;
}

.title {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.bio {
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.5s forwards;
}

.social-link {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--text-primary);
}

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

/* Goals section (hidden by default) */
.goals {
    padding: 4rem 2rem;
    background: var(--card-bg);
    margin: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.goals.hidden {
    display: none;
}

.goals-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.goals-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.goal-item h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.goal-item ul {
    list-style: none;
    padding-left: 0;
}

.goal-item li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.goal-item li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 0.75rem;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.friends-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.friends-text {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.friends-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 4rem;
}

.friend-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.friend-link:hover {
    color: var(--accent);
}

.friend-link:first-child:hover {
    transform: translateX(-3px);
}

.friend-link:last-child:hover {
    transform: translateX(3px);
}

.arrow-left, .arrow-right {
    font-size: 1.1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem 2rem;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        align-items: center;
    }
    
    .profile-info {
        margin-top: 0; /* Reset margin on mobile for better stacking */
    }
    
    .profile-img {
        width: 220px;
        height: 220px;
    }
    
    .name {
        font-size: 3rem;
    }
    
    .title {
        font-size: 1.15rem;
        margin-bottom: 0.7rem;
    }
    
    .bio {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .nav-links {
        justify-content: center;
        gap: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
    
    .social-links {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .social-link svg {
        width: 22px;
        height: 22px;
    }
    
    .friends-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Hide footer on mobile devices */
    .footer {
        display: none;
    }
    
    .goals {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    
    .goals-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.5rem;
        white-space: normal; /* Allow wrapping on very small screens */
    }
    
    .title {
        font-size: 1rem;
    }
    
    .bio {
        font-size: 0.9rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .name,
    .title,
    .bio,
    .nav-links,
    .social-links,
    .profile-img {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
