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

p {
    color: #ffffff;
}

h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

body a {
    text-decoration: none;
}

/* Fix universal selector so box-sizing applies */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    padding: 2rem;

    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

/* Projects grid: align cards responsively while keeping each card a column flex container */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch; /* make cards equal height */
    margin-top: 2rem;
    margin-bottom: 4rem;
    margin-left: 2rem;
    margin-right: 2rem;

}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    padding: 2rem;

    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.project-card p {
    max-width: 280px;
    text-align: left;
}

/* Add text-align center for contribute section cards */
.contributors .project-card {
    text-align: center;
}

.contributors .project-card .project-links {
    justify-content: center;
}

/* Keep the buttons inside the card bounds */
.project-links {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start; /* change to center if you want centered buttons */
    margin-top: auto; /* pushes buttons to the bottom if the card grows */
}

/* Ensure link/buttons size correctly inside the flex row */
.project-links a {
    text-align: center;
    font-weight: 600;
    flex: 0 1 auto;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

nav {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
}

.paragraph-text {
    max-width: 600px;
    font-size: 1.2rem;
    margin: 0 auto;
    text-align: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: font-size 0.3s ease;
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    list-style: none;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #a855f7;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 5% 4rem;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #b0b0b0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    border: 2px solid #a855f7;
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.1);
    transform: translateY(-2px);
}

.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: #b0b0b0;
    line-height: 1.8;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-subtitle {
    text-align: center;
    color: #b0b0b0;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    padding: 3rem 5%;
    text-align: center;
    color: #808080;
}

footer a {
    color: #a855f7;
    text-decoration: none;
}

footer a:hover {
    color: #c084fc;
}

@media (max-width: 768px) {
    nav {
        padding: 0.75rem 4%;
    }

    .nav-links {
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 2rem;
    }
}

@media (max-width: 380px) {
    nav {
        padding: 0.5rem 3%;
    }

    .nav-links {
        gap: 0.75rem;
        padding: 0 0.25rem;
    }
}