/* Shadcn-inspired CSS variables */
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222.2 84% 4.9%;
    --muted: 210 40% 96%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96%;
    --accent-foreground: 222.2 84% 4.9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
}

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: #1f1e24;
    position: relative;
    overflow: hidden;
}

.landing-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
    background: hsl(var(--card));
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid hsl(var(--border));
    max-width: 600px;
    width: 100%;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid hsl(var(--border));
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin: 0 auto 2rem;
    display: block;
    object-fit: cover;
    background: hsl(var(--muted));
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: hsl(var(--foreground));
    letter-spacing: -0.025em;
}

.tagline {
    font-size: 1.125rem;
    margin: 0 0 1rem;
    color: hsl(var(--muted-foreground));
    font-weight: 400;
}

.description {
    font-size: 1rem;
    margin: 0 auto 2.5rem auto;
    /* Center horizontally */
    color: hsl(var(--muted-foreground));
    font-weight: 400;
    opacity: 0.8;
    max-width: 400px;
    line-height: 1.6;
    white-space: pre-line;
    text-align: center;
    /* Explicitly center text */
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: hsl(var(--foreground));
    text-align: left;
}

.section-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin: 0 0 1.5rem 0;
    text-align: left;
    opacity: 0.85;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--border)), transparent);
    margin: 2rem 0;
    border: none;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
}

.link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

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

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

.link:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.link:active {
    transform: translateY(0);
}

.link.secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border: 1px solid hsl(var(--border));
}

.link.secondary:hover {
    background: hsl(var(--secondary) / 0.8);
}

.link.outline {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

.link.outline:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: hsl(var(--muted) / 0.3);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.portfolio-item:hover {
    background: hsl(var(--muted) / 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    width: 100%;
    max-width: 320px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
    margin: 0 auto 0.75rem auto;
    display: block;
    background: hsl(var(--muted));
}

@media (max-width: 640px) {
    .portfolio-image {
        max-width: 100%;
        height: 140px;
    }
}

.portfolio-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    margin: 0;
}

.portfolio-description {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
    line-height: 1.4;
}

.portfolio-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.portfolio-links .link {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    flex: 1;
}

@media (max-width: 640px) {
    .content {
        padding: 2rem;
        margin: 1rem;
    }

    .name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading animation for missing image */
.profile-photo:not([src]),
.profile-photo[src=""] {
    background: linear-gradient(90deg, hsl(var(--muted)) 25%, hsl(var(--accent)) 50%, hsl(var(--muted)) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.site-footer {
    margin-top: 1rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.7rem;
    opacity: 0.85;
    padding-bottom: 2rem;
}

.site-footer .section-divider {
    margin: 1rem auto 0.5rem auto;
    max-width: 800px;
}

.site-footer .link.outline {
    margin-left: 0.25em;
    margin-right: 0.25em;
}