    /***************
 * Navbar
 ***************/
.navbar {
    background-color: transparent;
    transition: background-color 0.3s ease; /* płynne przejście */
}

.navbar.scrolled {
    background-color: #000000;
}

.nav-link:focus,
.nav-link {
    color: white;
}

.nav-link:hover {
    color: var(--bs-link-color);
    font-weight: bold;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: var(--bs-primary);
    font-weight: bold;
}

/***************
 * Navbar
 ***************/

/***************
 * Hero Section
 ***************/
#home {
    height: 100vh;
    min-height: 600px;
    background: url('/img/home-banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content .social-link {
    display: inline-block;
    padding: 10px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.hero-content .social-link:hover {
    border-color: white;
}

.hero-content .social-link path {
    fill: white;
}

.profile-img-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
}

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

/***************
 * About Section
 ***************/
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-left-color: #ff9800;
}

.timeline-item h5 {
    transition: color 0.3s ease;
}

.timeline-item:hover h5 {
    color: #ff9800;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.9rem;
    top: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #ff9800;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
    background: #ff9800;
}

.progress {
    height: 10px;
    border-radius: 5px;
}

/* Stats Boxes */
.stat-box {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-primary);
}
/***************
 * About Section
 ***************/


/***************
 * Services Section
 ***************/
.service-box {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--bs-primary);
    margin-bottom: 1.5rem;
}
/***************
 * Services Section
 ***************/


/***************
 * Portfolio Section
 ***************/
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-item-star {
    border: 3px dashed #ff9800;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(255, 152, 0, 0.5);
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.05) 0%, rgba(255, 152, 0, 0.02) 100%);
    animation: pulse-border 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.portfolio-item-star:hover {
    box-shadow: 0 0 70px rgba(255, 152, 0, 0.7);
    transform: translateY(-8px) scale(1.02);
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 50px rgba(255, 152, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 152, 0, 0.7);
    }
}

.portfolio-item img {
    width: 100%;
    transition: transform 0.3s ease;
    display: block;
}

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

.portfolio-item-star:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 110, 253, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

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

.portfolio-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portfolio-overlay p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Certification Section Specific Styles */
#certification {
    position: relative;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
}

/* #certification .display-5 {
    background: linear-gradient(135deg, #ff9800 0%, #0d6efd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

#certification .display-5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ff9800, transparent);
    border-radius: 2px;
} */

.certification-featured {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.05) 0%, rgba(13, 110, 253, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    border: 2px solid rgba(255, 152, 0, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.certification-featured:hover {
    border-color: rgba(255, 152, 0, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.certification-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.1) 0%, transparent 70%);
    animation: rotate-gradient 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.certification-featured .portfolio-item-star {
    position: relative;
    z-index: 1;
    border: 3px solid #ff9800;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 152, 0, 0.4), inset 0 0 30px rgba(255, 152, 0, 0.05);
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08) 0%, rgba(13, 110, 253, 0.08) 100%);
    animation: pulse-glow 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.certification-featured .portfolio-item-star img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.certification-featured .portfolio-item-star::before {
    content: '⭐';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2rem;
    z-index: 2;
    animation: rotate-star 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 152, 0, 0.8));
}

@keyframes rotate-star {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(15deg) scale(1.1);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 152, 0, 0.4), inset 0 0 30px rgba(255, 152, 0, 0.05);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 152, 0, 0.6), inset 0 0 40px rgba(255, 152, 0, 0.1);
    }
}

.certification-featured .portfolio-item-star:hover {
    box-shadow: 0 0 60px rgba(255, 152, 0, 0.8), inset 0 0 50px rgba(255, 152, 0, 0.15);
    transform: translateY(-10px) scale(1.03);
    border-color: #ff9800;
}

.certification-featured .portfolio-item-star:hover img {
    transform: scale(1.05);
}

.certification-featured .portfolio-item-star:hover::before {
    animation: rotate-star-hover 0.5s ease-in-out infinite;
}

