:root {
    --text: #0f0f0f;
    --muted: #6e6e73;
    --bg: #ffffff;

    /* Apple-style accent */
    --accent: #0071e3;
    /* Apple blue */
    --accent-soft: #e8f2ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(1200px 600px at 10% -10%, #f5f7ff, transparent),
        radial-gradient(800px 400px at 90% 10%, #f0fbff, transparent),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

.profile {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 32px;
    position: relative;

    box-shadow:
        0 0 0 6px rgba(0, 113, 227, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.15);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 12%;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(600px 400px at 50% 30%,
            rgba(0, 113, 227, 0.12),
            transparent 60%);
    z-index: 0;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    z-index: 1;
}

.hero p {
    margin-top: 16px;
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 520px;
    z-index: 1;
}

.hero h1 {
    color: var(--text);
}

.hero p {
    color: var(--muted);
}

.section h2 {
    color: var(--text);
}

.section p {
    color: var(--muted);
}

/* SECTIONS */
.section {
    padding: 120px 12%;
    max-width: 1200px;
    position: relative;
}

.section:not(:first-of-type)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(0, 0, 0, 0.06),
            transparent);
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.section p {
    max-width: 640px;
    color: var(--muted);
    font-size: 1.05rem;
}

/* SKILLS */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills span {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skills span:hover {
    transform: translateY(-2px);
    background: rgba(0, 113, 227, 0.18);
}

/* PROJECTS */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition:
        transform 0.4s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.4s cubic-bezier(.2, .8, .2, 1);
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card:hover {
    border-color: var(--accent);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    background:
        linear-gradient(120deg,
            rgba(0, 113, 227, 0.08),
            transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::after {
    opacity: 1;
}

/* CONTACT */
.contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.contact a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact a:hover::after {
    transform: scaleX(1);
}

/* FOOTER */
footer {
    padding: 40px 10%;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    animation: fade 1.2s forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
}

@keyframes fade {
    to {
        opacity: 1;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .section {
        padding: 80px 8%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0 8%;
        text-align: center;
    }

    .profile {
        margin-left: auto;
        margin-right: auto;
    }
}