/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=New+Amsterdam&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Edu+AU+VIC+WA+NT+Guides:wght@400..700&family=Edu+QLD+Beginner:wght@400..700&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

:root {
	--font-size: 32px;
	--line-height: 100%;
	--color: rgb(243, 243, 243);
	--gutter: calc(var(--font-size) * 2);
	--accent-color: rgb(238, 189, 26);
	--accent-color-dark: rgb(187, 148, 20);
}


/* Body styles */
body {
	font-size: var(--font-size);
	line-height: var(--line-height);
	display: flex;
	flex-direction: column;
	row-gap: var(--gutter);
	justify-content: space-between;
	background-color: #000000;
	color: var(--color);
	font-family: "New Amsterdam", serif;
}

/* Paragraph Base Styles */
p {
	font-weight: 300;
	line-height: 25px;
}

/* Heading 3 Default Styling */
h3 {
	font-size: 40px;
}

.body {
	width: 100%;
	height: 100%;
}

/*  Top Navigation Styling */
.top {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	row-gap: var(--gutter);
	padding: var(--gutter);
	content: attr(data-text);
}

.top a {
	text-decoration: none;
	color: var(--color);
	transition: all 0.3s;
	font-size: 35px;
	letter-spacing: 0.7px;
}

.top a:hover {
	color: #ccc;
}

/* Header.h1.h2 Styling */
.header {
	margin-top: 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
	
}

.header h1 {
	margin-top: 35px;
	font-size: 15rem;
	/* animation: breathing 6s ease-in-out infinite; */
	margin-bottom: 50px;
	text-align: center;
	line-height: 12rem;
}

.header h2 {
	width: 60%;
	min-width: 375px;
	font-size: 1.5rem;
	text-align: center;
	font-family:"Poppins", sans-serif;
	padding-top: 6px;
	color: rgb(198, 198, 198);
	line-height:2.7rem;
}

/* h1 and h2 animations Ref：https://codepen.io 
 https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API
 */
 h1, h2 {
	position: relative;
	color: #fff;
	padding: 0 10px;
	text-transform: uppercase;
	-webkit-text-stroke: 2px #fff;
}

h1 {
	font-weight: 900;
	letter-spacing: 2px;
	text-shadow: 4px 4px 0px #000, 7px 7px 0px rgba(255, 255, 255, 0.3);
	animation: bounceIn 0.8s cubic-bezier(.17,.67,.83,.67) forwards;
}

 
h2 {
	font-weight: 700;
	letter-spacing: 1px;
	-webkit-text-stroke: 1px #fff;
	text-shadow: 3px 3px 0px #000, 5px 5px 0px rgba(255, 255, 255, 0.2);
	animation: slideIn 0.8s cubic-bezier(.17,.67,.83,.67) 0.2s forwards;
}

