:root {
    /* Colors */
    --primary-color: limegreen;
    --text-dark: #333;
    --text-light: white;
    --bg-light: white;
    --bg-gray: whitesmoke;
    --border-light: #f0f0f0;
    
    /* Spacing */
    --content-padding: 20px 40px 80px 40px;
    --content-margin: 40px;
    --small-padding: 10px;
    
    /* Typography */
    --font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-large: 36px;
    --font-size-hero: 3.5rem;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s;
    
    /* Shadows */
    --shadow-light: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

body{
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    margin-bottom: 80px;
    clear: both;
}

.splash{
    height: 40vh;
    width: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url("./Resources/Images/Code.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-text {
    text-align: center;
    color: var(--text-light);
    z-index: 2;
}

.hero-text h1 {
    font-size: var(--font-size-hero);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-text p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

.content{
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--content-padding);
    background-color: var(--bg-light);
    overflow-y: auto;
    overflow-x: hidden;
}

.content h1{
    margin: 2px;
}

.content #title{
    margin-left: var(--content-margin);
    margin-right: var(--content-margin);
    font-size: 30px;
    font-style: italic;
}

.content p{
    margin-left: var(--content-margin);
    margin-right: var(--content-margin);
    text-align: left;
    font-size: var(--font-size-base);
    line-height: 1.6;
    transition: all var(--transition-fast);
}

.content p:hover {
    transform: translateX(5px);
    color: var(--text-dark);
}


nav{
    font-size:16px;
    z-index: 9999;
    top:0;
    left:0;
    position: fixed;
    width: 100%;
    transition: 0.5s;
}

nav .logo{
    padding: 10px 10px;
    height: 30px;
    font-size: 20px;
    float: left;
    color: white;
    transition: 0.5s;
}

nav ul{
    list-style: none;
    float: right;
    margin: 10px;
    padding: 0;
    display: flex;
}

nav ul li{
    list-style: none;
}

nav ul li a {
    line-height: 30px;
    color: white;
    padding: 22px 8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.5s;
}

nav.white{
    font-size: 16px;
    top:0;
    left:0;
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.5s;
}

nav.white .logo{
    padding: 10px 10px;
    height: 30px;
    font-size: 20px;
    float: left;
    color: black;
    transition: 0.5s;
}

nav.white ul li a {
    line-height: 30px;
    color: black;
    padding: 22px 8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.5s;
}

nav ul li a {
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 15px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all var(--transition-fast);
}

nav ul li a:hover{
    color: var(--primary-color);
    text-decoration: none;
}

nav ul li a:hover::after {
    width: 80%;
    left: 10%;
}

footer{
    background-color: var(--bg-gray);
    left: 0;
    font-size: 28px;
    text-align: center;
}

footer ul{
    list-style: none;
    margin:0;
    display: inline-flex;
}

footer ul li{
    padding:4px;
    text-decoration: none;
}

footer .fa{
    padding: 4px;
    width: 40px;
    height: 40px;
    text-align: center;
    text-decoration: none;
    margin: 4px 2px;
    transition: 0.5s;
}
.fa:hover {
      transform:scale(1.2);
      transition: 0.5s;
}  

.fa-github {
    background: #ff5700;
    color: white;
  }

.fa-linkedin {
    background: #007bb5;
    color: white;
  }

#contact{
    padding: 10px;
    margin: 0;
}

#contact input{
    width: 100%;
    height: 20px;
    margin-bottom: 20px;
}

#contact button{
    width: 100%;
    border-radius: 8px;
    height: 40px;
    font-size: 18px;
}

#contact button:hover{
    width: 100%;
    border-radius: 8px;
    height: 40px;
    font-size: 28px;
    background-color: unset;
}

#contact textarea{
    width: 100%;
    font-size: 18px;
    height: 200px;
}

#errors{
    color: red;
}

h1, h2 {
    font-size: var(--font-size-large);
    padding-bottom: var(--small-padding);
}

.textLink{
    color:black;
    font-weight: bold;
    text-decoration:none;
}

.textLink {
    position: relative;
    transition: all 0.3s ease;
}

.textLink::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.textLink:hover{
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.textLink:hover::before {
    width: 100%;
}

.is-fixed{
    position: fixed;
    bottom: 0px;
    width: 100%;
    height: 80px;
}

.projectImg{
    text-align: center;
}

.projectImg img{
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    max-width: 500px;
    width: 100%;
    height: auto;
}

.projectImg img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.projectImg img[src$=".gif"] {
    max-width: 250px;
    max-height: 500px;
}

.projectImg img[src*="WIP"] {
    max-width: 250px;
}

.card {
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}


.projectMode{
  display:flex;
  gap:.5rem;
}

input.toggle {
	all: unset;
	display: block;
	--size: 1.5rem;
	--padding: 0.1rem;
	position: relative;
	cursor: pointer;
	background-color: var(--color-ui);
	width: calc(var(--size) * 2 + var(--padding) * 2);
	height: calc(var(--size) + var(--padding) * 2);
	border-radius: calc((var(--size) + var(--padding) * 2) / 2);
}

input.toggle::after {
	content: "";
	position: absolute;
	height: var(--size);
	width: var(--size);
	left: var(--padding);
	bottom: var(--padding);
	background-color: var(--color-background);
	transition: 0.1s ease-out;
	border-radius: 50%;
}
input.toggle:checked::after {
	transform: translateX(var(--size));
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .content {
        padding: 40px 15px;
    }
    
    .content p {
        margin-left: 15px;
        margin-right: 15px;
        font-size: 15px;
    }
    
    .content #title {
        margin-left: 15px;
        margin-right: 15px;
        font-size: 24px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .card-content {
        padding: 1rem !important;
    }
    
    .title.is-4 {
        font-size: 1.25rem !important;
    }
    
    .projectImg img {
        max-width: 100%;
    }
    
    .projectImg img[src$=".gif"] {
        max-width: 200px;
    }
    
    .projectImg img[src*="WIP"] {
        max-width: 200px;
    }
    
    .content p:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 30px 10px;
    }
    
    .content p {
        margin-left: 10px;
        margin-right: 10px;
        font-size: 14px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}html{
  --color-background:#fff;
  --color-text:#000;
  --color-ui:#ccc;
  color-scheme: light;
  background:var(--color-background);
  color:var(--color-text);
  transition:background 250ms, color 250ms;
}

html:has(#projectMode:checked){
  --color-background:#000;
  --color-text:#fff;
  --color-ui:#444;
}
