/* CSS for home page */
:root {
	/* Base Colors */
	--primary-bg: #1a1a1a;
	/* Black */
	--secondary-bg: #EEEEEE;
	/* White */
	--accent-bg: #a32424;
	/* Red */

	/* Text Colors */
	--text: #eee7e7;
	/* White */
	--background: #121212;
	/* Black (used as text on white backgrounds) */

	/* Highlight/Secondary Accent */
	--highlight: #be6363;
}

* {
	font-family: 'Montserrat', sans-serif;
}

.isHidden {
	display: none !important;
}

.display {
	display: flex;
	flex-direction: column;
}

html,
body {
	margin: 0;
	padding: 0;
}

/* Welcome Seciton */
#welcome-card {
	padding: 1rem;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	min-height: 100vh;
	height: clamp(400px, 55vw, 700px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	overflow: hidden;
	scroll-snap-type: start;
	gap: 0.6rem;
}

#particles-js {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: var(--accent-bg);
	background-repeat: no-repeat;
	background-size: cover;
	top: 0;
	left: 0;
	z-index: -1;
}

/*Transparent background*/
#welcome-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1));
	z-index: 0;
	overflow: hidden;
}

#welcome-card>* {
	color: var(--text);
	z-index: 0;
	overflow: hidden;
}

#welcome-title {
	font-size: clamp(5vw, 13vw, 18vw);
}

#welcome-name {
	font-size: clamp(2vw, 4vw, 6vw);
	padding-left: 1rem;
}

#welcome-contents {
	font-size: clamp(1vw, 2vw, 4vw);
	padding-left: 1rem;
}

#welcome-contents ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#UX-prompt-container {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	min-height: 150px;
}


/*Welcome Card: Small Laptop*/
@media (max-width:1024px) {
	#welcome-card {
		padding: 2rem 1rem;
		text-align: left;
	}

	#welcome-title {
		font-size: clamp(10vw, 15vw, 20vw);
	}

	#welcome-name {
		font-size: clamp(2vw, 4vw, 6vw);
	}

	#welcome-contents {
		font-size: clamp(1vw, 3vw, 5vw);
	}
}

/*Welcom Card: Tablet*/
@media (max-width: 768px) {
	#welcome-card {
		padding: 2rem 1rem;
		text-align: left;
	}

	#welcome-title {
		font-size: clamp(10vw, 20vw, 25vw);
	}

	#welcome-name {
		font-size: clamp(3vw, 10vw, 15vw);
	}

	#welcome-contents {
		font-size: clamp(2vw, 6vw, 7vw);
	}


}

/*Welcome Card: Moblie*/
@media (max-width: 430px) {
	#welcome-card {
		padding: 2rem 1rem;
		text-align: center;
	}

	#welcome-title {
		font-size: clamp(15vw, 20vw, 25vw);
	}

	#welcome-name {
		font-size: clamp(8vw, 10vw, 15vw);
	}

	#welcome-contents {
		font-size: clamp(2vw, 6vw, 10vw);
	}

}

#Choose-UX button {

	cursor: pointer;
	outline: none;

	/* Sizing and Spacing */
	padding: 1rem 2rem;
	margin: 1rem;
	min-width: 150px;

	/* Typography */
	font-size: 1.1rem;
	font-weight: 800;
	text-transform: uppercase;

	/* Visuals */
	background-color: var(--background);
	color: var(--text);
	/* White text */
	border: 2px solid var(--text);
	/* Red border */
	border-radius: 5px;

	/* Animation for smooth interaction */
	transition: all 0.3s ease;
}

#Choose-UX button:hover,
#Choose-UX button:focus {
	background-color: var(--accent);

	/* Gives a subtle lift effect */
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(163, 36, 36, 0.4);
	/* Shadow using accent color */
}

/* Optional: Style the container for better alignment */
#Choose-UX {
	/* If you haven't already, add space below the typing text */
	margin-top: 30px;

	/* Ensure buttons stack nicely on mobile */
	flex-wrap: wrap;
	gap: 15px;
	/* Add vertical space if they wrap */
}


















/* About Section CSS */
#about-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: left;
	min-height: clamp(600px, 85vh, 900px);
	padding: clamp(1rem, 5vw, 3rem);
	background-color: var(--primary-bg);
	position: relative;
	overflow: hidden;
}

.about-title {
	font-size: clamp(1.5vh, 6vh, 8vh);
	font-weight: 700;
	color: var(--accent-bg);
	margin-bottom: 2rem;
	position: relative;
}

.about-title::after {
	content: "";
	display: block;
	width: 60px;
	height: 4px;
	background: var(--highlight);
	margin-top: 0.5rem;
	border-radius: 2px;
}

.about-card::before {
	content: "";
	position: absolute;
	top: -50px;
	right: -50px;
	width: 200px;
	height: 200px;
	background: var(--accent);
	opacity: 0.05;
	border-radius: 50%;
	filter: blur(50px);
	z-index: 0;
	animation: float 6s ease-in-out infinite;
}

.about-contents {
	text-align: left;
	display: flex;
	flex-direction: row;
	margin: auto 0;
	gap: 2rem;
	font-size: clamp(1vh, 2.5vh, 5vh);

}

