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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: white;
    color: #111827;
    line-height: 1.6;
}

/* Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.slide-in-delay-1 {
    animation: slideInFromLeft 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.slide-in-delay-2 {
    animation: slideInFromLeft 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.slide-in-delay-3 {
    animation: slideInFromLeft 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.slide-in-delay-4 {
    animation: slideInFromLeft 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s;
}

nav.scrolled {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    cursor: pointer;
    transition: color 0.3s;
}

.logo:hover {
    color: #1d4ed8;
}

/* Logo image */
.logo-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
    text-transform: capitalize;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #111827;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.mobile-menu.open {
    display: flex;
}

/* Sections */
section {
    padding: 5rem 1.5rem;
}

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

.container-small {
    max-width: 1000px;
    margin: 0 auto;
}

/* Hero Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: #374151;
}

.contact-info a {
    color: #374151;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #2563eb;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: #111827;
    color: white;
}

.btn-secondary:hover {
    background: #1f2937;
    transform: scale(1.05);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.75rem;
    color: #374151;
    transition: all 0.3s;
}

.social-icon:hover {
    color: #2563eb;
    transform: translateY(-4px);
}

/* Section Headers */
h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 3rem;
}

.text-center {
    text-center: center;
}

/* About Section */
#about {
    background: #f9fafb;
}

.about-text {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.8;
}

.tech-container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
}

.tech-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #1f2937;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    cursor: default;
}

.tech-tag:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.05);
}

/* Experience Section */
.experience-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.card-company {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.card-period {
    color: #6b7280;
    font-weight: 500;
}

.card-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: #374151;
}

.card-list li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Education Section */
#education {
    background: #f9fafb;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.education-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.education-degree {
    font-size: 1.125rem;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.education-field {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.education-school {
    color: #6b7280;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Contact Section */
#contact {
    text-align: center;
}

.contact-intro {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 3rem;
}

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

.contact-box {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    display: inline-block;
    text-align: left;
}

.contact-box-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.contact-box-item:last-child {
    margin-bottom: 0;
}

.contact-box-item a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-box-item a:hover {
    color: #2563eb;
}

.contact-box-item i {
    color: #2563eb;
}

/* Footer */
footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    text-align: center;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 2rem;
    }

    .card-header {
        flex-direction: column;
    }

    .cta-buttons,
    .contact-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
