:root {
    --bg: #08131c;
    --bg-soft: #10202c;
    --surface: rgba(247, 249, 251, 0.08);
    --surface-strong: rgba(247, 249, 251, 0.14);
    --surface-elevated: rgba(255, 255, 255, 0.11);
    --border: rgba(230, 236, 241, 0.14);
    --border-strong: rgba(230, 236, 241, 0.24);
    --text: #f5f7fa;
    --muted: #b5c2ce;
    --muted-strong: #dde4ea;
    --accent: #93b3c9;
    --accent-warm: #dec8a1;
    --accent-strong: #d8e6ef;
    --container: min(1280px, calc(100vw - 48px));
    --radius-xl: 32px;
    --radius-lg: 26px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --shadow-sm: 0 12px 26px rgba(0, 0, 0, 0.16);
    --shadow-md: 0 20px 42px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 28px 74px rgba(0, 0, 0, 0.32);
    --shadow-xl: 0 40px 96px rgba(0, 0, 0, 0.38);
    --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    min-height: 100%;
    background-color: #07121a;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 0%, rgba(147, 179, 201, 0.18), transparent 26%),
        radial-gradient(circle at 92% 10%, rgba(222, 200, 161, 0.12), transparent 20%),
        linear-gradient(180deg, #07121a 0%, #09131d 44%, #0c1821 100%);
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.16;
}

site-header,
site-footer {
    display: block;
}

::selection {
    background: rgba(132, 199, 255, 0.28);
    color: #ffffff;
}

main,
.site-header,
.site-footer {
    position: relative;
    z-index: 1;
}

main {
    flex: 1 0 auto;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.section-padding {
    padding: 132px 0;
}

.compact-hero {
    padding-top: 100px;
    padding-bottom: 88px;
}

.section-label,
.meta-line {
    color: var(--accent-warm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    font-weight: 600;
}

h1 {
    font-size: clamp(3.2rem, 7vw, 5.95rem);
    max-width: 12ch;
}

h2 {
    font-size: clamp(2.25rem, 4.6vw, 3.6rem);
    max-width: 20ch;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.52rem);
}

p {
    color: var(--muted);
    line-height: 1.78;
    font-size: 1rem;
    max-width: 75ch;
}

.glass-card,
.content-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
        radial-gradient(circle at top left, rgba(147, 179, 201, 0.08), transparent 42%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 260ms var(--ease-standard), background-color 260ms var(--ease-standard), border-color 260ms var(--ease-standard), box-shadow 260ms var(--ease-standard), color 260ms var(--ease-standard);
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: linear-gradient(135deg, #e6d7b7 0%, #9ebccc 100%);
    color: #07111b;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(147, 179, 201, 0.24);
}

.hero-cta {
    box-shadow: 0 0 0 rgba(132, 199, 255, 0);
}

.hero-cta:hover,
.hero-cta:focus-visible {
    box-shadow: 0 0 28px rgba(147, 179, 201, 0.34), 0 0 54px rgba(222, 200, 161, 0.16);
}

.perspective-card:hover,
.perspective-card:focus-within {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 32px rgba(132, 199, 255, 0.14);
}

.skill-card:hover,
.skill-card:focus-within {
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(132, 199, 255, 0.2), 0 0 34px rgba(132, 199, 255, 0.14);
}

.tech-tool-card:hover,
.tech-tool-card:focus-within {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(147, 179, 201, 0.18), 0 0 26px rgba(147, 179, 201, 0.12);
}

.project-preview-card:hover,
.project-preview-card:focus-within {
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(147, 179, 201, 0.18), 0 0 28px rgba(147, 179, 201, 0.12);
}

.gallery-photo-button:hover img,
.gallery-photo-button:focus-visible img {
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(147, 179, 201, 0.16), 0 0 28px rgba(147, 179, 201, 0.1);
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24), 0 0 22px rgba(147, 179, 201, 0.12);
}

.project-showcase-card:hover,
.project-showcase-card:focus-within {
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(132, 199, 255, 0.22), 0 0 36px rgba(132, 199, 255, 0.14);
}

.contact-form-centered:hover,
.contact-form-centered:focus-within {
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(132, 199, 255, 0.16);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
}

.contact-social-link:hover,
.contact-social-link:focus-visible {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 0 22px rgba(132, 199, 255, 0.1);
}

.image-placeholder {
    min-height: 260px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(132, 199, 255, 0.18), rgba(255, 224, 178, 0.12));
    border: 1px dashed rgba(255, 255, 255, 0.22);
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 96px 0;
    }

    .compact-hero {
        padding-top: 124px;
    }

    :root {
        --container: min(760px, calc(100% - 32px));
    }

    h1,
    h2 {
        max-width: none;
    }

    p {
        max-width: none;
    }
}

@media (max-width: 480px) {
    :root {
        --container: min(760px, calc(100% - 24px));
    }
}