/* Base styles */
:root {
	--primary-color: #800080;
	--secondary-color: #FF69B4;
	--accent-color: #FFB6C1;
	--text-color: #333;
	--light-bg: #FFF0F5;
	--white: #FFF;
	--shadow: 0 4px 15px rgba(255, 105, 180, 0.1);
	--transition: all 0.3s ease;
}


* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Arial', sans-serif;
}


/* Particle background */
#particles-js {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background: linear-gradient(135deg, #ec008c, #fc6767);
}

body, html {
	height: 100%;
	margin: 0;
}

body {
	line-height: 1.6;
	color: var(--text-color);
	overflow-x: hidden;
	/*display: flex;
	flex-direction: column;*/
}


/* Header and Navigation */
header {
	height: auto; /* Let content determine height */
	padding: 1rem;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;

	/* From https://css.glass */
	background: rgba(255, 255, 255, 0.42);
	/*border-radius: 0 0 16px 16px;*/
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(4.3px);
	-webkit-backdrop-filter: blur(4.3px);
}

.header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.logo {
	font-size: clamp(1rem, 5vw, 2rem);
	color: var(--primary-color);
	font-weight: bold;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
	background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
	border-radius: 5px;
	padding: 5px;
}

.nav-links {
	display: flex;
	justify-content: space-around;
/*gap: 1.5rem;*/
	flex-wrap: wrap;
}

nav a {
	color: var(--white);
	text-decoration: none;
	font-weight: bold;
	transition: var(--transition);
	padding: 0.5rem 1rem;
	border-radius: 8px;
}

nav a:hover {
	background-color: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
}

main {
	margin-top: var(--header-height, 120px); /* Fallback to 120px if JS fails */
	padding: 5px;
 /*background: linear-gradient(45 deg, var(--light-bg), #1515c8);*/
}


/* Featured Section */
.featured {
	padding: 1rem 1rem;
 /*background-color: var(--white);*/
	background: #fdedf6;
	border-radius: 10px;

	/* From https://css.glass */
	/*background: rgba(255, 255, 255, 0.05);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(1.6px);
	-webkit-backdrop-filter: blur(1.6px);
	border: 1px solid rgba(255, 255, 255, 0.3);*/

}


.featured h2 {
	color: var(--primary-color);
	text-align: center;
	margin-bottom: 3rem;
	font-size: clamp(1.5rem, 4vw, 2.5rem);
}

footer {
	background: linear-gradient(135deg, #FF69B4, #FFB6C1);
	color: #fff;
	font-size: 0.9rem;
	padding: 2rem 1rem;
	border-radius: 10px 10px 0 0 ;
}

.footer-content {
	display: flex;
	justify-content: space-around;
	gap: 2rem;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
}

.footer-section {
	flex: 1;
	min-width: 200px;
	margin-bottom: 1rem;
}

.footer-section h3 {
	font-size: 1.2rem;
	margin-bottom: 1rem;
	color: #fff;
	border-bottom: 2px solid #fff;
	padding-bottom: 0.5rem;
}

.footer-section p,
.footer-section a {
	margin: 0.5rem 0;
	line-height: 1.5;
	color: #fff;
	text-decoration: none;
}

.footer-section a:hover {
	text-decoration: underline;
}

.social-links {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
}

.social-icon {
	display: inline-block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: #FF69B4;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	transition: transform 0.3s ease, background 0.3s ease;
}

.social-icon:hover {
	transform: scale(1.1);
	background: #FF69B4;
	color: #fff;
}

.footer-bottom {
	text-align: center;
	margin-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.5);
	padding-top: 1rem;
	font-size: 0.8rem;
}



