:root {
    --bg-dark: #0a0a0a;
    --bg-medium: #111111;
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --brand-cyan: #1abc9c;
    --brand-purple: #9b59b6;
    --font-body: 'Google Sans Display', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    animation: fadeIn 1s ease-in-out;
}

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

h1, h2, h3, h4 {
    font-weight: 500;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-purple));
}

a {
    color: var(--brand-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand-purple);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1e0c3b 0%, #0d1a3b 100%);
}

.hero-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.name-glitch {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    color: white;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    margin-top: 0.5rem;
    max-width: 600px;
}

.location {
    margin-top: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap; /* Added flex-wrap for smaller screens */
    gap: 1.5rem;
    justify-content: center; /* Center items if wrapped */
}
.social-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: white;
    transform: translateY(-3px);
}
.social-links svg {
    width: 28px;
    height: 28px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
}
.scroll-down span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: var(--text-secondary);
    border-radius: 2px;
    animation: scroll-animation 2s infinite;
}
@keyframes scroll-animation {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- Main Content --- */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

section {
    margin-bottom: 6rem;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* --- Skillset --- */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax for more columns */
    gap: 1.5rem;
}
.skill-card {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}
.skill-card h3 {
    color: var(--brand-cyan);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.skill-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.skill-card li {
    position: relative;
    padding-left: 1.5em;
    color: var(--text-secondary);
    font-size: 0.95rem; /* Slightly smaller font for more items */
}
.skill-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--brand-cyan);
}

/* --- Projects --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.project-card {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: var(--brand-cyan);
}
.project-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-preview h3 {
    font-size: 1.75rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.project-tech h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.project-tech ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.project-tech li {
    background: #27272a;
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
}
.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}
.project-links a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
.project-links a:hover {
    background: var(--brand-cyan);
    border-color: var(--brand-cyan);
    color: var(--bg-dark);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    h2 {
        margin-bottom: 2rem;
    }
    .content {
        padding: 4rem 1rem;
    }
    .skill-grid, .project-grid {
        grid-template-columns: 1fr;
    }
}