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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

.about-section {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.about-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center -0px;
    border: 5px solid #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.about-content p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

.section-title {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.contact-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

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

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #667eea;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 15px;
    border-radius: 10px;
}

.social-link:hover {
    transform: translateY(-5px);
    color: #764ba2;
}

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.social-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out backwards;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.project-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.project-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-url {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
}

.project-card:hover .project-url {
    text-decoration: underline;
}

footer {
    text-align: center;
    color: rgba(255,255,255,0.8);
    margin-top: 40px;
    font-size: 0.9rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-section {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

    .about-photo {
        width: 150px;
        height: 150px;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .contact-section {
        padding: 30px 20px;
    }

    .contact-section h2 {
        font-size: 1.5rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-icon {
        font-size: 2rem;
    }

    .projects {
        grid-template-columns: 1fr;
    }
}
