/* Base Styles */
:root {
    --text-color: #1a1c20;
    --link-color: #ffffff;
    --background-color: #eeeff1;
    font-size: 17px; /* Set the base font size */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem; 
}

@font-face {
    font-family: "Bacalisties-2OnXo";
    src: url("fonts/Bacalisties-2OnXo.ttf");
}

.skills-container, .ux-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
    justify-content: center;
    align-items: center;
}

/* Icon styles */
.iconify, .fa-brands, .fa-solid {
    font-size: 2.2rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover effects for icons */
.iconify:hover, .fa-brands:hover, .fa-solid:hover {
    transform: scale(1.2);
    color: rgba(191, 214, 196); 
}

/* Tooltip styling */
.iconify::after, .fa-brands::after, .fa-solid::after {
    content: attr(title);
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 6px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.iconify:hover::after, .fa-brands:hover::after, .fa-solid:hover::after {
    opacity: 1;
}

body {
    font-family:Georgia, 'Times New Roman', Times, serif
}

#projects-section {
    position: relative;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

nav {
    background-color: #bfd6c4;
    display: flex;
    justify-content: space-between;
    padding: 0 3.125rem;
    height: 5rem;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(191, 214, 196, 0.9);
    backdrop-filter: blur(5px);
}

nav .left a {
    font-family: "Bacalisties-2OnXo", sans-serif; 
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

nav .right a {
    color: var(--text-color);
    font-size: 1.375rem;
    margin: 0 0.625rem;
}

nav .right a:hover {
    color: var(--link-color);
    transition: color 0.3s ease-in-out;
}

.resume-download {
    position: relative;
    display: inline-block;
}

.icon-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: black; /* Adjust color as needed */
    font-size: 24px; /* Icon size */
    transition: transform 0.3s;
}

.icon-button:hover {
    transform: scale(1.2); /* Slight scaling effect */
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    background-color: black;
    color: white;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    bottom: -40px; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    z-index: 1;
    transition: opacity 0.3s;
}

.icon-button:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* General Section Styles */
section {
    padding: 8rem 2rem;
    min-height: 80vh; /* Reduce the default minimum height */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

section:nth-of-type(odd) {
    background-color: #f8f8f8; /* Light gray for odd sections */
}

section:nth-of-type(even) {
    background-color: #ffffff; /* White for even sections */
}

/* Section Heading Styles */
section h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background-color: #bfd6c4;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* About Section */
#about-section {
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 2rem;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

#about-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#about-section .headshot {
    width: 20rem;
    height: 20rem;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 37px;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#about-section .headshot img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#about-section .headshot img:hover {
    transform: scale(1.2);
}

#about-section .bio {
    margin-bottom: 2rem;
    padding: 0 2rem;
    max-width: 56.25rem;
}

#about-section .bio p {
    font-size: 1.25rem;
    font-weight: 300;
}

#about-section .social-links {
    font-size: 2.25rem;
}

#about-section .social-links a {
    padding: 0;
    margin: 0 0.75rem;
}

#about-section .social-links a i {
    transition: transform 0.3s, color 0.3s;
}

#about-section .social-links a:hover i {
    color: #a5d6b0;
    transform: scale(1.2);
}

#about-section .social-links i {
    color: #588061;
    font-weight: 500;
}

/* Skills Section */
#skills-section {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
    gap:20px; /* Spacing between icons */
    position: relative;
    overflow: visible;
}

.skill-icon {
    position: relative;
    display: inline-block;
    text-align: center;
    font-size: 3rem; /* Adjust icon size */
    color: black; /* Icon color */
    transition: transform 0.3s ease; /* Add scaling effect */
    margin: 0.5rem; /* Add spacing between icons */
}

#skills-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#skills-section .skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* Add gap between icons */
}

#skills-section .iconify {
    position: relative; /* Required for the tooltip */
    font-size: 2.5rem;
    color: #588061;
    transition: transform 0.3s ease, color 0.3s ease;
    margin: 1rem 0; /* Add margin to ensure proper spacing */
}

.skill-icon:hover {
    transform: scale(1.2); /* Slightly enlarge the icon on hover */
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    background-color: rgb(236, 229, 101);
    color: black;
    text-align: center;
    padding: 5px 5px;
    border-radius: 10px;
    position: absolute;
    bottom: -50px; /* Adjust position below the icon */
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-family:Georgia, 'Times New Roman', Times, serif;
    white-space: nowrap;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.skill-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* UI/UX Section */
#UX-section {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem; 
}

