/*
Theme Name: Nikola Radujković
Theme URI: https://nikolaradujkovic.com
Author: Nikola Radujković
Author URI: https://nikolaradujkovic.com
Description: A bold, modern, plugin-free personal site theme for a growth operator. Dark UI with animated sunset (coral → magenta → amber) gradients, gradient text, and glow interactions. All homepage content is editable under Appearance → Customize → Homepage Content. Mobile-first and built for Core Web Vitals.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nikola
Tags: personal, one-column, custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

/* ============================================================
   DESIGN TOKENS — Sunset gradient on dark
   ============================================================ */
:root {
	--bg: #100c18;
	--bg-2: #16101f;
	--bg-3: #1d1529;
	--card: rgba(255, 255, 255, .04);
	--card-hover: rgba(255, 255, 255, .07);

	--text: #f3eef8;
	--muted: #a99fb8;
	--line: rgba(255, 255, 255, .10);
	--line-2: rgba(255, 255, 255, .16);

	--coral: #ff6b6b;
	--magenta: #d6336c;
	--amber: #ffb454;
	--pink: #ff5d8f;

	--grad: linear-gradient(120deg, #ffb454 0%, #ff6b6b 42%, #d6336c 100%);
	--grad-soft: linear-gradient(120deg, rgba(255, 180, 84, .18), rgba(214, 51, 108, .18));

	--display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--container: 1180px;
	--radius: 16px;
	--radius-sm: 10px;
	--glow: 0 10px 40px rgba(214, 51, 108, .35);
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--amber); }

h1, h2, h3, h4 {
	font-family: var(--display);
	color: var(--text);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
}
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; position: relative; }

.section-heading { font-size: clamp(2rem, 4.4vw, 3.2rem); color: var(--text); }
.section-heading.center { text-align: center; }

/* Gradient text utility */
.grad-text,
.hero-name,
.gallery + * .section-heading {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.eyebrow {
	display: inline-block;
	font-family: var(--sans);
	text-transform: uppercase;
	letter-spacing: .2em;
	font-size: .74rem;
	font-weight: 700;
	margin: 0 0 1rem;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--magenta); color: #fff; padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; top: 0; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
	position: relative;
	display: inline-block;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1rem;
	padding: 16px 34px;
	border-radius: 100px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}
.btn-primary {
	background: var(--grad);
	background-size: 160% 160%;
	color: #fff;
	box-shadow: var(--glow);
	animation: btnGrad 6s ease infinite;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); color: #fff; box-shadow: 0 16px 50px rgba(214, 51, 108, .5); }
