/* Portfolio CSS - Combined styles from index.html and work.html */
/* Index.html styles take precedence over work.html styles for conflicts */

/* Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #0e0e0e;
    color: #fff;
}

/* DVD Logo Bouncing Effect */
.dvd-logo {
    position: absolute;
    width: 100px;
    height: 50px;
    pointer-events: auto;
    z-index: 999;
    opacity: 0.8;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.4,0,0.2,1);
    border-radius: 7px;
    background-color: #00ff00;
    top: 0;
    left: 0;
}

.dvd-logo:hover{
    transform: scale(1.2);
}

.dvd-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.content-container {
    margin-bottom: 30px;
}

img {
    max-width: 100%;
    height: auto;
}

.loading {
    /* color: #666; */
    /* font-style: italic; */
    /* text-align: center; */
    padding: 40px;
}

.error {
    text-align: center;
    color: #ff6b6b;
    padding: 60px;
}

/* Blog Post Styles */
.blog-post {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.blog-date {
    color: #666;
    font-size: 0.9rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.blog-tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #ff8c00;
    border-radius: 20px;
    color: #ff8c00;
    background: none;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background-color: #ff8c00;
    color: white;
}

.blog-category {
    color: #7f7f7f;
    font-weight: normal;
}

/* Portfolio Layout Styles */
.portfolio-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    background-color: rgba(22, 22, 22, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
    z-index: 99999;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.portfolio-header.header-hidden {
    transform: translateY(-100%);
}

.portfolio-header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: #fff;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feeling-lucky-btn {
    background: #0000ff;
    color: #fff;
    border: 0.5px solid #fff;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.8rem;
    /* font-weight: bold; */
    cursor: pointer;
    white-space: nowrap;
}
.filter-section .filter-dropdown,
.filter-section .feeling-lucky-btn {
    flex: 1 1 0;
}

/* On wide screens, match card width (280px) for each control */
@media (min-width: 1174px) {
    .filter-section {
        gap: 16px;
    }
    .filter-section .filter-dropdown,
    .filter-section .feeling-lucky-btn {
        min-width: 280px;
        max-width: 280px;
    }
}
.feeling-lucky-btn:hover {
    background: #fff;
    color: #000;
}

.filter-label {
    font-size: 0.9rem;
    color: #999;
    font-weight: normal;
    white-space: nowrap;
}

/* @media (max-width: 768px) {
    .filter-label{
        display: none;
    }
} */



.filter-dropdown {
    background-color: transparent;
    border: 0.5px solid #fff;
    text-align: center;
    border-radius: 20px;
    padding: 8px 28px 8px 8px;
    color: #fff;
    font-size: 0.8rem;
    /* min-width: 120px; */
    max-width: 120px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path d='M7 1h2v6h6v2H9v6H7V9H1V7h6z'/></svg>");
}

.filter-dropdown:hover {
    border: 1px solid #ff8c00;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff8c00'><path d='M7 1h2v6h6v2H9v6H7V9H1V7h6z'/></svg>");
}

.filter-dropdown:focus {
    outline: none;
    border-color: #fff;
}

.filter-dropdown option {
    background-color: #000;
    color: #fff;
}

.portfolio-container {
    max-width: 100vw;
    overflow-x: hidden;
    padding-top: 102px; /* Account for fixed header height */
    border-bottom: 0.5px solid #ffffff;
    padding-bottom: 40px;
}

.portfolio-section {
    /* margin-bottom: 50px; */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.5px solid #ffffff;
    border-bottom: 0.5px solid #ffffff;
}

.section-title {
    font-size: 2.3rem;
    font-weight: bold;
    margin: 0;
    padding: 0px;
    padding-left: 10px;
}

.expand-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.expand-btn:hover {
    color: #ff8c00;
}

.cards-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 140, 0, 0.333) transparent;
    /* margin-bottom: 40px; */
    -webkit-overflow-scrolling: touch;
}

.cards-container::-webkit-scrollbar {
    height: 6px;
}

.cards-container::-webkit-scrollbar-track {
    background: transparent;
}

.cards-container::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: 3px;
}

.cards-grid {
    display: flex;
    min-width: max-content;
}

