:root {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
    --accent: #6366f1;
    --border: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
}

.profile-wrapper,
.projects-wrapper,
.skills-wrapper,
.contact-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.profile-wrapper.visible,
.projects-wrapper.visible,
.skills-wrapper.visible,
.contact-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.projects-header {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2rem;
}

.skills-header {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2rem;
}

.contact-header {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2rem;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    width: 100%;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    width: 100%;
}

.contact-links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.skills-category {
    background: var(--card);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 500px;
    text-align: center;
    border: 1px solid var(--border);
    backdrop-filter: blur(6px);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--accent);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card {
    background: var(--card);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    width: 350px;
    text-align: center;
    border: 1px solid var(--border);
    backdrop-filter: blur(6px);
    animation: fadeIn 0.6s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent);
}

.name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bio {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.description {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.socials a {
    color: var(--text);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent);
}

.footer {
    position: relative;
    padding: 2rem;
    margin-top: auto;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px var(--accent); }
    50% { text-shadow: 0 0 15px var(--accent); }
}

.projects {
    background: var(--card);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    backdrop-filter: blur(6px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-item {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: auto;
    min-height: 60px;
}

.project-links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
    height: 40px;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    height: 36px;
    width: 110px;
    border-radius: 0.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.project-links a i {
    font-size: 0.9rem;
}

.project-links a:hover {
    border-color: var(--accent);
    background: var(--card);
    transform: translateY(-2px);
}

.project-links a:hover i {
    transform: scale(1.1);
}

.project-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.skill-tag {
    background: var(--card);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    width: 350px;
    text-align: center;
    border: 1px solid var(--border);
    backdrop-filter: blur(6px);
}

.skill-item {
    background: var(--bg);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.skills-list .skill-item:nth-child(1) { animation-delay: 0.1s; }
.skills-list .skill-item:nth-child(2) { animation-delay: 0.2s; }
.skills-list .skill-item:nth-child(3) { animation-delay: 0.3s; }
.skills-list .skill-item:nth-child(4) { animation-delay: 0.4s; }

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.skill-progress {
    width: 100%;
    height: 6px;
    background: var(--card);
    border-radius: 3px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.skill-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.5s ease;
    animation: slideIn 1s ease-out forwards;
    transform-origin: left;
}

.skill-percent {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: right;
    margin-top: 0.3rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

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

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

.scroll-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: var(--card);
    padding: 0.8rem 0.5rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--accent);
    transform: scale(1.5);
}

.scroll-indicator {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    color: var(--text);
    opacity: 0.7;
    animation: bounce 2s infinite;
    z-index: 100;
    font-size: 1.2rem;
    background: var(--card);
    padding: 0.8rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contact-link i {
    font-size: 1.4rem;
    color: var(--accent);
}

.contact-container {
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    width: 100%;
    max-width: 800px;
}

.contact-form {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

.form-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 2.8rem;
    color: var(--accent);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    padding-left: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: var(--text);
    border: none;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.captcha-challenge {
    background: var(--bg);
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid var(--border);
    color: var(--accent);
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}
