/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-info a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    white-space: nowrap;
}

.contact-info a:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
    transform: translateY(-2px);
}

/* Navigation */
nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 4rem 0;
    animation: fadeIn 0.8s ease-out;
}

section:nth-child(even) {
    background: white;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    border-radius: 2px;
}

/* Summary */
.summary-content {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    line-height: 1.8;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
}

/* Experience */
.experience-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.job {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.job:hover {
    transform: translateX(5px);
}

.job-header {
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.4rem;
    color: #2c3e50;
    font-weight: 600;
}

.company {
    color: #3498db;
    font-weight: 500;
    font-size: 1.1rem;
}

.job-meta {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.job-description {
    margin-top: 1rem;
}

.job-description ul {
    padding-left: 1.5rem;
}

.job-description li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
}

.degree {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.university {
    color: #3498db;
    font-weight: 500;
}

/* AI Contents */
.ai-contents-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ai-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.ai-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    align-items: start;
}

.ai-platform-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ai-platform-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.platform-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
}

.platform-handle {
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 500;
    display: block;
}

.platform-break {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 1rem 0;
    grid-column: 1 / -1;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: rgba(255,255,255,0.7) }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .contact-info a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

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

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

    .job {
        padding: 1.5rem;
    }

    .ai-platforms {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 2rem 0;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    .contact-info {
        gap: 0.6rem;
    }

    .contact-info a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .ai-platform-link {
        padding: 1.5rem;
    }

    .platform-icon {
        font-size: 2.5rem;
    }

    .platform-break {
        margin: 0.8rem 0;
    }
}

@media (max-width: 380px) {
    .contact-info a {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .header-content h1 {
        font-size: 1.6rem;
    }

    .ai-platform-link {
        padding: 1.2rem;
    }

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

    .platform-break {
        margin: 0.6rem 0;
    }
}