/* --- HEADER PLACEHOLDER (CLS FIX) --- */
#header-placeholder {
    min-height: 64px; /* Rezerwuje miejsce na nawigację (32px logo + 32px padding) */
    display: block;
}

/* --- MENU LINK ALIGNMENT --- */
.menu-link {
    height: 48px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding-top: 0;
    padding-bottom: 0;
}
/* AIRTJ - Global Styles */

/* --- GŁÓWNE STYLE --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: #0A0A0A;
    color: #E2E8F0;
    overflow-x: hidden;
    cursor: none;
}

body.menu-open,
body.lightbox-active {
    overflow: hidden;
}

main.lightbox-active {
    filter: blur(8px) brightness(0.7);
    transition: filter 0.3s ease-in-out;
}

a, button, .btn-modern {
    cursor: none;
}

/* --- CUSTOM CURSOR --- */
.custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: #EF4444;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: pulse 1.5s ease-in-out infinite;
}

.custom-cursor.hover {
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8), 0 0 40px rgba(239, 68, 68, 0.4);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (hover: none) or (pointer: coarse) {
    .custom-cursor { 
        display: none !important; 
    }
    body, a, button, .btn-modern { 
        cursor: auto !important; 
    }
}

/* --- ACCESSIBILITY HELPERS --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus,
.skip-link:active {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 0.75rem;
    background: #0A0A0A;
    color: #fBBF24;
    z-index: 9999;
    border-radius: 0.375rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* Minimum touch target size */
a, button, .btn-modern, .filter-button, .social-link {
    min-width: 48px;
    min-height: 48px;
    padding: 0.375rem 0.5rem;
    touch-action: manipulation;
    cursor: none;
}

/* Visible focus styles for keyboard users */
a:focus-visible,
button:focus-visible,
.btn-modern:focus-visible,
.filter-button:focus-visible,
.portfolio-link:focus-visible,
.social-link:focus-visible {
    outline: 3px solid #fBBF24;
    outline-offset: 3px;
    border-radius: 0.375rem;
}

.portfolio-link:focus:not(:focus-visible) {
    outline: none;
}

.portfolio-item a:focus {
    outline: none;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0A0A0A;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#preloader.fade-out {
    opacity: 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fBBF24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- TŁO WIDEO I GRADIENT --- */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    /* Preload poster for faster LCP */
    background-image: url('https://i.ytimg.com/vi/tG_27tIAXiE/maxresdefault.jpg');
    background-size: cover;
    background-position: center;
}

.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.gradient-blur-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
}

.gradient-blur-bg::before,
.gradient-blur-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.gradient-blur-bg::before {
    width: 600px;
    height: 600px;
    background-image: radial-gradient(circle, rgba(29, 78, 216, 0.3), rgba(29, 78, 216, 0));
    top: -10%;
    left: -10%;
    animation-name: moveGradient;
    animation-duration: 20s;
}

.gradient-blur-bg::after {
    width: 500px;
    height: 500px;
    background-image: radial-gradient(circle, rgba(238, 181, 73, 0.2), rgba(238, 181, 73, 0));
    bottom: -10%;
    right: -10%;
    animation-name: moveGradient;
    animation-duration: 25s;
    animation-direction: reverse;
}

@keyframes moveGradient {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20vw, 30vh) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* --- GLASS EFFECT --- */
.glass-effect {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#header.glass-effect {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    will-change: opacity, transform;
}

.reveal.visible.animated-complete {
    will-change: auto;
}

.animated-text-in {
    animation: text-in 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

@keyframes text-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#animated-word::after {
    content: '|';
    display: inline-block;
    vertical-align: baseline;
    margin-left: 2px;
    animation: blink-cursor 0.7s infinite;
    color: #fBBF24;
}

#animated-word.animation-finished::after {
    display: none;
}

@keyframes blink-cursor {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* --- PRZYCISKI --- */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-yellow {
    background-image: linear-gradient(to bottom right, #eeb549, #d09c31);
    color: #1a1a1a;
}

.btn-yellow:hover {
    color: #000000;
    box-shadow: 0 0 25px rgba(238, 181, 73, 0.6);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #475569;
    color: #cbd5e1;
}

.btn-secondary:hover {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease-in-out;
}

.btn-modern:hover::before {
    left: 100%;
}

/* --- SOCIAL ICONS --- */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: transparent;
    color: #eeb549;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.social-link svg {
    width: 28px !important;
    height: 28px !important;
    transition: transform 0.28s ease, color 0.18s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    color: #fbbf24;
    border-color: #eeb549;
    box-shadow: 0 0 20px rgba(238, 181, 73, 0.4);
}

.social-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(238, 181, 73, 0.3);
    z-index: 9999;
}

