/* ==================================================
   THEME
================================================== */
:root {
	--background: #07090c;
	--background-soft: #0b0e12;
	--text: #f5f7fa;
	--text-secondary: #98a2ad;
	--accent: #68e0d0;
	--accent-blue: #6aa8ff;
	--particle: #a8fff4;
	--border: rgba(255, 255, 255, .10);
	--border-strong: rgba(255, 255, 255, .18);
	--header-bg: rgba(7, 9, 12, .68);
	--max-width: 1280px;
}

[data-theme="light"] {
	--background: #f4f6f8;
	--background-soft: #ffffff;
	--text: #101419;
	--text-secondary: #626b75;
	--accent: #087f78;
	--accent-blue: #326fd1;
	--particle: #087f78;
	--border: rgba(0, 0, 0, .10);
	--border-strong: rgba(0, 0, 0, .18);
	--header-bg: rgba(244, 246, 248, .72);
}

/* ==================================================
   RESET
================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(circle at 72% 30%,
			rgba(70, 150, 255, .09),
			transparent 32%),
		radial-gradient(circle at 25% 70%,
			rgba(40, 210, 190, .06),
			transparent 30%),
		var(--background);
	color: var(--text);
	font-family:
		"Inter",
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
	overflow-x: hidden;
	transition:
		background .35s ease,
		color .35s ease;
}

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

button {
	font: inherit;
}

/* ==================================================
   PARTICLES
================================================== */
#particles {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	opacity: .75;
}

/*
 * Soft atmospheric glow.
 */
.atmosphere {
	position: fixed;
	width: 55vw;
	height: 55vw;
	max-width: 850px;
	max-height: 850px;
	top: 5%;
	right: -15%;
	border-radius: 50%;
	background:
		radial-gradient(circle,
			rgba(80, 180, 255, .075),
			transparent 65%);
	filter: blur(25px);
	opacity: .65;
	pointer-events: none;
	z-index: 1;
}

/* ==================================================
   HEADER
================================================== */
header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 78px;
	z-index: 100;
	border-bottom:
		1px solid var(--border);
	background:
		var(--header-bg);
	backdrop-filter:
		blur(20px);
	-webkit-backdrop-filter:
		blur(20px);
}

.header-inner {
	width:
		min(calc(100% - 56px),
			var(--max-width));
	height: 100%;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* ==================================================
   LOGO
================================================== */
.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family:
		"Space Grotesk",
		sans-serif;
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: -.025em;
	white-space: nowrap;
}

.logo-mark {
	position: relative;
	width: 26px;
	height: 26px;
	border:
		1px solid var(--border-strong);
	border-radius: 7px;
	overflow: hidden;
}

.logo-mark::before {
	content: "";
	position: absolute;
	width: 15px;
	height: 15px;
	top: 5px;
	left: 5px;
	border-radius: 50%;
	background:
		linear-gradient(135deg,
			var(--accent),
			var(--accent-blue));
	filter: blur(.5px);
}