h1::before, h2::before {
	content: attr(data-text);
	position: absolute;
	left: 10px;
	top: 0;
	color: #000;
	-webkit-text-stroke: 0;
	clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

h1::before {
	animation: glitchText 0.4s infinite;
	transform: translateX(-3px);
}

h2::before {
	transform: translateX(-2px) translateY(-2px);
	opacity: 0.7;
}

h1::after, h2::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -5px;
	width: 100%;
	background: repeating-linear-gradient(45deg, #fff, #fff, #000, #000);
	transform-origin: 0 50%;
}

h1::after {
	height: 4px;
	background-size: 20px;
	animation: lineSlide 15s linear infinite;
}

h2::after {
	height: 3px;
	background-size: 16px;
	transform-origin: 100% 50%;
	animation: lineSlide 12s linear infinite reverse;
}


/* heading hover effects */
 h1:hover {
	animation: shake 0.5s ease-in-out;
	color: #000;
	background: #fff;
	-webkit-text-stroke: 2px #000;
	text-shadow: 
		-4px -4px 0px #fff,
		4px 4px 0px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
 }

 h2:hover {
	animation: rubberBand 0.8s ease-in-out;
	color: #000;
	background: #fff;
	-webkit-text-stroke: 1px #000;
	text-shadow: 
		-2px -2px 0px #fff,
		2px 2px 0px rgba(0, 0, 0, 0.3);
 }

/* heading active effects */
h1:active {
	transform: scale(0.95) translateY(2px);
	text-shadow: 2px 2px 0px #000, 4px 4px 0px rgba(255, 255, 255, 0.3);
}

h2:active {
	transform: scale(0.95) translateY(1px);
	text-shadow: 1px 1px 0px #000, 2px 2px 0px rgba(255, 255, 255, 0.3);
}

/* animation frames */
@keyframes slideIn {
	0% { opacity: 0; transform: translateX(-50px) skewX(-10deg); }
	60% { opacity: 1; transform: translateX(20px) skewX(5deg); }
	100% { opacity: 1; transform: translateX(0) skewX(0); }
}

@keyframes glitchText {
	0% { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); }
	50% { clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); }
	100% { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); }
}

 @keyframes rubberBand {
	0% { transform: scale(1); }
	30% { transform: scaleX(1.25) scaleY(0.75); }
	40% { transform: scaleX(0.75) scaleY(1.25); }
	60% { transform: scaleX(1.15) scaleY(0.85); }
	100% { transform: scale(1); }
 }

 @keyframes shake {
	0%, 100% { transform: rotate(0deg); translate: 0px 0px; }
	25% { transform: rotate(-2deg) translate(-2px, 2px); }
	50% { transform: rotate(2deg) translate(2px, -2px); }
	75% { transform: rotate(-1deg) translate(-1px, 1px); }
 }

 @keyframes lineSlide {
	to { background-position: 200px 0; }
}

@keyframes flashEffect {
	0% { filter: brightness(1); box-shadow: 0 0 5px rgba(255, 255, 255, 0.2); }
	50% { filter: brightness(1.5); box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); }
	100% { filter: brightness(1); box-shadow: 0 0 5px rgba(255, 255, 255, 0.2); }
}