.about-left,
.about-right {
	flex: 1;
}

.about-left {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	color: var(--text);
}

.about-left p {
	line-height: 1.6;
	color: var(--text);
	background: linear-gradient(to right, var(--text), var(--mutedtext));
}

.about-right {
	display: flex;
	/* Optional */
	align-items: center;
	justify-content: center;
	max-width: 50%;
	/* Control width */
}

.about-right>img {
	max-width: 65%;
	height: auto;
	object-fit: cover;
}

.about-image {
	clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border-radius: 12px;
}

/* About Section Bigger laptop*/
@media(max-width:1280px) {
	.about-right>img {
		max-width: 75%;
		height: auto;
		object-fit: cover;
	}
}

/* About Section Laptop */
@media (max-width:1024px) {
	.about-title {
		font-size: clamp(1.5vh, 5.5vh, 8vh);
	}

	.about-right>img {
		max-width: 78%;
		height: auto;
		object-fit: cover;
	}
}

/* About Section Tablet */
@media (max-width: 768px) {
	.about-title {
		text-align: center;
	}

	.about-contents {
		flex-direction: column;
		align-items: center;
		font-size: clamp(1vh, 2vh, 3vh);
	}

	/*Left is now above*/
	.about-left {
		text-align: center;
		align-items: center;
	}

	/*Right is now below*/
	.about-right {
		max-width: 100%;
	}
}

/* About Section Phone */
@media (max-width: 430px) {
	.about-title {
		text-align: center;
	}

	.about-contents {
		flex-direction: column;
		align-items: center;
		font-size: clamp(1vh, 2vh, 3vh);
	}

	/*Left is now above*/
	.about-left {
		text-align: center;
		align-items: center;
	}

	/*Right is now below*/
	.about-right {
		max-width: 100%;
	}
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-15px);
	}
}













/* Project Snapshot Section */
#project-display-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: left;
	min-height: clamp(600px, 85vh, 900px);
	padding: clamp(1rem, 5vw, 3rem);
	background-color: var(--secondary-bg);
	position: relative;
	overflow: hidden;
}

#project-display-card-title {
	font-size: clamp(1.5vh, 6.8vh, 8vh);
	font-weight: bolder;
	color: var(--accent-bg);
	margin-bottom: 2rem;
	position: relative;
}

#project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	justify-content: center;
}

.individual-project-card {
	min-height: 550px;
	border: var(--highlight) 0.3rem solid;
	border-radius: 4%;

	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;


	display: flex;
	flex-direction: column;
	justify-content: flex-end;

	position: relative;

	overflow: hidden;

	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: background-position 30s linear, box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.ipc-title {
	height: 33.33%;
	width: auto;

	font-size: clamp(1.5vh, 5vh, 6vh);
	padding: 0.5rem;
	color: var(--text);
	background: rgba(0, 0, 0, 0.6);
	border-radius: 0 0 4% 4%;

	display: flex;
	align-items: center;
	text-align: left;

	font-size: clamp(2rem, 3vw, 2.25rem); 
}

.individual-project-card:hover {
	background-position: 10% center;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
	transform: translateY(-5px);
}

.project-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	transition: background-color 0.4s ease-in-out;
	background-color: rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

.ipc-details {
	display: none;
	padding: 20px 30px;

	color: var(--text);
	line-height: 1.2;

	font-size: 0.95rem;
}

.ipc-details-des {
	padding-top: 7px;
}


.ipc-details ul {
	list-style: none;
	padding: 0;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	text-align: left;
}

.ipc-details p strong {
	color: var(--accent-bg);
}

.ipc-details ul::before {
	content: "Key Concepts:";
	display: block;
	color: var(--accent-bg);
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

/* Individual list items */
.ipc-details ul li {
	padding: 0.25rem 0;
	color: var(--mutedtext);
	position: relative;
	padding-left: 15px;
}

/* Custom bullet point */
.ipc-details ul li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--highlight);
	font-size: 1.2rem;
	line-height: 1;
}


/* --- Expanded State --- */
.project-overlay.is-expanded {
	background-color: rgba(0, 0, 0, 0.95);
	justify-content: flex-start;
}

/* --- Details Visible in Expanded State --- */
.project-overlay.is-expanded .ipc-details {
	display: block;
}

/* --- Title in Expanded State --- */
.project-overlay.is-expanded .ipc-title {
	height: auto;
	padding-bottom: 5px;
	background: transparent;
	font-size: clamp(1.6rem, 4vw, 2.25rem); 
}


/* Continue Experience Section */
#ce-section {
	min-height: 100vh;
	margin: 0;
	max-width: none;
	border-radius: 0;

	background: linear-gradient(145deg, var(--accent-bg) 0%, #B33434 100%);
	box-shadow: 0 0 40px rgba(163, 36, 36, 0.6);

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

#ce-title {
	color: var(--secondary-bg);
	font-size: clamp(2.5rem, 6vw, 4rem);
	margin-bottom: 40px;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}