/* ==================================================
   NAVIGATION
   
   Structure supports multiple levels:
   UL
	 LI
	   A
	   UL
		 LI
		   A
		   UL
			 ...
================================================== */
nav>ul {
	display: flex;
	align-items: center;
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

nav li {
	position: relative;
	margin: 0;
	padding: 0;
}

nav a {
	display: block;
	padding: 8px 0;
	color:
		var(--text-secondary);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .08em;
	transition:
		color .2s ease;
}

nav>ul>li>a {
	text-transform: uppercase;
}

nav a:hover {
	color: var(--text);
}

/* --------------------------------------------------
   LEVEL 2
-------------------------------------------------- */
nav ul ul {
	position: absolute;
	top: calc(100% + 8px);
	left: -18px;
	min-width: 210px;
	margin: 0;
	padding: 9px;
	list-style: none;
	background:
		color-mix(in srgb,
			var(--background-soft) 94%,
			transparent);
	border:
		1px solid var(--border);
	border-radius: 12px;
	box-shadow:
		0 20px 60px rgba(0, 0, 0, .30);
	backdrop-filter:
		blur(20px);
	opacity: 0;
	visibility: hidden;
	transform:
		translateY(-5px);
	transition:
		opacity .18s ease,
		transform .18s ease,
		visibility .18s ease;
}

nav li:hover>ul {
	opacity: 1;
	visibility: visible;
	transform:
		translateY(0);
}

nav ul ul li {
	width: 100%;
}

nav ul ul a {
	padding:
		9px 11px;
	border-radius: 7px;
	font-size: .72rem;
	letter-spacing: .04em;
	white-space: nowrap;
}

nav ul ul a:hover {
	background:
		rgba(255, 255, 255, .055);
}

/* --------------------------------------------------
   LEVEL 3+
-------------------------------------------------- */
nav ul ul ul {
	top: -10px;
	left: calc(100% + 8px);
}

/* ==================================================
   HEADER ACTIONS
================================================== */
.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.theme-button,
.menu-button {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border:
		1px solid var(--border);
	border-radius: 50%;
	background: transparent;
	color:
		var(--text-secondary);
	cursor: pointer;
	transition:
		color .2s ease,
		border-color .2s ease,
		transform .2s ease;
}

.theme-button:hover,
.menu-button:hover {
	color: var(--text);
	border-color:
		var(--border-strong);
	transform:
		translateY(-1px);
}

.menu-button {
	display: none;
}

/* ==================================================
   HERO
================================================== */
main {
	position: relative;
	z-index: 2;
}

.hero {
	position: relative;
	min-height: 100vh;
	width:
		min(calc(100% - 56px),
			var(--max-width));
	margin: auto;
	display: flex;
	align-items: center;
	padding:
		130px 0 100px;
}

.hero-content {
	max-width: 850px;
}

.hero-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 26px;
	color:
		var(--accent);
	font-family:
		"Space Grotesk",
		sans-serif;
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.hero-kicker::before {
	content: "";
	width: 34px;
	height: 1px;
	background:
		var(--accent);
}

h1 {
	margin: 0;
	max-width: 1000px;
	font-family:
		"Space Grotesk",
		sans-serif;
	font-size:
		clamp(4rem,
			9vw,
			8.8rem);
	line-height: .88;
	letter-spacing:
		-.075em;
	font-weight: 600;
}

.hero-name {
	display: block;
}

/*
 * First name solid,
 * surname outlined.
 */
.hero-name:last-child {
	color: transparent;
	-webkit-text-stroke:
		1px color-mix(in srgb,
			var(--text) 60%,
			transparent);
}

.hero-description {
	max-width: 600px;
	margin:
		42px 0 0;
	color:
		var(--text-secondary);
	font-size:
		clamp(1rem,
			1.7vw,
			1.2rem);
	line-height: 1.7;
}

.hero-footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 25px;
	margin-top: 42px;
}

.hero-contact {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color:
		var(--text);
	font-family:
		"Space Grotesk",
		sans-serif;
	font-size: .82rem;
	font-weight: 500;
}

.hero-contact::after {
	content: "↗";
	color:
		var(--accent);
	font-size: 1rem;
	transition:
		transform .2s ease;
}

.hero-contact:hover::after {
	transform:
		translate(3px,
			-3px);
}

/* ==================================================
   SCROLL INDICATOR
================================================== */
.scroll-indicator {
	position: absolute;
	right: 0;
	bottom: 45px;
	display: flex;
	align-items: center;
	gap: 12px;
	color:
		var(--text-secondary);
	font-family:
		"Space Grotesk",
		sans-serif;
	font-size: .62rem;
	letter-spacing: .15em;
	text-transform: uppercase;
	writing-mode:
		vertical-rl;
}

.scroll-line {
	width: 1px;
	height: 50px;
	background:
		linear-gradient(to bottom,
			var(--accent),
			transparent);
}

/* ==================================================
   FUTURE SECTIONS
================================================== */
.placeholder {
	min-height: 70vh;
	width:
		min(calc(100% - 56px),
			var(--max-width));
	margin: auto;
	padding:
		140px 0;
}

