/* Apple-Style Minimalist Design System */
:root {
    /* Natural Palette */
    --bg-primary: #fbfbfd;
    /* Apple's signature off-white */
    --bg-secondary: #f5f5f7;
    --bg-glass: rgba(251, 251, 253, 0.8);

    --text-primary: #1d1d1f;
    /* Soft black */
    --text-secondary: #86868b;
    --text-tertiary: #a1a1a6;

    --accent-natural: #5e6c5b;
    /* Sage green */
    --accent-blue: #0066cc;
    /* Classic link blue */

    --font-main: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --transition-smooth: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-fast: 0.3s ease;

    --max-width: 980px;
    /* Apple's content width */
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
}

h1 {
    font-size: 56px;
    line-height: 1.07143;
    letter-spacing: -0.005em;
    margin-bottom: 0.4em;
}

h2 {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: 0em;
    margin-bottom: 0.8em;
}

h3 {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 600;
    margin-bottom: 0.5em;
}

p {
    font-size: 19px;
    /* Large legible body text */
    line-height: 1.4211;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5em;
}

.intro-text {
    font-size: 24px;
    line-height: 1.33337;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    text-decoration: underline;
}

/* Nav */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    /* Slightly taller for modern feel */
    background: var(--bg-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    /* Subtle separator */
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.nav-logo {
    font-weight: 600;
    font-size: 19px;
    /* Slightly prominent */
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links a {
    font-size: 12px;
    /* Apple style small nav */
    color: var(--text-primary);
    opacity: 0.8;
    margin-left: 24px;
    text-decoration: none;
    font-weight: 400;
}

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

/* Layout utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 22px;
}

section {
    padding: 100px 0;
    opacity: 0;
    /* For scroll reveal */
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    /* Account for nav */
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    margin-bottom: 2rem;
}

.hero-image-container {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-top: 2rem;
    /* Floating animation */
    animation: float 6s ease-in-out infinite;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    /* Soft shadow for depth */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Skills/Chips */
.skills-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-chip {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 980px;
    /* Apple rounded capsule */
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.skill-chip:hover {
    background: #e8e8ed;
}

/* Grid Layouts - Feature style */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.card {
    background: white;
    border-radius: 24px;
    /* Large subtle radius */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    /* Extremely light shadow */
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    /* Lift effect */
}

.card-image-wrapper {
    height: 280px;
    /* Taller images */
    background: var(--bg-secondary);
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
    /* Gentle zoom */
}

.card-content {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    margin-bottom: 12px;
}

.card-cta {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-top: 20px;
    display: inline-block;
}

.card-cta:after {
    content: ' ›';
    font-size: 18px;
    line-height: 1;
    position: relative;
    top: 1px;
}

/* Footer/Contact */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0;
    text-align: center;
    margin-top: 100px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.social-link {
    font-size: 24px;
    color: var(--text-primary);
    opacity: 0.6;
    transition: opacity 0.2s;
}

.social-link:hover {
    opacity: 1;
}


@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

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

    .card-image-wrapper {
        height: 220px;
    }

    .nav-content {
        max-width: 100%;
    }
}