:root {
    --background: #09090b; /* shadcn Background */
    --foreground: #fafafa; /* shadcn Foreground */
    --card: #18181b;       /* shadcn Card */
    --card-foreground: #fafafa; /* shadcn Card Foreground */
    --muted: #27272a;       /* shadcn Muted */
    --muted-foreground: #a1a1aa; /* shadcn Muted Foreground */
    --accent: #7c3aed;      /* Example Accent (purple) - adjust if needed */
    --border: #27272a;       /* shadcn Border */
    --radius: 0.5rem;       /* shadcn Radius */
}

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

html, body {
    height: 100%;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden; /* Hide body scrollbars if canvas overflows slightly */
    position: relative; /* Needed for canvas positioning */
}

#background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place canvas behind content */
}

.container {
    max-width: 700px;
    width: 100%;
    text-align: center;
    z-index: 1; /* Ensure content is above canvas */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between cards/sections */
    overflow-y: auto; /* Allow container scrolling if content exceeds viewport */
    max-height: calc(100vh - 4rem); /* Limit height to viewport minus padding */
    padding: 1rem; /* Add padding inside the container */
}

/* Card Styling (emulating ShadCN) */
.card {
    background-color: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* Subtle shadow */
}

/* Specific Card Styling */
.profile-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-card .subtitle {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.profile-card .status {
    font-size: 0.9rem;
    color: var(--foreground); /* Make status clear */
    background-color: var(--muted);
    padding: 0.3rem 0.6rem;
    border-radius: calc(var(--radius) / 2);
    display: inline-block;
}

.skills-card h2,
.consulting-card h2,
.connect-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--card-foreground);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--muted);
    padding: 0.75rem 1rem;
    border-radius: calc(var(--radius) / 1.5);
    font-size: 0.95rem;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
}

.skill-icon {
    width: 20px; /* Consistent icon size */
    height: 20px;
    stroke-width: 1.5; /* Thinner lines for subtle icons */
    color: var(--accent); /* Use accent color for icons */
    flex-shrink: 0;
}

.consulting-card p {
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.consulting-card p:last-child {
    margin-bottom: 0;
}

.connect-section {
     /* No card background for footer, just text */
    padding-top: 1rem; /* Add some space above links */
}

.connect-section h2 {
     border: none;
     padding-bottom: 0;
     margin-bottom: 1rem;
     color: var(--foreground); /* Make footer heading stand out a bit */
}

.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow links to wrap on smaller screens */
    gap: 1rem;
}

.link-button {
    display: inline-block;
    background-color: var(--muted);
    color: var(--muted-foreground);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: 1px solid var(--border);
}

.link-button:hover {
    background-color: var(--border); /* Slightly darker on hover */
    color: var(--foreground); /* Brighter text on hover */
}

a {
    text-decoration: none;
    color: inherit; /* Inherit text color from parent */
}

a:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 3px var(--accent); /* Add custom focus ring */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    .container {
        gap: 1rem;
        padding: 0.5rem;
         max-height: calc(100vh - 2rem);
    }
    .card {
        padding: 1rem;
    }
    .profile-card h1 {
        font-size: 1.8rem;
    }
    .skills-grid {
        grid-template-columns: 1fr; /* Stack skills on small screens */
    }
    .links {
        flex-direction: column; /* Stack links vertically */
        align-items: center;
        gap: 0.75rem;
    }
    .link-button {
        width: 80%; /* Make buttons wider for easier tapping */
        max-width: 250px;
    }
}