@import url('https://fonts.googleapis.com/css2?family=Bruno+Ace+SC&family=Electrolize&family=Geo:ital@0;1&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-decoration: none;
	outline: none;
	font-family: "Electrolize", sans-serif;
}

html {
	font-size: 62.5%;
}

body {
	width: 100%;
	height: 100vh;
	overflow-x: hidden;
	background-color: seagreen;
	color: black;

}

header {
	margin-top: 20px;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 1rem 9%;
	background-color: transparent;
	filter: drop-shadow(10px);
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 100;
}

.logo {
    font-size: clamp(2rem, 5vw, 4rem);
    color: darkred;
    margin-top: 1rem;	
    margin-left: -8rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
    font-family: "Bruno Ace SC", sans-serif;
}

	.logo:hover {
		transform: scale(1.1);
	}



nav a {
    font-size: 2.3rem;
    color: black;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
	
}

    nav a:hover, nav a.active {
        color: darkred;
        border-bottom: 3px solid darkred;
    }

select {
	/* display: none;  (Fixed invalid syntax) */
	margin-left: 3vh;
	background-color: transparent;
	color: darkred;
	font-size: 2.5vh;
	border: none;
	outline: none;
	font-weight: 550 !important;
}

select {
    border: none;
    outline: none;
    box-shadow: none;
    transition: 0.3s ease;
}

    select:hover {
        transform: scale(1.1);
    }

.h1-container, .h3-container {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* --- Media Queries --- */
@media(max-width: 995px) {
	nav {
		position: absolute;
		top: 0%;
		right: 0;
		width: 40%;
		border-left: 3px solid darkred;
		border-bottom: 3px solid darkred;
		border-bottom-left-radius: 2rem;
		padding: 1rem solid;
		background-color: seagreen;
		border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
	}

	p {
		font-family: "Geo";
	}

	nav.active {
		display: block;
	}

	nav a {
		display: block;
		font-size: 2rem;
		margin: 3rem 0;
	}

		nav a:hover, nav a.active {
			padding: 1rem;
			border-radius: 0.5rem;
			border-bottom: 0.5s;
		}
}

section {
	min-height: 100vh;
	padding: 5rem 9% 5rem;
}

.home {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8rem;
	background-color: seagreen;
}

	.home .home-content h1 {
		font-size: clamp(2rem, 5vw, 6rem);
		font-weight: 700;
		line-height: 1.3;
	}

span {
	color: darkred;
}

.home-content h3 {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: clamp(2rem, 5vw, 4rem);
	margin-bottom: 1rem;
	font-weight: 700;
}

.home-content p {
	font-size: 1.7rem;
}

.home-img {
	border-radius: 50%;
}

	.home-img img {
		position: relative;
		width: 32vw;
		border-radius: 50%;
		box-shadow: 0 0 25px darkred; /* Fixed invalid syntax */
		cursor: pointer;
		transition: 0.2s ease-in;
	}

		/* Fixed selector name and moved to main block */
		.home-img img:hover {
			transform: scale(1.1);
		}

.social-icons a {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 5rem;
	height: 5rem;
	background-color: seagreen;
	border: 0.2rem solid darkred;
	font-size: 3rem;
	border-radius: 50%;
	margin: 3rem 1.5rem 3rem 0;
	transition: 0.3s ease;
	color: black;
}

	.social-icons a:hover {
		color: teal;
		transform: scale(1.3) translateY(-5px);
		background-color: darkred;
		box-shadow: 0 0 25px darkred;
	}

.btn {
	display: inline-flex;
	padding: 2rem 2.8rem;
	background-color: seagreen;
	border-radius: 4rem;
	font-size: 2rem;
	color: darkred;
	letter-spacing: 0.3rem;
	font-weight: 600;
	border: 2px solid darkred;
	transition: 0.3s ease;
	cursor: pointer;
	margin: 1.5rem 2rem 0rem 0;
}

	.btn:hover {
		transform: scale3d(1.1, 1.1, 1.1); /* Adjusted scale */
		background-color: darkred;
		color: teal;
		box-shadow: 0 0 25px darkred;
	}

/* --- Typing Effect --- */
.typing-text {
	font-size: 34px;
	font-weight: 600;
	min-width: 280px;
}

	.typing-text span::after {
		content: "";
		background-color: seagreen;
		position: relative;
		width: calc(100% + 8px);
		height: 100%;
		border-left: 3px solid teal;
		right: -8px;
		animation: cursor 0.6s infinite;
	}

@keyframes cursor {
	to {
		border-left: 3px solid darkred;
	}
}

@media (max-width: 1000px) {
	.home {
		gap: 4rem;
	}
}

@media(max-width: 995px) {
	.home {
		flex-direction: column;
		margin: 5rem 4rem;
	}

		.home .home-content h3 {
			font-size: 2.5rem;
			text-align: center;
		}

	.home-content h1 {
		font-size: 5rem;
		text-align: center;
	}

	.home-img img {
		width: 70vh;
		margin-top: 4rem;
	}
}

/* --- Gallery & Contact --- */
.gallery-container {
	margin-top: 10rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
	gap: 40px;
	padding: 20px;
}

.category img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 10px;
	transition: transform 0.3s;
}

	.category img:hover {
		transform: scale(1.05);
	}

