html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #0e0e0e;
    color: #eaeaea;
    overflow-x: hidden;
}

.main-wrapper {
    zoom: 1.3;
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -1;
}

#loading {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#loading.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #333;
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 35px;
    letter-spacing: 4px;
    color: #fff;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.8rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

section {
    min-height: 100vh;
    padding: 120px 12%;
}

.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 4px solid #444;
    box-shadow: 0 0 25px rgba(255,255,255,0.15);
}

.typewriter {
    margin-top: 10px;
    font-size: 1.5rem;
    color: #aaa;
    font-weight: 600;
    min-height: 1.6rem;
}

.timeline {
    max-width: 600px;
    margin-top: 40px;
}

.timeline-item {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 2px solid #444;
}

.skill-card {
    margin-top: 40px;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-header img {
    width: 42px;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.4));
}

.skill-header span {
    flex: 1;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #222;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.progress.python {
    background: #3776ab;
}

.progress.java {
    background: #f8981d;
}

.percent {
    opacity: 0;
    transition: opacity 0.5s;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.project {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    transition: 0.3s;
}

.project:hover {
    background: rgba(255, 255, 255, 0.1);
}

.project a {
    text-decoration: none;
    color: inherit;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    width: fit-content;
    margin-top: 30px;
}

.footer {
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding-top: 60px;
    padding-bottom: 20px;
    font-size: 0.8rem;
    color: #666;
    position: absolute;
    bottom: 20px;
    left: 0;
}

.footer a {
    color: #888;
    text-decoration: none;
}

.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px;
    padding: 15px 30px;
    border-radius: 50px;
    z-index: 100;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.bottom-nav a {
    color: #888;
    font-size: 1.2rem;
    transition: 0.3s;
}

.bottom-nav a:hover {
    color: #fff;
    transform: translateY(-3px);
}