.placeholder-label {
	color:
		var(--accent);
	font-family:
		"Space Grotesk",
		sans-serif;
	font-size: .7rem;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.placeholder h2 {
	margin:
		15px 0;
	font-family:
		"Space Grotesk",
		sans-serif;
	font-size:
		clamp(2.5rem,
			6vw,
			5rem);
	letter-spacing:
		-.06em;
}

/* ==================================================
   FOOTER
================================================== */
footer {
	position: relative;
	z-index: 2;
	width:
		min(calc(100% - 56px),
			var(--max-width));
	margin: auto;
	padding:
		30px 0;
	border-top:
		1px solid var(--border);
	color:
		var(--text-secondary);
	font-size: .68rem;
}

/* ==================================================
   MOBILE NAVIGATION
================================================== */
@media (max-width: 850px) {
	.header-inner {
		width:
			calc(100% - 32px);
	}

	nav {
		position: fixed;
		top: 78px;
		left: 16px;
		right: 16px;
		padding: 15px;
		border:
			1px solid var(--border);
		border-radius: 16px;
		background:
			color-mix(in srgb,
				var(--background-soft) 95%,
				transparent);
		backdrop-filter:
			blur(25px);
		opacity: 0;
		visibility: hidden;
		transform:
			translateY(-10px);
		transition:
			opacity .2s ease,
			transform .2s ease,
			visibility .2s ease;
	}

	nav.open {
		opacity: 1;
		visibility: visible;
		transform:
			translateY(0);
	}

	nav>ul {
		display: block;
	}

	nav>ul>li {
		border-bottom:
			1px solid var(--border);
	}

	nav>ul>li:last-child {
		border-bottom: 0;
	}

	nav>ul>li>a {
		padding:
			14px 8px;
	}

	/*
	 * Mobile submenus become normal
	 * nested lists.
	 */
	nav ul ul {
		position: static;
		min-width: 0;
		padding:
			0 0 8px 16px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
		opacity: 1;
		visibility: visible;
		transform: none;
		backdrop-filter: none;
	}

	nav ul ul a {
		padding:
			9px 8px;
	}

	nav ul ul ul {
		position: static;
		padding-left: 16px;
	}

	.menu-button {
		display: grid;
	}

	.hero {
		width:
			calc(100% - 32px);
		padding-top:
			120px;
	}

	.placeholder,
	footer {
		width:
			calc(100% - 32px);
	}

	.scroll-indicator {
		display: none;
	}
}

/* ==================================================
   SMALL MOBILE
================================================== */
@media (max-width: 600px) {
	.hero {
		min-height:
			calc(100vh - 20px);
		align-items:
			center;
	}

	.hero-kicker {
		font-size: .62rem;
	}

	h1 {
		font-size:
			clamp(3.6rem,
				17vw,
				6rem);
	}

	.hero-description {
		margin-top:
			32px;
		font-size:
			.95rem;
	}

	.hero-footer {
		margin-top:
			32px;
	}
}

/* ==================================================
   REDUCED MOTION
================================================== */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior:
			auto;
	}

	*,
	*::before,
	*::after {
		animation:
			none !important;
		transition:
			none !important;
	}
}


/* =========================================================
   CONTACT
   ========================================================= */

   .contact-section {
    position: relative;
    min-height: 85vh;
    padding: 140px 28px;
    z-index: 2;
}

.section-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 64px;
}

.section-kicker {
    display: block;
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--accent);
}

.section-heading h2 {
    margin: 0 0 18px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: .9;
    letter-spacing: -.06em;
}

.section-heading p {
    margin: 0;
    max-width: 520px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}


/* Social grid */

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 900px;
}


/* Social card */

.social-card {
    position: relative;
    min-height: 150px;
    padding: 28px;

    display: flex;
    align-items: center;
    gap: 22px;

    text-decoration: none;
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.015)
        );

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    overflow: hidden;

    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease;
}


/* subtle glow */

.social-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;

    left: -90px;
    bottom: -110px;

    border-radius: 50%;

    background: var(--social-color);
    opacity: 0;

    filter: blur(60px);

    transition: opacity .35s ease;
}


/* hover */

.social-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(
        in srgb,
        var(--social-color) 55%,
        var(--border)
    );
}

.social-card:hover::before {
    opacity: .18;
}


/* icon */

.social-icon {
    position: relative;
    z-index: 1;

    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: color-mix(
        in srgb,
        var(--social-color) 12%,
        transparent
    );

    color: var(--social-color);

    transition:
        transform .3s ease,
        background .3s ease;
}

.social-card:hover .social-icon {
    transform: scale(1.08);
    background: color-mix(
        in srgb,
        var(--social-color) 18%,
        transparent
    );
}

.social-icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    overflow: visible;
}


/* GitHub / Facebook paths use fill */

.github .social-icon svg,
.facebook .social-icon svg {
    fill: currentColor;
    stroke: none;
}


/* text */

.social-info {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.social-platform {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;

    color: var(--text-secondary);
}

.social-info strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.025em;
}


/* arrow */

.social-arrow {
    position: absolute;
    z-index: 1;

    top: 25px;
    right: 26px;

    font-size: 20px;
    line-height: 1;

    color: var(--text-secondary);

    transition:
        transform .3s ease,
        color .3s ease;
}

.social-card:hover .social-arrow {
    transform: translate(3px, -3px);
    color: var(--social-color);
}


/* Individual colours */

.instagram {
    --social-color: #e56b9b;
}

.facebook {
    --social-color: #6f9cff;
}

.linkedin {
    --social-color: #63b9e8;
}

.github {
    --social-color: #c8d0da;
}


/* Light mode */

[data-theme="light"] .social-card {
    background: rgba(255,255,255,.55);
}

[data-theme="light"] .social-card:hover {
    background: rgba(255,255,255,.75);
}


/* Mobile */

@media (max-width: 700px) {

    .contact-section {
        padding: 100px 20px;
    }

    .section-heading {
        margin-bottom: 42px;
    }

    .social-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .social-card {
        min-height: 125px;
        padding: 22px;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .social-info strong {
        font-size: 19px;
    }
}