/* Nisret Krasniqi — faqja zyrtare
   1. Fonts  2. Base  3. Header  4. First screen  5. Biography  6. Songs  7. Videos  8. Social  9. Player  10. Picture viewer */

/* ---------- 1. Fonts (local files; one variable file covers every weight of Montserrat and Roboto) ---------- */
@font-face {
	font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url(../fonts/montserrat-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url(../fonts/montserrat-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url(../fonts/roboto-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url(../fonts/roboto-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap;
	src: url(../fonts/open-sans-400-latin.woff) format("woff");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap;
	src: url(../fonts/open-sans-400-latin-ext.woff) format("woff");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap;
	src: url(../fonts/open-sans-700-latin.woff) format("woff");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap;
	src: url(../fonts/open-sans-700-latin-ext.woff) format("woff");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2. Base ---------- */
:root {
	--accent: #ff0d51;
	--accent-dark: #c60038;
	--purple: #570adb;
	--pink: #f2295b;
	--bar: #454955;          /* phone header and side menu */
	--muted: #7a7a7a;        /* biography text */
	--content: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: #000;
	color: rgba(255, 255, 255, .87);
	font: 400 16px/1.5 "Open Sans", sans-serif;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.icon { flex: none; width: auto; height: 1em; fill: currentColor; }

/* Section heading with the red line under it */
.section-title {
	margin: 0;
	color: #fff;
	font: 800 55px/1 "Montserrat", sans-serif;
	letter-spacing: -.03em;
	text-transform: uppercase;
}
.section-title::after {
	content: "";
	display: block;
	width: 100px;
	height: 3px;
	margin-top: 35px;
	background: var(--accent);
}
.section-title--center { text-align: center; }
.section-title--center::after { margin-inline: auto; }

/* Outlined link buttons (Spotify, YouTube ...) */
.buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 40px;
	border: 2px solid #fff;
	border-radius: 5px;
	color: #fff;
	font: 500 15px/2.5 "Roboto", sans-serif;
	transition: background-color .3s;
}
.btn:hover, .btn:focus-visible { background: #ff0d5c; }
.btn .icon { font-size: 21px; }
.buttons--large .btn { font-size: 20px; }
.buttons--large .icon { font-size: 28px; }

/* Diagonal edge between two sections: a triangle in the colour of the neighbouring section */
.bio::before, .music::after, .social::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	pointer-events: none;
}

/* ---------- 3. Header ---------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 300;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	height: 65px;
	padding: 0 70px;
	transform: translateY(70px);
	transition: transform .3s, background-color .3s;
}
.site-header.is-scrolled { transform: none; background: #101010; }

.site-logo img { width: 190px; height: 90px; transition: width .3s, height .3s, margin .3s; }
.is-scrolled .site-logo img { width: 118px; height: 56px; margin-top: 4px; }

.site-nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.site-nav a {
	position: relative;
	display: block;
	margin: 0 5px 0 16px;
	padding: 0 5px 0 1px;
	color: #fff;
	font: 400 13px/65px "Montserrat", sans-serif;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.site-nav a::after {          /* small square after each menu item */
	content: "";
	position: absolute;
	top: 34px;
	right: -3px;
	width: 5px;
	height: 5px;
	background: #fff;
	transition: background-color .2s;
}
.site-nav a:hover::after { background: var(--accent); }

.menu-toggle, .menu-close, .nav-backdrop { display: none; }

/* ---------- 4. First screen ---------- */
.hero {
	position: relative;
	height: 100vh;
	overflow: hidden;
	background: #000 url(../img/hero.jpg) center / cover no-repeat;
}
.hero-video {
	position: absolute;
	inset: 0;
	overflow: hidden;
	container-type: size;
	opacity: 0;
	pointer-events: none;
	transition: opacity 1s;
}
.hero-video.is-playing { opacity: 1; }
/* The player is a 16:9 box sized to cover the section. The video has black bands baked in above and below
   the picture, so the box is enlarged a further 1.76x until the picture itself fills the screen. */
.hero-video iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;  height: 56.25vw;  min-width: 177.78vh;  min-height: 100vh;      /* older browsers */
	width: 100cqw; height: 56.25cqw; min-width: 177.78cqh; min-height: 100cqh;
	border: 0;
	transform: translate(-50%, -50%) scale(1.76);
}

.tagline {
	margin: 0;
	padding: 10px;
	background: #000;
	color: #fff;
	font: 600 19px/1 "Roboto", sans-serif;
	letter-spacing: -.03em;
	text-align: center;
	text-transform: uppercase;
}

/* ---------- 5. Biography ---------- */
.bio { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.bio::before {
	top: -1px;
	z-index: 1;
	height: 125px;
	background: linear-gradient(to top right, transparent calc(50% - .5px), #fff 50%);
}
.bio-photo { min-height: 377px; background: url(../img/bg-biografia.jpg) center / cover no-repeat; }
.bio-text { padding: 104px 90px 90px; color: var(--muted); font: 400 16px/1.5 "Roboto", sans-serif; }
.bio-text .section-title { margin-bottom: 35px; color: #000; }
.bio-text p { margin: 0; }

/* ---------- 6. Songs ---------- */
.music {
	position: relative;
	isolation: isolate;
	padding: 180px 0 80px;
	background: url(../img/bg-studio.jpg) center / cover no-repeat;
}
.music::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .5); }
.music::after {              /* white edge on top, purple edge at the bottom */
	top: -1px;
	bottom: -1px;
	z-index: -1;
	background:
		linear-gradient(to top right, transparent calc(50% - .5px), #fff 50%) top / 100% 10vw no-repeat,
		linear-gradient(to bottom left, transparent calc(50% - .5px), var(--purple) 50%) bottom / 100% 150px no-repeat;
}

.music-card {
	max-width: 900px;
	margin: 0 auto;
	padding: 72px 90px 90px;
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(11, 11, 16, .91), rgba(19, 45, 69, .85));
	box-shadow: 0 0 49px rgba(42, 12, 81, .5);
}
.music-head { display: flex; align-items: center; margin-bottom: 40px; padding-left: 10px; }
.music-head .section-title { flex: 1; }
.music-cover { flex: none; width: 201px; }
.music-cover img { border-radius: 8px; transition: filter .6s; }
.music-cover:hover img { filter: saturate(1.54); }

.tracks { margin: 0 10px; padding: 0; list-style: none; }
.track { display: flex; height: 80px; border-bottom: 2px solid rgba(200, 200, 200, .3); }
.track-play { position: relative; flex: none; width: 68px; height: 68px; color: #fff; }
.track-play img { width: 68px; height: 68px; object-fit: cover; transition: opacity .3s; }
.track-play .icon { position: absolute; inset: 0; margin: auto; font-size: 36px; opacity: .9; transition: transform .2s; }
.track-play:hover .icon { transform: scale(1.12); }
.track-play .icon-pause, .track.is-playing .icon-play { display: none; }
.track.is-playing .icon-pause { display: block; }
.track.is-playing .track-play img { opacity: .55; }
.track-info { flex: 1; min-width: 0; padding: 13px 0 0 22px; }
.track-title, .track-artist { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-title { font-weight: 700; font-size: 20.8px; line-height: 21px; }
.track-artist { margin-top: 4px; font-size: 11px; line-height: 19px; }
.track-link { display: grid; flex: none; place-items: center; width: 68px; height: 68px; margin-right: 4px; font-size: 24px; opacity: .87; transition: opacity .2s, color .2s; }
.track-link:hover { color: #1ed760; opacity: 1; }

.music .buttons { margin: 20px 10px 10px; }

/* ---------- 7. Videos ---------- */
.videos { padding: 80px 0 140px; background: linear-gradient(180deg, var(--purple), var(--pink)); }
.videos-inner { max-width: var(--content); margin: 0 auto; padding: 10px 10px 19px; }
.videos .section-title { padding: 0 10px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 45px 10px 0; padding: 0; list-style: none; }

/* A tile is a thumbnail with a play button; main.js puts the YouTube player in its place when it is opened. */
.video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .35s, opacity .35s; }
.video::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 34px no-repeat;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
	transition: transform .2s;
}
.video:hover img, .video:focus-visible img { transform: scale(1.04); opacity: 1; }
.video:hover::after, .video:focus-visible::after { transform: scale(1.1); }
.video.is-playing::after { display: none; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 8. Social ---------- */
.social {
	position: relative;
	isolation: isolate;
	padding: 140px 0;
	background: url(../img/bg-studio.jpg) center / cover no-repeat fixed;
}
.social::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .77); }
.social::after {
	top: -1px;
	z-index: -1;
	height: 500px;
	background: linear-gradient(to top right, transparent calc(50% - .5px), var(--pink) 50%);
}
.social-card {
	max-width: var(--content);
	margin: 0 auto;
	padding: 114px;
	border: 2px solid #fff;
	border-radius: 8px;
	background: rgba(63, 0, 132, .65);
	box-shadow: 0 10px 33px rgba(51, 0, 255, .5);
}
.social .buttons { margin: 45px 10px 10px; }

/* ---------- 9. Player ---------- */
/* A red play button in the corner; it opens into a bar the first time something is played. */
.player {
	position: fixed;
	left: 70px;
	bottom: 30px;
	z-index: 200;
	display: flex;
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: 4px;
	background: #000;
	color: #fff;
	transition: width 1.2s cubic-bezier(.2, 1, .2, 1);
}
.player.is-open { width: calc(100% - 140px); }

.player-btn { position: relative; display: grid; flex: none; place-items: center; width: 60px; height: 60px; font-size: 24px; transition: background-color .2s; }
.player-btn:hover { background: var(--accent-dark); }
.player-play { background: var(--accent); }
.player-play .icon-pause, .player.is-playing .player-play .icon-play { display: none; }
.player.is-playing .player-play .icon-pause { display: block; }

.player-volume { cursor: ew-resize; touch-action: none; }
.player-volume .icon { position: relative; }
.player-volume-level { position: absolute; inset: 0 auto 0 0; width: 100%; background: rgba(255, 255, 255, .22); }

.player-cover { flex: none; width: 60px; height: 60px; object-fit: cover; }

.player-track {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	padding: 0 10px;
	text-transform: uppercase;
	cursor: pointer;
}
.player-progress {           /* how far the song has played */
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	border-bottom: 3px solid var(--accent);
	background: rgba(255, 255, 255, .14);
	pointer-events: none;
}
.player-names, .player-times { position: relative; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.player-title, .player-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-title { font-size: 16px; line-height: 19px; }
.player-artist { font-weight: 700; font-size: 13px; line-height: 13px; }
.player-times { flex: none; align-items: flex-end; font-size: 13px; line-height: 16px; font-variant-numeric: tabular-nums; }

/* ---------- 10. Picture viewer ---------- */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: grid;
	place-items: center;
	background: rgba(13, 13, 13, .96);
	cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 50px; height: 50px; font-size: 30px; }

/* ---------- Tablets and small laptops: the menu moves into a side panel ---------- */
@media (max-width: 1200px) {
	.site-header, .site-header.is-scrolled { align-items: center; justify-content: center; height: 56px; padding: 0; transform: none; background: var(--bar); }
	.site-logo img, .is-scrolled .site-logo img { width: 118px; height: 56px; margin: 0; }

	.menu-toggle { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 57px; height: 56px; font-size: 24px; }

	.site-nav {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 2;
		width: 273px;
		padding-bottom: 60px;
		overflow-y: auto;
		background: var(--bar);
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform .3s, visibility .3s;
	}
	.nav-open .site-nav { transform: none; visibility: visible; }
	.site-nav ul { display: block; }
	.site-nav a { margin: 0; padding: 12px 16px; font-size: 14px; line-height: 17px; }
	.site-nav a::after { display: none; }
	.menu-close {
		display: flex;
		align-items: center;
		gap: 8px;
		width: 100%;
		height: 52px;
		padding: 0 16px;
		color: #fff;
		font: 400 13px/1 "Montserrat", sans-serif;
		letter-spacing: .03em;
		text-transform: uppercase;
	}
	.menu-close .icon { font-size: 22px; }

	.nav-backdrop { position: fixed; inset: 0; z-index: 299; display: block; background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
	.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
	.nav-open { overflow: hidden; }
}

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

	.music-card { padding: 30px; }
	.music-head .section-title { font-size: 42px; }

	.videos { padding: 30px; }
	.videos-inner { padding-bottom: 10px; }

	.social { background-attachment: scroll; }
	.social-card { padding: 15%; }
	.social .buttons { grid-template-columns: 1fr; }

	/* the player is a full-width bar at the bottom of the screen */
	body { padding-bottom: 60px; }
	.player, .player.is-open { left: 0; bottom: 0; width: 100%; border-radius: 0; transition: none; }
	.player-prev, .player-next, .player-volume, .player-cover { display: none; }
	.player-times { font-size: 11px; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
	.hero { height: 260px; }

	.bio-text { padding: 40px; }
	.bio-text .section-title { font-size: 42px; }

	.music-head { flex-direction: column; align-items: stretch; gap: 25px; }
	.music-head .section-title { font-size: 30px; }
	.music-cover { width: auto; margin-left: -10px; }
	.track { height: auto; min-height: 80px; }
	.track-info { padding: 10px 0 12px 16px; }
	.track-title { font-size: 16px; line-height: 20px; white-space: normal; }
	.track-link { width: 48px; margin-right: 0; }
	.music .buttons { grid-template-columns: 1fr; }

	.videos .section-title { padding: 10px 20px; font-size: 35px; }
	.video-grid { grid-template-columns: 1fr; margin: 45px 20px 0; }

	.social .section-title { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}