#UX-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
    color: #333; /* Ensure visibility */
}

#UX-section .ux-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* Add gap between icons */
}

/* Education Section Styling */
#education-section {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem; 
  }
  
  #education-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
  }
  
  /* Education Timeline */
  #education-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
  }
  
  #education-timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #92c39d;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
  }
  
  .education-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
  }
  
  .education-item.left .timeline-content {
    text-align: right;
    order: 1;
  }
  
  .education-item.left .timeline-date {
    order: 2;
  }
  
  .education-item.right .timeline-content {
    text-align: left;
    order: 2;
  }
  
  .education-item.right .timeline-date {
    order: 1;
  }
  
  .timeline-content {
    background-color: #ffffff;
    padding: 1.5rem;
    border: 1px solid #d7dbd8;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 45%;
    max-width: 600px;
  }
  
  .timeline-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .timeline-content h4 {
    font-size: 1.1rem;
    font-style: italic;
    color: rgb(159, 176, 163);
    margin-bottom: 0.5rem;
  }
  
  .timeline-content p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  .timeline-marker {
    width: 24px;
    height: 24px;
    background-color: #bfd6c4;
    border: 3px solid #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }
  
  .timeline-date {
    width: 45%;
    text-align: left;
    font-size: 1.3rem;
    color: black;
    font-weight: bold;
  }
  
  .education-item.left .timeline-date {
    text-align: left;
  }
  
  .education-item.right .timeline-date {
    text-align: right;
  }
  
  /* Experience Section Styling */
  #experience-section {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem; /* Add gap between elements */
  }
  
  #experience-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
  }
  
  /* Experience Timeline */
  #experience-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}
  
#experience-timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #bfd6c4;
    top: 0;
    bottom: 0;
    left: 300px; /* Fixed position for timeline */
    transform: translateX(-50%);
    z-index: 0;
}
  
/* Experience Item */
.experience-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

/* Date Chevron Style */
.experience-date {
    background: rgb(132, 171, 141); 
    color: white;
    padding: 0.75rem 2rem 0.75rem 1rem;
    font-weight: bold;
    position: relative;
    width: 280px; /* Fixed width for date section */
    text-align: left;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
    margin-right: 3rem;
    font-size: 1.2rem;
}

/* Timeline Marker */
.experience-marker {
    width: 24px;
    height: 24px;
    background-color: #bfd6c4;
    border: 3px solid #ffffff;
    border-radius: 50%;
    position: absolute;
    left: 300px; /* Align with timeline */
    transform: translateX(-50%);
    top: 1rem;
    z-index: 1;
}

/* Job Details Content */
.experience-content {
    flex: 1;
    padding: 0 2rem;
    text-align: left;
    background-color: #ffffff;
    padding: 1.5rem;
    border: 1px solid #d7dbd8;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 45%;
    max-width: 600px;
}

/* Job Title and Description */
.experience-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.experience-content h4 {
    font-size: 1.12rem;
    margin-bottom: 1rem;
    color:  #73a67e; 
}

.experience-content h4 span {
    color: #666;
}

.experience-content ul {
    list-style-type: disc;
    padding-left: 1.35rem;
}

.experience-content ul li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: #494a4a;
}
  
  
/* Projects Section */
#projects-section {
    width: 100%;
    margin:auto;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

#projects-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#projects-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: underline;
}

.project-subsection {
    width: 100%;
    margin-bottom: 4rem; /* Add space between subsections */
}

.projects-scroll-container {
    display: flex; /* Use flexbox for horizontal alignment */
    gap: 1rem; /* Add spacing between project cards */
    overflow-x: auto; /* Enable horizontal scrolling */
    padding: 1rem; /* Add some padding for better visuals */
    scroll-snap-type: x mandatory; /* Optional: Smooth scrolling snap */
    scrollbar-width: thin; /* Firefox: Thin scrollbar */
}

.project-box {
    flex: 0 0 80%; /* Each card takes 80% of the container width */
    max-width: 300px; /* Ensure cards don't grow too large */
    border: 1px solid #d7dbd8;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: center; /* Optional: Snap cards to center */
}

