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

:root {
    --apple-blue: #0071e3;
    --apple-text: #1d1d1f;
    --apple-text-secondary: #6e6e73;
    --apple-bg: #fbfbfd;
    --apple-card-bg: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    background: var(--apple-bg);
    color: var(--apple-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 44px;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-content {
    width: 100%;
    max-width: 980px;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--apple-text);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--apple-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-links a:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    margin-top: 44px;
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--apple-bg) 0%, #f5f5f7 100%);
}

.hero h1 {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1d1d1f 0%, #6e6e73 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 400;
    color: var(--apple-text-secondary);
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

/* Container */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Section */
section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--apple-blue);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--apple-text);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--apple-card-bg);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--apple-blue), #06c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.card:hover::before {
    transform: scaleX(1);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    /* background: linear-gradient(135deg, var(--apple-blue), #06c); */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--apple-text);
}

.card p {
    font-size: 17px;
    line-height: 1.47;
    color: var(--apple-text-secondary);
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--apple-blue);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: gap 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.card-link:hover {
    gap: 10px;
}

/* App Status Styles */
.app-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.app-status.available {
    background: rgba(0, 113, 227, 0.1);
    color: var(--apple-blue);
}

.app-status.available:hover {
    background: rgba(0, 113, 227, 0.15);
}

.app-status.coming-soon, .app-status.deprecated {
    background: rgba(110, 110, 115, 0.1);
    color: var(--apple-text-secondary);
}

.app-status.coming-soon:hover, .app-status.deprecated:hover {
    background: rgba(110, 110, 115, 0.15);
}

.app-status.free {
    background: rgba(52, 168, 83, 0.1);
    color: #22c55e;
}

.app-status.free:hover {
    background: rgba(52, 168, 83, 0.15);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 900px;
}

.project-item h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--apple-text);
}

.project-item p {
    font-size: 17px;
    line-height: 1.47;
    color: var(--apple-text-secondary);
    margin-bottom: 20px;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--apple-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.project-link.coming-soon {
    background: rgba(0, 113, 227, 0.1);
    color: var(--apple-blue);
    border: 1px solid rgba(0, 113, 227, 0.2);
}

.project-link.coming-soon:hover {
    background: rgba(0, 113, 227, 0.15);
    border-color: rgba(0, 113, 227, 0.3);
}

.project-link.active {
    background: var(--apple-blue);
    color: white;
}

.project-link.active:hover {
    background: #0077ed;
    transform: translateY(-2px);
}

.project-link.deprecated {
    background: rgba(110, 110, 115, 0.1);
    color: var(--apple-text-secondary);
    border: 1px solid rgba(110, 110, 115, 0.2);
}

.project-link.deprecated:hover {
    background: rgba(110, 110, 115, 0.15);
    border-color: rgba(110, 110, 115, 0.3);
}

/* Skills Pills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.skill-pill {
    padding: 10px 24px;
    background: var(--apple-card-bg);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--apple-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.skill-pill:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.08), rgba(0, 113, 227, 0.04));
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.12);
    border-color: rgba(0, 113, 227, 0.15);
    color: var(--apple-text);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.contact-item h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--apple-text);
    margin-bottom: 12px;
}

.contact-item a {
    color: var(--apple-blue);
    text-decoration: none;
    font-size: 17px;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.7;
}

/* Archive Section */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.archive-item {
    background: transparent;
    border: 1.5px solid rgba(110, 110, 115, 0.3);
    border-radius: 18px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.archive-item:hover {
    border-color: rgba(110, 110, 115, 0.6);
    background: rgba(110, 110, 115, 0.02);
    transform: translateY(-4px);
}

.archive-item h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--apple-text);
}

.archive-item p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--apple-text-secondary);
    margin-bottom: 20px;
}

.archive-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    color: var(--apple-text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(110, 110, 115, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.archive-link:hover {
    background: rgba(110, 110, 115, 0.08);
    border-color: rgba(110, 110, 115, 0.35);
    color: var(--apple-text);
}

.archive-link.deprecated {
    background: transparent;
    color: var(--apple-text-secondary);
    border: 1px solid rgba(110, 110, 115, 0.2);
}

.archive-link.deprecated:hover {
    background: rgba(110, 110, 115, 0.08);
    border-color: rgba(110, 110, 115, 0.35);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

footer p {
    font-size: 12px;
    color: var(--apple-text-secondary);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--apple-blue);
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.cta-button:hover {
    background: #0077ed;
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(0, 113, 227, 0.4);
}

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

    .hero {
        padding: 60px 0;
    }

    section {
        padding: 60px 0;
    }

    .card {
        padding: 32px;
    }

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

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

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

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

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    opacity: 0;
}

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

#skills, #archive {
    background: #f5f5f7;
}