.category h2 {
	font-size: 2rem;
	text-align: center;
	margin-top: 10px;
	font-family: "Bruno Ace SC", sans-serif;
	color: darkred;
	text-decoration: none;
}

.category-gallery {
	padding: 8rem 9%;
	text-align: center;
}

	.category-gallery h1 {
		font-size: 4rem;
		margin-bottom: 4rem;
		color: darkred;
	}

.category-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
	gap: 2rem;
}

	.category-container img {
		width: 100%;
		height: auto;
		border-radius: 10px;
		cursor: pointer;
		transition: transform 0.3s, box-shadow 0.3s;
	}

		.category-container img:hover {
			transform: scale(1.03);
			box-shadow: 0 0 20px darkred;
		}

@media(max-width: 900px) {
	.category-container {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}

@media(max-width: 500px) {
	.category-container {
		grid-template-columns: 1fr;
	}
}

.contact-container {
	background-color: seagreen;
	border-radius: 0px;
	max-width: 600px;
	width: 90%;
	padding: 40px;
	margin: 150px auto 50px auto;
	box-sizing: border-box;
}

	.contact-container h2 {
		text-align: center;
		margin-bottom: 25px;
		color: darkred;
		font-size: 32px;
	}

.form-group {
	margin-bottom: 22px;
}

input, textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid darkred;
	border-radius: 8px;
	font-size: 16px;
	background-color: #f0f0f0;
	box-sizing: border-box;
}

	input:focus, textarea:focus {
		border-color: #00acc1;
		box-shadow: 0 0 5px darkred;
		outline: none;
	}

textarea {
	resize: vertical;
	min-height: 120px;
}

button {
    display: block;
    margin: 20px auto 0 auto;
    background-color: darkred;
    color: whitesmoke;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    button:hover {
        background-color: #700000;
        transform: scale(1.1);
        box-shadow: 0 0 10px white;
    }



.label {
	font-size: 2rem;
}

.contact-container label {
	font-size: 2rem;
	color: darkred;
}

/* Target the actual class name you used in your HTML */
.projects-container {
    margin-top: 20rem;
    display: grid;
    /* This creates exactly 2 columns of equal width */
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 2rem 0;
    align-items: start; /* Aligns cards to the top of the row */
}

/* Ensure cards look good within the grid */
.project-card {
	background: #1d1d1b;
	min-height: 380px;
	padding: 2.5rem;
	border-radius: 1.5rem;
	border: 1px solid rgba(28, 55, 99, 0.25);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

	.project-card:hover::before {
		opacity: 1;
		transform: scale(1.35);
	}

	.project-card > * {
		position: relative;
		z-index: 1;
	}

	.project-card:hover {
		transform: translateY(-10px);
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
	}

@keyframes glowMove {
	0% {
		transform: translateX(-50%);
	}

	100% {
		transform: translateX(50%);
	}
}

    .project-card:hover {
        transform: scale(1.05);
        box-shadow: 0 0 20px darkred;
    }
    .project-card button {
        display: block;
        margin: 20px auto 0 auto;
        background-color: darkred;
        color: whitesmoke;
        border: none;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
        cursor: pointer;
        transition: 0.3s ease;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .project-card button:hover {
            background-color: #700000;
            transform: scale(1.1);
            box-shadow: 0 0 10px white;
        }

/* Optional: Make it responsive for mobile phones */
@media (max-width: 768px) {
	.projects-container {
		grid-template-columns: 1fr; /* Stacks to 1 column on small screens */
	}
}



bgCanvas {
	position: fixed; /* Keeps it pinned to the viewport */
	top: 0;
	left: 0;
	width: 100vw; /* 100% of the viewport width */
	height: 100vh; /* 100% of the viewport height */
	z-index: -1; /* Pushes it behind your content */
	display: block;
}