/* CSS Reset & Variables */
:root {
    --bg-color: #ffffff;
    --text-color: #a401c4;
    --font-family: 'JetBrains Mono', monospace;
    --bg-alternate: #fcf4fe;
}

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

html {
    scroll-behavior: smooth; /* Smooth scrolling between sections */
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(164, 1, 196, 0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.navbar a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.navbar a:hover, .navbar a.active {
    opacity: 0.7;
    text-decoration: underline;
}

/* Sections */
.section-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px; /* Padding top for fixed navbar */
}

.bg-alternate {
    background-color: var(--bg-alternate);
}

/* Welcome Section Specific Styling (matches Figma Auto Layout) */
.welcome-content {
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    line-height: normal; /* To match leading-[0] inner content */
    max-width: 330px;
}

.welcome-content p {
    margin-bottom: 0;
}

/* Other sections wrapper */
.content-wrapper {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

h2 {
    font-size: 32px;
    margin-bottom: 1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.project-card {
    border: 2px solid var(--text-color);
    border-radius: 8px;
    padding: 2rem;
    background-color: white;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .navbar ul {
        gap: 1rem;
    }
    
    .navbar a {
        font-size: 14px;
    }

    .welcome-content {
        font-size: 18px;
    }
    
    h2 {
        font-size: 24px;
    }
}
