/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: 20px 20px 0 20px; /* Remove bottom padding */
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.85);  /* White overlay with 85% opacity */
    z-index: -1;
}

.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    text-align: center;
}

.resume-embed {
    width: 100%;
    height: auto;
    aspect-ratio: 8.5 / 11;
    border: 1px solid #ccc;
    margin: 0 auto;
    display: block;
}


@media (max-width: 600px) {
    .resume-embed {
        height: calc(100vw * 11 / 8.5); /* Adjust height for smaller screens */
    }
}

.intro-card {
    background-color: #333;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.intro-card .headshot {
    width: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

.intro-card h1 {
    margin: 0;
    padding: 0;
}

.intro-card .sub-card {
    background-color: rgba(51, 51, 51, 0.7); /* Dark background with some transparency */
}

.intro-card .sub-card .job-title {
    color: white;
    font-weight: bold;
}

.intro-card .sub-card .at-symbol {
    color: white;
    font-weight: normal;
}

.card-icon {
    width: 60px;
    object-fit: contain;
    margin-top: 15px;
}

.card h2 {
    margin-bottom: 10px;
    color: #333;
}

.card p {
    color: #666;
}

.contact-icons {
    margin-top: 15px;
    text-align: center;  /* Center the icons horizontally */
}

/* Contact icons styling */
.contact-icon {
    font-size: 2rem;
    margin-right: 20px;
    color: #333;      /* Icon color */
    text-decoration: none;
    transition: color 0.3s ease;  /* Smooth color transition on hover */
}

.contact-icon:last-child {
    margin-right: 0;  /* Remove right margin from the last icon */
}

/* Remove underline effect for contact icons */
.contact-icon::after {
    content: none;
}

/* Hover effect: change color on hover */
.contact-icon:hover {
    color: #0077b5;  /* Default hover color (for LinkedIn) */
    filter: none;  /* Remove the brightness filter for contact icons */
}

/* Specific hover colors for each platform */
.contact-icon[href*="linkedin"]:hover {
    color: #0077b5;  /* LinkedIn blue */
}

.contact-icon[href*="github"]:hover {
    color: #333;     /* GitHub gray */
}

.contact-icon[href*="mailto"]:hover {
    color: #d14836;  /* Email red */
}

.contact-icon[href$=".pdf"]:hover {
    color: #f40f02;  /* PDF red */
}

/* Custom URL styling */
:root {
    --darken-amount: 70%;
}

a {
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, filter 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    background-color: currentColor;
}

a:hover::after {
    transform: scaleX(1);
}

a:hover {
    filter: brightness(var(--darken-amount));
}

/* Specific link colors */
a[href*="gradienthealth.io"] {
    color: #5C4FA1;
}

a[href*="visual.cs.brown.edu"],
a[href*="www.brown.edu"] {
    color: #C00404;
}

a[href*="atlantic-acm.com"] {
    color: #107642;
}

a[href*="n1health.com"] {
    color: #0077C8;
}

/* Inline icon styling */
.inline-icon {
    width: 16px;  /* or whatever size you prefer */
    height: 16px;
    vertical-align: middle;
    margin-left: 5px;
}

.recently-card {
    padding-bottom: 10px;
}

.sub-card-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
}

.sub-card {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.sub-card:hover {
    transform: translateY(-3px);
}

.sub-card p {
    margin: 5px 0;
    position: relative;
    z-index: 2;
}

.sub-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: sepia(100%) saturate(300%) brightness(70%) hue-rotate(350deg) opacity(7%);
    z-index: 1;
}

.sub-card.brown::before {
    background-image: url('assets/brown_logo.png');
}

.sub-card.atlantic-acm::before {
    background-image: url('https://www.atlantic-acm.com/wp-content/uploads/2023/03/cropped-logo-light-180x180.png');
}

.sub-card.n1health::before {
    background-image: url('https://n1health.com//wp-content/uploads/2022/08/favicon-300x300.png');
}
.sub-card.small-subway {
    background: linear-gradient(to right, #74ebd5, #acb6e5);
}
.sub-card.filmsplice {
    background-color: #ece4d8;
}
.sub-card.voxel {
    position: relative;
    overflow: hidden;
    background-image: repeating-linear-gradient(
        45deg,
        #2ecc71,  /* Light green */
        #2ecc71 10px,
        #27ae60 10px,  /* Dark green */
        #27ae60 20px
    );
}

.footer-card {
    background-color: #333;
    color: #fff;
    margin-bottom: 20px; /* Add this line */
}

.footer-card p {
    margin: 0;
    color: #fff;
}
