* {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8f9fa;
    color: #2c3e50;
}

/* Header background will be updated in HTML to use LinkedIn.jpg */
#header {
    width: 100%;
    height: 100vh;
    background-image: url(images/header/KatieImageMain.png);
    background-color: #1e3a5f;
    background-size: 75% auto;
    background-position: -15% bottom;
    background-repeat: no-repeat;
    padding-top: 80px;
}

nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(26, 38, 54, 0.08);
    z-index: 1000;
}

.container {
    padding: 10px 10%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    width: 140px;
    padding-left: 20px; /* Add padding to the left of the logo */
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #2c5aa0;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #1e3a5f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li button {
    font-size: 18px;
    background: #eae1d6;
    color: #44445c;
    border: none;
    cursor: pointer;
}

 .resume-button {
    font-size: 16px;
    color: #fff;
    border: 2px solid #2c5aa0;
    background-color: #2c5aa0;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    outline: none;
    border-radius: 4px;
}

 .resume-button:hover {
    background-color: #1e3a5f;
    border-color: #1e3a5f;
}

.resume-button:active {
    background-color: #44445c;
    border-color: #44445c;
}

.header-text {
    margin-top: 20%;
    font-size: 30px;
    margin-left: 47%;
    color: #ffffff;
}

.header-text h1 {
    margin-top: 20%;
    font-size: 60px;
    color: #ffffff;
}

 .header-text a.learn-more {
    color: #85b3e0;
    text-decoration: none;
    transition: color 0.3s;
}

 .header-text a.learn-more:hover {
    color: #b3d1f0;
}

/* About Me Section */
 #about-me {
    padding: 80px 0;
    color: #2c3e50;
}

.about-me .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-col-1 {
    flex: 1;
    text-align: right;
}

.about-col-1 img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}

.about-col-2 {
    flex: 2;
    padding-right: 20px;
}

 .about-col-2 h1 {
    color: #1e3a5f;
    font-size: 36px;
}

 .about-col-2 p {
    color: #2c3e50;
    font-size: 18px;
    line-height: 1.6;
}

/* Sections */
 #experience, #projects, #awards, #more, #contact{
    padding: 80px 0;
    color: #2c3e50;
}

#experience .container, #projects .container, #awards .container, #more .container {
    text-align: center;
}

.contact-section h1 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 40px;
    color: #1e3a5f;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-logo {
    width: 32px;
    height: 32px;
}

.contact-item a {
    color: #063970;
    text-decoration: none;
    font-size: 18px;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Awards Section */
.awards-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    color: #2c3e50;
}

.awards-section h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #1e3a5f;
}

.awards-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.award-item {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 25px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.15);
}

.award-name {
    font-size: 16px;
    color: #1e3a5f;
    font-weight: 500;
    flex: 1;
}

.award-date {
    background-color: #e8f0f8;
    color: #2c5aa0;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 15px;
}

.award-link {
    color: #2c5aa0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border: 1px solid #2c5aa0;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.award-link:hover {
    background-color: #2c5aa0;
    color: #fff;
    transform: translateX(3px);
}

 .experience-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    color: #2c3e50;
}

.experience-section h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #1e3a5f;
}

/* Grid Layout for Experience and Project Sections */
.experience-section .container,
.projects-section .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.experience-section h1,
.projects-section h1 {
    grid-column: 1 / -1; /* Make the title span all columns */
}

 .experience-item {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Company Label */
.company-label {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 14px;
    color: #2c5aa0;
    font-weight: 500;
    background-color: #e8f0f8;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
}

 .experience-item h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1e3a5f;
}

.experience-content {
    display: flex;
    align-items: center;
}

.carousel-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.carousel-image {
    display: none;
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.carousel-image:first-child {
    display: block;
}

 .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(30, 58, 95, 0.7);
    border: none;
    outline: none;
    z-index: 1;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

 .prev:hover, .next:hover {
    background-color: rgba(30, 58, 95, 0.9);
}

.experience-description {
    font-size: 16px;
    line-height: 1.6;
    flex: 1; /* Take up remaining space */
}

 .projects-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    color: #2c3e50;
}

.projects-section h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #1e3a5f;
}

 .project-item {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

 .project-item h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1e3a5f;
    text-align: center;
}

/* Experience and Project Visual Containers */
.experience-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 200px;
}

.project-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.project-visual {
    max-width: 250px;
    height: 200px;
    margin: 0 auto 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-visual .project-image {
    width: 100%;
    max-width: 250px;
    height: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

/* Item Info Container */
.item-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.experience-item .item-info {
    margin-top: auto;
}

.project-item .item-info {
    align-items: center;
}

.project-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.project-image {
    width: 100%;
    max-width: 300px;
    min-width: 250px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.project-description,
.experience-description {
    font-size: 16px;
    line-height: 1.6;
    flex: 1;
}

/* Collapsible Content Styles */
.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: all 0.3s ease;
    width: 100%;
}

.project-item .collapsible-header {
    justify-content: center;
    position: relative;
}

.project-item .collapsible-header .toggle-icon {
    position: absolute;
    right: 0;
}

.collapsible-header:hover {
    opacity: 0.8;
}

.toggle-icon {
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
    transition: transform 0.3s ease;
}

.toggle-icon.active {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.3s ease;
    opacity: 0;
}

.collapsible-content.active {
    max-height: 2000px;
    opacity: 1;
    margin-top: 15px;
}

/* Skill Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.project-item .skill-tags {
    justify-content: center;
}

.skill-tag {
    background-color: #e8f0f8;
    color: #1e3a5f;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #2c5aa0;
}

/* Carousel Improvements */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background-color: #2c5aa0;
}

.carousel-image {
    display: none;
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .header-text {
        margin-left: 0;
        text-align: center;
        margin-top: 40%;
    }

    .header-text h1 {
        font-size: 40px;
    }

    nav ul {
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        position: absolute;
        top: 100%;
        left: -100%;
        transition: left 0.3s ease;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .about-me .row {
        flex-direction: column;
    }

    .about-col-1, .about-col-2 {
        flex: 1;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    .about-col-1 img {
        max-width: 70%;
    }

    /* Change grid to single column on mobile */
    .experience-section .container,
    .projects-section .container {
        grid-template-columns: 1fr;
    }

    .experience-content, .project-content {
        flex-direction: column;
    }

    .carousel-container {
        margin-bottom: 20px;
    }

    .project-image {
        margin-bottom: 20px;
        max-width: 100%;
        min-width: unset;
    }

    .award-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 20px;
    }

    .award-date {
        margin-left: 0;
    }

    .award-link {
        align-self: flex-start;
    }

    .container {
        padding: 10px 5%;
    }
}

/* Smooth Scroll Offset for Fixed Nav */
html {
    scroll-padding-top: 60px;
}

/* Hover Effects for Items */
.experience-item, .project-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover, .project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.15);
}