#ce-card {
	background-color: var(--primary-bg);
	padding: clamp(40px, 5vw, 60px);
	max-width: 500px;
	width: 100%;
	border-radius: 10px;
	text-align: center;
	border: 2px solid var(--text);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.ce-description {
	color: var(--text);
	font-size: clamp(1.1rem, 2.5vw, 1.3rem);
	line-height: 1.5;
	font-weight: 500;
	margin-bottom: 30px;
}

.ce-features-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 20px;
	margin-bottom: 30px;
	font-size: 0.95rem;
	color: var(--text);
	font-weight: 500;
}

.ce-features-list span {
	position: relative;
	padding-left: 20px;
}


.ce-features-list span::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;

	color: var(--accent-bg);
	font-size: 1.1em;
	font-weight: 700;
}

.ce-features-list span:not(:last-child)::after {
	content: none;
}

#switch-to-standard-button {
	cursor: pointer;
	border: 2px solid var(--accent-bg);
	background-color: var(--accent-bg);
	color: var(--text);

	padding: 15px 35px;
	font-size: 1.1rem;
	font-weight: 700;
	border-radius: 8px;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 20px;
}

#switch-to-standard-button:hover {
	background-color: var(--background);
	color: var(--accent-bg);
	transform: translateY(-2px);
	border-width: 4px;
	box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {

	/* Main Section: Ensure padding provides space */
	#ce-section {
		/* Increase vertical padding for breathing room */
		padding: 40px 10px;
	}

	/* Black Card: Limit the width on smaller screens */
	#ce-card {
		max-width: 90%;
		/* Allows the card to take up 90% of the screen width */
		padding: 30px 20px;
		/* Reduced padding inside the card */
	}

	/* Title: Keep the title large but constrained */
	#ce-title {
		font-size: clamp(2rem, 8vw, 3rem);
		/* Allows the title to shrink more on mobile */
		margin-bottom: 30px;
	}
}

/* Direct to Projects Section (Standard View Action) */
#dtp-section {
	min-height: 100vh;
	margin: 0;
	max-width: none;
	border-radius: 0;

	/* **UPDATED COLOR:** Use the Accent Red background */
	background-color: var(--accent-bg);

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 60px 40px;

	/* Optional: Add a subtle glow for depth, similar to the CE section */
	box-shadow: 0 0 40px rgba(163, 36, 36, 0.6);
}

/* Title Styling */
#dtp-title {
	/* **UPDATED COLOR:** Text should be White on Red */
	color: var(--text);
	font-size: clamp(2.5rem, 6vw, 4rem);
	margin-bottom: 40px;
	/* Add a subtle text shadow for readability against red */
	text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Button Wrapper Styling */
#dtp-button-wrapper {
	margin-top: 20px;
}

/* --- GOOD LOOKING BUTTON FOR RED BACKGROUND --- */
#dtp-button-wrapper button {
	cursor: pointer;

	/* Default State: Black background, Red border, White text */
	/* This makes it pop strongly against the red section background */
	background-color: var(--background);
	/* Black background */
	border: 2px solid var(--secondary-bg);
	/* Lighter red border for visual interest */
	color: var(--text);
	/* White text */

	padding: 15px 45px;
	font-size: 1.2rem;
	font-weight: 700;
	border-radius: 8px;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;

	/* Add a subtle initial shadow for depth */
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

#dtp-button-wrapper button:hover {
	background-color: var(--primary-bg);
	/* Red background on hover */
	border: 2px solid var(--text);
	/* Black border on hover */
	color: var(--secondary-bg);
	/* Black text on hover */

	transform: translateY(-3px);
	/* Stronger lift on hover */
	/* More pronounced shadow on hover */
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* CTA Footer */
#cta-footer-card {
	/* Style the main section background */
	background-color: var(--primary-bg);
	padding: 3rem 1rem;
	text-align: center;
}

.cta-title {
	font-size: clamp(2rem, 5vw, 4rem);
	color: var(--accent);
	margin-bottom: 2rem;
}

#cta-links-grid {
	display: flex;
	gap: 20px;
	justify-content: center;
	align-items: stretch;
	padding: 0 5vw;
}

.cta-link {
	flex: 1 1 300px;
	text-decoration: none;
	color: var(--text);
	background-color: #242424;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
	transition: transform 0.3s ease, background-color 0.3s ease;

	/* Ensure content stacks vertically */
	display: flex;
	flex-direction: column;
	text-align: left;
}

.cta-link h3 {
	margin-top: 0;
	color: var(--highlight);
	font-size: 1.5rem;
}

/* Hover Effect */
.cta-link:hover {
	transform: translateY(-5px);
	/* Subtle lift */
	box-shadow: 0 10px 20px var(--accent-bg);
}

/* Mobile Responsiveness: Stacks cards vertically */
@media (max-width: 768px) {
	#cta-links-grid {
		flex-direction: column;
		padding: 0 1rem;

		gap: 20px;
		justify-content: flex-start;
		align-items: center;
	}

	.cta-link {
		flex: 1 1 auto;
		width: 100%;
		max-width: 400px;
		text-align: center;
		align-items: center;
	}

	.cta-link p {
		text-align: center;
	}

}