.portfolio-card {
    /* background-color: #1a1a1a; */
    overflow: hidden;
    /* border-right: 0.5px solid #ffffff; */
    width: 280px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* height: 400px; */
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.2);
    border: 0.5px solid #5e5e5e;
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .card-image-container {
        height: 150px;
    }


}


@media (max-width: 480px) {
    .card-image-container {
        height: 120px;
    }


}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

/* Video-specific styling for card images */
video.card-image {
    pointer-events: none; /* Prevent user interaction with video */
}

.card-content {
    padding: 10px;
    
}

.card-tags {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-wrap:wrap-reverse;
    gap: 6px;
    max-width: calc(100% - 16px);
}

.card-tag {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #ff8c00;
    color: #ff8c00;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.card-tag:hover {
    background-color: #0000ff;
    color: white;
    border: 1px solid #0000ff;
    transition: all 0.3s ease;
}

.card-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #fff;
    line-height: 1;
}

.card-description {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
    margin: 0;
}

.coming-soon {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 0;
}

.portfolio-footer {
    text-align: left;
    /* padding: 40px; */
    border-top: 1px solid #333;
    margin-top: 60px;
    background-color: #101010;
}

.footer-text {
    text-align: center;
    color: #898989;
    padding: 10px 0px 100px 0px;
    border-top: 0.5px solid #333;
}

.portfolio-footer p {
    
    margin: 0;

}

.portfolio-footer a {
    color: #ff8c00;
    text-decoration: none;
}

.me-img {
    width: 20%;
    height: auto;
}

/* Work Page Specific Styles */
.work-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    background-color: rgba(22, 22, 22, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
    z-index: 99999;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.work-header.header-hidden {
    transform: translateY(-100%);
}

.work-header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* Make the site title links look like plain headings */
.site-title-link { color: inherit; text-decoration: none; }
.site-title-link:hover { text-decoration: underline; }

.back-btn {
    display: inline-block;
    /* margin-top: 10px; */
    color: #ff8c00;
    /* text-decoration: none; */
    font-size: 0.9rem;
}

.back-btn:hover {
    text-decoration: underline;
}

.work-container {
    /* max-width: 800px; */
    width: 100%;
    margin: 0 auto;
    /* padding: 40px 20px; */
    padding-top: 93px; /* Account for fixed header height */
}



.work-meta {
    /* margin-bottom: 30px; */
    padding-bottom: 20px;
    /* border-bottom: 1px solid #333; */
}

.work-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #ffffff;
}

.work-category {
    color: #656565;
}

.work-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* margin-top: 15px; */
}

.work-tag {
    background: none;
    border: 1px solid #ff8c00;
    color: #ff8c00;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

#work-content {
    padding: 40px;
    border-top: 0.5px solid #ffffff;
}

@media (max-width: 768px) {
    #work-content {
        padding: 16px;
    }
}

.work-content {
    font-size: 1.1rem;
    line-height: 1.7;
    
}

.work-info-row {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.5em;
}

.work-date {
  flex: 0 0 auto;
  font-size: 1.1em;
  color: #fff;
  z-index: 1;
}

.work-tags {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(0);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5em;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  min-width: 200px;
}

/* Frontend Calendar Styles */
.frontend-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
}

.frontend-calendar-header button {
    background-color: #e0e0e0;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.frontend-calendar-header button:hover {
    background-color: #d1d1d1;
}

.frontend-calendar-month-display {
    font-weight: bold;
    font-size: 1.1em;
}

.frontend-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
}

.frontend-calendar-weekday-header,
.frontend-calendar-day {
    border-right: 0.5px solid #000000;
    border-bottom: 0.5px solid #000000;
    padding: 5px;
    min-height: 70px;
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
}

.frontend-calendar-weekday-header {
    font-weight: bold;
    text-align: center;
    background-color: #f8f9fa;
    min-height: auto;
    display: block;
}

.frontend-calendar-day.other-month .day-number {
    color: #aaa;
}

.frontend-calendar-day .day-number {
    text-align: right;
    display: block;
    margin-bottom: 3px;
    width: 100%;
}

.frontend-calendar-day.today .day-number {
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 22px; 
    height: 22px; 
    line-height: 22px; 
    text-align: center;
    align-self: flex-end;
    margin-bottom: 3px;
}

