/* Explanation in JS tab */

/* Cool font from Google Fonts! */
@font-face {
  font-family: "Anybody";
  src: url("https://assets.codepen.io/1492907/Anybody.woff2") format("woff2");
}
* {
  font-family: "Anybody";
}

body {
	margin: 0px;
}

#container {
	/* Center the text in the viewport. */
	position: absolute;
	margin: auto;
	width: 100vw;
	height: 80pt;
	top: 0;
	bottom: 0;
	z-index: 10; /* Make sure text appears above other elements */
	
	/* This filter is a lot of the magic, try commenting it out to see how the morphing works! */
	filter: url(#threshold) blur(0.6px);
}

/* Your average text styling */
#text1, #text2 {
	position: absolute;
	width: 100%;
	display: inline-block;
	
	font-family: 'Anybody', sans-serif;
	font-size: 80pt;
	font-weight: 700;
	
	text-align: center;
	
	user-select: none;
}

#text3 {
	position: absolute;
	width: 100%;
	display: inline-block;
	font-family: 'Anybody', sans-serif;
	font-size: 40pt;
	font-weight: 500;
	padding: 60px 20px 15rem 20px;
	top: 0;
	z-index: 10;
	
	text-align: center;
	
	user-select: none;
}

#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background-color: #000000;
    z-index: 5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px); /* Adds a slight blur effect behind the nav */
    -webkit-backdrop-filter: blur(5px);
    overflow: hidden;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 120s linear infinite;
    animation-play-state: running;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

#bottom-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.5s ease;
    display: inline-block;
}

#bottom-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.scrolling-text span {
    display: inline-block;
    margin: 0 15px;
    padding: 5px 0;
    font-size: 16px;
    text-transform: lowercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    opacity: 0.9;
    position: relative;
    color: #ffffff;
}

.scrolling-text span:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Create an underline effect on hover */
.scrolling-text span:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.scrolling-text span:hover:after {
    width: 100%;
}

/* Subtle Social Links */
#subtle-social-links {
    position: absolute;
    top: 20px;
    right: 25px;
    z-index: 1000;
}

.subtle-social-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.subtle-social-list li {
    margin-left: 20px;
    position: relative;
}

.subtle-social-list a {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
    position: relative;
}

.subtle-social-list a:hover {
    color: #000;
}

/* Create an underline effect on hover */
.subtle-social-list a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.subtle-social-list a:hover:after {
    width: 100%;
}

@media screen and (max-width: 768px) {
    #subtle-social-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        padding: 15px 0;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 1001;
    }
    
    .subtle-social-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .subtle-social-list li {
        margin: 5px 10px;
    }
    
    #text1, #text2 {
        font-size: 60pt;
    }
    
    #text3 {
        font-size: 30pt;
        padding-top: 80px;
    }
    
    #container {
        top: 60px;
    }
    
    .seo-h1 {
        display: none;
    }
}

/* Portfolio Page Styles */
.portfolio-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.portfolio-container h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
}

.portfolio-container section {
    margin-bottom: 50px;
}

.portfolio-container h2 {
    font-size: 28px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.portfolio-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.portfolio-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.portfolio-item ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.portfolio-item li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.portfolio-item a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.portfolio-item a:hover {
    color: #004080;
    text-decoration: underline;
}

/* Home link at top left of the about page */
#home-link {
    position: fixed;
    top: 20px;
    left: 25px;
    z-index: 1000;
}

#home-link a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
    position: relative;
}

#home-link a:hover {
    color: rgba(0, 0, 0, 0.7);
}

#home-link a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

#home-link a:hover:after {
    width: 100%;
}

/* Utility class to visually hide elements but keep them for SEO/screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* SEO-friendly H1 styling */
.seo-h1 {
    display: none;
}