* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding doesn't increase element width */
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #fff;
}

.page-container {
    display: flex;
    min-height: 100vh;
}

.side-nav {
    width: 230px;
    background-color: #f4f4f4;
    border-right: 1px solid #ddd;
    padding: 20px 15px;
    flex-shrink: 0;
    
    display: flex;
    flex-direction: column; 
}

.content-area {
    flex-grow: 1;
    padding: 4rem;
    overflow-y: auto;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #500000;
    margin-bottom: 2rem;
}

.side-nav ul {
    list-style: none;
    margin-bottom: auto; 
    padding: 0;
}

.side-nav li {
    margin-bottom: 1rem;
}

.side-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: lighter;

    display: block;
    padding: 10px 15px;
}

.side-nav a:hover {
    background-color: #e0e0e0;
    color: #500000;
}

.side-nav a.active {
    background-color: #500000;
    color: #ffffff;
    font-weight: bold;
}

#theme-toggle {
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    
    width: 100%;
    padding: 10px 15px;
    margin-top: 2rem; 
    
    background-color: transparent;
    color: #500000;
    border: 2px solid #500000;
    border-radius: 5px;
    cursor: pointer;
}

#theme-toggle:hover {
    background-color: #500000;
    color: #ffffff;
}

.profile-header { /*class for index page, allows for side by side elements*/
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.headshot { 
    align-self: baseline; 
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    flex-shrink: 0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

h2.education {
    font-size: 2.5rem;
    color: #333;
}

h3.education {
    font-weight: lighter;
    color: #555;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #555;
    max-width: 1000px; 
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.tag {
    background-color: #e0e0e0;
    color: #333;
    font-size: 0.9rem;
    font-weight: lighter;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: default;
}

/* Image Carousel Styling */
.carousel-container {
    position: relative;
    width: 98%;
    margin-bottom: 4rem;
}

.carousel-track-container {
    height: 500px; 
    position: relative;
    overflow: hidden; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    opacity: 0; 
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.current-slide {
    opacity: 1; /* show active slide */
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 2;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
}

.carousel-button:hover { background: rgba(0,0,0,0.8); }
.btn-left { left: 0; }
.btn-right { right: 0; }

.banner-separator {
    width: 100%;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    color: white;
    border-radius: 4px;
}

.maroon-bg { background-color: #500000; }
.gray-bg { background-color: #333333; }

.project-details {
    padding: 2rem;
    background-color: #f9f9f9;
    border-left: 4px solid #ddd;
    margin-bottom: 2rem;
}

.btn-small {
    display: inline-block;
    margin-top: 10px;
    margin-right: 10px;
    padding: 5px 15px;
    background-color: #333;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 3px;
}
.btn-small:hover { background-color: #500000; }

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 15px 0 0 0; 
    
    position: relative; 
    width: 100%;
    z-index: 10;
}

.carousel-indicator {
    border: 0;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    background: #ccc; 
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicator.current-slide {
    background: #500000; 
    transform: scale(1.2);
}

.center-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; 
    align-items: stretch; 
}

.service-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0; 
    border-top: 5px solid #500000; 
    border-radius: 8px; 
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    
    display: flex;
    flex-direction: column;
}

.service-card h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.contact-bar {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    margin-bottom: 1.5rem; 
}

.contact-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #500000;
    text-decoration: underline;
}

.badge-container {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}