:root {
    --bg-color: #0d1117;
    --card-bg-color: #161b22;
    --border-color: #30363d;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-blue: #58a6ff;
    --accent-green: #238636;
    --whatsapp-color: #25D366;
    --telegram-color: #2AABEE;
    --github-color: #e6edf3;
    --instagram-color: #E4405F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #0d1117 60%);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.profile-card {
    background-color: rgba(22, 27, 34, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.5s ease-out forwards;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(88, 166, 255, 0.1);
}

.profile-header {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.6s 0.8s ease-out forwards;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-info .title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 15px;
    font-style: italic;
}

section {
    margin-bottom: 35px;
    width: 100%;
}

.tech-stack {
    opacity: 0;
    animation: fadeInUp 0.6s 1s ease-out forwards;
}

.motivation-slider {
    opacity: 0;
    animation: fadeInUp 0.6s 1.2s ease-out forwards; 
}

.contact {
    opacity: 0;
    animation: fadeInUp 0.6s 1.4s ease-out forwards; 
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: inline-block;
}

.stack-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.stack-item {
    background-color: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(88, 166, 255, 0.3);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s ease;
}

.stack-item:hover {
    background-color: rgba(88, 166, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(88, 166, 255, 0.2);
}

.slider-container {
    position: relative;
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 160px; 
}

.slide p {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background-color: rgba(88, 166, 255, 0.2);
    color: var(--accent-blue);
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--accent-blue);
    transform: scale(1.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
}

.social-icon {
    color: var(--text-secondary);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
    text-decoration: none;
}

.social-icon:hover { transform: scale(1.2); }
.social-icon.telegram:hover { color: var(--telegram-color); text-shadow: 0 0 15px var(--telegram-color); }
.social-icon.github:hover { color: var(--github-color); text-shadow: 0 0 15px var(--github-color); }
.social-icon.instagram:hover { color: var(--instagram-color); text-shadow: 0 0 15px var(--instagram-color); }
.social-icon.whatsapp:hover { color: var(--whatsapp-color); text-shadow: 0 0 15px var(--whatsapp-color); }

footer {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0;
    animation: fadeInUp 0.6s 1.6s ease-out forwards; 
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body { padding: 15px; }
    .profile-card { padding: 30px; }
    .profile-picture { width: 120px; height: 120px; }
    .profile-info h1 { font-size: 2rem; }
    .profile-info .title { font-size: 1rem; }
    h2 { font-size: 1.3rem; }
    .social-icon { font-size: 1.6rem; }
    .slide { padding: 15px; min-height: 200px; }
    .slider-btn { width: 35px; height: 35px; }
    .slider-btn.prev { left: 0px; }
    .slider-btn.next { right: 0px; }
}
