* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
html{
    scroll-behavior: smooth;
}
.button {
    background-color: transparent;
    color: #666666;
    padding: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    border: none;
    font-family: "ivypresto-headline", Georgia, "Times New Roman", serif;
    font-weight: 100;
    font-style: normal;
    font-size: 16px;
    letter-spacing: 0.5px;
}
.button::after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}
.button:hover::after {
    transform: translateX(4px);
}
/* Link Styles */ 
.link {
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: "ivypresto-headline", Georgia, "Times New Roman", serif;
    letter-spacing: 0px;
    font-size: 18px;
}
.link:hover{
    color:#7a7a7a;
 }
a {
    color:#666;
    text-decoration: none;;
}
body {
    font-family: "ivystyle-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 100;
    font-style: normal;
    background-color: #111111;
    color: #f4f1e9;
    min-height: 100vh;
    background-image: url(assets/bg.svg);
    background-repeat: no-repeat;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

.project-page .container {
padding: 0;
}

/* Hero Text Styles */
h1 {
    font-size: 6rem;
    line-height: 1.1;
    margin-bottom: 6rem;
    margin-top:2rem;
    letter-spacing: -2px;
    font-family: "ivypresto-headline", Georgia, "Times New Roman", serif;
    font-weight: 200;
    font-style: normal;
    color:#cb5b5b;
}
h1 .highlight {
    color: #fefcdd;
}
/* Hero Copy Styles */
.copy {
    max-width: 100%;
}
.copy-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.copy-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}
.copy-text {
    line-height: 1.5;
    margin-top: 1.5rem;
    color: #fefcdd;
}
.copy-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 0.5px;
    text-decoration-color: rgba(254, 252, 221, 0.5);
}
.copy-text a:hover {
    opacity: 0.8;
}
.copy-title {
    font-weight: 500;
    color: #fefcdd;
    text-decoration: none;  
}
.copy-sub-title {
    display: block;
    color: #666;
    margin-top: 0.25rem;
    font-family: "ivypresto-headline", Georgia, "Times New Roman", serif;
    letter-spacing: 0.5px;
}

.spacer {
    width: 100%;
    height: 4rem;
}

.spacer-sm {
    height: 2rem;
}

.spacer-lg {
    height: 4rem;
}

/* Card Styles */
.card {
    background: #fefcdd;
    border-radius: 6px;
    margin-top: 2rem;
    display: flex;
    overflow: hidden;
}

.full-card {
    width: 100%;
    flex-direction: row;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    max-width: 900px;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    box-sizing: border-box;
}

.half-card {
    flex: 1 1 400px;
    flex-direction: column;
    min-width: 0;
}

/* Content Styles */
.content {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
}

.full-content {
    flex: 1;
    padding: 3.5rem 3.5rem;
}

.half-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

/* Illustration Styles */
.illustration {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

.half-illustration {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.top-half-illustration {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    order: -1;
}

/* Title Styles */
.title {
    margin-bottom: 12px;
    font-family: "ivypresto-headline", serif;
    letter-spacing: 0px;
    margin-top: 0px;
}

.half-title {
    font-size: 36px;
    color: #1a1a1a;
}

/* Subtitle Styles */
.subtitle {
    color: #84836D;
    font-size: 16px;
    font-weight: 100;
    margin-bottom: 1.5rem;
    font-family: "ivystyle-sans", sans-serif;
    letter-spacing: 0px;
    margin-top: -0.5rem;
}

/* Description Styles */
.description {
    font-size: 16px;
    line-height: 1.5;
    color: #242424;
    margin-bottom: 2.5rem;
    font-family: "ivystyle-sans", sans-serif;
    flex: 1;
}

/* Link Styles */
.link {
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: "ivypresto-headline", serif;
    letter-spacing: 0px;
    font-size: 18px;
    margin-top: auto;
}

.link:hover {
    color: #7a7a7a;
}

/* Responsive adjustments - FIXED FOR PROPER CENTERING */



/* Add a new breakpoint specifically for smaller mobile devices */

/* Common Card Styles */
.project-row{
    margin-top: 2rem;
}
/* Small Card Styles */
.mini-card {
    background:#111111;
    width: 48%;
    flex-direction: column;
    float:left;
    border: 1px solid #fefcdd3b;
    background-image: url(assets/bg.svg);
    background-repeat: no-repeat;
}
.mini-card:hover {
    border: 1px solid #fefcdda8;
    
}
#right-card{
    margin-left:2rem;
}
#contact-card{
    background:#111111;
    width: 100%;
    flex-direction: column;
    float:left;
    border: 1px solid #fefcdd3b;
    background-image: url(assets/bg.svg);
    background-repeat: no-repeat;
}

