:root {
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-primary: #f0f0f0;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --accent-color: #00e5ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(45deg, #000000, #121212);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 80px;
    overflow-x: hidden;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2.5rem auto;
    max-width: 1300px;
    box-shadow: 0 10px 40px 0 rgba(31, 38, 135, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px 0 rgba(31, 38, 135, 0.5);
}

.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.logo:hover {
    color: var(--accent-color);
}

.nerd-logo {
    color: var(--text-primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.nerd-logo:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 0.2rem;
}

nav a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.hero {
    text-align: center;
    padding: 5rem 2rem;
    animation: fadeIn 1s ease-in-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: slideIn 1s ease-in-out;
}

.hero h2 {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: slideIn 1.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info span, .contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
}

.contact-info i {
    margin-right: 0.5rem;
}

.whatsapp-button {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    background: var(--accent-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.2);
    background: #00e5ff;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 229, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

.whatsapp-button a {
color: #ffffff;
font-size: 2.5rem;
    color: white;
    font-size: 2rem;
}

.timeline {
    display: grid;
    gap: 2.5rem;
}

.experience-item {
    position: relative;
    padding-left: 4.5rem;
    margin-left: 2rem;
    border-left: 4px solid var(--glass-border);
    transition: border-color 0.3s ease;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--text-primary);
    border-radius: 50%;
    z-index: 2;
    transition: background 0.3s ease;
}

.experience-item:hover::before {
    background: var(--accent-color);
}

.experience-item i {
    position: absolute;
    left: 1rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.duration {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0.5rem 0;
    transition: color 0.3s ease;
}

.experience-item:hover .duration {
    color: var(--accent-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.skill-category h3 {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.skill-category:hover h3 {
    color: var(--accent-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.8rem;
    transition: padding-left 0.3s ease;
}

.skill-category li:hover {
    padding-left: 2rem;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.skill-category {
    position: relative;
    padding-left: 3.5rem;
    transition: padding-left 0.3s ease;
}

.skill-category:hover {
    padding-left: 4rem;
}

.skill-category i {
    position: absolute;
    left: 0;
    top: 0.25rem;
    font-size: 1.6rem;
    color: var(--accent-color);
    opacity: 0.8;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.skill-category:hover i {
    transform: rotate(360deg);
}

.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease;
}

.section-header:hover {
    border-color: var(--accent-color);
}

.section-header i {
    font-size: 1.8rem;
    color: var(--accent-color);
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
}

.section-header h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.section-header:hover h2 {
    color: var(--accent-color);
}

.project-item {
    position: relative;
    padding-left: 3.5rem;
    transition: padding-left 0.3s ease;
}

.project-item:hover {
    padding-left: 4rem;
}

.project-item i {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    font-size: 1.2rem;
    color: var(--accent-color);
    opacity: 0.8;
    transition: transform 0.3s ease, color 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.project-item:hover i {
    transform: scale(1.3);
    color: #00e5ff;
}

#expertise ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    list-style: none;
}

#expertise ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
    opacity: 0.8;
    display: flex;
    align-items: center;
    width: 1.5rem;
    height: 1.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.project-item {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
}

.project-item h3 {
    margin: 0.6rem 0;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.project-item:hover h3 {
    color: var(--accent-color);
}

.project-item .duration {
    display: inline-block;
    margin: 0.6rem 0;
    padding: 0.3rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.project-item:hover .duration {
    background: rgba(0, 229, 255, 0.2);
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .nav-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}