body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0f172a;
    color: white;
    text-align: center;
}

/* Header */
header {
    padding: 40px;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    animation: fadeDown 1s ease;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* Hero */
.hero {
    padding: 60px 20px;
    animation: fadeUp 1.2s ease;
}

.hero button {
    margin-top: 20px;
    padding: 12px 25px;
    border: none;
    background: #3b82f6;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.hero button:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Sections */
section {
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* Show animation */
section.show {
    opacity: 1;
    transform: translateY(0);
}

/* Skills */
.skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.skills span {
    background: #1e293b;
    padding: 10px 15px;
    border-radius: 20px;
    transition: 0.3s;
}

.skills span:hover {
    transform: translateY(-5px);
    background: #3b82f6;
}

/* Projects */
.project {
    background: #1e293b;
    margin: 15px auto;
    padding: 20px;
    width: 80%;
    border-radius: 10px;
    transition: 0.3s;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background: #020617;
    padding: 20px;
    margin-top: 30px;
}

/* Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Projects Layout */
.projects-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Project Card */
.project-card {
    background: #1e293b;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    margin: auto;
    border-radius: 12px;
    text-align: left;
    transition: 0.3s;
}

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

/* Tags */
.tags {
    margin: 10px 0;
}

.tags span {
    display: inline-block;
    background: #334155;
    padding: 5px 10px;
    margin: 5px 5px 0 0;
    border-radius: 15px;
    font-size: 12px;
}

/* Button */
.project-card a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    background: #3b82f6;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    transition: 0.3s;
}

.project-card a:hover {
    background: #2563eb;
}
/* Light Mode */
.light-mode {
    background: #f1f5f9;
    color: #0f172a;
}

.light-mode header {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
}

.light-mode .project-card,
.light-mode .skills span {
    background: #e2e8f0;
    color: #0f172a;
}

.light-mode .project-card a {
    background: #2563eb;
}
.project-card ul {
    text-align: left;
    margin-top: 10px;
}

.project-card li {
    margin: 5px 0;
}
.project-img {
    width: 100%;
    margin-top: 15px;
    border-radius: 10px;
    transition: 0.3s;
}

.project-img:hover {
    transform: scale(1.02);
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.image-grid img {
    width: 100%;
    border-radius: 10px;
    transition: 0.3s;
}

.image-grid img:hover {
    transform: scale(1.05);
}
/* Popup background */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

/* Popup image */
.popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}