/* Title Styles */
.title {
    margin-bottom: 12px;
    font-family: "ivypresto-headline", serif;
    letter-spacing: 0px;
    margin-top: 0px;
}
.half-title {
    font-size: 36px;
    color: #1a1a1a;
}
.mini-title{
    font-size: 20px;
    color: #fefcdd;
}
.ai-title {
    color: #cb5b5b;
}

/* Sub Title Styles */ 
.subtitle {
    color: #84836D;
    font-size: 16px;
    font-weight: 100;
    margin-bottom: 1.5rem;
    font-family: "ivystyle-sans", sans-serif;
    letter-spacing: 0px;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}
.mini-subtitle{
    margin-bottom: 0.5rem;
}
/* Description Title Styles */ 
.description {
    font-size: 16px;
    line-height: 1.5;
    color: #242424;
    margin-bottom: 12px;
    font-family: "ivystyle-sans", sans-serif;
    word-spacing: 1.5px;
}
.mini-description{
    color: #fefcdd;
    line-height: 1.6em;
}
/* AI Generated images */ 
.illustration {
    flex: auto;
    overflow: hidden;
    background-size: cover;
    border-radius: 0px 6px 6px 0px;
    position: relative;
}
.half-illustration{
    width: 100%;
    flex: none;
    aspect-ratio: 16/9;
    border-radius: 6px;
    background-size: cover;
    margin-bottom: 1.5rem;
    position: relative;
}
.top-half-illustration{
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px 6px 0px 0px;
    background-size: cover;
    position: relative;
}

/* Card video hover effects */
.card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

/* Style to ensure the poster image fits properly */
video.card-video {
    background-color: #111; /* Matching background color while loading */
    object-fit: cover; /* Ensure the video/poster fills the container */
}

/* Ensure proper display in different card layouts */
.illustration .card-video,
.top-half-illustration .card-video,
.half-illustration .card-video {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Optional loading indicator for videos not yet ready to play */
.card.loading-video::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    animation: spin 1s infinite linear;
    z-index: 2;
    display: block; /* Show by default when loading-video class is applied */
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

#ai-bg-1 {
    background-image: url(assets/amigos.webp);
}
#ai-bg-audiokit {
    background-image: url(assets/audio-tools-project/audio-tools-cover.webp);
}
#ai-bg-podcast-digest {
    background-image: url(assets/podcast-digest-project/podcast-digest-cover.webp);
}
#ai-bg-reword {
    background-image: url(assets/reword/reword-cover04.webp);
}
#podcast-bg {
    background-image: url(assets/podcast-project/podcast_project.webp);
}
#firefly-bg {
    background-image: url(assets/firefly-project/ff_project.webp);
}
#firefly-bg-2 {
    background-image: url(assets/firefly-project/styles.gif);
}
#ai-project-1 {
    background-image: url(assets/test.png);
}
#ai-project-2 {
    background-image: url(assets/test2.png);
}
/* Footer Styles */ 
.footer {
    display: inline-block;
    margin-top: 8rem;
}
.footer-item {
    display: block;
    color: #666;
    margin-top: 3rem;
    margin-bottom:2rem;
 
}
.footer-item a {
    padding-right: 22px;
}
.footer-item a:hover {
    color:#fff;
}
.footer-item a.active {
    color:#fff;
}
.product-icon {
    width: 140px;
}
/* Tablet Breakpoint */