.frontend-calendar-event {
    font-size: 0.8em;
    padding: 2px 3px;
    margin-bottom: 2px;
    border-radius: 3px;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



.event-type-event {
    background-color: #4CAF50;
}

.event-type-blocked {
    background-color: #f44336;
}

.center-align {
    text-align: center;
}

/* Modular Blog Frontend Styles */
.blog-section-frontend {
    margin-bottom: 30px;
    padding-top: 10px;
    border-top: 1px solid #0000ff;
}

.blog-block-frontend {
    margin-bottom: 20px;
}

.blog-block-full {
    width: 100%;
}

.blog-block-row-frontend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blog-block-split {
    flex: 1;
    min-width: 250px;
}

/* Blog Block Content Styles (index.html version takes precedence) */
.blog-subtitle-frontend {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    margin: 0px 0 10px 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.blog-subtitle-frontend p {
    margin: 0px;
    font-size: 1.2em;
    line-height: 1;
    font-weight: normal;
    color: #ffffff;
}

.blog-body-frontend {
    line-height: 1.6;
    margin: 0px 0;
}

.blog-body-frontend p {
    margin: 0px 0;
}

.blog-body-frontend h1,
.blog-body-frontend h2,
.blog-body-frontend h3,
.blog-body-frontend h4,
.blog-body-frontend h5,
.blog-body-frontend h6 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.blog-body-frontend ul,
.blog-body-frontend ol {
    margin: 10px 0;
    padding-left: 30px;
}

.blog-body-frontend blockquote {
    margin: 15px 0;
    padding: 10px 20px;
    border-left: 4px solid #ccc;
    background-color: #f9f9f9;
    font-style: italic;
}

/* Blog Media Styles (index.html version takes precedence) */
.blog-media-frontend {
    margin: 0px 0;
    text-align: center;
}

.blog-media-frontend video{
    width: 100%;
}

.blog-media-img,
.blog-media-video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-media-caption {
    margin: 0px 0 0 0;
    /* font-style: italic; */
    color: #666;
    font-size: 0.9em;
    text-align: right;
}

.blog-media-gallery-indicator {
    margin: 5px 0 0 0;
    font-size: 0.8em;
    color: #888;
    font-weight: 500;
}

/* Slideshow Styles */
.media-slideshow {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: visible; /* allow neighbor peeks */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slide {
    display: none;
    position: absolute; /* stack slides for peeking */
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(0) scale(0.98);
    transition: transform 0.45s ease-in-out, opacity 0.45s ease-in-out, box-shadow 0.45s ease-in-out;
}

.slide.active {
    display: block;
    position: relative;
    opacity: 1;
    z-index: 2;
    transform: translateX(0) scale(1);
}

/* Neighbor slides for peek effect */
.slide.prev,
.slide.next {
    display: block;
    opacity: 0.7;
    z-index: 1;
    pointer-events: none; /* prevent accidental clicks */
}

.slide.prev {
    transform: translateX(-22%) scale(0.9) rotate(-2deg);
}

.slide.next {
    transform: translateX(22%) scale(0.9) rotate(2deg);
}

/* Desktop layout: center slides and use 70% width */
@media (min-width: 901px) {
    .media-slideshow .slide {
        width: 70%;
        left: 50%;
        transform: translateX(-50%) scale(0.98);
    }
    .media-slideshow .slide.active {
        transform: translateX(-50%) scale(1);
    }
    .media-slideshow .slide.prev {
        transform: translateX(-50%) translateX(-22%) scale(0.9) rotate(-2deg);
    }
    .media-slideshow .slide.next {
        transform: translateX(-50%) translateX(22%) scale(0.9) rotate(2deg);
    }
}

.slide-media {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px; /* match other images */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain; /* keep full image in fixed-height container */
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px 15px 10px;
    margin: 0;
    font-style: italic;
    font-size: 0.9em;
    text-align: right;
}

/* Hide captions on neighbor slides to keep focus clean */
.slide.prev .slide-caption,
.slide.next .slide-caption {
    opacity: 0;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0000ff;
    color: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    font-size: 18px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}



.slideshow-arrow:hover {
    opacity: 1;
    background: #fff;
}

.slideshow-arrow-left {
    left: 10px;
}

.slideshow-arrow-right {
    right: 10px;
}

.slideshow-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    max-width: 90%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.4) transparent;
    -webkit-overflow-scrolling: touch;
}

.slideshow-indicators::-webkit-scrollbar {
    height: 6px;
}
.slideshow-indicators::-webkit-scrollbar-track {
    background: transparent;
}
.slideshow-indicators::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.4);
    border-radius: 3px;
}

