@font-face {
    font-family: 'futura';
    text-transform: lowercase;
    src: url(elements/FuturaHandwritten.ttf);
}

body {
    font-family: 'futura';
    text-transform: lowercase;
    
    line-height: 1.6;
    background-color: #f8f4ec;
}

p{
    font-family: 'futura';
    text-transform: lowercase;
}

/* Navbar styles */
.navbar {
    background-color: #f8f4ec;
    max-width: 1200px;
    margin: 20px auto 0 auto;
    z-index: 10;
    position: relative;
}

.nav-container {
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    width: 70px;
    height: 70px;
    background-image: url(images/logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: -80px;
}
.logo:hover {
    transform: rotate(15deg);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
    padding: 1px 0;
    position: relative;
}

.nav-links a:hover {
    color: #666;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #333;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    .nav-links {
        gap: 40px;
    }
    .nav-links a {
        font-size: 14px;
    }
}

/* Footer styles */
.footerbar {
    background-color: #D5D7D5;
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e0dcd2;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
}
.footerbar .nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    position: relative;
}
.footerbar .logo {
    width: 50px;
    height: 50px;
    margin: 0 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.footerbar .nav-links {
    display: flex;
    list-style: none;
    gap: 60vw;
    width: 100%;
    justify-content: space-between;
    z-index: 1;
}
.footerbar .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
    font-size: 16px;
    transition: color 0.3s ease;
}
.footerbar .nav-links a:hover {
    color: #666;
}
.footerbar .footer-chat {
    position: absolute;
    left: 30px;
    font-size: 18px;
    color: #333;
    font-family: 'futura';
    text-transform: lowercase;
}
.footerbar .footer-chat a {
    color: rgb(139, 50, 25);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'futura';
    text-transform: lowercase;
    font-size: 15px;
}
.footerbar .footer-chat a:hover {
    color: #666;
    text-decoration: underline;
}
.footerbar .footer-socials {
    position: absolute;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.footerbar .footer-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: filter 0.2s;
}
.footerbar .footer-icon:hover {
    filter: brightness(0.7);
}
.footerbar .footer-built {
    display: block;
    font-size: 12px;
    color: #888;
    font-family: 'futura';
    text-transform: lowercase;
    margin-top: 2px;
    letter-spacing: 0.2px;
}

/* Main content container for education page */
.work-content {
    max-width: 1000px;
    margin: 10px auto 10px auto;
    padding: 0 24px;
}

/* Flip card styles */
.flip-card {
    perspective: 1000px;
    border-radius: 10px;
    overflow: hidden;
    margin: 30px auto;    
    width: 100%;
    max-width: 800px;
    height: 400px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Remove hover states since we're using click now */
.flip-card:hover {
    background-color: #F4EEE1;

}

.flip-card:hover .flip-card-inner {
    transform: none;

}

/* Add JavaScript class for flip animation */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 20px;
    box-sizing: border-box;
}

/* Style the front side */
.flip-card-front {
    color: black;
    z-index: 2;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* Mockup container for images */
.mockup {
    width: 40%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text section */
.text-section {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Style the back side */
.flip-card-back {
    background-color: #F4EEE1;
    color: black;
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.back-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
}

.back-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.back-content li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95em;
    line-height: 1.5;
}

.back-content li:before {
    content: "★";
    position: absolute;
    left: 0;
    color: #694d43;
}

/* Tech stack bubbles container */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center; /* Also centers vertically if multiple rows */
    padding: 15px 0;
    border-top: 1px solid #332b22;
}

.tech-stack .bubble {
    background-color: #f8f4ec;
    border: 1px solid #333;  
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: transform 0.2s;
}


.card {
    display: flex;
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
    height: 400px; /* smaller and more readable */
  }
  
  /* Left Side */
  .mockup {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills container while maintaining aspect ratio */
    border-radius: 10px;
}
  
  /* Right Side */
  .text-section {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 0.8rem;
  }
  
  .title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.title a:hover {
    color: #666;
    text-decoration: underline;
}

  .subtitle {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
  }
  
  .card:hover {
    border: 1px solid #666; /* full shorthand keeps style */
  }
  