/* Mobile Breakpoint */

.footer-links {
display: flex;
gap: 2rem;
justify-content: center;
align-items: center;
margin-bottom: 2rem;
}

.footer-link {
text-decoration: none;
color: #666;
}

.footer-link:hover {
color: #fff;
}

/* Mobile styles */


.button-link {
text-decoration: none;
}

.button-link:hover .button {
color: #fff;
transition: opacity 0.2s ease;
}

.image-card {
width: 100%;
display: flex;
gap: 24px;
padding: 32px 0;
}

.image-container {
flex: 1;
}

.card-image {
width: 100%;
height: 400px;
object-fit: cover;
border-radius: 8px;
}


.card-image {
height: 300px; /* Slightly shorter on mobile for better proportions */
}


.full-width-image {
width: 100%;
margin: 4rem 0 0 0;
}

.full-width-image img {
width: 100%;
height: auto;
display: block;
filter: grayscale();
margin-top:0 rem;
border-radius: 4px;
}

/* Original image grid (for design.html) - restored to original layout without aspect ratio lock */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 4rem auto 0 auto;
}

.image-grid .grid-item {
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    background-color: #222;
    /* aspect-ratio removed */
}

.image-grid .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-grid .grid-item:hover img {
    transform: scale(1.05);
}

/* Reset all specific grid positioning for the original grid */
.image-grid .grid-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
}

/* Responsive adjustments for design.html */



/* NEW BENTO BOX GRID (for firefly.html) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 900px;
    margin: 4rem auto;
}

.bento-grid .grid-item {
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    background-color: #222;
    aspect-ratio: 1/1; /* Force square aspect ratio */
}

.bento-grid .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bento-grid .grid-item:hover img {
    transform: scale(1.05);
}

/* Custom layout for bento grid */
/* Row 1: One big square left, one big right */
.bento-grid .grid-item:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 1 / 4;
}

.bento-grid .grid-item:nth-child(2) {
    grid-column: 4 / 7;
    grid-row: 1 / 4;
}

/* Row 2: 3 medium squares */
.bento-grid .grid-item:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 4 / 6;
}

.bento-grid .grid-item:nth-child(4) {
    grid-column: 3 / 5;
    grid-row: 4 / 6;
}

.bento-grid .grid-item:nth-child(5) {
    grid-column: 5 / 7;
    grid-row: 4 / 6;
}

/* Row 3: One big square left, one big right */
.bento-grid .grid-item:nth-child(6) {
    grid-column: 1 / 4;
    grid-row: 6 / 9;
}

.bento-grid .grid-item:nth-child(7) {
    grid-column: 4 / 7;
    grid-row: 6 / 9;
}

/* Row 4: 3 medium squares */
.bento-grid .grid-item:nth-child(8) {
    grid-column: 1 / 3;
    grid-row: 9 / 11;
}

.bento-grid .grid-item:nth-child(9) {
    grid-column: 3 / 5;
    grid-row: 9 / 11;
}

.bento-grid .grid-item:nth-child(10) {
    grid-column: 5 / 7;
    grid-row: 9 / 11;
}

/* Row 5: One big square left, one big right */
.bento-grid .grid-item:nth-child(11) {
    grid-column: 1 / 4;
    grid-row: 11 / 14;
}

.bento-grid .grid-item:nth-child(12) {
    grid-column: 4 / 7;
    grid-row: 11 / 14;
}

/* Responsive adjustments for bento grid */

/* Simplified mobile layout for bento grid - stacked vertically */

/* Navbar styles */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000;
width: 100%;
}

.navbar-links {
flex: 1; /* Takes up available space */
}

