body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;
    text-align: center;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    padding: 40px 20px;
    background-color: black;
    color: white;
    position: relative;
    animation: slideDown 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    animation: fadeIn 1.5s ease-out 0.3s both;
}

.logo {
    width: 60px;
    height: auto;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(360deg) scale(1.1);
}

header h1 {
    margin: 20px 0 0 0;
    font-size: 2.8em;
    font-weight: bold;
    animation: fadeInUp 1s ease-out 0.5s both;
    text-align: center;
}

.subtitle {
    margin: 10px 0;
    font-size: 1.3em;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.description {
    margin: 5px 0 0 0;
    font-size: 1em;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.9s both;
}

main {
    padding: 50px 20px;
    animation: fadeIn 1.2s ease-out 1s both;
}

section {
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease-out forwards;
}

section:nth-child(1) { animation-delay: 1.2s; }
section:nth-child(2) { animation-delay: 1.4s; }
section:nth-child(3) { animation-delay: 1.6s; }
section:nth-child(4) { animation-delay: 1.8s; }

h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    font-weight: bold;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: black;
    animation: growLine 0.8s ease-out 2s both;
}

p {
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 20px auto;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.profile-image {
    flex-shrink: 0;
    animation: bounceIn 1s ease-out 2.2s both;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-item {
    text-align: center;
    padding: 20px 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.skill-item:nth-child(1) { animation-delay: 2.4s; }
.skill-item:nth-child(2) { animation-delay: 2.5s; }
.skill-item:nth-child(3) { animation-delay: 2.6s; }
.skill-item:nth-child(4) { animation-delay: 2.7s; }
.skill-item:nth-child(5) { animation-delay: 2.8s; }

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: black;
}

.skill-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #f8f8f8;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.skill-icon .material-icons {
    font-size: 20px;
    color: #333;
    transition: color 0.3s ease;
}

.skill-item:hover .skill-icon {
    background-color: black;
}

.skill-item:hover .skill-icon .material-icons {
    color: white;
}

.skill-name {
    font-weight: bold;
    font-size: 1.1em;
    display: block;
    margin-bottom: 10px;
}

.skill-bar {
    background-color: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    background-color: black;
    height: 100%;
    width: 100%;
    border-radius: 4px;
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.experience-item {
    text-align: left;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
    position: relative;
}

.experience-item:nth-child(1) { animation-delay: 3s; }
.experience-item:nth-child(2) { animation-delay: 3.1s; }
.experience-item:nth-child(3) { animation-delay: 3.2s; }

.experience-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: black;
}

.experience-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.experience-icon .material-icons {
    font-size: 24px;
    color: #333;
    transition: color 0.3s ease;
}

.experience-item:hover .experience-icon {
    background-color: black;
}

.experience-item:hover .experience-icon .material-icons {
    color: white;
}

.experience-item h3 {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: bold;
}

.experience-item p {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #666;
}

.period {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
}

/* Social Media Cards */
.social-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.social-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
}

.social-card:nth-child(1) { animation-delay: 3.5s; }
.social-card:nth-child(2) { animation-delay: 3.6s; }
.social-card:nth-child(3) { animation-delay: 3.7s; }
.social-card:nth-child(4) { animation-delay: 3.8s; }
.social-card:nth-child(5) { animation-delay: 3.9s; }

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: black;
}

.social-icon-large {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #f8f8f8;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    transition: all 0.3s ease;
}

.social-card:hover .social-icon-large {
    background-color: black;
    transform: scale(1.1);
}

.social-card:hover .social-icon-large svg path,
.social-card:hover .social-icon-large svg circle {
    fill: white;
    stroke: white;
}

.social-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
}

.social-card p {
    margin: 0 0 20px 0;
    font-size: 1em;
    color: #666;
    line-height: 1.5;
}

.social-link {
    display: inline-block;
    padding: 12px 25px;
    background-color: black;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Original Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 4.2s both;
    margin-top: 40px;
}

.social-icons a {
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
    animation: popIn 0.5s ease-out forwards;
}

.social-icons a:nth-child(1) { animation-delay: 3.6s; }
.social-icons a:nth-child(2) { animation-delay: 3.7s; }
.social-icons a:nth-child(3) { animation-delay: 3.8s; }
.social-icons a:nth-child(4) { animation-delay: 3.9s; }
.social-icons a:nth-child(5) { animation-delay: 4.0s; }

.social-icons a:hover {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

footer {
    padding: 20px;
    background-color: black;
    color: white;
    font-size: 0.9em;
    animation: slideUp 1s ease-out 4.2s both;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes bounceIn {
    0% { 
        opacity: 0; 
        transform: scale(0.3); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes popIn {
    from { 
        opacity: 0; 
        transform: scale(0); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes growLine {
    from { width: 0; }
    to { width: 50px; }
}

/* Media Queries para Responsive */
/* Media Queries para Responsive */
@media (max-width: 1024px) {
    .about-content {
        gap: 30px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .experience-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        padding: 25px 15px;
        position: relative;
    }

    .logo-container {
        position: absolute;
        top: 15px;
        left: 15px;
    }

    .logo {
        width: 45px;
    }

    header h1 {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .description {
        font-size: 0.9em;
    }

    main {
        padding: 30px 15px;
    }

    section {
        max-width: 100%;
        margin-bottom: 40px;
    }

    h2 {
        font-size: 1.8em;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        justify-content: center;
        align-items: center;
    }

    .profile-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .profile-photo {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .social-icons {
        gap: 15px;
    }

    footer {
        padding: 15px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .logo-container {
        top: 10px;
        left: 10px;
    }

    .logo {
        width: 40px;
    }

    header h1 {
        font-size: 1.8em;
        margin-top: 15px;
    }

    .subtitle {
        font-size: 1em;
    }

    .description {
        font-size: 0.85em;
    }

    h2 {
        font-size: 1.5em;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
        margin: 0 auto;
        display: block;
    }

    .social-icons {
        gap: 12px;
    }

    .social-icons a svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 320px) {
    main {
        padding: 20px 10px;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
        margin: 0 auto;
        display: block;
    }
    
    .skill-item, .experience-item {
        padding: 15px;
    }
}