@keyframes rotateRecord {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Audio Player style */
.audio-container {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.95);
	padding: 30px;
	border-radius: 15px;
	width: 400px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Audio player control style */
.player-content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.audio-title {
	color: white;
	font-size: 2rem;
	text-align: center;
	margin-bottom: 20px;
}

.custom-controls {
	display: flex;
	align-items: center;
	gap: 15px;
}

.play-button {
	background: var(--accent-color);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	color: black;
	font-size: 28px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s;
}

.play-button:hover {
	background: var(--accent-color-dark);

}

/* Progress bar style */
.progress-container {
	flex-grow: 1;
	height: 5px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	cursor: pointer;
	position: relative;
}

.progress-bar {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	background: var(--accent-color);
	border-radius: 3px;
	transition: width 0.1s linear;
}

/* Media container style */
.audio-container audio {
	display: none;
}

/* video player */
.video-container {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000;
}

video {
	width: 600px;
	max-width: 90vw;
}

/* PDF Container */
.pdf-container {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000;
	width: 600px;
	height: 800px;
}

.pdf-container iframe {
	width: 100%;
	height: 100%;
}

/* Close Button */
.close-button {
	position: absolute;
	top: -40px;
	right: 0;
	width: 30px;
	height: 30px;
	background: rgb(255, 255, 255);
	border: none;
	border-radius: 50%;
	color: black;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s;
}

.close-button:hover {
	background: rgba(255, 255, 255, 0.4);
}

/* content blocks */
.blocks-wrapper {
	width: 100%;
	height: 100vh;
	margin: 0 auto;
	position: relative;
	padding-bottom: 30px;
}

.scroll-container {
	overflow-x: scroll;
	height: 100%;
	margin-bottom: 20px;
}

.scroll-container::-webkit-scrollbar {
	display: none;
}

.channel-blocks {
	display: grid;
	grid-template-columns: repeat(6, 330px);
	grid-auto-rows: 380px;
	gap: 0px;
	padding: 50px 85px;
	height: 100%;
	grid-auto-flow: column dense;
	align-items: center;
	width: max-content;
}

.custom-scrollbar {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	width: 40%;
	height: 5px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 5px;
}

.scrollbar-thumb {
	height: 100%;
	width: 20%;
	background: var(--accent-color);
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s;
}

.scrollbar-thumb:hover {
	background: var(--accent-color-dark);
}

/*image item  */
.image-item {
	position: relative;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	transition: transform 0.3s, opacity 0.3s, border-radius 0.5s;
	cursor: pointer;
}

.image-item:hover {
	border-radius: 10px;
}

.image-item img {
	width: 95%;
	height: 95%;
	object-fit: cover;
	border-radius: 50%;
	transition: border-radius 0.5s;
	padding: 0.5px;
	animation: flashEffect 5.5s infinite alternate;
}

.image-item.large {
	width: 660px;
	height: 660px;
	grid-column: span 2;
	grid-row: span 2;
	border-radius: 50%;
}

.image-item.large:hover {
	border-radius: 10px;
}

.image-item.large img {
	animation: rotateRecord 25s linear infinite, flashEffect 5.5s infinite alternate;
}

.image-item.large:hover img {
	animation: flashEffect 5.5s infinite alternate;
	border-radius: 10px;
}


	/*  hover content  */
@media screen and (min-width: 769px) {
	.hover-content {
	position: absolute;
	width: 300px;
	top: 50%;
	right: 50%;
	transform: scaleY(0);
	background: rgba(0, 0, 0, 0.95);
	padding: 15px;
	z-index: 999;
	border-radius: 10px;
	opacity: 0;
	transition: opacity 0.3s, transform 0.3s;
	transform-origin: center center;
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-weight: 100;
}

.hover-content h3 {
	font-size: 2rem;
	margin-bottom: 10px;
	}

.hover-content p {
	font-size: 1rem;
	font-family: "Poppins", sans-serif;
	}

	.image-item:hover .hover-content {
	display: block;
	opacity: 1;
	transform: scaleY(1);
	}

.image-item:hover img {
	border-radius: 10px;
	}

.image-item.large .hover-content {
	width: 400px;
	}
}

/* modal style */
.modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	z-index: 999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.modal-backdrop.active {
	opacity: 1;
}

.img-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

@media screen and (min-width: 769px) {
    .img-overlay .image-wrapper {
        position: relative;
        display: inline-block;
    }

    .img-overlay img {
        max-height: calc(100vh - 100px);
        max-width: calc(100vw - 100px);
        object-fit: contain;
        border-radius: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .img-overlay .close-button {
        position: fixed;
        top: 40px;
        right: 40px;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 2px solid white;
        border-radius: 50%;
        color: white;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 10000;
    }

    .img-overlay .close-button:hover {
        background: white;
        color: black;
        transform: rotate(90deg);
    }
	.img-overlay .mobile-content {
        display: none;
	}
}

/* Mobile overlay styles */
.img-overlay .mobile-content {
	position: fixed;
	bottom: 10%;
	left: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.8);
	padding: 25px 20px;
	color: white;
	font-family: "Poppins", sans-serif;
	transform: translateY(100%);
	transition: transform 0.3s ease;
	z-index: 10000;
}

.img-overlay .mobile-content h3 {
	font-size: 1.8rem;
	margin-bottom: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.img-overlay .mobile-content .description-content {
	font-size: 0.9rem;
	line-height: 1.5;
	opacity: 0.9;
	font-weight: 300;
}

.img-overlay .mobile-content.active {
	transform: translateY(0);
}

/* Footer */
footer {
	display: none;
}

/* pesponsive styles */
@media screen and (max-width: 768px) {
	.hover-content {
		display: none;
	}
	
	.image-item:hover {
		border-radius: 50%; 
	}
	
	.image-item:hover img {
		border-radius: 50%; 
	}
}

.image-item.large {
	width: 660px;
	height: 660px;
	grid-column: span 2;
	grid-row: span 2;
	border-radius: 50%;
}

.image-item.large:hover {
	border-radius: 10px;
}

.image-item.large .hover-content {
	width: 400px;
}

footer {
	display: none;
}

/* responsive styles  */
@media screen and (max-width: 1200px) {
	.channel-blocks {
		grid-template-columns: repeat(4, 250px);
		grid-auto-rows: 250px;
		gap: 20px;
	}

	.image-item {
		width: 250px;
		height: 250px;
	}

	.image-item.large {
		width: 500px;
		height: 500px;
	}

	.header {
		margin-top: 60px;
		margin-bottom: 80px;
	}

	.header h1 {
		font-size: 10rem;
		margin-bottom: 40px;
		line-height: 7rem;
	}

	.header h2 {
		font-size: 1.3rem;
		line-height: 30px;
	}

	.hover-content {
		width: 250px;
		font-size: 16px;
	}

	.hover-content h3 {
		font-size: 1.8rem;
	}

	.image-item.large .hover-content {
		width: 300px;
	}

	.audio-container,
	.video-container video {
		width: 350px;
	}
}

/* medium screens */
@media screen and (max-width: 768px) {
	.hover-content {
		display: none;
	}
	
	.img-overlay .image-wrapper {
		position: fixed;
		top: 20%;
		left: 50%;
		transform: translateX(-50%);
		width: 90vw;
		height: auto;
		aspect-ratio: unset;
	}

	.img-overlay img {
		width: 100%;
		height: auto;
		object-fit: contain;
		border-radius: 0;
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.img-overlay .mobile-content {
		bottom: 5%;
	}
	
	/* Mobile layout transformation */
	.scroll-container {
		overflow-x: hidden;
		overflow-y: auto;
		height: auto;
	}

	.channel-blocks {
		display: flex;
		flex-direction: column;
		grid-template-columns: unset;
		grid-auto-rows: unset;
		grid-auto-flow: unset;
		width: 100%;
		height: auto;
		padding: 30px 20px;
		gap: 30px;
		align-items: center;
	}

	.image-item {
		width: 85vw;
		height: 85vw;
		max-width: 400px;
		max-height: 400px;
		border-radius: 12px;
		margin: 0 auto;
	}

	.image-item img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 12px;
		padding: 10px;
		animation: none;
	}

	.image-item.large {
		width: 85vw;
		height: 85vw;
		max-width: 400px;
		max-height: 400px;
		border-radius: 12px;
		grid-column: unset;
		grid-row: unset;
	}

	.image-item.large img {
		border-radius: 12px;
		animation: none;
	}

	.image-item:hover,
	.image-item:hover img {
		border-radius: 12px;
	}

	.custom-scrollbar {
		display: none;
	}
}

/* Responsive design adjustments 550px */
@media screen and (max-width: 550px) {
	.body {
		height: auto;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.header {
		margin-top: 20px;
		margin-bottom: 30px;
		padding: 0 20px;
	}

	.header h1 {
		font-size: 6.3rem;
		margin-bottom: 10px;
		line-height: 5.2rem;
		padding-bottom: 25px;
	}

	.header h2 {
		font-size: 1rem;
		line-height: 1.5rem;
		padding: 10px;
	}

	.audio-container,
	.video-container video {
		width: 320px;
	}

	.audio-container {
		padding: 15px;
	}

	.pdf-container {
		width: 250px;
		height: 375px;
	}

	.play-button {
		width: 35px;
		height: 35px;
		font-size: 14px;
	}

	.close-button {
		width: 25px;
		height: 25px;
		font-size: 16px;
		top: -30px;
	}

	.top {
		padding: 30px 20px;
	}

	.top a {
		font-size: 22px;
	}
}

/* Responsive design adjustments 480px */
@media screen and (max-width: 480px) {
	.body {
		padding: 10px;
	}

	.header {
		margin-top: 30px;
		margin-bottom: 40px;
	}

	.header h1 {
		font-size: 6rem;
		margin-bottom: 20px;
	}

	.audio-container,
	.video-container video {
		width: 300px;
	}

	.audio-container {
		padding: 20px;
	}

	.pdf-container {
		width: 300px;
		height: 450px;
	}

	.play-button {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	footer {
		display: block;
		bottom: 180px;
		text-align: center;
		font-family: "Poppins", sans-serif;
		font-size: 15px;
		padding-bottom: 50px;
	}
}