* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #0f172a;
    color: white;
}

/* Navbar */
header {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    background: #020617;
    position: sticky;
    top: 0;
}

header h2 {
    
    color: #38bdf8;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

/* Hero */
.hero {
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 3rem;
    color: #38bdf8;
}

.hero p {
    margin-top: 10px;
    color: #94a3b8;
}

/* Sections */
.section {
    padding: 60px 50px;
}

.section h2 {
    margin-bottom: 20px;
    color: #38bdf8;
}

/* Projects */
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 10px;
}

.card p {
    padding: 0 10px 10px;
    color: #cbd5f5;
}

.card:hover {
    transform: scale(1.05);
}

/* Contact */
#contact p {
    margin: 10px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #020617;
    margin-top: 30px;
}
.heart{
  color:rgb(254, 81, 130);
}



/* ================= RESPONSIVE DESIGN ================= */

/* Tablet */
@media (max-width: 1024px) {
    header {
        padding: 15px 30px;
    }

    .section {
        padding: 40px 30px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Navbar */
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    nav {
        margin-top: 10px;
    }

    nav a {
        margin: 10px;
        display: inline-block;
    }

    /* Hero */
    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 14px;
    }

    /* Sections */
    .section {
        padding: 40px 20px;
    }

    /* Projects grid */
    .project-container {
        grid-template-columns: 1fr;
    }

    .card img {
        height: 180px;
    }

    /* Text size adjust */
    p {
        font-size: 14px;
    }
}

/* Small Mobile (Extra small devices) */
@media (max-width: 480px) {

    header h2 {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 13px;
    }

    .section h2 {
        font-size: 20px;
    }

    .card h3 {
        font-size: 16px;
    }

    .card p {
        font-size: 13px;
    }
}

.card {
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
}