:root{
    --text-color: #1a1c20;
    --link-color: #4a76ee;
    --background-color: #eeeff1;
}

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

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

body {
    font-family: 'Libre Baskerville', sans-serif;
    background-color: var(--background-color);
}

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

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

nav .left a {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

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

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

/* 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;
}

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

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

#hero-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);
}

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


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

#hero-section .bio p {
    font-size: 1.16rem;
    font-weight: 300;
}

#hero-section .social-links {
    font-size: 1.50rem;
}

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

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

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

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

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


/* Projects Section */
#projects-section {
    width: 100%;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

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

.projects-subsection {
    width: 100%;
    max-width: 1200px;
}

.projects-subsection h3 {
    font-size: 1.6rem;
    text-decoration: underline;
    margin-bottom: 2rem;
}

.project-role{
    font-size: 0.9rem;
    color: #6c6c6c;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Swiper Layout */
.swiper {
    width: 100%;
    padding: 1rem 0 3rem;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

/* Card Styles */
.project-box {
    width: 22rem;
    min-height: 34rem;
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e8e6;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.project-box img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

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

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

.project-box p {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

/* Buttons */
.project-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    padding: 0.55rem 1rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
}

.github-btn { background: #24292e; }
.github-btn:hover { background: #000; }

.live-btn { background: #366fde; }
.live-btn:hover { background: #1c4fb6; }

.paper-btn { background: #588061; }
.paper-btn:hover { background: #45674d; }

.demo-btn {
    background: #7e59c5; 
    color: #fff;
}
.demo-btn:hover { background: #9E8CC5}

.status-badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Colors */
.status-badge.completed {
    background-color: #d4e8d4;
    color: #41694a;
}

.status-badge.in-progress {
    background-color: #e0ebff;
    color: #3558a8;
}

.status-badge.planned {
    background-color: #f4eada;
    color: #7a5d2f;
}



/* Skills Section */
#skills-section {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem; /* Add gap between elements */
}

#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 i {
    font-size: 3rem;
    color: #588061;
    transition: transform 0.3s ease, color 0.3s ease;
    margin: 1rem 0; /* Add margin to ensure proper spacing */
}

#skills-section i:hover {
    transform: scale(1.2);
    color: #a5d6b0;
}


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

/* Cards Swiper */
.swiper {
    width: 100%;
    overflow: visible;
    overflow-x: scroll !important;
    padding-bottom: 3rem;
  }

.swiper-slide {
    width: 350px !important;
    height: 375.75px;
    padding: 1rem;
    display: flex;
    justify-content: center;
}

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


/* Media Queries for Responsiveness */
@media (min-width: 1690px) {
    .swiper-wrapper {
        margin-left: 1rem;
    }
}

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

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

    #hero-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;
    }

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

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

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

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



@media (max-width: 576px) {
     #connect-section .group {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0 1rem;   /* 50px becomes too big on mobile */
    }

    .form-container form {
        max-width: 100%;
        width: 100%;
    }

    .form-container input,
    .form-container textarea {
        max-width: 100%;
    }

    .links-row {
        gap: 1rem; /* shrink spacing between icons */
    }

    #connect-section h3 {
        font-size: 20px;
    }

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

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

    #about-section .bio p {
        font-size: 1rem;
    }

    #projects-section {
        padding: 4rem 0.5rem;
    }

    .project-box {
        width: 90%;       /* shrink card width */
        min-height: auto;
    }

    .swiper-slide {
        width: 100% !important;
        padding: 0;
    }

    section {
        padding: 4rem 1rem;
    }
}



#connect-section {
  width: 100%
}

#connect-section h2 {
  font-size: 35px;
}

#connect-section h3 {
    font-size: 26px;
}

#connect-section h4 {
    font-size: 20px;
    text-align: left;
}

#connect-section label {
  text-align: left;
  font-weight: 600;
  margin-bottom: 5px;
}


#connect-section .group {
  display: flex;
  gap: 120px;
  padding: 0 50px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

#connect-section .group .text {
  flex: 2.6;
  margin-top: 20px;
}

#connect-section .group .social-links {
   display: flex;
   flex-direction: column;     /* Keep heading above */
   align-items: center;    /* Keep everything left-aligned */
   gap: 0.75rem;
}

#connect-section .group .social-links .links-row {
    display: flex;
    gap: 1.5rem;                /* space between GitHub / LinkedIn / Email */
    align-items: center;
}

/* Each social link */
#connect-section .group .social-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;                /* space between icon and text */
    font-size: 1rem;
}

/* Icons */
#connect-section .group .social-links i {
    font-size: 1.8rem;
    color: #588061;
    transition: 0.3s ease;
}

/* Hover effect */
#connect-section .group .social-links a:hover i {
    transform: scale(1.15);
    color: #a5d6b0;
}

#connect-section .group form {
  flex: 3;
  display: flex;
  flex-direction: column;
}

.form-container input,
.form-container textarea {
  width: 100%;
  max-width: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  border: 2px solid var(--link-color);
  background-color: transparent;
  padding: 10px;
  margin-bottom: 15px;
  outline: none;
  resize: none;
}

.form-container form button {
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background-color: var(--link-color);
  border: none;
  height: 50px;
  cursor: pointer;
  transition: .1s;
}

.form-container form button:hover {
  filter: brightness(.9);
}

.form-container h4 {
    font-size: 20px;
    text-align: center;
}

.form-container {
    flex: 3;           /* how much of the row it occupies */
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.form-container form {
    width: 100%;
    max-width: none;  /* clean form size */
}