@keyframes rotate-star-hover {
    0%, 100% {
        transform: rotate(-10deg) scale(1.2);
    }
    50% {
        transform: rotate(10deg) scale(1.3);
    }
}

/* Responsive improvements for mobile */
@media (max-width: 768px) {
    .certification-featured {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .certification-featured .portfolio-item-star {
        margin-bottom: 1.5rem;
    }

    .certification-featured .portfolio-item-star:last-child {
        margin-bottom: 0;
    }

    .certification-featured .portfolio-item-star::before {
        font-size: 1.5rem;
        top: -10px;
        right: -10px;
    }

    .certification-featured .portfolio-overlay h4 {
        font-size: 1.25rem;
    }

    .certification-featured .portfolio-overlay .certification-year-badge {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }

    .certification-featured .portfolio-overlay .certification-icon {
        font-size: 2rem;
    }

    #certification {
        padding: 3rem 0;
    }

    .certification-featured .row.g-4 {
        --bs-gutter-y: 1.5rem;
    }
}

/* Enhanced overlay for featured certificates */
.certification-featured .portfolio-overlay {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.95) 0%, rgba(13, 110, 253, 0.95) 100%);
    border-radius: 8px;
}

.certification-featured .portfolio-overlay .overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}

.certification-featured .portfolio-overlay h4 {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
    animation: slideInDown 0.5s ease-out;
}

.certification-featured .portfolio-overlay .certification-year-badge {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 0.5s ease-out 0.1s both;
}

.certification-featured .portfolio-overlay .certification-icon {
    font-size: 2.5rem;
    animation: bounceIn 0.6s ease-out 0.2s both, float 3s ease-in-out infinite 1s;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Enhanced styles for smaller certification items */
.certification-grid {
    margin-top: 1rem;
}

.certification-item-small {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.5rem;
}

.certification-item-small:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(13, 110, 253, 0.3);
}

.certification-item-small img {
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.certification-item-small:hover img {
    transform: scale(1.08);
}

.certification-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.95) 0%, rgba(13, 110, 253, 0.95) 100%);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
    opacity: 0.95;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.certification-item-small:hover .certification-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.certification-item-small .portfolio-overlay {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.95) 0%, rgba(255, 152, 0, 0.95) 100%);
    border-radius: 8px;
}

.certification-item-small .portfolio-overlay h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.certification-item-small .certification-year {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    display: inline-block;
}

/* Staggered animation for certification items */
.certification-grid .col-lg-3:nth-child(1) .certification-item-small {
    animation-delay: 0.1s;
}

.certification-grid .col-lg-3:nth-child(2) .certification-item-small {
    animation-delay: 0.2s;
}

.certification-grid .col-lg-3:nth-child(3) .certification-item-small {
    animation-delay: 0.3s;
}

.certification-grid .col-lg-3:nth-child(4) .certification-item-small {
    animation-delay: 0.4s;
}

.certification-item-small {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

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

/* Improved mobile responsiveness for certification grid */
@media (max-width: 768px) {
    .certification-item-small {
        padding: 0.4rem;
    }

    .certification-badge {
        top: 8px;
        right: 8px;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .certification-item-small .portfolio-overlay h4 {
        font-size: 0.9rem;
    }

    .certification-grid {
        margin-top: 0.5rem;
    }

    .certification-grid .row {
        --bs-gutter-y: 1rem;
    }
}

/* Additional enhancements for better visual hierarchy */
.certification-featured .row.g-4 > * {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
}

@media (min-width: 992px) {
    .certification-featured .row.g-4 {
        --bs-gutter-x: 2rem;
    }
}

/***************
 * Portfolio Section
 ***************/

/***************
 * Contact Section
 ***************/

.contact-info-box {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-detail {
    color: #333;
}

.contact-detail a {
    color: var(--bs-primary);
    transition: color 0.3s ease;
}

.contact-detail a:hover {
    color: var(--bs-primary);
    opacity: 0.8;
}
/***************
 * Contact Section
 ***************/
