:root {
    --black: #000000;
}

img {
    width: 500px;
}

body{
    text-align: center;
    font-family: 'Arial';
    background-image: linear-gradient(135deg, #00aeff, #0533ff);
    color: white;
}

a {
  color: white;
}

.navbar {
    background-color: #1380ed;
    padding: 15px 20px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar li {
    display: inline;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.navbar a:hover {
    color: #00ffdd;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
}

.project-card {
    background: var(--black);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
    transition: .3s;
    color: white;
}

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

.project-card summary {
    list-style: none;
    cursor: pointer;
}

.project-card summary::-webkit-details-marker {
    display: none;
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-card h2 {
    padding: 20px;
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
}

.project-card p {
    padding: 0 20px;
    line-height: 1.6;
    color: #d4d4d4;
}

.project-card a {
    display: inline-block;
    margin: 20px;
    padding: 12px 20px;
    background: #4f46e5;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: .2s;
}

.project-card a:hover {
    background: #6366f1;
}

.project-card[open] {
    border: 2px solid #4f46e5;
}

.typing {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #4f46e5;
    animation: typing 2.5s steps(25), blink .7s infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}