/**
 * Created by RimuruTempest
 * 2025 RimuruTempest
 * Github : https://github.com/RimuruTempest750
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #fff;
    height: 100vh;
    margin: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.gifer.com/g1Ij.gif') no-repeat center center fixed; /** Update LINK */
    background-size: cover;
    opacity: 0.15;
    z-index: -1;
}

.portfolio-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    padding: 15px;
    margin: 0 auto;
    margin-top: 20px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer et Edge */
}

/* Webkit (Chrome, Safari, Opera) */
.portfolio-container::-webkit-scrollbar {
    display: none;
}

.portfolio-container::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.portfolio-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(45, 45, 45, 0.9) 100%);
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.presentation-card {
    max-height: none;
    overflow: visible;
}

.skills-card {
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer et Edge */
}

/* Webkit (Chrome, Safari, Opera) */
.skills-card::-webkit-scrollbar {
    display: none;
}

.skills-card::-webkit-scrollbar-track {
    background: transparent;
}

.skills-card::-webkit-scrollbar-thumb {
    background: rgba(11, 0, 163, 0.3);
    border-radius: 3px;
}

.skills-card::-webkit-scrollbar-thumb:hover {
    background: rgba(28, 4, 160, 0.5);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.presentation-card .card-header {
    text-align: center;
    margin-bottom: 15px;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-bottom: 12px;
    animation: fadeIn 0.8s ease-out, pulse 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

h1 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInText 0.8s ease-out forwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.9rem;
    color: #aaa;
    opacity: 0;
    animation: fadeInText 1s ease-out forwards;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card-body p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #ddd;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInText 1.2s ease-out forwards;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.skills-card h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInText 0.8s ease-out forwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #0346ac, #0346ac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.1);
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #f0f0f0;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #110ea8, #0a28ac);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(82, 122, 173, 0.3);
}

.page-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.page-content.active {
    display: block;
}

.skills {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.skill-category {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #010108, #0a28ac, #4ecdc4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.skill-category h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.skill-category ul {
    list-style: none;
    padding-left: 0;
}

.skill-category ul li {
    font-size: 0.8rem;
    color: #ddd;
    margin-bottom: 4px;
    padding: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
    padding-left: 8px;
}

.skill-category ul li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
    color: #fff;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-item h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.project-item p {
    font-size: 0.85rem;
    color: #ddd;
    line-height: 1.4;
    margin-bottom: 10px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tag {
    background: linear-gradient(135deg, #000000, #090081);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.project-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.live-btn {
    background: linear-gradient(135deg, #010c6e, #00028d);
    color: #fff;
}

.live-btn:hover {
    background: linear-gradient(135deg, #2e1892, #2e1892);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.code-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
}

.code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-item h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.discord-icon {
    font-size: 1.2em;
    display: inline-block;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.contact-item p {
    font-size: 0.85rem;
    color: #ddd;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-link {
    color: #ddd;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ff6b6b;
}

.github-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 8px;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.github-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.github-btn:hover::before {
    left: 100%;
}

.github-btn:hover {
    background: linear-gradient(135deg, #555 0%, #777 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.github-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.github-btn:hover .github-icon {
    transform: rotate(360deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-category:nth-child(1) {
    animation: slideInFromLeft 0.8s ease-out 0.3s both;
}

.skill-category:nth-child(2) {
    animation: slideInFromLeft 0.8s ease-out 0.5s both;
}

.skill-category:nth-child(3) {
    animation: slideInFromRight 0.8s ease-out 0.7s both;
}

@media (max-width: 768px) {
    .portfolio-container {
        padding: 10px;
        margin-top: 15px;
        gap: 15px;
        max-width: 95%;
    }

    .card {
        padding: 15px;
        border-radius: 12px;
    }

    .skills-card {
        max-height: 65vh;
    }

    .skills {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav-buttons {
        gap: 8px;
        margin-bottom: 15px;
    }

    .nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .project-buttons {
        gap: 8px;
    }

    .project-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .profile-pic {
        width: 70px;
        height: 70px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .skills-card h2 {
        font-size: 1.3rem;
    }

    .skill-category h3 {
        font-size: 1rem;
    }

    .skill-category ul li {
        font-size: 0.75rem;
    }

    .github-btn {
        font-size: 13px;
        padding: 8px 15px;
    }

    .github-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .portfolio-container {
        padding: 8px;
        margin-top: 10px;
        gap: 12px;
    }

    .card {
        padding: 12px;
        border-radius: 10px;
    }

    .skills-card {
        max-height: 60vh;
    }

    .skills {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 12px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .project-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .project-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        justify-content: center;
    }

    .profile-pic {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }

    h1 {
        font-size: 1.3rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.75rem;
    }

    .card-body p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .skills-card h2 {
        font-size: 1.2rem;
    }

    .skill-category h3 {
        font-size: 0.9rem;
    }

    .skill-category ul li {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }

    .github-btn {
        font-size: 12px;
        padding: 7px 12px;
        gap: 6px;
    }

    .github-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 360px) {
    .portfolio-container {
        padding: 6px;
        margin-top: 8px;
    }

    .card {
        padding: 10px;
    }

    .skills-card {
        max-height: 55vh;
    }

    h1 {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 0.7rem;
    }

    .card-body p {
        font-size: 0.75rem;
    }

    .skills-card h2 {
        font-size: 1.1rem;
    }

    .skill-category h3 {
        font-size: 0.85rem;
    }

    .skill-category ul li {
        font-size: 0.65rem;
    }
}

.footer {
    background: linear-gradient(135deg, #222 0%, #333 100%);
    color: #ddd;
    text-align: center;
    padding: 12px;
    font-size: 0.8rem;
    border-radius: 10px 10px 0 0;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.footer-btn {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.footer-btn p {
    margin: 0;
    transition: all 0.3s ease;
}

.footer-btn:hover p {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #000000, #090081, #4ecdc4);
}

@media (max-width: 768px) {
    .footer {
        padding: 10px;
        font-size: 0.75rem;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 8px;
        font-size: 0.7rem;
        width: 90%;
    }
}