/* Phones and small devices */
@media (max-width: 480px) {


	/* Header and Navigation */
	header {
		position: static; /* Not sticky in mobile */
		height: auto;
	/*background: linear-gradient(135deg, #FF99CC, #E0B0FF);*/

		background: rgba(255, 153, 204, 0.83);
		backdrop-filter: blur(10px);
		box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);

		padding: 5px;
		width: 100%;
		z-index: 1000;
		border-radius: 0 0 10px 10px;
	}

	.header-container {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 0;
	}


	.logo {
		font-size: clamp(1rem, 5vw, 2rem);
		color: var(--primary-color);
		font-weight: bold;
		text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
	}

	nav {
		background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
		border-radius: 10px;
		width: 100%;
		padding: 5px;
	}

	.nav-links {
		display: flex;
		justify-content: space-around;
	/*gap: 5px;*/
		flex-wrap: wrap;
	}

	nav a {
		color: var(--white);
		text-decoration: none;
		font-weight: bold;
		transition: var(--transition);
		padding: 10px;
		border-radius: 8px;
	}

	nav a:hover {
		background-color: rgba(255, 255, 255, 0.1);
		transform: translateY(-2px);
	}


	main {
		margin-top: 0; /* Reset top margin */
		padding: 5px;
	}



	.about-content {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.products-grid,
	.features-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}



	.nav-links {
		display: none;
	}


	.cakes-grid {
		display: grid;
		grid-template-columns: 1fr; /* Default: single-column */
		gap: 1rem;
	}

	.cake-card p {
		color: #666;
		margin-bottom: 0.5rem;
		line-height: 1.6;
	}

	.cake-card img {
		width: 100%;
		height: 300px;
		object-fit: cover;
		border-radius: 24px;
		margin-bottom: 0;
	}



	/* Featured Section */
	.featured {
		padding: 10px;
		background-color: #fdedf6;
	}

	.featured h2 {
		color: var(--primary-color);
		text-align: center;
		margin: 20px;
		font-size: clamp(1.5rem, 4vw, 2.5rem);
	}

	/* Categories */
	.categories {
		display: flex;
		justify-content: space-around;
		gap: 10px;
		margin-bottom: 2rem;
		flex-wrap: wrap;
	}

	.category-btn {
		background-color: var(--light-bg);
		color: var(--primary-color);
		padding: 0.8rem 1.5rem;
		border-radius: 25px;
		cursor: pointer;
		transition: var(--transition);
		border: 1px solid var(--accent-color);
		font-size: 0.95rem;
		min-width: 120px;
	}

	.category-btn.active, .category-btn:hover {
		background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
		color: var(--white);
		border-color: var(--white);
	}

	.profile-card1 {
		width: 100%;
		max-width: 320px;
		background: #fff;
		border-radius: 24px;
		overflow: hidden;
		box-shadow: 0 4px 8px rgba(0,0,0,0.1);
		margin: 10px auto;
		display: flex;
		flex-direction: column;
		padding: 5px;
	}

	.RoundCakeImg1 {
		width: 100%;
		height: 280px;
		object-fit: cover;
		border-radius: 19px;
	}

	.profile-footer1 {
		padding: 10px;
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.profile-row1 {
		/*flex-direction: column;*/
		gap: 6px;
		align-items: flex-start;
	}

	.follow-button1 {
		background: #ff5c8a;
		color: white;
		border: none;
		padding: 8px 16px;
		border-radius: 16px;
		font-size: 14px;
	}

	.profile-name1 {
		display: flex;
		align-items: center;
		font-size: 20px;
		font-weight: 600;
		margin: 5px;
	}

	.profile-desc {
		font-size: 13px;
	}

}


/* Tablets and larger phones */
@media (max-width: 768px) {

	.logo {
		font-size: clamp(1rem, 5vw, 2rem);
		color: var(--primary-color);
		font-weight: bold;
		text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
	}

	nav {
		background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
		width: 100%;
		border-radius: 10px;
		padding: 5px;
	}

	.nav-links {
		display: flex;
		justify-content: space-around;
	/*gap: 5px;*/
		flex-wrap: wrap;
	}

	nav a {
		color: var(--white);
		text-decoration: none;
		font-weight: bold;
		transition: var(--transition);
		padding: 10px;
		border-radius: 8px;
	}

	nav a:hover {
		background-color: rgba(255, 255, 255, 0.1);
		transform: translateY(-2px);
	}



	.products-grid,
	.features-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}


	.cakes-grid {
		display: grid;
		grid-template-columns: 1fr; /* Default: single-column */
		gap: 1rem;
	}

	.cake-card p {
		color: #666;
		margin-bottom: 0.5rem;
		line-height: 1.6;
	}

	.cake-card img {
		width: 100%;
		height: 300px;
		object-fit: cover;
		border-radius: 24px;
		margin-bottom: 0;
	}



	/* Featured Section */
	.featured {
		padding: 10px;
		background-color: #fdedf6;
	}

	.featured h2 {
		color: var(--primary-color);
		text-align: center;
		margin: 20px;
		font-size: clamp(1.5rem, 4vw, 2.5rem);
	}

	/* Categories */
	.categories {
		display: flex;
		justify-content: space-around;
		gap: 10px;
		margin-bottom: 2rem;
		flex-wrap: wrap;
	}

	.category-btn {
		background-color: var(--light-bg);
		color: var(--primary-color);
		padding: 0.8rem 1.5rem;
		border-radius: 25px;
		cursor: pointer;
		transition: var(--transition);
		border: 1px solid var(--accent-color);
		font-size: 0.95rem;
		min-width: 120px;
	}

	.category-btn.active, .category-btn:hover {
		background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
		color: var(--white);
		border-color: var(--white);
	}


	.RoundCakeImg {
		width: 100%;
		height: 300px;
		object-fit: cover;
		border-radius: 24px 24px 0 0;
	}

	.profile-card1 {
		width: 100%;
		max-width: 320px;
		background: #fff;
		border-radius: 24px;
		overflow: hidden;
		box-shadow: 0 4px 8px rgba(0,0,0,0.1);
		margin: 10px auto;
		display: flex;
		flex-direction: column;
		padding: 5px;
	}

	.RoundCakeImg1 {
		width: 100%;
		height: 280px;
		object-fit: cover;
		border-radius: 19px;
	}

	.profile-footer1 {
		padding: 10px;
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.profile-row1 {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.profile-name1 {
		display: flex;
		align-items: center;
		font-size: 20px;
		font-weight: 600;
		margin: 5px;
	}

	.follow-button1 {
		background: #ff5c8a;
		color: white;
		border: none;
		padding: 8px 16px;
		border-radius: 16px;
		font-size: 14px;
	}

}
