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

:root {
    --primary-color: #6a5acd; 
    --primary-hover: #5a4bbf;
    --secondary-color: #f0f8ff; 
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --card-bg: #fff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    animation: fadeIn 0.8s ease-in-out;
}

.container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        header {
            /* background: linear-gradient(135deg, #1b1b1d 0%, #232020 100%); */
            background-color: hsl(0, 0%, 100%);
            /* background: linear-gradient(135deg, #1b1b1d 0%, #474748 100%); */
            color: #333;
            padding: 1rem 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

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

        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        nav a {
            color: #333;
            letter-spacing: 1.5px;
            text-decoration: none;
            transition: color 0.3s ease;
            cursor: pointer;
            text-transform: uppercase;
        }

        nav a:hover {
            padding: .2rem .4rem;
            transform: translateY(2px);
            background-color: hsl(212, 95%, 95%);
            color: #1b1b1d;
            border-radius: 4px;
        }

        .logo {
            /* font-size: 1.5rem; */
            width: 4rem;
            height: 2.2rem;
            border-radius: 2px;
            display: block;
        }

        .logo:hover {
            transform: translateY(2px);
        }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    padding: 5rem 8%;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 8%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.navbar a {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--primary-color);
}

.projects-section {
    background-color: var(--secondary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: auto;
    object-fit: fill;
    display: block;
}

.card-content {
    padding: 1.5rem;
    justify-items: center;
}

.card-content h3 {
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    justify-self: center;
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: center;
    font-size: .9rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    width: 120px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-item i {
    font-size: 3.5rem;
    color: var(--text-light);
}

.skill-item svg:hover {
   fill: #5a4bbf;
}

.skill-item span {
    font-weight: 500;
    color: var(--text-light);
}

.skill-item:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
}

.skill-item:hover i, .skill-item:hover span {
    color: var(--primary-color);
}

.contact-section {
    background-color: var(--secondary-color);
    text-align: center;
}

.contact-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.contact-form button {
    align-self: center;
    cursor: pointer;
    border: none;
}

.footer {
    padding: 2rem 8%;
    text-align: center;
    background: var(--bg-color);
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-light);
}









/* --- RESPONSIVENESS --- */
@media (max-width: 1100px) {


    .hero-image img {
        width: 300px;
        height: 300px;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 950px) {

    nav a {
                font-size: .8rem;
    }

    section {
        padding: 4rem 5%;
    }
    .header {
        padding: 1.2rem 5%;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {

     nav a {
        font-size: .8rem;
    }

    nav a:hover {
        padding: .1rem .2rem;
        border-radius: 3px;
    }

    nav ul {
        gap: 1rem;
    }

    .navbar {
        display: none; 
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }
    .hero-content {
        max-width: 100%;
    }
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 475px) {

    html {
        font-size: 14px;
    }

    nav a {
        font-size: 1rem;
    }

    nav ul {
        gap: .8rem;
    }

    section {
        padding: 3rem 5%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 436px) {
    nav a {
        font-size: 1rem;
    }

    nav ul {
        gap: .7rem;
    }

    nav a {
        font-size: .7rem;
    }

    .logo {
        width: 3rem;
        height: 1.7rem;
    }
}

@media (max-width: 376px) {
     html {
        font-size: 13px;
    }

    nav a {
        font-size: .8rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 321px) {
    
    .skill-item {
        width: 100px;
    }
}