* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background-color: #121212;
}

a {
    color: #08f;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

section {
    padding: 3rem 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeInSection 1s ease-out forwards;
    background-color: #121212;
    color: #e0e0e0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #08f;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: linear-gradient(90deg, #08f, #41a3ff);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

#welcome {
    display:flex;justify-content:center;align-items:center;
    background: radial-gradient(circle, #1e1e2f, #121212);
    padding: 4rem 1rem;
    text-align: center;
    height:calc(100vh - 52px)
}

#welcome .section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#welcome p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.card {
    background-color: #1f1f2e;
    border-radius: 15px;
    box-shadow: 0 8px 16px #0006;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: cardFadeIn 0.8s ease forwards;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px #00000080;
}

.card model-viewer {
    width: 100%;
    height: 220px;
    background: #000;
}

.card-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.4rem;
    margin: 0.5rem 0;
    color: #41a3ff;
}

.card-description {
    flex: 1;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #b0bec5;
}

.card-rating {
    margin-top: 0.5rem;
}

.star {
    color: #fd0;
    font-size: 1.2rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #000c;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.5s;
    z-index: 999999999;
}

.modal-content {
    background-color: #1f1f2e;
    margin: auto;
    padding: 1.5rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 0;
    right: 5px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-banner {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #08f;
}

.modal-description {
    font-size: 1rem;
    color: #b0bec5;
}

#skills {
    background: linear-gradient(135deg, #1e1e2f, #121212);
    padding: 4rem 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.skill-card {
    background-color: #1f1f2e;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #08f;
}

.skill-name {
    font-size: 1.5rem;
    color: #41a3ff;
    margin-bottom: 0.5rem;
}

.skill-description {
    font-size: 1rem;
    color: #b0bec5;
    line-height: 1.5;
}