.navbar-links ul {
margin: 0;
padding: 0;
display: flex;
list-style: none;
/* Remove any justify-content to keep links left-aligned */
}

.navbar-links li a {
text-decoration: none;
color: #666;
padding: 1rem;
display: block;
transition: color 0.3s ease;
}

.navbar-links li a:hover {
color: #fff;
}

.navbar-links ul li a.active {
color: #fff;
}

.toggle-button {
display: none;
font-size: 1.5rem;
color: #f4f1e9;
cursor: pointer;
}

/* Mobile responsive styles - ONLY applied at 768px and below */
@media (max-width: 768px) {
    .toggle-button {
        display: block;
        padding-left: 3rem;
        padding-top: 3rem;
        z-index: 1002;
        position: relative;
    }
    
    .navbar-links {
        display: none;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background-color: #111111;
        z-index: 1001;
        overflow: hidden; /* Prevent scrolling within menu */
    }
    
    /* Add styles for when menu is active */
    body.menu-active {
        overflow: hidden; /* Prevent background scrolling when menu is open */
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar-links ul {
        flex-direction: column;
        width: 100%;
        height: 100%;
        justify-content: center; /* Center links vertically */
        align-items: center; /* Center links horizontally */
    }
    
    .navbar-links li {
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .navbar-links li a {
        display: inline-block;
        width: 100%;
        text-align: center;
        font-size: 2rem; /* Larger text size */
        padding: 1rem 0;
        font-family: "ivypresto-headline", serif;
    }
    
    .navbar-links.active {
        display: flex; /* Changed to flex to enable centering */
        align-items: center;
        justify-content: center;
    }
    
    /* Project responsive styles */
    .project-row {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .project-row.reverse {
        flex-direction: column;
    }
    
    .project-text h2 {
        font-size: 2rem;
    }
    
    .project-text p {
        font-size: 1rem;
    }
}

/* Project Page Styles */
.project-hero {
width: 100%;
height: 60vh;
margin-bottom: 4rem;
overflow: hidden;
}

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

.project-section {
margin: 6rem 0;
}

.project-row {
display: flex;
gap: 4rem;
margin-bottom: 8rem;
align-items: center;
}

.project-row.reverse {
flex-direction: row-reverse;
}

.project-text {
flex: 1;
}

.project-text h2 {
font-family: "ivypresto-headline", serif;
font-size: 2.5rem;
color: #fefcdd;
margin-bottom: 1.5rem;
}

.project-text p {
color: #fefcdd;
line-height: 1.6;
font-size: 1.1rem;
}

.project-image {
flex: 1;
}

.project-image img {
width: 100%;
height: auto;
border-radius: 6px;
}

/* Hero Image Styles - Updated to prevent cropping on small screens */
.hero-image {
    width: 100%;
    margin-bottom: 4rem;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto; /* Changed from 100% to auto */
    object-fit: contain; /* Changed from cover to contain */
    display: block;
    border-radius: 6px;
}

/* Add this new style for project pages */
.project-page h1 {
    margin-bottom: 3rem;
}

.project-copy {
max-width: 100%;
}

.project-copy .copy-box {
display: grid;
grid-template-columns: 1fr 2fr;  /* First column for title, second column twice as wide for text */
gap: 2rem;
margin-bottom: 4rem;
align-items: start;  /* Aligns items to the top */
}

.project-copy .copy-title {
grid-column: 1 / 2;  /* Takes up first column */
margin-top: 0;  /* Remove any top margin */
}

.project-copy .copy-text {
grid-column: 2 / 4;  /* Takes up second and third columns */
max-width: 100%;
margin-top: 0;  /* Remove any top margin */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .project-copy .copy-box {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 3rem;
    }
    
    .project-copy .copy-text {
        grid-column: 1;
    }
}

.slideshow {
    width: 100%;
    max-width: 900px;
    margin: 4rem auto;
    position: relative;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.slide-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
}

/* Standard slide caption styling */
.slide-caption {
    color: #666;
    font-family: "ivystyle-sans", sans-serif;
    line-height: 1.6;
    text-align: center;
    margin-top: 1rem;
}

/* Special styling for slideshow-3 captions to maintain consistent height */
#slideshow-3 .slide-caption {
    min-height: 3.2em; /* Forces a minimum height equivalent to 2 lines */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem; /* Add some bottom margin for spacing */
}

.slideshow-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.nav-pills {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-pill {
    background: rgba(254, 252, 221, 0.1);
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    cursor: pointer;
    font-family: "ivystyle-sans", sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-pill:hover {
    background: rgba(254, 252, 221, 0.15);
    color: #fefcdd;
}

.nav-pill.active {
    background: rgba(254, 252, 221, 0.15);
    color: #fefcdd;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .slideshow {
        margin: 3rem;
    }
    .nav-pills {
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .slideshow {
        margin: 2rem 3rem;
        width: calc(100% - 6rem);
    }
    .nav-pills {
        gap: 0.5rem;
    }
    .nav-pill {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .slide-caption {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        margin: 0 1rem;
    }
}

.project-page .copy-title {
    text-decoration: underline;
    text-underline-offset: 4px;  /* Adds space between text and underline */
    text-decoration-thickness: 0.5px;  /* Makes the underline thinner */
    text-decoration-color: rgba(254, 252, 221, 0.5);  /* Semi-transparent underline */
}

/* Breadcrumb styling for subpages */
.breadcrumb-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: rgba(254, 252, 221, 0.6);
    font-size: 14px;
}

/* Remove underline from active class */
.navbar-links a.active {
    color: #FEFCDD;
    border-bottom: none;
}
/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .breadcrumb-item {
        margin-top: 5px;
    }
    
    .breadcrumb-separator {
        margin: 0 5px;
    }
}

/* Modern Compact Banner - Multiple Background Options */
.compact-banner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 8px;
  margin: 2rem 0;
  padding: 2rem;
  height: 120px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(254, 252, 221, 0.1);
  transition: border-color 0.3s ease;
}

.compact-banner:hover {
  border-color: rgba(254, 252, 221, 0.3);
}

/* Base background image setup */
.compact-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 1;
}

/* Background image variations */
.banner-audio-mixing::before {
  background-image: url('assets/tools-bg-1.jpg');
}

.banner-stem-mixing::before {
  background-image: url('assets/tools-bg-2.jpg');
}

.banner-transcript::before {
  background-image: url('assets/tools-bg-3.jpg');
}

.compact-banner:hover::before {
  transform: scale(1.05);
}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner-button {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  color: #fefcdd;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(254, 252, 221, 0.3);
  cursor: pointer;
  font-family: "ivystyle-sans", sans-serif;
}

.banner-button::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.banner-button:hover::after {
  transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .compact-banner {
    height: 140px;
    padding: 1.5rem;
  }
  
  .compact-banner::before {
    background-position: left center;
  }
}

/* LLM Tag styling - allows multiple tags to display inline */
.llm-tag {
    display: inline-block;
    color: #000000;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 0rem;
    margin-right: 0rem;
    letter-spacing: 0px;
    font-family: "ivystyle-sans", sans-serif;
    width: fit-content;
    background: linear-gradient(90deg, #9f9f9f2b, #fefcdd);
}

/* Container for multiple tags */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

/* Filter buttons styles */
.filter-container {
    display: flex;
    justify-content: flex-start;
    gap: 0.8rem;
    margin-bottom: 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

/* Add shadow and background when scrolled class is added via JS */
.filter-container.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.filter-btn {
    background-color: rgba(254, 252, 221, 0.03);
    color: #777;
    border: none;
    border-radius: 100px;
    padding: 0.5rem 1rem;
    font-family: "ivystyle-sans", sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

.filter-btn i {
    margin-right: 6px;
    font-size: 13px;
    opacity: 0.9;
}

.filter-btn:hover {
    background-color: rgba(254, 252, 221, 0.06);
    color: #fefcdd;
}

.filter-btn.active {
    background-color: rgba(254, 252, 221, 0.08);
    color: #fefcdd;
    box-shadow: 0 0 0 1px rgba(254, 252, 221, 0.15);
}

.filter-btn.active i {
    opacity: 1;
}

/* Dropdown Filter Styles (Initially Hidden) */
.filter-dropdown {
    display: none;
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: rgba(254, 252, 221, 0.03);
    color: #fefcdd;
    border: none;
    border-radius: 100px;
    padding: 0.5rem 1rem;
    font-family: "ivystyle-sans", sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(254, 252, 221, 0.06);
}

.dropdown-toggle i.fa-chevron-down {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.dropdown-toggle.open i.fa-chevron-down {
    transform: rotate(180deg);
}

.current-filter i {
    margin-right: 6px;
    font-size: 13px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: rgba(34, 34, 34, 0.95);
    border-radius: 8px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.dropdown-menu.open {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    background: transparent;
    color: #777;
    border: none;
    text-align: left;
    padding: 0.7rem 0.8rem;
    font-family: "ivystyle-sans", sans-serif;
    font-size: 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dropdown-item i {
    margin-right: 8px;
    font-size: 13px;
    opacity: 0.9;
}

.dropdown-item:hover {
    background-color: rgba(254, 252, 221, 0.06);
    color: #fefcdd;
}

.dropdown-item.active {
    color: #fefcdd;
    background-color: rgba(254, 252, 221, 0.08);
}

.dropdown-item.active i {
    opacity: 1;
}

/* Media query for mobile */
@media (max-width: 768px) {
    .filter-btn {
        display: none;
    }
    
    .filter-dropdown {
        display: block;
    }
}

.card.hidden-card {
    display: none;
}

/* Positioning for different card types */
.half-card .half-illustration .llm-tag,
.half-card .top-half-illustration .llm-tag {
    top: 10px;
    left: 10px;
}

.full-card .illustration .llm-tag {
    top: 10px;
    left: 10px;
}

/* Font display settings */
@font-face {
    font-family: "ivypresto-headline";
    font-display: swap;
}

@font-face {
    font-family: "ivystyle-sans";
    font-display: swap;
}

.hidden {
    /* Make elements visible by default */
    opacity: 1;
    transform: translateY(0);
}

.animate-in {
    /* Remove transition to prevent animation */
    transition: none;
    opacity: 1;
    transform: translateY(0);
}

/* Design page slideshow styles */
.fade-in {
    /* Make elements visible by default, no animation */
    opacity: 1;
    transform: translateY(0);
    /* Keep transition in case the JS adds the appear class */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Video slideshow styles */
#slideshow-design {
    margin: 1rem auto 0rem auto;
}
#slideshow-design .slide-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
}

#slideshow-design video.slide-image {
    background-color: #111; /* Ensures a black background while video loads */
}

/* Add new styles for better video loading experience */
#slideshow-design .slide {
    position: relative;
    background-color: #111; /* Background color for slide before video loads */
}

/* Style refinement for video controls */
.video-control {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.video-control:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.video-control i {
    font-size: 16px;
}

/* Navigation pills styles - specific to design page */
#slideshow-design .slideshow-nav {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

#slideshow-design .nav-pills {
    display: flex;
    gap: 10px;
}

/* Replace circular nav-pill with asterisk shape */
#slideshow-design .nav-pill {
    width: 16px;
    height: 16px;
    flex: 0 0 16px; /* Slightly larger than before */
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0;
    margin: 0;
    background-color: transparent; /* Explicitly remove background */
    display: flex; /* Use flex for better centering */
    align-items: center;
    justify-content: center;
    border-radius: 0; /* Remove any border-radius */
}

#slideshow-design .nav-pill::before {
    content: "✱"; /* Asterisk character */
    position: absolute;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    transition: color 0.3s ease, transform 0.2s ease;
}

#slideshow-design .nav-pill:hover::before {
    color: #666;
    transform: translate(-50%, -50%) scale(1.2);
}

#slideshow-design .nav-pill.active::before {
    color: #fefcdd;
    transform: translate(-50%, -50%) scale(1.2);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

:root {
    --breakpoint-xs: 480px;
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
}

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    /* Layout & Container */
    .container {
        max-width: 90%;
    }
    
    .copy-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 1rem 3rem 0rem 3rem;
    }
    
    /* Typography */
    h1 {
        font-size: 5.5rem;
        padding: 1rem 3rem 1rem 3rem;
        margin-bottom: 1rem;
    }
    
    .title {
        padding: 0px;
    }
    
    .half-title {
        font-size: 30px;
    }
    
    /* Cards & Grid */
    .cards-grid {
        padding: 0;
        max-width: 100%;
    }
    
    .full-card {
        max-width: 100%;
    }
    
    .half-card {
        flex: 1 1 100%;
        width: 46%;
    }
    
    .mini-card {
        width: 46%;
    }
    
    .mini-title {
        padding: 0px;
    }
    
    /* Images */
    .hero-image {
        margin-bottom: 3rem;
        padding: 0 3rem;
        aspect-ratio: auto;
    }
    
    .hero-image img {
        height: auto;
        max-width: 100%;
    }
    
    .image-grid {
        gap: 15px;
        padding: 0 3rem;
    }
    
    /* Project & Copy */
    .project-copy .copy-box {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 3rem;
    }
    
    .project-copy .copy-text {
        grid-column: 1;
    }
    
    /* Slideshow */
    .slideshow {
        margin: 1rem 0 0 0;
    }
    
    .nav-pills {
        gap: 0.75rem;
    }
    
    /* Footer */
    .footer {
        padding: 1rem;
        margin-top: 3rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Layout & Cards */
    .full-card {
        flex-direction: column-reverse;
    }
    
    .illustration {
        width: 100%;
        aspect-ratio: 16/9;
    }
    
    .content {
        width: 100%;
    }
    
    /* Images & Media */
    .image-card {
        flex-direction: column;
    }
    
    .card-image {
        height: 300px;
    }
    
    .image-grid {
        gap: 15px;
        padding: 0 3rem;
    }
    
    /* Navigation */
    .toggle-button {
        display: block;
        padding-left: 3rem;
        padding-top: 3rem;
        z-index: 1002;
        position: relative;
    }
    
    .navbar-links {
        display: none;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background-color: #111111;
        z-index: 1001;
        overflow: hidden;
    }
    
    body.menu-active {
        overflow: hidden;
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar-links ul {
        flex-direction: column;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
    }
    
    .navbar-links li {
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .navbar-links li a {
        display: inline-block;
        width: 100%;
        text-align: center;
        font-size: 2rem;
        padding: 1rem 0;
        font-family: "ivypresto-headline", serif;
    }
    
    .navbar-links.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 0 2rem;
    }
    
    .breadcrumb-item {
        margin-top: 5px;
    }
    
    .breadcrumb-separator {
        margin: 0 5px;
    }
    
    /* Compact Banner */
    .compact-banner {
        height: 140px;
        padding: 1.5rem;
    }
    
    .compact-banner::before {
        background-position: left center;
    }
    
    /* Project page */
    .project-hero {
        height: 40vh;
        margin-bottom: 2rem;
    }
    
    .project-row {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .project-row.reverse {
        flex-direction: column;
    }
    
    .project-text h2 {
        font-size: 2rem;
    }
    
    .project-text p {
        font-size: 1rem;
    }
    
    /* Bento Grid */
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 0 3rem;
    }
    
    .bento-grid .grid-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    
    .bento-grid .grid-item:nth-child(2) {
        grid-column: 3 / 5;
        grid-row: 1 / 3;
    }
    
    .bento-grid .grid-item:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: 3 / 5;
    }
    
    .bento-grid .grid-item:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 3 / 5;
    }
    
    .bento-grid .grid-item:nth-child(5) {
        grid-column: 3 / 5;
        grid-row: 3 / 5;
    }
    
    .bento-grid .grid-item:nth-child(6) {
        grid-column: 1 / 3;
        grid-row: 5 / 7;
    }
    
    .bento-grid .grid-item:nth-child(7) {
        grid-column: 3 / 5;
        grid-row: 5 / 7;
    }
    
    .bento-grid .grid-item:nth-child(8) {
        grid-column: 1 / 2;
        grid-row: 7 / 9;
    }
    
    .bento-grid .grid-item:nth-child(9) {
        grid-column: 2 / 3;
        grid-row: 7 / 9;
    }
    
    .bento-grid .grid-item:nth-child(10) {
        grid-column: 3 / 5;
        grid-row: 7 / 9;
    }
    
    .bento-grid .grid-item:nth-child(11) {
        grid-column: 1 / 3;
        grid-row: 9 / 11;
    }
    
    .bento-grid .grid-item:nth-child(12) {
        grid-column: 3 / 5;
        grid-row: 9 / 11;
    }
}