.indicator {
    min-width: 18px;
    height: 18px;
    padding: 0 2px;
    border-radius: 4px;
    /* background: rgba(255, 255, 255, 0.85); */
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.indicator.active {
    background: rgba(0, 0, 255, 0.85);
    font-weight: 600;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Numbered indicators using CSS only: use their index via CSS counter-like approach */
.slideshow-indicators { counter-reset: slidenum; }
.slideshow-indicators .indicator { counter-increment: slidenum; }
.slideshow-indicators .indicator::after { content: counter(slidenum); }

.blog-media-placeholder {
    padding: 20px;
    background-color: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    color: #666;
    font-style: italic;
    text-align: center;
}

.blog-unknown-block {
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-style: italic;
}

/* Embed Styles (from work.html) */
.blog-embed-frontend {
    /* margin: 25px 0; */
}

.blog-embed-frontend iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
}

.youtube-embed-frontend iframe {
    aspect-ratio: 16/9;
    height: auto;
    min-height: 300px;
}

.spotify-embed-frontend iframe {
    height: 152px;
}

.spotify-embed-frontend.spotify-compact iframe {
    height: 80px;
}

.soundcloud-embed-frontend iframe {
    height: 166px;
}

/* Column Group Frontend Styles */
.blog-column-group-frontend {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    /* background-color: #f8f9fa; */
}

.blog-column-frontend {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-column-left,
.blog-column-right {
    flex-shrink: 0;
}

.blog-block-column {
    background-color: #fff;
    border-radius: 5px;
    /* border: 1px solid #dee2e6; */
    margin-bottom: 10px;
}

.blog-block-column:last-child {
    margin-bottom: 0;
}

/* Work page specific overrides for blog content */
.work-container .blog-section-frontend {
    border-top: 0.5px solid #ffffff;
}

.work-container .blog-subtitle-frontend {
    color: #fff;
    /* margin: 20px 0 10px 0; */
}

.work-container .blog-body-frontend p {
    /* margin: 15px 0; */
    line-height: 1.3;
}

.work-container .blog-body-frontend h1,
.work-container .blog-body-frontend h2,
.work-container .blog-body-frontend h3,
.work-container .blog-body-frontend h4,
.work-container .blog-body-frontend h5,
.work-container .blog-body-frontend h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #fff;
}

.work-container .blog-body-frontend blockquote {
    margin: 20px 0;
    padding: 15px 25px;
    border-left: 4px solid #ff8c00;
    background-color: #222;
}


.work-container .blog-media-img,
.work-container .blog-media-video {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.work-container .blog-media-caption {
    margin: 0px;
    color: #999;
}

.work-container .blog-column-group-frontend {
    gap: 25px;
    margin-bottom: 30px;
}

.work-container .blog-column-frontend {
    gap: 20px;
}

.work-container .blog-column-group-frontend .blog-column-frontend .blog-block-column:has(.blog-body-frontend) {
    position: sticky;
    top: 12px;
    align-self: flex-start;
}

.work-container .blog-block-column {
    background-color: #0e0e0e;
    /* padding: 20px; */
    /* border: 1px solid #333; */
    margin-bottom: 15px;
}

/* Add a group for the left side of the header */
.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

@media (max-width: 768px) {
    .header-left {
        gap: 0px;
    }
}

/* Fixed music button (desktop only) */
.music-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100000;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.music-fab.visible {
    opacity: 1;
    transform: none;
}

.music-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0000ff;
    color: #fff;
    border: 0.5px solid #fff;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: width 0.35s ease, padding 0.35s ease, gap 0.35s ease;
}
.music-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    transition: max-width 0.35s ease;
    max-width: 140px; /* idle fit for MY MUSIC */
}
.music-btn.is-playing .music-right {
    max-width: 420px; /* smoothly expand to reveal ticker */
}

