:root {
    --primary-color: #0e0e0e;
    --secondary-color: #ebebeb;
    --accent-color: #467597;
    --background-color: #0e0e0e;
    --text-color: #ebebeb;
    --projects-color: #ebebeb;
    --default-typography: "Quicksand", sans-serif !important;
}

body {
    background-color: var(--background-color) !important;
    color: var(--text-color);
    font-family: var(--default-typography) !important;
}

h1 {
    color: var(--secondary-color);
    font-family: var(--default-typography);
    font-weight: 530;
}

h2 {
    color: var(--secondary-color);
    font-family: var(--default-typography);
    font-weight: 500;
}

h3 {
    color: var(--secondary-color);
    font-family: var(--default-typography);
    font-weight: 470;
}

h4 {
    color: var(--secondary-color);
    font-family: var(--default-typography);
    font-weight: 440;
}

h5 {
    color: var(--secondary-color);
    font-family: var(--default-typography);
    font-weight: 400;
}

/* General paragraph styling */
p {
    color: var(--text-color);
    font-family: var(--default-typography);
    font-weight: 300;
}

/* Header styling */
header {
    background-color: var(--background-color);
    padding-top: 20px;
    text-align: center;
}
header .within {
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 20px;
}

hr {
    border: 1px solid var(--accent-color);
}

.sad-face {
    width:15%;
    filter: brightness(0) saturate(100%) invert(25%) sepia(75%) saturate(500%) hue-rotate(255deg);
}

/* Main Page Styling */
.nav-card {
    border:1px solid var(--secondary-color);
    color:white;
    background-color:#0c0c0c;
    border-radius:10px;
    width:500px;
}

.nav-card:hover {
    background-color:#141414;
}

.nav-card .item {
    padding-top:20px;
}

.nav-card .text-grey {
    color:#464646;
}

.nav-card-link:first-of-type {
   margin-top:1.5rem;
}

.nav-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom:1.5rem;
}

.nav-card-link:last-child {
	margin-bottom:0;
}

.more-link a {
    color:var(--text-color);
}

/* About page styling */
.about-section {
    height:100%;
    padding-top:100px;
    padding-bottom:30px;
}

.about-section img {
    width:50%;
}

.about-section h2 {
    font-weight:300 !important;
    font-size:40px;
    padding-bottom:100px;
}

.about-section p {
    font-size:16px !important;
    width:50%;
}

.about-section a {
    color:var(--text-color);
}

.about-section a:hover {
    color:#c7c7c7;
}

/* Websites page styling */
.websites-section {
    height:100%;
    padding-top:50px;
    padding-bottom:50px;
}

.websites-section img {
    width:20%;
}

.websites-section h2 {
    font-weight:300 !important;
    font-size:30px;
    padding-bottom:20px;
}

.websites-section p {
    width:50%;
}

.websites-section a {
    color:var(--text-color);
}

.websites-section a:hover {
    color:#c7c7c7;
}

/* Projects section styling */
.projects-section {
    height:100%;
    padding-top:150px;
    padding-bottom:100px;
}

.projects-section h2 {
    font-weight:300 !important;
    font-size:40px;
    padding-bottom:100px;
}

/* Card styling */
.projects-section .card {
    background-color: #1C1C1E; /* Slightly lighter than the background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    transition: transform 0.3s;
}

.projects-section .card:hover {
    transform: translateY(-10px); /* Lift effect on hover */
}

.projects-section .card img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* Ensures the image fits without distortion */
    background-color: #E0F4FF; /* Light blue placeholder color */
    border-bottom: 2px solid #FF6F61; /* Light red border under the image */
}

.projects-section .project-row {
    padding-bottom:30px;
}

.projects-section .card-content {
    padding: 15px;
}

.projects-section .card-content .subtitle {
    font-size: 12px;
    color: var(--projects-color); /* Light red for the subtitle */
    margin-bottom: 8px;
}

.projects-section .card-content .title {
    font-size: 18px;
    color: #FFFFFF; /* White title text */
    font-weight: bold;
}

/* CV Section */
.cv-section {
    height:100%;
    padding-top:100px;
    padding-bottom:30px;
}