.social-link:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: -45px;
}

.social-vertical a {
    color: #cbd5e1;
    transition: color 0.25s ease, transform 0.25s ease;
}

.social-vertical a:hover {
    color: #ffffff;
    transform: translateX(6px);
}

.social-vertical a svg {
    width: 28px !important;
    height: 28px !important;
}

#socials .icon-animated svg {
    width: 56px !important;
    height: 56px !important;
}

.icon-animated {
    transition: transform 0.3s ease-in-out;
}

.icon-animated:hover {
    transform: scale(1.2) rotate(5deg);
}

/* --- SOCIAL ICONS ENHANCEMENTS --- */
.social-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

/* Staggered Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-1000 { animation-delay: 1000ms; }
.delay-1100 { animation-delay: 1100ms; }
.delay-1200 { animation-delay: 1200ms; }
.delay-1300 { animation-delay: 1300ms; }

/* Social Entrance Animation */
@keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.social-entrance {
    opacity: 0;
    animation: pop-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* --- OTHER ELEMENTS --- */
.service-card {
    background-color: transparent;
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    background-color: rgba(251, 191, 36, 0.05);
}

.service-icon {
    width: 100px;
    height: 100px;
    color: #fBBF24;
    margin-bottom: 1.5rem;
    object-fit: contain;
}


/* Mobile adjustments for service section */
@media (max-width: 640px) {
    .service-icon { width:120px; height:120px; }
    .service-card a.btn-modern {
        width: 50%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        padding: 0.9rem 1.25rem;
        text-align: center;
    }
    .portfolio-card .btn-modern {
        width: 50%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        padding: 0.9rem 1.25rem;
        text-align: center;
    }
}

/* Desktop adjustments for portfolio and usługi 'Więcej' buttons */
@media (min-width: 641px) {
    .portfolio-card .btn-modern,
    .service-card .btn-modern {
        width: 50%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        padding: 0.9rem 1.25rem;
        text-align: center;
    }
}

.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding-bottom: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll-container > * {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Blog post cards - stała ramka z zoom-in efektem */
.blog-post-img {
    transition: transform 0.3s ease;
}

#blog-scroll-container a:hover .blog-post-img {
    transform: scale(1.05);
}

/* Blog grid cards - zoom effect */
.blog-post-card img {
    transition: transform 0.3s ease;
}

.blog-post-card:hover img {
    transform: scale(1.05);
}

.blog-post-card > div {
    overflow: hidden;
}

#portfolio-grid-container {
    transition: min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* --- TYPOGRAPHY --- */
.font-serif-special {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
}

/* --- FILTRY --- */
.filter-button {
    background-color: transparent;
    border: 1px solid #475569;
    color: #cbd5e1;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-button:hover {
    background-color: #1e293b;
    color: #f1f5f9;
}

.filter-button.active {
    background-color: #fBBF24;
    color: #0A0A0A;
    border-color: #fBBF24;
}

/* --- UTILITIES --- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Optimize rendering by skipping off-screen sections */
#about,
#services,
#portfolio,
#blog,
#contact {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

/* --- RESPONSIVE 404 --- */
.error-title {
    font-size: 5rem;
    line-height: 1;
}

@media (min-width: 640px) {
    .error-title { font-size: 7rem; }
}

@media (min-width: 768px) {
    .error-title { font-size: 9rem; }
}

@media (min-width: 1024px) {
    .error-title { font-size: 12rem; }
}

.error-subtitle {
    font-size: 1.25rem;
}

@media (min-width: 640px) {
    .error-subtitle { font-size: 1.5rem; }
}

@media (min-width: 768px) {
    .error-subtitle { font-size: 2rem; }
}

@media (min-width: 1024px) {
    .error-subtitle { font-size: 2.25rem; }
}

.error-text {
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .error-text { font-size: 1rem; }
}

@media (min-width: 768px) {
    .error-text { font-size: 1.125rem; }
}

#lottie-container {
    width: 200px;
    height: 200px;
}

@media (min-width: 640px) {
    #lottie-container {
        width: 240px;
        height: 240px;
    }
}

@media (min-width: 768px) {
    #lottie-container {
        width: 280px;
        height: 280px;
    }
}

/* --- PORTFOLIO STYLES --- */
.filter-button {
    background-color: transparent;
    border: 1px solid #475569;
    color: #cbd5e1;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-button:hover {
    background-color: #1e293b;
    color: #f1f5f9;
}

.filter-button.active {
    background-color: #fBBF24;
    color: #0A0A0A;
    border-color: #fBBF24;
    font-weight: bold;
}

