:root {
    --primary: #673ab7;
    --accent: #00bcd4;
    --bg: #f9fafc;
    --text-dark: #222;
    --text-light: #fff;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


body {
    background-color: var(--bg);
    color: var(--text-dark);
    overflow-x: hidden;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: var(--text-dark);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}


.nav-links li {
    display: inline;
    margin: 0 1rem;
}


.nav-links a {color: var(--text-light);
text-decoration: none;
transition: 0.3s;
}


.nav-links a:hover {
    color: var(--accent);
}


.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 90vh;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
}

.hero h1 {
font-size: 3rem;
margin-bottom: 1rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary {
    background: white;
    color: var(--primary);
}
.btn-primary:hover {
    background: #f4f4f4;
}


.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.about-preview {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4rem 3rem;
    background: white;
}

.about-preview img {
    width: 250px;
    border-radius: 50%;
}

.project-preview {
    padding: 4rem 3rem;
    text-align: center;
    background: #f1f3f6;
}

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


.project-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}


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

footer {
    background: var(--text-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
}

.socials img {
    width: 28px;
    margin: 0 10px;
    filter: invert(1);
}


@media (max-width: 768px) {
    .about-preview {
        flex-direction: column;
        text-align: center;
    }
}