/* Global Dark Theme with Dominant Black */
body {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
    padding-top: 20px;
    min-height: 100vh;
}

.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #c4922a !important;
    transition: all 0.3s ease;
}

.navbar-brand img {
    margin-right: 20px;
    width: 38px;
    height: auto;
    filter: grayscale(1) brightness(0.6) opacity(0.8);
    transition: all 0.4s ease;
}

/* Interaction on hover */
.navbar-brand:hover {
    letter-spacing: 6px;
}

.navbar-brand:hover img {
    filter: grayscale(0) brightness(1) opacity(1);
    transform: scale(1.1) rotate(-5deg);
}


.navbar a {
    color: #e0e0e0;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #c4922a;
}

.navbar .nav-link.active {
    color: #c4922a !important;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(196, 146, 42, 0.5);
}

/* Przycisk Contact */
.navbar .nav-link.contact-link {
    margin-left: 15px;
    background: linear-gradient(45deg, #c4922a, #a0522d);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 146, 42, 0.3);
}

.navbar .nav-link.contact-link:hover {
    background: linear-gradient(45deg, #d4a535, #8b4513);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 146, 42, 0.5);
}

/* Toggler mobilny */
.navbar-toggler {
    border: none !important;
    outline: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(224,224,224,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 30px;
    color: #bbb;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #e0e0e0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #c4922a, #a0522d);
    margin: 10px auto;
    border-radius: 2px;
}

/* No background image, no overlay — clean typographic hero */
.about-me {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 40px 0px;
}

/* Remove the gradient overlay pseudo-element */
.about-me::after {
    display: none;
}

.about-content {
    position: relative;
    z-index: 2;
    padding: 10px 50px;
}

/* Thin, solid-gold title */
.about-me h1 {
    font-size: 3.5rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 8px;
    color: #c4922a;
    margin-bottom: 10px;
}

.about-me p {
    font-size: 1.4rem;
    opacity: 0.7;
    font-weight: 300;
    color: #c4c4c4;
}

/* Instagram hero link */
.hero-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: color 0.35s ease, letter-spacing 0.35s ease;
}

/* Animated underline on hover */
.hero-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c4922a;
    transition: width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-link:hover {
    color: #d9ad55;
    letter-spacing: 10px;
}

.hero-link:hover::after {
    width: 100%;
}

/* Small Instagram icon next to the link */
.hero-link .ig-icon {
    display: inline-block;
    vertical-align: middle;
    width: 0.65em;
    height: 0.65em;
    margin-left: 0.4em;
    margin-bottom: 0.1em;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-link:hover .ig-icon {
    opacity: 0.8;
    transform: translateY(0);
}

/* ── Instagram Section ──────────────────────────────────────────────────── */
.instagram-section {
    text-align: center;
    margin-top: 0px;
    width: 100%;
    padding: 30px 0;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
}


.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: start;
}

.instagram-item {
    background: rgba(15, 15, 15, 0.6);
    border-radius: 12px;
    overflow: visible; /* Zmień z hidden na visible, żeby skrypt mógł rozciągnąć ramkę */
    position: relative;
    /* Usuń min-height: 500px; */
    display: flex;
    flex-direction: column;
}

.instagram-item iframe {
    min-height: 450px;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
}

.instagram-media {
    min-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

.ig-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #111;
}
.instagram-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.instagram-item blockquote {
    width: 100% !important;
    margin: 0 auto !important;
}

.instagram-media {
    margin: 0 auto !important;
    min-width: unset !important;
    max-width: 100% !important;
    width: 100% !important;
}

.instagram-item iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
    height: auto !important;   /* let Instagram control height; no min-height clipping */
    display: block;
    margin: 0 auto;
}

/* Skeleton placeholder while embeds load lazily */
.ig-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 380px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 25, 15, 0.9), rgba(20, 18, 10, 0.95));
    color: #6b5c3a;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    animation: igPulse 2s ease-in-out infinite;
}

.ig-placeholder svg {
    width: 36px;
    height: 36px;
    color: #c4922a;
    opacity: 0.45;
}

@keyframes igPulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1;   }
}

@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: 1fr;
        align-items: center;
    }
}

.gallery-container {
    max-width: 95%;
    margin: auto;
    padding: 30px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    align-items: start;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.gallery-item:hover {
    transform: translateY(-10px) scale(1.03) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}
.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: all 0.4s ease;
    display: block;
    filter: brightness(0.8);
}
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    text-align: center;
    padding: 20px 15px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 15px 15px;
}
.gallery-item:hover .overlay {
    opacity: 1;
}
.overlay p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* No Images Message */
.no-images {
    text-align: center;
    font-size: 1.5rem;
    color: #bbb;
    grid-column: 1 / -1;
    padding: 40px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .about-me h1 {
        font-size: 2.5rem;
    }
    .about-me p {
        font-size: 1.2rem;
    }
    .about-content {
        padding: 1px 20px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* Fade-in effect */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        padding: 15px;
        border-radius: 15px;
        margin-top: 10px;
    }
    .navbar-nav .nav-link {
        color: #fff !important;
        padding: 10px 15px;
    }
    .navbar-nav .nav-link:hover {
        color: #c4922a !important;
    }
}

/* Alert effects */
.alert-container {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.alert-success {
    background: linear-gradient(45deg, #065f46, #047857);
    color: #fff;
    border: 1px solid #065f46;
}

.alert-error {
    background: linear-gradient(45deg, #7f1d1d, #dc2626);
    color: #fff;
    border: 1px solid #7f1d1d;
}

/* Contact Section */
.contact-section {
    background: rgba(15, 15, 35, 0.8);
    padding: 60px 0;
    margin-top: 60px;
    border-radius: 30px 30px 0 0;
}
.contact-section h2 {
    color: #e0e0e0;
    margin-bottom: 30px;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    border-radius: 10px;
    padding: 12px;
}
.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #a855f7;
    box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.25);
}
.contact-form .btn {
    background: linear-gradient(45deg, #a855f7, #ec4899);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.contact-form .btn:hover {
    background: linear-gradient(45deg, #9333ea, #db2777);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

/* Fancybox Caption Styling */
.fb-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
    display: block;
}

.fb-description {
    font-weight: normal;
    font-size: 0.9em;
    opacity: 0.9;
    display: block;
}