:root {
    color-scheme: light dark;

    --font-family-body: "Inter", sans-serif;
    --font-family-headings: "Space Grotesk", sans-serif;

    --color-background: #edf2f7;
    --color-text: #222;
    --color-text-primary: light-dark(oklch(0.25 0.025 240), oklch(0.95 0.02 240));
    --color-text-secondary: light-dark(oklch(0.45 0.03 240), oklch(0.75 0.01 240));
    --color-accent: light-dark(oklch(0.45 0.22 280), oklch(0.7 0.2 293.01));

    --spacing-xxs: 0.25rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    --font-size-body: 1rem;
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-size-tag: 0.875rem;
    --font-size-small: 0.75rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, sans-serif;
    background: var(--color-background);
    color: var(--color-text);
}

.container {
    display: grid;
    grid-template-columns: 360px 1fr;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
    gap: 40px;
}

.sidebar {
    position: sticky;
    top: 40px;
    height: calc(100vh - 80px);
    border-radius: 24px;
    overflow: hidden;
    background: var(--color-background);
    padding: 50px 40px;

    h1 {
        margin-top: 30px;
        font-size: clamp(2rem, 4vw + 1rem, var(--font-size-h1));
    }
}

.avatar {

    width: 180px;
    height: 180px;
    margin: auto;
    border-radius: 50%;
    overflow: hidden;

    +img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.subtitle {
    opacity: .7;
    margin-top: 8px;
    margin-bottom: 30px;
}

.about {
    line-height: 1.8;
    opacity: .85;
}

.contact {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 15px;

    div {
        padding: 14px 18px;
        border-radius: 12px;
    }
}

.button {
    margin-top: auto;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.button:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

.content {
    padding: 70px;
}

section {
    margin-bottom: 70px;
}

.text-block {
    display: block;
    margin-top: 10px;
}

h2 {

    font-size: clamp(1.5rem, 4vw + 1rem, var(--font-size-h2));
    margin-bottom: 25px;
    color: #0f172a;
}

p {
    font-size: clamp(1rem, 4vw + 1rem, var(--font-size-body));
    line-height: 1.9;
    color: #555;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
}

.gallery {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;

    img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        border-radius: 18px;
        display: block;
        transition: .3s;
        box-shadow:
            0 15px 35px rgba(0, 0, 0, .08);
    }
}

.gallery img:hover {
    transform: translateY(-6px);
}

.quote {
    background: white;
    padding: 35px;
    border-left: 6px solid #3b82f6;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
    font-style: italic;
}

@media(max-width:900px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .content {
        padding: 40px 25px;
    }

    .gallery {
        columns: 2;
    }
}

@media(max-width:600px) {
    .gallery {
        columns: 1;
    }
}

.credits {
  margin-top: var(--spacing-2xl);
  font-size: var(--font-size-small);
}