.project-box:hover {
    transform: scale(0.95); /* Grow the box slightly on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-box img {
    width: 100%; /* Ensure image fits within the card */
    height: 10rem; /* Uniform height for all images */
    object-fit: cover; /* Prevent image distortion */
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.project-box:hover {
    transform: scale(1.05); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.project-box h5 {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-box p {
    font-size: 1rem;
    font-weight: 300;
    color: #494a4a;
}


/* Get In Touch Section */
#contact-section {
    min-height: 50vh; /* Make it half the viewport height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

#contact-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#contact-section p {
    font-size: 1.25rem;
    color: #555;
    max-width: 600px;
    line-height: 1.6;
}

#contact-section .social-links a {
    margin: 0 15px; 
}

footer {
    background-color: #bfd6c4;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.875rem;
}

/* Cards Swiper */
.swiper {
    display: flex;
    justify-content: center; /* Center the swiper in its container */
    align-items: center;
}

.swiper-slide {
    flex-shrink: 0; /* Prevent shrinking */
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto !important; /* Ensure slides auto-size based on content */
    height: auto; /* Adjust height to fit content */
}


.swiper-slide > a {
    display: block;
    transform: scale(0.9);
    width: 272px;
    height: 450px;
}

.card-swiper {
    display: flex;
    justify-content: center;
    margin: 0 auto; /* Center the swiper in its container */
    max-width: 100%; /* Ensure it's responsive */
}

/* Media Queries for Responsiveness */
@media (min-width: 1690px) {
    .swiper-wrapper {
        justify-content:center;
    }
}

@media (max-width: 992px) {
    nav .left a {
        font-size: 1.25rem;
    }

    nav .right a {
        font-size: 1rem;
        margin: 0 0.5rem;
    }

    #about-section .headshot {
        width: 18rem;
        height: 18rem;
    }

    #projects-section .project-box {
        flex: 0 0 14rem; /* Adjust width for smaller screens */
    }

    #skills-section i {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    nav .left a {
        font-size: 1.25rem;
    }

    nav .right a {
        font-size: 1.1rem;
        margin: 0 0.375rem;
    }

    #about-section .headshot {
        width: 16rem;
        height: 16rem;
    }

    #projects-section .project-box {
        flex: 0 0 14rem;
    }

    #skills-section span {
        font-size: 2rem;
    }

    #skills-section .skills-container {
        gap: 1.25rem;
     }
}

@media (max-width: 576px) {
    nav {
        padding: 0 1rem;
    }

    nav .left a {
        font-size: 1.1rem;
    }

    nav .right a {
        font-size: 0.8rem;
        margin: 0 0.25rem;
    }

    #about-section .social-links {
        font-size: 1.75rem;
    }

    #about-section h2 {
        font-size: 2.4rem;
    }

    #about-section .headshot {
        width: 12rem;
        height: 12rem;
    }

    #projects-section .project-box {
        flex: 0 0 14rem;
    }

    #skills-section span {
        font-size: 1.5rem;
    }

    #skills-section .skills-container {
       gap: 1rem;
    }

    section {
        padding: 6rem 1rem; /* Adjust padding for smaller screens */
    }

    #projects-section {
        padding: 6rem 1rem; /* Adjust padding for smaller screens */
    }

    #contact-section {
        padding: 3rem 1rem; /* Adjust padding for smaller screens */
    }

    .project-box img {
        height: 8rem;
    }

    .project-box {
        padding: 0.75rem;
    }
}

  /* Responsive Design */
  @media (max-width: 768px) {
    .timeline-item {
      flex-direction: column;
      align-items: center;
    }
  
    .timeline-content,
    .timeline-date {
      width: 90%;
      text-align: center;
    }
  
    #timeline::before {
      left: 50%;
      width: 2px; /* Thinner line for smaller screens */
    }

    .projects-scroll-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-box img {
        height: 10rem;
    }
  }

/* Responsive Design */
@media (max-width: 768px) {
    #experience-timeline::before {
        left: 2rem;
    }

    .experience-item {
        flex-direction: column;
        padding-left: 3rem;
    }

    .experience-date {
        width: 200px;
        margin-bottom: 1.5rem;
    }

    .experience-marker {
        left: 2rem;
    }

    .experience-content {
        width: 100%;
        padding: 0;
    }
}