:root {
	--primary: #e1ddf4;
	--bg-dark: #cac5ed;
	--transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
	font-family: 'Roboto', sans-serif;
	color: #bdc3c7; /* Lightened for dark background */
	line-height: 1.6;
	background: var(--bg-dark); /* Updated Body Color */
	overflow-x: hidden;
}

h1 { 
	font-weight: 300; 
	font-size: 2.8rem; 
	margin-bottom: 0.5rem; 
	color: #333; 
}

h2 { font-weight: 300; 
	color: var(--primary); 
	margin-bottom: 1.5rem; 
}

p { color: #555; 
	margin-bottom: 1.5rem; 
}

nav {
	background: var(--bg-dark);
	width: 250px;
	height: 100%;
	position: fixed;
	left: -250px;
	transition: var(--transition);
	z-index: 10;
	padding-top: 60px;
	border-right: 1px solid rgba(255,255,255,0.1);
}

nav.open { left: 0; }

nav ul li {
	list-style: none;
	padding: 15px 40px;
	color: white;
	text-align: right;
	cursor: pointer;
	transition: 0.2s;
	font-size: 1.1rem;
}

nav ul:hover li { 
	opacity: 0.5; 
}

nav ul li:hover { 
	opacity: 1; 
	color: var(--primary); 
}

/***Opens the Navitaion Button***/
.openNav {
	width: 50px;
	height: 50px;
	background: var(--primary);
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 11;
	cursor: pointer;
	transition: var(--transition);
}

.openNav.open { transform: translateX(250px); }

/**Creates the hamburger icon***/
.icon, .icon:before, .icon:after {
	content: "";
	position: absolute;
	width: 26px;
	height: 2px;
	background: white;
	transition: var(--transition);
}

.icon { 
	top: 24px; 
	left: 12px; 
}

.icon:before { 
	top: -8px; 
}

.icon:after { 
	top: 8px; 
}

.openNav.open .icon { 
	background: transparent; 
}
.openNav.open .icon:before { 
	transform: rotate(-45deg); 
	top: 0; 
}
.openNav.open .icon:after { 
	transform: rotate(45deg); 
	top: 0; 
}

.wrapper {
	background: #ffffff; /* Keep main content white for readability */
	padding: 40px;
	transition: var(--transition);
	min-height: 100vh;
}

.wrapper.open {
	transform: translateX(250px);
	box-shadow: 0 0 50px rgba(0,0,0,0.3);
	cursor: pointer;
}

section { 
	max-width: 700px; 
	margin: 0 auto 100px auto; 
	padding-top: 80px; 
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-size: 1.2em;
    font-weight: bold;
    color: black;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 0.9em;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.3s;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #000034;
}

#backToTop {
    position: fixed;
    bottom: 50px; /* Distance from bottom edge */
    right: 50px;  /* Distance from right edge */
    z-index: 99;  /* Keeps button on top of all other content */
    width: 50px;
    height: 50px;
    background-color: #EBE8FC;
    color: white;
    border: none;
    border-radius: 40%;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s ease-in-out;
}

#backToTop:hover {
    background-color: #000034;
    transform: translateY(-7px);
}