/*
Theme Name: ericville25
Author: eric@ericwittke.com
File: page-home.css
Description: Specific overrides and layout for the Homepage only.
*/

/* * -------------------------------------------------------------------------
 * Global Overrides for Home
 * -------------------------------------------------------------------------
 */

.home .content {
	margin-bottom: 0;
}

.home .inverse {
	top: 0; /* Reset negative margin overlap from base theme */
}

.home footer {
	margin-top: 0;
}

/* * -------------------------------------------------------------------------
 * Header & Logo
 * -------------------------------------------------------------------------
 */

.home header {
	flex-direction: column;
	border: 0;
	padding-top: var(--space-3xl);
	align-items: flex-start;
}

.home svg {
	fill: #133c33;
}

.home header .logo {
	max-width: 350px;
	margin-bottom: var(--space-xl);
	cursor: default;
}

.home header .lockup {
	cursor: default;
	max-height: unset;
}

.home header .logomark {
	width: 100px;
	height: 100px;
}

.home header h2 {
	margin-bottom: var(--space-2xl);
	cursor: default;
	
	background: linear-gradient(150deg, #36665c, var(--color-text));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	display: inline-block;
}

/* Mobile Adjustments */
@media (max-width: 700px) {
	.home header {
		padding-top: var(--space-m); /* Formerly 20px */
	}
	
	.home header .logo {
		margin-top: var(--space-lg);
		margin-bottom: var(--space-xl);
		max-width: unset;
	}
	
	.home header .logo a {
		justify-content: center;
	}

	.home header h2 {
		font-size: 2rem; /* Consider mapping to var(--font-size-xl) if close enough */
	}
}

/* * -------------------------------------------------------------------------
 * Giant Navigation (Home Specific)
 * -------------------------------------------------------------------------
 */

.home .main nav {
	width: 100%;
	margin-bottom: var(--space-3xl);
	font-size: 5rem;
}

.home .main nav ul {
	display: flex;
	gap: var(--space-m);
}

.home .main nav ul li {
	flex-grow: 1;
	padding: 0;
	width: 100%;
	aspect-ratio: 1 / 1;
}

/* 1. Set a default "fill" variable on the base link and prepare the transition */
.home .main nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    font-weight: normal;
    text-decoration: none !important;
    color: var(--color-gray-800);
    
    /* Glassy Background */
    background-color: rgba(247, 245, 236, 0.4);
    
    /* Combine your glass shadow with a transparent inset "fill" shadow */
    --hover-fill-color: transparent; 
    box-shadow: var(--shadow-glass-medium), inset 0 0 0 0 var(--hover-fill-color);
    
    border: 0; /* Removing the border approach entirely */
    transition: 
        background-color var(--motion-fast) ease-out,
		box-shadow var(--motion-fast) ease-out,
        transform var(--motion-fast) ease-out,
        color var(--motion-fast) ease-out;
}

/* 2. Update the specific color variables for your menu items */
.home .nav-menu li.menu-item-1784 a {
    color: var(--brand-ux-500);
    --hover-fill-color: var(--brand-ux-500); /* Define the target fill color */
}

.home .nav-menu li.menu-item-1783 a {
    color: var(--brand-lab-500);
    --hover-fill-color: var(--brand-lab-500); /* Define the target fill color */
}

/* 3. The Hover State: Use inset shadow to "grow" the color inward */
.home .nav-menu li a:hover {
    color: var(--color-bg) !important;
    z-index: 99;
    transform: scale(1.05);
    
	background-color: var(--hover-fill-color);
	
    /* * Replacing border-width with a large inset shadow spread. 
     * 200px ensures it fully covers the aspect-ratio square.
     * We also keep your original glow shadows here.
     */
    box-shadow: 
        0 0 100px #D9D7D2, 
        0 6px 4px #D9D7D2, 
        inset 0 0 0 300px var(--hover-fill-color);
}

/* Active State */
.home .nav-menu li a:active {
	transform: scale(0.95);
}

/* Mobile Nav Adjustments */
@media (max-width: 700px) {
	.home .main nav ul {
		flex-direction: column;
		gap: var(--space-m);
	}

	.home .main nav ul li {
		padding: 0;
		aspect-ratio: unset;
	}

	.home .main nav ul li a {
		aspect-ratio: unset;
		width: 100%;
		padding: var(--space-lg);
	}
	
	.home .nav-menu li a:hover {
		border-width: 0px;
		transform: none;
	}
}

/* * -------------------------------------------------------------------------
 * Bio Section
 * -------------------------------------------------------------------------
 */

.home .bio {
	padding-top: var(--space-m);
	padding-bottom: var(--space-lg);
}

.home .bio p {
	font-family: var(--base-fonts);
	font-size: var(--font-size-l); /* Formerly 1.2rem */
	font-weight: 200;
}

.home .bio img {
	mix-blend-mode: lighten;
}

/* * -------------------------------------------------------------------------
 * Background Animation
 * -------------------------------------------------------------------------
 */

body.home {
	position: relative;
	overflow-x: hidden;
}

body.home::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;
	pointer-events: none;
	
	mix-blend-mode: hard-light;
	
	background:
		/* Blue wave */
		radial-gradient(ellipse 100% 60% at 20% 40%, rgba(52, 152, 219, 0.5) 0%, rgba(52, 152, 219, 0.02) 30%, transparent 100%),
		/* Green wave */
		radial-gradient(ellipse 100% 60% at 80% 60%, rgba(46, 204, 113, 0.5) 0%, rgba(46, 204, 113, 0.02) 30%, transparent 60%),
		/* Base gradient */
		linear-gradient(135deg, rgba(52, 152, 219, 0.03) 0%, rgba(46, 204, 113, 0.5) 30%, transparent 100%);
		
	background-size: 300% 300%, 250% 250%, 100% 100%;
	animation: waveShimmer 8s ease-in-out infinite;
}

@keyframes waveShimmer {
	0% {
		background-position: 0% 50%, 0% 50%, 0% 0%;
		opacity: 0.6;
	}
	25% {
		background-position: 100% 50%, 50% 100%, 0% 0%;
		opacity: 0.8;
	}
	50% {
		background-position: 100% 0%, 100% 0%, 0% 0%;
		opacity: 0.6;
	}
	75% {
		background-position: 0% 0%, 50% 0%, 0% 0%;
		opacity: 0.8;
	}
	100% {
		background-position: 0% 50%, 0% 50%, 0% 0%;
		opacity: 0.6;
	}
}