@keyframes btnGrad { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.btn-outline { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { transform: translateY(-3px); border-color: var(--coral); color: #fff; box-shadow: 0 10px 30px rgba(255, 107, 107, .25); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(16, 12, 24, .65);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(16, 12, 24, .85); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand-name { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.custom-logo { max-height: 46px; width: auto; }

.site-nav .nav-list { display: flex; align-items: center; gap: 30px; list-style: none; }
.site-nav a { font-family: var(--sans); font-size: .96rem; font-weight: 500; color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
	color: #fff; font-weight: 600; padding: 9px 20px; border-radius: 100px;
	background: var(--grad); background-size: 160% 160%; animation: btnGrad 6s ease infinite;
}
.site-nav .nav-cta:hover { color: #fff; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 96px 0 88px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob-1 { width: 480px; height: 480px; background: var(--amber); top: -120px; right: -60px; animation: float1 16s ease-in-out infinite; }
.blob-2 { width: 420px; height: 420px; background: var(--magenta); top: 120px; left: -120px; animation: float2 18s ease-in-out infinite; }
.blob-3 { width: 360px; height: 360px; background: var(--coral); bottom: -160px; right: 30%; opacity: .4; animation: float1 20s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(50px, -30px); } }

.hero-inner {
	position: relative; z-index: 1;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 60px;
	align-items: center;
}
.hero-text { min-width: 0; }
.hero-kicker { margin: 0 0 1.2rem; }
.hero-kicker span {
	display: inline-block;
	font-family: var(--sans);
	text-transform: uppercase;
	letter-spacing: .22em;
	font-size: .76rem;
	font-weight: 700;
	color: var(--text);
	padding: 8px 16px;
	border-radius: 100px;
	border: 1px solid var(--line-2);
	background: var(--grad-soft);
}
.hero-name {
	font-size: clamp(3rem, 7vw, 5.4rem);
	line-height: .96;
	margin: 0 0 .3em;
	letter-spacing: -.03em;
	overflow-wrap: break-word;
}
.hero-tagline { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.85rem); color: var(--text); font-weight: 500; margin: 0 0 .7rem; line-height: 1.25; }
.hero-subtitle { font-size: 1.12rem; color: var(--muted); max-width: 34ch; margin: 0 0 2.1rem; }

.hero-photo { display: flex; justify-content: center; }
.hero-photo-frame {
	position: relative;
	width: 100%;
	max-width: 380px;
	aspect-ratio: 4 / 5;
	border-radius: 24px;
	padding: 4px;
	background: var(--grad);
	background-size: 160% 160%;
	animation: btnGrad 8s ease infinite;
	box-shadow: 0 30px 70px rgba(214, 51, 108, .35);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 21px; display: block; }
.hero-photo--placeholder {
	width: 100%; height: 100%;
	border-radius: 21px;
	background: var(--bg-2);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 6px; text-align: center; padding: 20px;
}
.hero-photo--placeholder span { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.hero-photo--placeholder small { color: var(--muted); font-size: .85rem; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.trust-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 40px; list-style: none; }
.trust-list li { font-family: var(--sans); font-size: .98rem; font-weight: 600; color: var(--text); position: relative; padding-left: 26px; }
.trust-list li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-bottom: 70px; }
.about-lead .section-heading { max-width: 14ch; }
.about-sub { font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 1.3rem; }
.short-list { list-style: none; }
.short-list li {
	font-family: var(--display); font-size: 1.18rem; font-weight: 500; color: var(--text);
	padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative;
	transition: padding-left .2s var(--ease), color .2s var(--ease);
}
.short-list li:last-child { border-bottom: 0; }
.short-list li::before {
	content: "→"; position: absolute; left: 0; font-weight: 700;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.short-list li:hover { padding-left: 42px; }

/* Timeline */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 2px solid var(--line); }
.timeline-item { position: relative; padding: 30px 18px 6px; border-right: 1px solid var(--line); }
.timeline-item:last-child { border-right: 0; }
.timeline-item::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--bg), 0 0 18px rgba(255, 107, 107, .6); }
.timeline-year { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline-text { display: block; font-size: .98rem; color: var(--muted); }

/* ============================================================
   WHAT I DO
   ============================================================ */
.work { background: var(--bg-2); }
.work .section-heading { margin-bottom: 54px; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work-card {
	position: relative; overflow: hidden;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 40px 36px;
	transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
}
.work-card::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .28s var(--ease); }
.work-card:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--card-hover); }
.work-card:hover::before { opacity: 1; }
.work-card > * { position: relative; z-index: 1; }
.work-num { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .12em; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.work-title { font-size: 1.6rem; margin-bottom: .4em; }
.work-text { color: var(--muted); margin: 0; }

/* ============================================================
   SPEAKING
   ============================================================ */
.speaking { background: var(--bg); }
.speaking-head { margin-bottom: 40px; }
.event-list { list-style: none; border-top: 1px solid var(--line); margin-bottom: 44px; }
.event-item {
	font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 500; color: var(--text);
	padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 20px;
	transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.event-item::before { content: ""; flex: 0 0 auto; width: 40px; height: 3px; border-radius: 3px; background: var(--grad); transition: width .25s var(--ease); }
.event-item:hover { padding-left: 8px; }
.event-item:hover::before { width: 60px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { margin: 0; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.cases { position: relative; background: var(--bg-3); overflow: hidden; }
.cases::before { content: ""; position: absolute; width: 500px; height: 500px; background: var(--magenta); filter: blur(120px); opacity: .18; top: -200px; left: -100px; }
.cases-head { position: relative; margin-bottom: 48px; max-width: 60ch; }
.cases-intro { color: var(--muted); font-size: 1.12rem; }
.cases-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-card {
	position: relative; overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 36px; background: var(--card);
	transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.case-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.case-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.case-card:hover::after { transform: scaleY(1); }
.case-title { color: var(--text); font-size: 1.55rem; margin-bottom: .45em; }
.case-text { color: var(--muted); margin: 0; }

/* ============================================================
   MEDIA
   ============================================================ */
.media { background: var(--bg); }
.media-head { margin-bottom: 44px; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.media-card {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 30px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
	transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.media-card:hover { border-color: var(--line-2); transform: translateY(-4px); background: var(--card-hover); }
.media-card-label { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--text); }
.media-card-arrow { font-size: 1.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform .25s var(--ease); }
.media-card:hover .media-card-arrow { transform: translateX(5px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { position: relative; background: var(--bg-2); text-align: center; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 600px; height: 600px; background: var(--grad); filter: blur(140px); opacity: .16; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.contact-inner { position: relative; max-width: 760px; }
.contact .section-heading { margin-bottom: 1.9rem; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.footer-text { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--text); margin: 0; }
.footer-meta { margin: 0; font-size: .92rem; color: var(--muted); }
.footer-meta a { color: var(--text); }
.footer-meta a:hover { color: var(--amber); }

/* ============================================================
   BLOG / PAGE CONTENT
   ============================================================ */
.content-narrow { max-width: 760px; }
.page-title { margin-bottom: 1rem; }
.post-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-item-title { font-size: 1.7rem; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.entry-content a { text-decoration: underline; }
.navigation { margin-top: 40px; display: flex; gap: 14px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
	.blob { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
	.hero-inner { grid-template-columns: 1fr; gap: 44px; }
	.hero-photo { order: -1; }
	.hero-photo-frame { max-width: 300px; }
	.about-grid { gap: 44px; }
	.timeline { grid-template-columns: repeat(2, 1fr); border-top: 0; }
	.timeline-item { border-right: 0; border-left: 2px solid var(--line); padding: 8px 0 24px 24px; }
	.timeline-item::before { top: 6px; left: -8px; }
}

@media (max-width: 760px) {
	body { font-size: 17px; }
	.section { padding: 64px 0; }

	.nav-toggle { display: flex; }
	.site-nav {
		position: fixed; inset: 76px 0 auto 0;
		background: var(--bg-2);
		border-bottom: 1px solid var(--line);
		max-height: 0; overflow: hidden;
		transition: max-height .3s var(--ease);
	}
	.site-nav.is-open { max-height: 84vh; }
	.site-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 22px; }
	.site-nav .nav-list li { width: 100%; }
	.site-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
	.site-nav .nav-cta { text-align: center; margin-top: 12px; border-bottom: 0; }

	.work-grid, .cases-grid, .media-grid, .about-grid { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
	.timeline { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: 1fr; }
	.btn { width: 100%; text-align: center; }
	.contact-actions { flex-direction: column; }
}