.music-btn .music-left {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.music-btn .music-icon {
    position: relative;
    width: 18px;
    height: 18px;
}
.music-btn .icon-play,
.music-btn .icon-pause {
    position: absolute;
    inset: 0;
}
.music-btn .icon-play {
    width: 0; height: 0;
    border-left: 12px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    transform: translateX(3px);
}
.music-btn .icon-pause {
    display: none;
}
.music-btn.is-playing .icon-play { display: none; }
.music-btn.is-playing .icon-pause {
    display: block;
}
.music-btn.is-playing .icon-pause::before,
.music-btn.is-playing .icon-pause::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 4px;
    background: #fff;
    border-radius: 1px;
}
.music-btn.is-playing .icon-pause::before { left: 2px; }
.music-btn.is-playing .icon-pause::after { right: 2px; }

.music-right-label {
    font-weight: 600;
}

.music-ticker {
    display: none;
    position: relative;
    overflow: hidden;
    height: 1.1em;
    min-width: 200px;
    max-width: 360px;
}
.music-ticker-inner {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 10s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.music-close {
    margin-left: 10px;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    width: 26px; height: 26px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
}

/* Hide music button on mobile */
@media (max-width: 768px) {
    .music-fab { display: none; }
}

/* Style the get in touch button */
.get-in-touch-btn {
    background: none;
    z-index: 10000000;
    border: 0.5px solid #fff;
    color: #fff;
    background-color: #0000ff;
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-left: 20px;
    white-space: nowrap;
}
.get-in-touch-btn:hover {
    background: #fff;
    color: #000;
}

/* Mobile floating GET IN TOUCH button (hidden on desktop) */
.get-in-touch-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    background-color: #0000ff;
    color: #fff;
    border: 0.5px solid #fff;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: bold;
    display: none;
    z-index: 100000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.get-in-touch-fab:hover { background: #fff; color: #000; }

/* Adjust .portfolio-header for new layout */
.portfolio-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    background-color: rgba(22, 22, 22, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
    z-index: 99999;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .portfolio-header {
        flex-direction: column;
        gap: 20px;
        text-align: left;
        /* align-items: center; */
        padding: 15px 10px;
    }
    /* Hide header button on mobile */
    .portfolio-header .get-in-touch-btn { display: none; }
    /* Show floating button on mobile */
    .get-in-touch-fab { display: inline-flex; align-items: center; }

    
    .get-in-touch-btn {
        margin-left: 0;
        margin-top: 10px;
        display: none;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .portfolio-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 15px 10px;
    }
    .feeling-lucky-btn {
        display: none;
    }
    
    .portfolio-container {
        padding-top: 111px; /* More space for mobile header */
    }

    .filter-section {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .portfolio-card {
        width: 240px;
    }

    .card-image {
        height: 150px;
    }
    
    /* Ensure videos work properly on mobile */
    video.card-image {
        height: 150px;
    }

    .card-content {
        padding: 15px;
    }

    /* Keep tags neatly inside the image area on mobile */
    .card-tags {
        gap: 4px;
        bottom: 6px;
        left: 6px;
        right: 6px;
    }
    .card-tag {
        font-size: 0.6rem;
        padding: 3px 6px;
    }

    .work-header {
        padding: 10px 20px;
    }

    .loading {
        padding: 10px;
    }

    .work-container {
        padding-top: 83px; /* More space for mobile header */
    }

    .work-title {
        font-size: 2rem;
    }

    .work-info {
        flex-direction: column;
        gap: 10px;
    }

    /* Stack tags under the date on mobile and allow wrapping */
    .work-info-row {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        min-height: 0;
        gap: 8px;
    }

    .work-info-row .work-tags {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        flex-wrap: wrap;
        white-space: normal;
        width: 100%;
        height: auto;
        gap: 8px;
        margin-bottom: 8px;
    }

    .blog-block-row-frontend {
        flex-direction: column;
        gap: 15px;
    }
    
    .blog-block-split {
        width: 100% !important;
        min-width: auto;
    }
    
    .blog-subtitle-frontend {
        font-size: 1.2em;
    }

    .blog-column-group-frontend {
        flex-direction: column;
        gap: 15px;
    }
    
    .blog-column-left,
    .blog-column-right {
        width: 100% !important;
    }

    /* Disable sticky text when columns stack on mobile */
    .work-container .blog-column-group-frontend .blog-column-frontend .blog-block-column:has(.blog-body-frontend) {
        position: static;
        top: auto;
    }

    .slideshow-arrow {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .slideshow-arrow-left {
        left: 5px;
    }
    
    .slideshow-arrow-right {
        right: 5px;
    }
    
    .indicator {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        line-height: 16px;
    }
    
    .slide-caption {
        font-size: 0.8em;
        padding: 15px 10px 8px;
    }

    /* .work-container .blog-block-column {
        padding: 15px;
    } */

    /* Hide neighbor peeks on mobile */
    .slide.prev,
    .slide.next {
        opacity: 0;
        transform: translateX(0) scale(0.98);
    }
}

@media (max-width: 480px) {
    .portfolio-card {
        width: 200px;
    }

    .card-image {
        height: 120px;
    }
    
    /* Ensure videos work properly on smallest screens */
    video.card-image {
        height: 120px;
    }

    .card-content {
        padding: 12px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.8rem;
    }

    /* Extra-tight tags on smallest screens */
    .card-tag {
        font-size: 0.55rem;
        padding: 2px 5px;
    }

    .blog-section-frontend {
        margin-bottom: 20px;
    }
    
    .blog-block-frontend {
        margin-bottom: 15px;
    }
    
    .blog-column-group-frontend {
        margin-bottom: 20px;
    }
}

a {
    color: #ff8c00;
}

.blog-body-frontend a{
   
        color: #ff8c00;
        /* background-color: #ff8c00; */
        border: 0.5px solid #ff8c00;
        border-radius: 20px;
        padding: 4px 6px 4px 20px;
        /* font-size: 1.2rem; */
        text-decoration: none;
        /* font-weight: bold; */
        box-shadow: 0 4px 25px rgba(255, 170, 0, 0.153);
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    
}

.blog-body-frontend a:hover{
    background-color: #ff8c00;
    color: #fff;
}


.blog-body-frontend a::after{
    content: " \2192"; /* → */
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.blog-body-frontend a:hover::after{
    transform: translateX(3px);
}

#related-work-grid {
    height: 400px;
}

@media (max-width: 768px) {
    #related-work-grid {
        height: 260px;
    }
}


.footer-container {
    padding: 20px;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
}


.related-work-container .related-work-container{
    /* height: 400px; */
    
    border-bottom: 0.5px solid #fff;
 
}

/* Lightweight reveal-once animation (stable alternative to ScrollReveal for work page) */
.reveal-once {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.work-footer{
    margin-top: 0px;
}

.by-george-symonds{
    margin: 0px;
    padding-left: 10px;
    padding-top: 2px;
    font-size: 5.4rem;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    /* font-weight: bold; */
    text-align: left;
}

@media (max-width: 768px) {
    .by-george-symonds{
        font-size: 3.4rem;
    }
}

/* Slide-in on scroll (applied only via JS-added class for graceful fallback) */
.by-george-symonds.will-animate {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.by-george-symonds.will-animate.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .by-george-symonds.will-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Alternative: Keyframed slide-in from right to natural position */
@keyframes slide-in-from-right {
    from {
        opacity: 0.5;
        transform: translateX(35vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.by-george-symonds.slide-init {
    opacity: 0;
    transform: translateX(125vw);
}

.by-george-symonds.slide-in-active {
    animation: slide-in-from-right 0.5s ease-out both;
}

@media (max-width: 768px) {
    .by-george-symonds.slide-init {
        transform: translateX(45vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .by-george-symonds.slide-init {
        opacity: 1;
        transform: none;
    }
    .by-george-symonds.slide-in-active {
        animation: none;
    }
}

.reveal-once.visible {
    opacity: 1;
    transform: none;
}

.related-work-container .section-header {
    border-top: 0.5px solid #ffffff;
    border-bottom: 0.5px solid #ffffff;
}

.related-work-container .section-title {
    padding-left: 10px;
}

.about-me-text h2{
    font-size: 2.3rem;
    margin: 0px;
    line-height: 0.9;
    margin-bottom: 40px;
}

.about-me-text p{
    font-size: 0.9rem;
    margin: 0px;
    max-width: 70vw;
}

.about-me-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: top;
    border-top: 0.5px solid #fff;
    padding: 10px;
    position: relative;
    z-index: 100000;
}

/* Contact Me section mirrors about-me-section */
.contact-me-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 0.5px solid #fff;
    padding: 10px;
    gap: 20px;
}

.contact-me-title{
    border-top: 0.5px solid #fff;
    padding: 10px;
    margin: 0px;
}

.find-out-more-title{
    padding: 10px;
    margin: 0px;   
}



.find-out-more-title h2{
    font-size: 4.5rem;
    margin: 0px;
    line-height: 0.9;
}

@media (max-width: 768px) {
    .find-out-more-title h2{
        font-size: 2.4rem;
    }
}

.about-me-title{
    border-top: 0.5px solid #fff;
    padding: 10px;
    margin: 0px;
    /* margin-top: 100px; */
}

.about-me-title h2 {
    font-size: 2.3rem;
    margin: 0px;
    line-height: 0.9;
    /* border-bottom: 1px solid #fff; */
}

@media (max-width: 768px) {
    .about-me-title h2 {
        font-size: 1.5rem !important;
    }
    .contact-me-title h2 {
        font-size: 1.5rem !important;
    }
}

.contact-me-title h2 {
    font-size: 2.3rem;
    margin: 0px;
    line-height: 0.9;
    /* border-bottom: 1px solid #fff; */
}
.contact-text p {
    
    font-size: 0.9rem;
    margin: 0px;
    margin-top: 40px;
    max-width: 50vw;
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.contact-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #222;
    border: 1px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.contact-social-btn img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.contact-social-kr img {
    width: 26px;
    height: 26px;
}

.contact-social-btn:hover {
    background: #ff8c00;
    border-color: #ff8c00;
}

/* Remove Font Awesome pseudo icons now that we use images */

.contact-form-container {
    width: 40vw;
    z-index: 100000;
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form-container input,
.contact-form-container select,
.contact-form-container textarea {
    background: #0e0e0e;
    color: #fff;
    border: 1px solid #666;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
}

.contact-form-container input:focus,
.contact-form-container select:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: #ff8c00;
}

.contact-form-container button[type="submit"] {
    background: #0000ff;
    color: #fff;
    border: 0.5px solid #fff;
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: bold;
    cursor: pointer;
    width: fit-content;
    font-size: 1rem;
}

.contact-form-container button[type="submit"]:hover {
    background: #fff;
    color: #000;
}

.contact-status {
    font-size: 0.9rem;
    min-height: 1.2em;
}

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .contact-me-section {
        flex-direction: column;
        gap: 15px;
    }
    .contact-text p {
        max-width: 100%;
        margin-top: 0px;
    }
    .contact-form-container {
        width: 100%;
        margin-top: 0;
    }
}

/* Desktop alignment: start form where the contact paragraph starts */
@media (min-width: 769px) {
    .contact-form-container {
        /* h2 height (~2.3rem) + its bottom spacing (40px) */
        margin-top: 40px;
    }
}

.about-me-3d-container{
    position: absolute;
    opacity: 0.5;
    right: 30px;
    top: -200px;
    width: 40vw;
    height: auto;
    aspect-ratio: 1 / 1;
    z-index: 1;
}

@media (max-width: 1500px) {
    .about-me-3d-container{
        top: -150px;
    }
}

@media (max-width: 1300px) {
    .about-me-3d-container{
        top: -100px;
    }
}

@media (max-width: 1100px) {
    .about-me-3d-container{
        width: 50vw;
        right: 10px;
    }
}

@media (max-width: 900px) {
    .about-me-3d-container{
        width: 60vw;
        right: 10px;
        top: -100px;
    }
}

@media (max-width: 700px) {
    .about-me-3d-container{
        width: 70vw;
        right: 0px;
        top: -80px;
    }
}

@media (max-width: 600px) {
    .about-me-3d-container{
        width: 90vw;
        right: 0px;
        top: -60px;
        opacity: 0.5;
        z-index: 0;
    }
}

/* Ensure the <model-viewer> scales with its container */
#reveal {
    width: 100%;
    height: 100%;
    display: block;
}

/* Ensure wrapper divs pass through dimensions */
.threedanchor,
.threedposition {
    width: 100%;
    height: 100%;
}

/* Expanded section styles */
.portfolio-section.expanded .cards-container {
    overflow: visible;
}

.portfolio-section.expanded .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* gap: 16px; */
    min-width: 0;
    width: 100%;
}

.portfolio-section.expanded .portfolio-card {
    width: 100%;
    flex-shrink: 1;
}

/* Rotate + button into an x when expanded */
.portfolio-section.expanded .expand-btn {
    transform: rotate(45deg);
}

/* Brief highlight pulse when expanding */
@keyframes section-highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.75); }
    100% { box-shadow: 0 0 0 24px rgba(255, 140, 0, 0); }
}

.portfolio-section.highlight-pulse {
    animation: section-highlight-pulse 1.2s ease-out 1;
}

/* Mobile: force two cards per row when expanded */
@media (max-width: 768px) {
    .portfolio-section.expanded .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Modal Styles */
.welcome-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.welcome-modal.active {
    pointer-events: auto;
}
.welcome-modal .modal-circular-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10,10,10,0.98);
    z-index: 1;
    transition: clip-path 0.5s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
}
.welcome-modal .modal-content {
    position: relative;
    z-index: 2;
    background: none;
    color: #fff;
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 30px 30px 30px;
    border-radius: 24px;
    text-align: center;
    /* box-shadow: 0 8px 40px 0 rgba(0,0,0,0.4); */
    font-size: 1.1rem;
    opacity: 1;
    transition: opacity 0.3s;
}
.welcome-modal.animating .modal-content {
    opacity: 0.2;
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #ff8c00;
}
.modal-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 18px 0;
    text-align: left;
}
.modal-list li {
    margin-bottom: 6px;
    font-size: 1.05em;
}
.modal-socials {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 24px 0 18px 0;
}
.modal-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    transition: background 0.2s, border 0.2s;
    font-size: 1.7rem;
    color: #fff;
    text-decoration: none;
    position: relative;
}
.modal-social-btn[aria-label="Instagram"]::before {
    content: "\f16d";
    font-family: 'Font Awesome 5 Brands';
    font-weight: 400;
    font-style: normal;
    font-size: 1.7rem;
}
.modal-social-btn[aria-label="LinkedIn"]::before {
    content: "\f0e1";
    font-family: 'Font Awesome 5 Brands';
    font-weight: 400;
    font-style: normal;
    font-size: 1.7rem;
}
.modal-social-btn[aria-label="YouTube"]::before {
    content: "\f167";
    font-family: 'Font Awesome 5 Brands';
    font-weight: 400;
    font-style: normal;
    font-size: 1.7rem;
}
.modal-social-btn:hover {
    background: #ff8c00;
    border: 2px solid #ff8c00;
    color: #fff;
}
.modal-credit {
    margin-top: 18px;
    font-size: 0.95em;
    /* color: #aaa; */
    letter-spacing: 0.5px;
}

@media (max-width: 1167px) {
    .feeling-lucky-btn{
        
        max-width: 260px;
        min-width: 200px;
    }
    .filter-dropdown{
        max-width: 260px;
        min-width: 200px;
    }
}

@media (max-width: 950px) {
    .feeling-lucky-btn{
        
        max-width: 150px;
        min-width: 100px;
    }
    .filter-dropdown{
        max-width: 130px;
        min-width: 100px;
    }
}




/* Font Awesome CDN for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Full-page loading overlay */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #000; /* Solid black */
    z-index: 100000; /* Above site UI */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.35s ease;
}
.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.loading-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}
.loading-overlay img {
    width: 72px;
    height: 72px;
    image-rendering: -webkit-optimize-contrast;
}
.loading-overlay-text {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* Disable scroll while overlay is visible */
body.loading-overlay-active {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .loading-overlay { transition: none; }
    html { scroll-behavior: auto; }
}
