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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: #1d1d1f;
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

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

.nav-links a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    font-size: 0.9375rem;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: #0088FF;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
    padding-top: 5rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #1d1d1f;
}

.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #86868b;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.hero p {
    font-size: 1.1875rem;
    margin-bottom: 2.5rem;
    color: #1d1d1f;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.47059;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 22px;
    font-weight: 400;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: #0088FF;
    color: white;
}

.btn-primary:hover {
    background: #0071d9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #0088FF;
    border: 1px solid #0088FF;
}

.btn-secondary:hover {
    background: rgba(0, 136, 255, 0.1);
    transform: translateY(-1px);
}

/* Sections */
.section {
    padding: 6rem 0;
    background: #ffffff;
}

.section:nth-child(even) {
    background: #f5f5f7;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.1875rem;
    color: #86868b;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.47059;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.about-text p {
    margin-bottom: 1.25rem;
    color: #1d1d1f;
    font-size: 1.0625rem;
    line-height: 1.47059;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: white;
    padding: 1.5rem;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
}

.skill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.skill-card h4 {
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-image {
    height: 200px;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    font-size: 3rem;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-icon:hover {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.project-description {
    color: #1d1d1f;
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.47059;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 400;
    border: 0.5px solid rgba(0, 0, 0, 0.04);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    padding: 0.625rem 1.25rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9375rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-links .btn-primary {
    background: #0088FF;
    color: white;
}

.project-links .btn-primary:hover {
    background: #0071d9;
}

.project-links .btn-secondary {
    border: 1px solid #0088FF;
    color: #0088FF;
    background: transparent;
}

.project-links .btn-secondary:hover {
    background: rgba(0, 136, 255, 0.1);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #0088FF;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 2rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: #0088FF;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid white;
    box-shadow: 0 0 0 4px #0088FF;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.timeline-company {
    font-weight: 400;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

.timeline-date {
    color: #86868b;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: #1d1d1f;
    font-size: 1.0625rem;
    line-height: 1.47059;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: #0088FF;
    color: white;
    text-decoration: none;
    border-radius: 22px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
    font-weight: 400;
}

.contact-link:hover {
    background: #0071d9;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: #f5f5f7;
    color: #86868b;
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.875rem;
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .hero-photo {
        width: 140px;
        height: 140px;
        margin-bottom: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 0;
    }

    .timeline-dot {
        left: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        color: #f5f5f7;
        background: #000000;
    }

    .header {
        background: rgba(0, 0, 0, 0.8);
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        color: #f5f5f7;
    }

    .hero {
        background: linear-gradient(180deg, #1d1d1f 0%, #000000 100%);
    }

    .hero-content {
        color: #f5f5f7;
    }

    .hero h2 {
        color: #a1a1a6;
    }

    .hero p {
        color: #f5f5f7;
    }

    .hero-photo {
        border: 4px solid #1d1d1f;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    }

    .section {
        background: #000000;
    }

    .section:nth-child(even) {
        background: #1d1d1f;
    }

    .section-title {
        color: #f5f5f7;
    }

    .section-subtitle {
        color: #a1a1a6;
    }

    .about-text h3 {
        color: #f5f5f7;
    }

    .about-text p {
        color: #f5f5f7;
    }

    .skill-card {
        background: #1d1d1f;
        border: 0.5px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .skill-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .skill-card h4 {
        color: #f5f5f7;
    }

    .project-card {
        background: #1d1d1f;
        border: 0.5px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .project-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    .project-image {
        background: linear-gradient(180deg, #1d1d1f 0%, #000000 100%);
        color: #f5f5f7;
    }

    .project-title {
        color: #f5f5f7;
    }

    .project-description {
        color: #f5f5f7;
    }

    .tech-tag {
        background: #2d2d2f;
        color: #f5f5f7;
        border: 0.5px solid rgba(255, 255, 255, 0.1);
    }

    .timeline-content {
        background: #1d1d1f;
        border: 0.5px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .timeline-title {
        color: #f5f5f7;
    }

    .timeline-company {
        color: #f5f5f7;
    }

    .timeline-date {
        color: #a1a1a6;
    }

    .timeline-description {
        color: #f5f5f7;
    }

    .timeline-dot {
        border: 4px solid #1d1d1f;
    }

    .footer {
        background: #1d1d1f;
        color: #a1a1a6;
    }
}