.cv-section h3 {
    font-weight:500 !important;
    font-size:40px;
}

.cv-section h4 {
    font-weight:400 !important;
    font-size:20px;
}

.cv-section h5 {
    font-size:16px;
    font-weight:bold !important;
}

.cv-section .subheading {
    font-weight:bold !important;
}

.cv-section p {
    font-size:14px !important;
    width:75%;
}

.cv-section a {
    color:var(--text-color);
}

.cv-section a:hover {
    color:#c7c7c7;
}

.cv-section strong {
    color: var(--secondary-color);
    font-family: var(--default-typography);
    font-size:15px;
}

.cv-section hr {
    border-top:1px solid var(--secondary-color) !important;
}

.cv-section ul {
    color: var(--secondary-color);
    font-size:14px !important;
}

/* Contact Section */
.contact-section {
    height:100%;
    padding-top:150px;
    padding-bottom:30px;
}

.contact-section label {
    color:var(--secondary-color);
}

.contact-section h3 {
    font-weight:500 !important;
    font-size:30px;
}

.contact-section a {
    color:#3d6582;
    text-decoration:none;
    transition:0.5s;
}

.contact-section a:hover {
    color:#232323;
}

/* Footer styling */
footer {
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left:30px;
    padding-right:30px;
    font-family: var(--default-typography);
}

footer p {
    color: var(--secondary-color);
    font-weight: 400;
}

footer a {
    color: var(--secondary-color);
    text-decoration:none;
    transition: color 0.3s ease;
}

footer a:hover {
    text-decoration:underline;
    color: var(--projects-color);
}

/* Social Links */
.social-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between icons */
}

.social-links a {
    display: inline-block;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-links a img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
    filter: brightness(0) saturate(100%) invert(25%) sepia(75%) saturate(500%) hue-rotate(255deg);
}

.social-links a:hover img {
    filter: grayscale(0%); /* Colorize the icon on hover */
    transform: scale(1.1); /* Slight zoom effect */
}

.social-links a:active img {
    transform: scale(0.95); /* Slight shrink on click */
}

.social-links a img:hover {
    filter: brightness(0) saturate(100%) invert(20%) sepia(70%) saturate(700%) hue-rotate(320deg); /* Adjust for hover */
    transform: scale(1.1);
}

/* 404 Container Styling */
.fourohfour-container {
    padding: 100px;
}

.fourohfour-container a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fourohfour-container a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* NAV STYLING */
.nav-container {
    position:fixed;
    top:50%;
    transform: translateY(-50%);
}

.nav-container a {
    display:block;
    text-decoration:none;
    background-color:#1E1E1E;
    color:var(--text-color);
    text-transform:uppercase;
    padding:15px 0 25px 10px;
    margin: 9px 0;
    width: 150px;
    letter-spacing:1.5px;
    box-shadow: 2px 2px 16px 0px rgba(0,0,0,0.75);
    position: relative;
}

.nav-container a span {
    float:right;
    padding-right:10px;
}

.nav-container a span i {
    font-size: 20px;
    color:var(--text-color);
    padding-top:5px;
}

.nav-container a:hover {
    color:#d6d6d6;
}

/* FADE IN ANIMATIONS */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

/* Keyframes */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in Delays */
/* Delay for staggered animation */
.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1s;
}

.delay-3 {
    animation-delay: 1.5s;
}

.delay-4 {
    animation-delay: 2s;
}

.delay-5 {
    animation-delay: 2.5s;
}

.delay-6 {
    animation-delay: 3s;
}

.delay-7 {
    animation-delay: 3.5s;
}

.delay-8 {
    animation-delay: 4.0s;
}

/* Responsive */
@media(max-width: 991px) {
    .about-section img {
        width:95%;
    }

    .nav-card {
        width:400px;
    }

    .about-section p {
        width:95%;
    }

    .websites-section img {
        width:50%;
    }

    .websites-section p {
        width:50%;
    }

    .nav-container {
        position:fixed;
    }

    .nav-container a {
        margin-left: -105px;
    }

    .nav-container a:hover {
        margin-left:0;
    }
}
