@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600&display=swap');

:root {
    --primary-color: #10b981;
    --secondary-color: #0ea5e9;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background-color: #ffffff;
    --card-background: #f9fafb;
    --card-border: #e5e7eb;
    --hover-color: #f3f4f6;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --header-font: 'Public Sans', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    max-width: 60%;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* header */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    font-family: var(--header-font);
    color: #000;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--light-text);
}

nav a svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

nav a:hover svg {
    transform: scale(1.1);
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* intro section */
.intro {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.intro-content {
    flex: 2;
}

.profile-image {
    flex: 1;
    text-align: center;
}

.profile-image img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 300px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.stats {
    list-style: none;
    margin-bottom: 20px;
}

.stats li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.stats li::before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.bio {
    color: var(--light-text);
    margin-bottom: 20px;
}

/* section styles */
section {
    margin-bottom: 60px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
}

h2::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background-color: var(--card-border);
    margin-left: 20px;
}

/* project grid */
.project-grid,
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card,
.directory-card {
    background-color: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover,
.directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.project-icon,
.directory-icon {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.directory-icon {
    background-color: var(--secondary-color);
    color: white;
}

.project-card h3,
.directory-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-card p,
.directory-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.project-link,
.directory-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--light-text);
    font-size: 1.2rem;
    transition: color 0.2s;
}
/* card arrow direction */
/* .project-link i,
.directory-link i {
    transform: rotate(-45deg);
    display: inline-block;
} */

.project-link:hover,
.directory-link:hover {
    color: var(--primary-color);
}

/* blog section */
.blog-post {
    background-color: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.blog-post h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
}

/* newsletter section */
.newsletter {
    text-align: center;
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.newsletter h2 {
    justify-content: center;
}

.newsletter h2::after {
    display: none;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 20px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

/* footer */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--card-border);
    color: var(--light-text);
    font-size: 0.9rem;
}

/* responsive */
@media (max-width: 768px) {
    body {
        max-width: 100%;
    }

    .intro {
        flex-direction: column-reverse;
    }

    .project-grid,
    .directory-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* hackathon projects section */
.hackathon-projects {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 60px;
}

.hackathon-projects h2 {
    color: var(--text-color);
}

.hackathon-projects .project-card {
    border: 1px solid var(--card-border);
    background-color: white;
}