* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d63384;
    --secondary: #ff85a2;
    --bg: #fff5f8;
    --card: #ffffff;
    --text: #333;
    --soft: #888;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #fff0f5, #ffe4e9);
    color: var(--text);
    line-height: 1.6;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 40px;

    background: rgba(255, 182, 193, 0.7);
    backdrop-filter: blur(10px);

    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

nav h1 {
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: "";
    width: 0%;
    height: 2px;
    background: white;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1000px;
}

.profile-pic {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    object-fit: cover;

    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-text h2 {
    font-size: 3rem;
    color: var(--primary);
}

.hero-text p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: var(--soft);
    max-width: 400px;
}

section {
    padding: 100px 20px;
    max-width: 1100px;
    margin: auto;
}

section h1, section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.skills-grid div {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card);
    border-radius: 15px;
    padding: 15px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.card-images img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.card h3 {
    margin-top: 15px;
    color: var(--primary);
}

.card p {
    font-size: 0.9rem;
    color: var(--soft);
    margin-top: 5px;
}

/* contac */
#contact {
    text-align: center;
}


form {
    max-width: 450px;
    margin: auto;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

form input, form textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: var(--secondary);
}

/* footer */
footer {
    text-align: center;
    padding: 20px;
    background: #ffb6c1;
    color: white;
    margin-top: 50px;
}

/* mob */
@media (max-width: 768px) {

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 2rem;
    }
}

/* darkmode */
.dark-mode {
    background: #121212;
    color: #eee;
}

.dark-mode nav {
    background: rgba(30,30,30,0.8);
}

.dark-mode .card,
.dark-mode .skills-grid div {
    background: #1e1e1e;
}

.dark-mode .card p {
    color: #bbb;
}

.dark-mode footer {
    background: #1f1f1f;
}

.dark-mode .hero-text h2 {
    color: #ff85a2;
}

body, nav, .card, .hero, footer {
    transition: 0.3s;
}