/* Make portfolio filters fit one row on small screens */
@media (max-width: 640px) {
    #filter-buttons { display:flex; flex-wrap:nowrap; justify-content:center; gap:0.5rem; padding: 0 0.5rem; }
    #filter-buttons .filter-button { flex:1 1 0; padding:0.5rem 0.5rem; font-size:0.8rem; white-space:nowrap; }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    position: relative;
    min-height: 300px;
}

.portfolio-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    will-change: opacity, transform;
}

.portfolio-item.hide {
    display: none;
}

.portfolio-item.fade-out {
    animation: fadeOutDown 0.5s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.portfolio-item.fade-in {
    animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.portfolio-item.shuffle {
    animation: shuffle 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shuffle {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    20% {
        transform: translateY(-30px) scale(0.9) rotate(-8deg);
        opacity: 0.7;
    }
    40% {
        transform: translateY(20px) scale(1.1) rotate(8deg);
        opacity: 0.8;
    }
    60% {
        transform: translateY(-15px) scale(0.95) rotate(-4deg);
        opacity: 0.9;
    }
    80% {
        transform: translateY(10px) scale(1.03) rotate(2deg);
        opacity: 0.95;
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.portfolio-item-inner {
    aspect-ratio: 1 / 1;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 2px solid rgba(148, 163, 184, 0.2);
}

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

.portfolio-item:hover img,
.portfolio-item .group:hover img {
    transform: scale(1.05);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0) 100%);
    padding: 1.5rem;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay,
.portfolio-item .group:hover .portfolio-overlay {
    opacity: 1;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.portfolio-item .group:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(251, 191, 36, 0.8);
}

.video-play-icon svg {
    color: white;
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

/* --- FORMULARZ KONTAKTOWY --- */
.form-input {
    background-color: rgba(17, 24, 39, 0.8);
    border: 1px solid #334155;
    color: #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #fBBF24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
}

#form-status {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

/* --- LIGHTBOX --- */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

#lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
    max-width: 95vw;
    max-height: 95vh;
}

#lightbox-media-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: calc(95vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease-in-out;
    transform: scale(0.95);
}

#lightbox-video-container {
    width: 100%;
    max-width: 1280px;
    aspect-ratio: 16 / 9;
    background-color: black;
    border-radius: 0.5rem;
    overflow: hidden;
}

#lightbox-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#lightbox.active #lightbox-img {
    transform: scale(1);
}

#lightbox-caption {
    color: white;
    text-align: center;
    max-width: 80vw;
    height: 60px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
}

#lightbox-prev {
    left: 1rem;
}

#lightbox-next {
    right: 1rem;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

/* === PORTFOLIO CARDS FROM CMS === */
.portfolio-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.3);
    cursor: none;
}

/* .portfolio-card:hover - transform and box-shadow removed */

.portfolio-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform;
}

.portfolio-card:hover .portfolio-image-wrapper img {
    transform: scale(1.1);
}

.portfolio-title-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(238, 181, 73, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.portfolio-card:hover .video-overlay {
    background: rgba(251, 191, 36, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.portfolio-info {
    display: none;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.portfolio-description {
    display: none;
}

.portfolio-category {
    display: none;
}

/* --- BLOG ARTICLE PROSE STYLES --- */
.prose {
    max-width: 65ch;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #eeb549;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    color: #cbd5e1;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.prose ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: #cbd5e1;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose blockquote {
    border-left: 4px solid #eeb549;
    padding-left: 1.5rem;
    margin: 2rem 0;
    background: rgba(238, 181, 73, 0.05);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.prose strong {
    color: white;
    font-weight: 700;
}

.prose a {
    color: #eeb549;
    text-decoration: underline;
}

.prose a:hover {
    color: #fbbf24;
}

/* Blog social share buttons */
.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-facebook {
    background: #1877F2;
    color: white;
}

.btn-twitter {
    background: #000;
    color: white;
}

/* --- MODERN ENHANCEMENTS (Gemini Style) --- */

/* 1. Spotlight Effect for Cards */
.spotlight-card {
    position: relative;
    overflow: hidden;
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.spotlight-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-5px);
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(251, 191, 36, 0.08),
        transparent 40%
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card > * {
    position: relative;
    z-index: 1;
}

/* 2. Hero Text Staggered Reveal */
.word-clip {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.2;
    padding-bottom: 0.1em;
}

.char-reveal {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    animation: revealChar 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes revealChar {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 3. Enhanced Glassmorphism */
.glass-premium {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* 4. Magnetic Button Effect */
.btn-magnetic {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 5. Smooth Section Separator */
.section-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 2rem 0;
}