/* Small tablets and large phones */
@media (max-width: 640px) {
    /* Layout & Typography */
    h1 {
        font-size: 3rem;
        padding: 3rem;
        margin-bottom: 0px;
        letter-spacing: normal;
    }
    
    .container {
        max-width: 95%;
        padding: 10px;
    }
    
    .cards-grid,
    .full-card {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    .full-card {
        margin-top: 3rem;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .full-content {
        padding: 1.5rem;
    }
    
    .half-content {
        padding: 1.5rem;
    }
    
    .half-title {
        font-size: 24px;
    }
    
    .cards-grid {
        gap: 0;
    }
    
    /* Card & Content */
    .card {
        gap: 0px;
        margin: 0px;
        margin-top: 2rem;
    }
    
    .illustration {
        width: 100%;
        flex: none;
        aspect-ratio: 16/9;
        border-radius: 6px 6px 0px 0px;
    }
    
    .content {
        width: 100%;
        padding: 1.5rem 3rem 1.5rem 3rem;
    }
    
    .half-card {
        width: 100%;
        margin-top: 2rem;
    }
    
    .mini-card {
        width: 100%;
    }
    
    #right-card {
        margin-left: 0rem;
    }
    
    .mini-title {
        padding: 0px;
    }
    
    .top-nav {
        padding-left: 3rem;
    }
    
    /* Project & Copy */
    .project-copy .copy-box {
        padding: 0 3rem;
    }
    
    /* Images & Media */
    .hero-image {
        margin-bottom: 2rem;
        padding: 0 3rem;
        aspect-ratio: auto;
    }
    
    /* Slideshow */
    .slideshow {
        margin: 1rem 3rem;
        width: calc(100% - 6rem);
    }
    
    .nav-pills {
        gap: 0.5rem;
    }
    
    .nav-pill {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .slide-caption {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        margin: 0 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 1rem 1rem 1rem 1rem;
        margin-top: 3rem;
    }
    
    .footer-item a {
        padding-right: 8px;
        display: none;
    }
}

/* Phones */
@media (max-width: 480px) {
    /* Cards & Grid */
    .full-card {
        margin-left: 0rem;
        margin-right: 0rem;
    }
    
    /* Image Grids */
    .image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 3rem;
    }
    
    /* Bento Grid */
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 3rem;
    }
    
    .bento-grid .grid-item {
        width: 100%;
        aspect-ratio: 1/1;
    }
    
    .bento-grid .grid-item:nth-child(n) {
        grid-column: unset;
        grid-row: unset;
    }
    .full-width-image {
        margin-top: 2rem;
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
    }
    .compact-banner {
        margin: 1rem 3rem;
        }
}
